NonfungiblePositionManager
NonfungiblePositionManager.sol
Wraps AMM positions in the ERC721 non-fungible token interface.
Table of Contents
Variables
lockedUntil
Unix timestamps, in seconds, for each position describing when they can be unlocked (without paying an early withdrawal fee).
timelock
The full duration of the most recent timelock applied to a position.
timelockExcluded
Whether an address is excluded from having timelocks applied. Useful for some integrations.
Events
IncreaseLiquidity
Emitted by mint()
and increaseLiquidity()
.
DecreaseLiquidity
Emitted by decreaseLiquidity()
.
Collect
Emitted by collect()
.
Write Functions
increaseLiquidity
Increases liquidity of a position.
decreaseLiquidity
Decreases the liquidity of a position. Tokens removed from liquidity are not actually transferred; they are simply accounted for as tokens owed to the position's owner, should they decide to call collect()
.
collect
Retrieves tokens from a liquidity position (from fees earned and any liquidity removed).
burn
Burns a liquidity position. The position must have zero liquidity and zero tokens owed.
Owner Functions
setTimelockExcluded
Sets whether an address is excluded from having timelocks imposed on new positions.
Read Functions
positions
Returns the position data of a liquidity position ID.
tokenURI
Returns a liquidity position's NFT tokenURI.
getApproved
Returns the operator
of a liquidity position.
Last updated