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
@@ -16,9 +16,9 @@ Each (SwqosType, TradeType) combination can only configure one strategy. Subsequ
### 2. Set Global Strategy (can also be configured individually)
```rust
use sol_trade_sdk::common::{gas_fee_strategy::GasFeeStrategy, set_global_gas_fee_strategy};
use sol_trade_sdk::common::{gas_fee_strategy::GasFeeStrategy};
// Set global strategy (normal strategy)
set_global_gas_fee_strategy(
GasFeeStrategy::set_global_fee_strategy(
150000, // cu_limit
500000, // cu_price
0.001, // buy tip