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 @@
### 2. 设置全局策略(也可以不设置,单独去配置单个策略)
```rust
use sol_trade_sdk::common::{gas_fee_strategy::GasFeeStrategy, set_global_gas_fee_strategy};
use sol_trade_sdk::common::{gas_fee_strategy::GasFeeStrategy};
// 设置全局策略(normal 策略)
set_global_gas_fee_strategy(
GasFeeStrategy::set_global_fee_strategy(
150000, // cu_limit
500000, // cu_price
0.001, // buy tip