LP Burned (NFT)

When you stake into a pool and lock liquidity, you will receive an NFT that represents your position. This NFT is used to claim fee rewards and pool incentives.

How to create LP Burned

Use the stake_and_lock function from the liquidity_stake_pool module.

public entry fun stake_and_lock(
        user: &signer,
        pool: Object<LiquidityPool>,
        amount: u64,
        lock_time: u64
    ) {
        ...
    }

Function Parameters

  • user: The transaction signer (liquidity provider).

  • pool: The pool address

  • amount: Amount of LP Fungible Asset

  • locktime: Set to 18446744073709551615

Last updated