feat(pumpswap): Add fee configuration support v0.5.6
This commit is contained in:
@@ -16,7 +16,7 @@ use crate::{
|
||||
},
|
||||
pumpswap::common::{
|
||||
coin_creator_vault_ata, coin_creator_vault_authority, fee_recipient_ata,
|
||||
get_global_volume_accumulator_pda, get_user_volume_accumulator_pda,
|
||||
get_fee_config_pda, get_global_volume_accumulator_pda, get_user_volume_accumulator_pda,
|
||||
},
|
||||
},
|
||||
utils::calc::pumpswap::{buy_quote_input_internal, sell_base_input_internal},
|
||||
@@ -272,6 +272,10 @@ impl PumpSwapInstructionBuilder {
|
||||
false,
|
||||
));
|
||||
}
|
||||
accounts
|
||||
.push(solana_sdk::instruction::AccountMeta::new(get_fee_config_pda().unwrap(), false));
|
||||
accounts
|
||||
.push(solana_sdk::instruction::AccountMeta::new_readonly(accounts::FEE_PROGRAM, false));
|
||||
|
||||
// Create instruction data
|
||||
let mut data = vec![];
|
||||
@@ -461,6 +465,11 @@ impl PumpSwapInstructionBuilder {
|
||||
));
|
||||
}
|
||||
|
||||
accounts
|
||||
.push(solana_sdk::instruction::AccountMeta::new(get_fee_config_pda().unwrap(), false));
|
||||
accounts
|
||||
.push(solana_sdk::instruction::AccountMeta::new_readonly(accounts::FEE_PROGRAM, false));
|
||||
|
||||
// Create instruction data
|
||||
let mut data = vec![];
|
||||
if quote_mint_is_wsol {
|
||||
|
||||
Reference in New Issue
Block a user