From d8643c8421026f41266e41ac6dde676306a1cb93 Mon Sep 17 00:00:00 2001 From: wei <1415121722@qq.com> Date: Sun, 22 Jun 2025 22:50:05 +0800 Subject: [PATCH] sniper_buy_with_tip add bonding_curve --- src/lib.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 7cbc197..1382131 100755 --- a/src/lib.rs +++ b/src/lib.rs @@ -274,6 +274,7 @@ impl PumpFun { buy_sol_cost: u64, slippage_basis_points: Option, recent_blockhash: Hash, + bonding_curve: Option>, ) -> Result<(), anyhow::Error> { pumpfun::buy::buy_with_tip( self.fee_clients.clone(), @@ -285,7 +286,7 @@ impl PumpFun { self.priority_fee.clone(), self.cluster.clone().lookup_table_key, recent_blockhash, - None, + bonding_curve, SNIPER_BUY.to_string(), ).await }