update example

This commit is contained in:
wood
2025-07-10 23:54:49 +08:00
parent c8ff05fb48
commit c66a89cad2
8 changed files with 210 additions and 256 deletions
+4 -4
View File
@@ -156,7 +156,7 @@ impl SolanaTrade {
dex_type: DexType,
mint: Pubkey,
creator: Option<Pubkey>,
amount_sol: u64,
sol_amount: u64,
slippage_basis_points: Option<u64>,
recent_blockhash: Hash,
custom_buy_tip_fee: Option<f64>,
@@ -182,7 +182,7 @@ impl SolanaTrade {
payer: self.payer.clone(),
mint: mint,
creator: creator.unwrap_or(Pubkey::default()),
amount_sol: amount_sol,
sol_amount: sol_amount,
slippage_basis_points: slippage_basis_points,
priority_fee: self.trade_config.priority_fee.clone(),
lookup_table_key: self.trade_config.lookup_table_key,
@@ -286,7 +286,7 @@ impl SolanaTrade {
dex_type: DexType,
mint: Pubkey,
creator: Option<Pubkey>,
amount_token: u64,
token_amount: u64,
slippage_basis_points: Option<u64>,
recent_blockhash: Hash,
custom_buy_tip_fee: Option<f64>,
@@ -312,7 +312,7 @@ impl SolanaTrade {
payer: self.payer.clone(),
mint: mint,
creator: creator.unwrap_or(Pubkey::default()),
amount_token: Some(amount_token),
token_amount: Some(token_amount),
slippage_basis_points: slippage_basis_points,
priority_fee: self.trade_config.priority_fee.clone(),
lookup_table_key: self.trade_config.lookup_table_key,