Function withdraw

Source
pub fn withdraw(
    program_id: &Pubkey,
    pool: &Pubkey,
    authority: &Pubkey,
    user_transfer_authority: &Pubkey,
    pool_deposit_token_account: &Pubkey,
    token_pass_user_account: &Pubkey,
    token_fail_user_account: &Pubkey,
    token_pass_mint: &Pubkey,
    token_fail_mint: &Pubkey,
    user_token_destination_account: &Pubkey,
    token_program_id: &Pubkey,
    amount: u64,
) -> Result<Instruction, ProgramError>
Expand description

Create Withdraw instruction