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 addressamount
: Amount of LP Fungible Assetlocktime
: Set to18446744073709551615
Last updated