feat: Add PumpSwap trading functionality module

This commit is contained in:
sgxiang
2025-06-06 22:29:30 +08:00
parent 63109713f4
commit 94c2a22ab7
19 changed files with 2334 additions and 21 deletions
+2 -2
View File
@@ -219,7 +219,7 @@ pub async fn build_create_and_buy_instructions(
&payer.pubkey(),
&payer.pubkey(),
&mint.pubkey(),
&constants::accounts::TOKEN_PROGRAM,
&constants::pumpfun::accounts::TOKEN_PROGRAM,
));
instructions.push(instruction::buy(
@@ -227,7 +227,7 @@ pub async fn build_create_and_buy_instructions(
&mint.pubkey(),
&bonding_curve_pda,
&creator_vault_pda,
&constants::global_constants::FEE_RECIPIENT,
&constants::pumpfun::global_constants::FEE_RECIPIENT,
instruction::Buy {
_amount: buy_token_amount,
_max_sol_cost: max_sol_cost,