Function stable_swap_anchor::withdraw [−][src]
pub fn withdraw<'a, 'b, 'c, 'info>(
ctx: CpiContext<'a, 'b, 'c, 'info, Withdraw<'info>>,
pool_token_amount: u64,
minimum_token_a_amount: u64,
minimum_token_b_amount: u64
) -> ProgramResult
Expand description
Creates and invokes a stable_swap_client::instruction::withdraw instruction.
Arguments:
pool_token_amount
- Amount of LP tokens to withdraw.minimum_token_a_amount
- Minimum amount of tokens ofWithdraw::output_a
to withdraw.minimum_token_b_amount
- Minimum amount of tokens ofWithdraw::output_b
to withdraw.