refactor: move set_global_gas_fee_strategy to GasFeeStrategy struct

This commit is contained in:
ysq
2025-09-19 23:59:52 +08:00
parent e4a6b49aab
commit d1c001df36
21 changed files with 62 additions and 60 deletions
+1 -1
View File
@@ -1305,7 +1305,7 @@ async fn initialize_real_client() -> AnyResult<SolanaTrade> {
let trade_config = TradeConfig::new(rpc_url, swqos_configs, commitment);
let solana_trade = SolanaTrade::new(payer, trade_config).await;
// set global strategy
sol_trade_sdk::common::set_global_gas_fee_strategy(150000, 500000, 0.001, 0.001);
sol_trade_sdk::common::GasFeeStrategy::set_global_fee_strategy(150000, 500000, 0.001, 0.001);
println!("✅ SolanaTrade client initialized successfully!");
Ok(solana_trade)
}