Skip to main content

Position

Entity to store details of a position created through NonfungiblePositionManager. Stores it's metadata, deposited/withdrawn tokens, fee variables and transactions where it participated.

Entity Not Defined
  • Currently the entity is not defined for arbitrum-one chain

Schema

FieldTypederivedFromDescriptionField Missing
idID!Position NFT Token ID
ownerBytes!Position NFT owner's address
poolPool!Pool where the position staked the tokens
token0Token!token0 entity of the pool
token1Token!token1 entity of the pool
tickLowerTick!Lower Tick Entity of the position
tickUpperTick!Upper Tick Entity of the position
liquidityBigInt!Total liquidity added by the position
depositedToken0BigDecimal!Total amount token0 ever deposited to the position
depositedToken1BigDecimal!Total amount token1 ever deposited to the position
withdrawnToken0BigDecimal!Total amount token0 withdrawn to the position (excluding fees)
withdrawnToken1BigDecimal!Total amount token1 withdrawn to the position (excluding fees)
collectedToken0BigDecimal!Total amount of token0 collected (inclusive of burn amounts)mainnet
collectedToken1BigDecimal!Total amount of token1 collected (inclusive of burn amounts)mainnet
collectedFeesToken0BigDecimal!Total amount token0 fee collected
collectedFeesToken1BigDecimal!Total amount token1 fee collected
amountDepositedUSDBigDecimal!Total amount deposited in terms of USDmainnet, optimsim
amountWithdrawnUSDBigDecimal!Total amount withdrawn in terms of USDmainnet, optimism
amountCollectedUSDBigDecimal!Total amount collected in terms of USDmainnet, optimism
transactionTransaction!Transaction entity in which the position was created
feeGrowthInside0LastX128BigInt!Tracking the amount of token0 fee accumulated by the position
feeGrowthInside1LastX128BigInt!Tracking the amount of token1 fee accumulated by the position

Referencing Functions

FunctionNameCreateReadUpdateSave
getPosition()
updateFeeVars()
savePositionSnapshot()
handleIncreaseLiquidity()
handleDecreaseLiquidity()
handleCollect()
handleTransfer()