IAlgebraPoolDerivedState
Functions
getTimepoints
Name
Type
Description
Name
Type
Description
getInnerCumulatives
Name
Type
Description
Name
Type
Description
Last updated
Pool state that is not stored Contains view functions to provide information about the pool that is computed rather than stored on the blockchain. The functions here may have variable gas costs.
getTimepoints(uint32[]) view external
Returns the cumulative tick and liquidity as of each timestamp `secondsAgo` from the current block timestamp
secondsAgos
uint32[]
From how long ago each cumulative tick and liquidity value should be returned
Returns:
tickCumulatives
int56[]
secondsPerLiquidityCumulatives
uint160[]
volatilityCumulatives
uint112[]
volumePerAvgLiquiditys
uint256[]
getInnerCumulatives(int24,int24) view external
Returns a snapshot of the tick cumulative, seconds per liquidity and seconds inside a tick range
bottomTick
int24
The lower tick of the range
topTick
int24
The upper tick of the range
Returns:
innerTickCumulative
int56
innerSecondsSpentPerLiquidity
uint160
innerSecondsSpent
uint32
Last updated