INonfungiblePositionManager
Wraps DragonswapV2 positions in a non-fungible token interface which allows for them to be transferred and authorized.
Parameter Structs
MintParams
IncreaseLiquidityParams
DecreaseLiquidityParams
CollectParams
Functions
positions
Returns the position information associated with a given token ID.
Throws if the token ID is not valid.
Parameters:
Return Values:
createAndInitializePoolIfNecessary
Creates a new pool if it does not exist, then initializes if not initialized
This method can be bundled with mint for the first mint of a pool to create, initialize a pool and mint at the same time
Parameters:
We use tokenA and tokenB when we are referring to unsorted, or unordered tokens
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:
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:
Events
IncreaseLiquidity
Emitted when liquidity is increased for a position NFT
Also emitted when a token is minted
Parameters:
DecreaseLiquidity
Emitted when liquidity is decreased for a position NFT
Parameters:
Collect
Emitted when tokens are collected for a position NFT
The amounts reported may not be exactly equivalent to the amounts transferred, due to rounding behavior
Parameters:
Last updated