Function stable_swap_client::instruction::deposit [−][src]
pub fn deposit(
token_program_id: &Pubkey,
swap_pubkey: &Pubkey,
swap_authority_key: &Pubkey,
user_authority_key: &Pubkey,
deposit_token_a_pubkey: &Pubkey,
deposit_token_b_pubkey: &Pubkey,
swap_token_a_pubkey: &Pubkey,
swap_token_b_pubkey: &Pubkey,
pool_mint_pubkey: &Pubkey,
destination_pubkey: &Pubkey,
token_a_amount: u64,
token_b_amount: u64,
min_mint_amount: u64
) -> Result<Instruction, ProgramError>
Expand description
Creates a ‘deposit’ instruction.