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
| Field | Type | derivedFrom | Description | Field Missing |
|---|---|---|---|---|
| id | ID! | Position NFT Token ID | ||
| owner | Bytes! | Position NFT owner's address | ||
| pool | Pool! | Pool where the position staked the tokens | ||
| token0 | Token! | token0 entity of the pool | ||
| token1 | Token! | token1 entity of the pool | ||
| tickLower | Tick! | Lower Tick Entity of the position | ||
| tickUpper | Tick! | Upper Tick Entity of the position | ||
| liquidity | BigInt! | Total liquidity added by the position | ||
| depositedToken0 | BigDecimal! | Total amount token0 ever deposited to the position | ||
| depositedToken1 | BigDecimal! | Total amount token1 ever deposited to the position | ||
| withdrawnToken0 | BigDecimal! | Total amount token0 withdrawn to the position (excluding fees) | ||
| withdrawnToken1 | BigDecimal! | Total amount token1 withdrawn to the position (excluding fees) | ||
| collectedToken0 | BigDecimal! | Total amount of token0 collected (inclusive of burn amounts) | mainnet | |
| collectedToken1 | BigDecimal! | Total amount of token1 collected (inclusive of burn amounts) | mainnet | |
| collectedFeesToken0 | BigDecimal! | Total amount token0 fee collected | ||
| collectedFeesToken1 | BigDecimal! | Total amount token1 fee collected | ||
| amountDepositedUSD | BigDecimal! | Total amount deposited in terms of USD | mainnet, optimsim | |
| amountWithdrawnUSD | BigDecimal! | Total amount withdrawn in terms of USD | mainnet, optimism | |
| amountCollectedUSD | BigDecimal! | Total amount collected in terms of USD | mainnet, optimism | |
| transaction | Transaction! | Transaction entity in which the position was created | ||
| feeGrowthInside0LastX128 | BigInt! | Tracking the amount of token0 fee accumulated by the position | ||
| feeGrowthInside1LastX128 | BigInt! | Tracking the amount of token1 fee accumulated by the position |
Referencing Functions
| FunctionName | Create | Read | Update | Save |
|---|---|---|---|---|
| getPosition() | ||||
| updateFeeVars() | ||||
| savePositionSnapshot() | ||||
| handleIncreaseLiquidity() | ||||
| handleDecreaseLiquidity() | ||||
| handleCollect() | ||||
| handleTransfer() |