feat: update GasFeeStrategy API calls with data size parameters

This commit is contained in:
ysq
2025-11-10 16:44:18 +08:00
parent bfb2a3e35a
commit 2ce7808135
17 changed files with 31 additions and 26 deletions
+1 -1
View File
@@ -125,7 +125,7 @@ async fn pumpfun_copy_trade_with_grpc(trade_info: PumpFunTradeEvent) -> AnyResul
let durable_nonce = fetch_nonce_info(&client.rpc, nonce_account_str).await;
let gas_fee_strategy = sol_trade_sdk::common::GasFeeStrategy::new();
gas_fee_strategy.set_global_fee_strategy(150000, 500000, 0.001, 0.001);
gas_fee_strategy.set_global_fee_strategy(150000, 500000, 0.001, 0.001, 256 * 1024, 0);
// Buy tokens
println!("Buying tokens from PumpFun...");