NonfungiblePositionManager
Wraps Pancake V3 positions in the ERC721 non-fungible token interface
Contract Info
Solidity API
Position
constructor
positions
Returns the position information associated with a given token ID.
Throws if the token ID is not valid.
Parameters
Return Values
mint
Creates a new position wrapped in a NFT
Call this when the pool does exist and is initialized. Note that if the pool is created but not initialized a method does not exist, i.e. the pool is assumed to be initialized.
Parameters
Return Values
isAuthorizedForToken
tokenURI
baseURI
_Returns the base URI set via {setBaseURI}. This will be automatically added as a prefix in {tokenURI} to each token's URI, or to the token ID if no specific URI is set for that token ID.
increaseLiquidity
Increases the amount of liquidity in a position, with tokens paid by the msg.sender
Parameters
Return Values
decreaseLiquidity
Decreases the amount of liquidity in a position and accounts it to the position
Parameters
Return Values
collect
Collects up to a maximum amount of fees owed to a specific position to the recipient
Parameters
Return Values
burn
Burns a token ID, which deletes it from the NFT contract. The token must have 0 liquidity and all tokens must be collected first.
Parameters
_getAndIncrementNonce
Gets the current nonce for a token ID and then increments it, returning the original value
getApproved
_Returns the account approved for tokenId
token.
Requirements:
tokenId
must exist._
_approve
_Overrides approve to use the operator in the position, which is packed with the position permit nonce
Last updated