pub fn add_liquidity<'info>(
    accounts: &mut MintContext<'info>,
    remaining_accounts: &[AccountInfo<'info>],
    amount_0_desired: u64,
    amount_1_desired: u64,
    amount_0_min: u64,
    amount_1_min: u64,
    tick_lower: i32,
    tick_upper: i32
) -> Result<(u64, u64, u64)>
Expand description

Add liquidity to an initialized pool

Arguments

  • accounts - Accounts to mint core liquidity
  • amount_0_desired - Desired amount of token_0 to be spent
  • amount_1_desired - Desired amount of token_1 to be spent
  • amount_0_min - The minimum amount of token_0 to spend, which serves as a slippage check
  • amount_1_min - The minimum amount of token_1 to spend, which serves as a slippage check
  • tick_lower - The lower tick bound for the position
  • tick_upper - The upper tick bound for the position