Skip to main content

Tick

Entity to stores the metadata for a tick in a pool, it's lifetime metrics and current liquidity and fee variables.

Schema

FieldTypederivedFromDescriptionField Missing
idID!Tick ID. Format: <pool address>#<tick address>
poolAddressStringPool contract address
tickIdxBigInt!Tick Index
poolPool!Pool Entity
liquidityGrossBigInt!Total Liquidity the pool has at the tick with it's lower and upper range.
liquidityNetBigInt!Liquidity change when the tick is crossed
price0BigDecimal!Price of token0 at this tick (constant)
price1BigDecimal!Price of token1 at this tick (constant)
volumeToken0BigDecimal!Total volume of token0 transacted with tick in active range
volumeToken1BigDecimal!Total volume of token1 transacted with tick in active range
volumeUSDBigDecimal!Total transacted value with tick in active range in USD
untrackedVolumeUSDBigDecimal!Total transacted value with tick in active range (including tokens with unreliable USD value) in USD
feesUSDBigDecimal!Fee collected with the tick in active range in USD
collectedFeesToken0BigDecimal!Total amount of token0 collected as fee when this tick is active
collectedFeesToken1BigDecimal!Total amount of token1 collected as fee when this tick is active
collectedFeesUSDBigDecimal!Total value of fee collected when this tick is active is USD
createdAtTimestampBigInt!BlockTime when the tick was initialized
createdAtBlockNumberBigInt!BlockNumber when the tick was initialized
liquidityProviderCountBigInt!Used for detecting new exchanges. (Not Used currently)
feeGrowthOutside0X128BigInt!Used for calculating token0 fee's accumulated outside a tick whenever it is crossedarbitrum-one
feeGrowthOutside1X128BigInt!Used for calculating token1 fee's accumulated outside a tick whenever it is crossedarbitrum-one

Referencing Functions

FunctionNameCreateReadUpdateSave
createTick()
updateTickDayData()
handleMint()
handleBurn()
updateTickFeeVarsAndSave()
loadTickUpdateFeeVarsAndSave()