A position NFT represents a single range of liquidity provided in a pool. It follows the .
get_position_data
Returns position data.
Arguments
None
Returns
slice
User address
slice
Pool address
int
Position index
int
Lower tick of the position's liquidity range
int
Upper tick of the position's liquidity range
int
Liquidity amount of the position
int
Pool's transaction count at last interaction
int
Fee growth for token0 inside range X128
int
Fee growth for token1 inside range X128
int
Whether position is staked in a farm
get_nft_data
Returns position NFT metadata.
Arguments
None
Returns
int
Is initialized
int
Position index
slice
Pool address
slice
User address
cell
NFT content
get_position_farm_data
Returns all staking data for the position.
Arguments
None
Returns
dict
All position data
Staking Data Format
Uint32
Farm index
Cell
Tick data
Tick Data Contents
Uint256
Seconds per liquidity growth inside X128
Uint32
Opcode
Uint64
Query ID
Address
Owner address
^Cell
NFT content
^Cell
Position data
β Int32
Low tick
β Int32
High tick
β ^Cell
Position fee data
ββ Uint256
Fee0 growth inside last
ββ Uint256
Fee1 growth inside last
β Uint128
Liquidity
β Uint256
Tx count
β ^Cell
Farm data
ββ Uint1
Should stake
ββ Maybe Uint32
Farm index
Uint32
Opcode
Uint64
Query ID
Int32
Low tick
Int32
Upper tick
Uint128
Liquidity
Uint256
Tx count
^Cell
Fee data
β Uint256
Fee0 growth inside
β Uint256
Fee1 growth inside
Address
User address
Uint32
Opcode
Uint64
Query ID
Int32
Low tick
Int32
High tick
Uint128
Liquidity
Uint256
Tx count
Uint256
Seconds per liquidity growth X128
Uint32
Farm index
^Cell
Farm data
β Uint64
Farm rewards start timestamp
β Uint64
Farm rewards end timestamp
β Address
User address
Uint32
Opcode
Uint64
Query ID
Uint32
Farm index
Uint1
Should restake
Uint32
Opcode
Uint64
Query ID
Address
New owner address
Address
Response address
Maybe ^Cell
Custom payload
Coins
Forward amount
Either Cell ^Cell
Forward payload