diff --git a/bin/autobahn-router/src/edge.rs b/bin/autobahn-router/src/edge.rs index 6fd0f7a..03022ac 100644 --- a/bin/autobahn-router/src/edge.rs +++ b/bin/autobahn-router/src/edge.rs @@ -253,7 +253,11 @@ impl Edge { return; } - debug!("Lazily updating {}->{}", debug_tools::name(&self.input_mint), debug_tools::name(&self.output_mint)); + debug!( + "Lazily updating {}->{}", + debug_tools::name(&self.input_mint), + debug_tools::name(&self.output_mint) + ); self.update(chain_data, token_cache, price_cache, path_warming_amounts) } diff --git a/bin/autobahn-router/src/server/route_provider.rs b/bin/autobahn-router/src/server/route_provider.rs index 7a29cc5..1137db8 100644 --- a/bin/autobahn-router/src/server/route_provider.rs +++ b/bin/autobahn-router/src/server/route_provider.rs @@ -92,8 +92,13 @@ impl RouteProvider for RoutingRouteProvider { }; // ensure new hot mints are ready (edge cached_price should be available) - self.routing - .lazy_compute_prices(&self.chain_data, &self.tokens, &self.prices, &from_mint, &to_mint); + self.routing.lazy_compute_prices( + &self.chain_data, + &self.tokens, + &self.prices, + &from_mint, + &to_mint, + ); let route = self.routing.find_best_route( &self.chain_data, diff --git a/lib/router-lib/src/lib.rs b/lib/router-lib/src/lib.rs index 03cc776..499a176 100644 --- a/lib/router-lib/src/lib.rs +++ b/lib/router-lib/src/lib.rs @@ -9,6 +9,6 @@ pub mod test_tools; pub mod utils; pub mod autobahn_executor { - use solana_sdk::declare_id; - declare_id!("AutobNFLMzX1rFCDgwWpwr3ztG5c1oDbSrGq7Jj2LgE"); + use solana_sdk::declare_id; + declare_id!("AutobNFLMzX1rFCDgwWpwr3ztG5c1oDbSrGq7Jj2LgE"); } diff --git a/programs/autobahn-executor/src/lib.rs b/programs/autobahn-executor/src/lib.rs index 50dd562..367868a 100644 --- a/programs/autobahn-executor/src/lib.rs +++ b/programs/autobahn-executor/src/lib.rs @@ -13,7 +13,6 @@ use solana_program::program_error::ProgramError; use solana_program::program_pack::Pack; use solana_program::{account_info::AccountInfo, pubkey::Pubkey}; - #[cfg(not(feature = "no-entrypoint"))] use {default_env::default_env, solana_program::entrypoint, solana_security_txt::security_txt};