use solana_program::instruction::{AccountMeta, Instruction};
use solana_program::pubkey::Pubkey;
use crate::program::SWAP_PROGRAM_ID;
use crate::utils::sighash;
pub fn new_transfer_protocol_fee_authority(
clmm_config: &Pubkey,
new_authority: &Pubkey,
payer: Pubkey,
) -> Instruction {
let distor = sighash::sighash("global", "transfer_protocol_authority").to_vec();
Instruction {
program_id: SWAP_PROGRAM_ID,
accounts: vec![
AccountMeta::new(payer, true),
AccountMeta::new(*clmm_config, false),
AccountMeta::new_readonly(*new_authority, false),
],
data: distor,
}
}