feat: bonding_curve is transmitted from the outside

This commit is contained in:
wei
2025-06-18 17:39:20 +08:00
parent fa941174c2
commit 2303a4c1e6
4 changed files with 15 additions and 16 deletions
+2
View File
@@ -5,6 +5,7 @@ use std::sync::Arc;
use super::traits::ProtocolParams;
use crate::common::{PriorityFee, SolanaRpcClient};
use crate::swqos::FeeClient;
use crate::accounts::BondingCurveAccount;
/// 通用买入参数
#[derive(Clone)]
@@ -76,6 +77,7 @@ pub struct PumpFunParams {
pub dev_buy_token: u64,
pub dev_sol_cost: u64,
pub trade_type: String,
pub bonding_curve: Option<Arc<BondingCurveAccount>>,
}
impl ProtocolParams for PumpFunParams {