Add Liquidity
1. Add Liquidity
1.1 Function params
account: the signer of the user.
position_nft: the positon nft object.
delta_liquidity: the amount of liquidity will be remove.
amount_a: the amount of coin a will be add.
amount_b: the amount of coin b will be add.
1.2. Function
// tucana_clmm::router
public entry fun add_liquidity(
account: &signer,
position_nft: Object<PositionNft>,
delta_liquidity: u128,
amount_a: u64,
amount_b: u64
)
2. Add Liquidity Fix Coin
2.1 Function params
account: the signer of the user.
position_nft: the positon nft object.
amount_a: the amount of coin a will be add.
amount_b: the amount of coin b will be add.
fix_amount_a: if true, fix the amount of coin a, then remove liquidity. the amount of coin b will be auto calculate by amount a and position tick range and liquidity.
2.2. Function
// tucana_clmm::router
public entry fun add_liquidity_fix_coin(
account: &signer,
position_nft: Object<PositionNft>,
amount_a: u64,
amount_b: u64,
fix_amount_a: bool,
)
Last updated