NonfungiblePositionManager

This contract wraps KLAYswap V3 positions in the ERC721 non-fungible token interface

Code

Github Link: (Will be updated after official launch)

Address

Events, Read-Only Functions, and State-Changing Functions

Events

IncreaseLiquidity

event IncreaseLiquidity(
    uint256 indexed tokenId, 
    uint128 liquidity, 
    uint256 amount0, 
    uint256 amount1
);

Emitted when liquidity is increased for a position NFT

Also emitted when a token is minted

Parameters:

NameTypeDescription

tokenId

uint256

The ID of the token for which liquidity was increased

liquidity

uint128

The amount by which liquidity for the NFT position was increased

amount0

uint256

The amount of token0 that was paid for the increase in liquidity

amount1

uint256

The amount of token1 that was paid for the increase in liquidity

DecreaseLiquidity

event DecreaseLiquidity(
    uint256 indexed tokenId, 
    uint128 liquidity, 
    uint256 amount0, 
    uint256 amount1
);

Emitted when liquidity is decreased for a position NFT

Parameters:

NameTypeDescription

tokenId

uint256

The ID of the token for which liquidity was decreased

liquidity

uint128

The amount by which liquidity for the NFT position was decreased

amount0

uint256

The amount of token0 that was accounted for the decrease in liquidity

amount1

uint256

The amount of token1 that was accounted for the decrease in liquidity

Collect

event Collect(
    uint256 indexed tokenId, 
    address recipient,
    uint256 amount0, 
    uint256 amount1,
    uint256 reward
);

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:

NameTypeDescription

tokenId

uint256

The ID of the token for which underlying tokens were collected

recipient

address

The address of the account that received the collected tokens

amount0

uint256

The amount of token0 owed to the position that was collected

amount1

uint256

The amount of token1 owed to the position that was collected

Last updated