Remove Liquidity

1. Remove liquidity

1.1Function params

  • account: the signer of the user.

  • position_nft: the positon nft object.

  • delta_liquidity: the amount of liquidity will be remove.

1.2. Function

// tucana_clmm::router
public entry fun remove_liquidity(
    account: &signer,
    position_nft: Object<PositionNft>,
    delta_liquidity: u128,
) 

2. Remove Lliquidity With Option

2.1. Function params

  • account: the signer of the user.

  • position_nft: the positon nft object.

  • delta_liquidity: the amount of liquidity will be remove.

  • min_amount_a: the min amount of coin a want to remove.

  • min_amount_b: the min amount of coin b want to remove.

  • is_collect_fee: the option of is collect fee.

  • is_collect_reward: the option of is collect reward.

ps: Before close positon, the fee , reward and liquidity must all removed.

2.2. Function

// tucana_clmm::router
public entry fun remove_liquidity_with_option(
    account: &signer,
    position_nft: Object<PositionNft>,
    delta_liquidity: u128,
    min_amount_a: u64,
    min_amount_b: u64,
    is_collect_fee: Option<bool>,
    is_collect_reward: Option<bool>,
) 

Last updated