Function stable_swap_anchor::withdraw_one[][src]

pub fn withdraw_one<'a, 'b, 'c, 'info>(
    ctx: CpiContext<'a, 'b, 'c, 'info, WithdrawOne<'info>>,
    pool_token_amount: u64,
    minimum_token_amount: u64
) -> ProgramResult
Expand description

Creates and invokes a stable_swap_client::instruction::withdraw_one instruction.

Arguments:

  • pool_token_amount - Amount of LP tokens to withdraw.
  • minimum_token_amount - Minimum amount of tokens of WithdrawOne::output to withdraw.