Function create_swap_instruction

Source
pub fn create_swap_instruction(
    express_relay_pid: Pubkey,
    searcher: Pubkey,
    user: Pubkey,
    searcher_ta_mint_searcher: Option<Pubkey>,
    searcher_ta_mint_user: Option<Pubkey>,
    router_fee_receiver_ta: Pubkey,
    fee_receiver_relayer: Pubkey,
    mint_searcher: Pubkey,
    mint_user: Pubkey,
    token_program_searcher: Pubkey,
    token_program_user: Pubkey,
    swap_args: SwapV2Args,
    relayer_signer: Pubkey,
) -> Instruction