Function cyclos_core::add_liquidity
source · [−]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 liquidityamount_0_desired- Desired amount of token_0 to be spentamount_1_desired- Desired amount of token_1 to be spentamount_0_min- The minimum amount of token_0 to spend, which serves as a slippage checkamount_1_min- The minimum amount of token_1 to spend, which serves as a slippage checktick_lower- The lower tick bound for the positiontick_upper- The upper tick bound for the position