clmm-common 0.1.39

Blockchain, Clmm for Solana
Documentation
use solana_program::instruction::{AccountMeta, Instruction};
use solana_program::pubkey::Pubkey;
use crate::program::SWAP_PROGRAM_ID;
use crate::utils::sighash;

pub fn new_pause_clmmpool(
    clmm_config: &Pubkey,
    clmmpool: &Pubkey,
    payer: Pubkey,
) -> Instruction {
    let distor = sighash::sighash("global", "pause_clmmpool").to_vec();

    Instruction {
        program_id: SWAP_PROGRAM_ID,
        accounts: vec![
            AccountMeta::new_readonly(*clmm_config, false),
            AccountMeta::new(payer, true),
            AccountMeta::new(*clmmpool, false),
        ],
        data: distor,
    }
}