update example
This commit is contained in:
+4
-4
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user