Skip to main content

PositionSnapshot

Entity storing the state of a position after an action taken on the position.

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

Schema

FieldTypederivedFromDescription
idID!Position Snapshot ID. Format: <NFT Token ID>#<Block Number>
ownerBytes!Position NFT's Owner's Address
poolPool!Pool entity to which the position belongs to
positionPosition!Position entity for which the snapshot is taken
blockNumberBigInt!BlockNumber in which the snapshot was created
timestampBigInt!Timestamp of the block in which the snapshot was created
liquidityBigInt!Total Liquidity of the position
depositedToken0BigDecimal!Total amount of token0 ever deposited to the position
depositedToken1BigDecimal!Total amount of token1 ever deposited to the position
withdrawnToken0BigDecimal!Total amount of token0 withdrawn from the position (excluding the fee)
withdrawnToken1BigDecimal!Total amount of token1 withdrawn from the position (excluding the fee)
collectedFeesToken0BigDecimal!Total amount of token0 fee collected
collectedFeesToken1BigDecimal!Total amount of token1 fee collected
transactionTransaction!Transaction in which the Snapshot was created.
feeGrowthInside0LastX128BigInt!Marker to compute the position's token0 fee in a pool
feeGrowthInside1LastX128BigInt!Marker to compute the position's token1 fee in a pool

Referencing Functions

FunctionNameCreateReadUpdateSave
savePositionSnapshot()