Function push_pumpswap_swap_instruction

Source
pub fn push_pumpswap_swap_instruction(
    swap_config: &SwapConfig,
    use_manual_instruction_args: bool,
    index_zero_arg: u64,
    index_one_arg: u64,
    instructions: &mut Vec<Instruction>,
    compute_unit_budget: &mut u32,
    pool: &PumpswapPool,
)
Expand description

Create and add a Pumpswap AMM swap instruction. If use_manual_instruction_args is true, uses exact amounts instead of slippage-based calculations.