State-Changing Functions
Copy function mint (
struct INonfungiblePositionManager . MintParams params
) external returns (
uint256 tokenId ,
uint128 liquidity ,
uint256 amount0 ,
uint256 amount1
)
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:
Copy function increaseLiquidity (
struct INonfungiblePositionManager . IncreaseLiquidityParams params
) external returns (
uint128 liquidity ,
uint256 amount0 ,
uint256 amount1
)
Increases the amount of liquidity in a position, with tokens paid by the msg.sender
Parameters:
Return Values:
Copy function decreaseLiquidity (
struct INonfungiblePositionManager . DecreaseLiquidityParams params
) external returns ( uint256 amount0 , uint256 amount1)
Decreases the amount of liquidity in a position and accounts it to the position
Parameters:
Return Values:
Copy function collect (
struct INonfungiblePositionManager . CollectParams params
) external returns ( uint256 amount0 , uint256 amount1)
Collects up to a maximum amount of fees owed to a specific position to the recipient
Parameters:
recipient The account that should receive the tokens, amount0Max The maximum amount of token0 to collect, amount1Max The maximum amount of token1 to collect
Return Values:
Copy function burn ( uint256 tokenId) external
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: