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
+2 -2
View File
@@ -1,5 +1,5 @@
use sol_trade_sdk::{
common::{gas_fee_strategy::GasFeeStrategy, set_global_gas_fee_strategy},
common::gas_fee_strategy::GasFeeStrategy,
swqos::{SwqosType, TradeType},
};
@@ -10,7 +10,7 @@ async fn main() {
// Set global strategy
println!("1. Set global strategy");
set_global_gas_fee_strategy(150000, 500000, 0.001, 0.001);
GasFeeStrategy::set_global_fee_strategy(150000, 500000, 0.001, 0.001);
// Print all strategies
println!("\n2. Print all strategies");