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
@@ -135,7 +135,7 @@ let client = SolanaTrade::new(Arc::new(payer), trade_config).await;
有关 Gas Fee 策略的详细信息,请参阅 [Gas Fee 策略参考手册](docs/GAS_FEE_STRATEGY_CN.md)。
```rust
// 设置全局策略
sol_trade_sdk::common::set_global_gas_fee_strategy(150000, 500000, 0.001, 0.001);
GasFeeStrategy::set_global_fee_strategy(150000, 500000, 0.001, 0.001);
```
#### 3. 构建交易参数