Router: formatting
This commit is contained in:
parent
de74c46423
commit
c6722bb68e
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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};
|
||||
|
||||
|
|
Loading…
Reference in New Issue