Function stable_swap_client::instruction::withdraw [−][src]
pub fn withdraw(
token_program_id: &Pubkey,
swap_pubkey: &Pubkey,
swap_authority_key: &Pubkey,
user_authority_key: &Pubkey,
pool_mint_pubkey: &Pubkey,
source_pubkey: &Pubkey,
swap_token_a_pubkey: &Pubkey,
swap_token_b_pubkey: &Pubkey,
destination_token_a_pubkey: &Pubkey,
destination_token_b_pubkey: &Pubkey,
admin_fee_a_pubkey: &Pubkey,
admin_fee_b_pubkey: &Pubkey,
pool_token_amount: u64,
minimum_token_a_amount: u64,
minimum_token_b_amount: u64
) -> Result<Instruction, ProgramError>
Expand description
Creates a ‘withdraw’ instruction.