API reference v1.0
Introduction
periphery
tokenomics
IAlgebraPoolDerivedState

IAlgebraPoolDerivedState

IAlgebraPoolDerivedState

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.

Functions

getTimepoints

getTimepoints(uint32[]) view external

Returns the cumulative tick and liquidity as of each timestamp `secondsAgo` from the current block timestamp

NameTypeDescription
secondsAgosuint32[]From how long ago each cumulative tick and liquidity value should be returned

Returns:

NameTypeDescription
tickCumulativesint56[]
secondsPerLiquidityCumulativesuint160[]
volatilityCumulativesuint112[]
volumePerAvgLiquiditysuint256[]

getInnerCumulatives

getInnerCumulatives(int24,int24) view external

Returns a snapshot of the tick cumulative, seconds per liquidity and seconds inside a tick range

NameTypeDescription
bottomTickint24The lower tick of the range
topTickint24The upper tick of the range

Returns:

NameTypeDescription
innerTickCumulativeint56
innerSecondsSpentPerLiquidityuint160
innerSecondsSpentuint32

IAlgebraPoolDerivedState

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.

Functions

getTimepoints

getTimepoints(uint32[]) view external

Returns the cumulative tick and liquidity as of each timestamp `secondsAgo` from the current block timestamp

NameTypeDescription
secondsAgosuint32[]From how long ago each cumulative tick and liquidity value should be returned

Returns:

NameTypeDescription
tickCumulativesint56[]
secondsPerLiquidityCumulativesuint160[]
volatilityCumulativesuint112[]
volumePerAvgLiquiditysuint256[]

getInnerCumulatives

getInnerCumulatives(int24,int24) view external

Returns a snapshot of the tick cumulative, seconds per liquidity and seconds inside a tick range

NameTypeDescription
bottomTickint24The lower tick of the range
topTickint24The upper tick of the range

Returns:

NameTypeDescription
innerTickCumulativeint56
innerSecondsSpentPerLiquidityuint160
innerSecondsSpentuint32

IAlgebraPoolDerivedState

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.

Functions

getTimepoints

getTimepoints(uint32[]) view external

Returns the cumulative tick and liquidity as of each timestamp `secondsAgo` from the current block timestamp

NameTypeDescription
secondsAgosuint32[]From how long ago each cumulative tick and liquidity value should be returned

Returns:

NameTypeDescription
tickCumulativesint56[]
secondsPerLiquidityCumulativesuint160[]
volatilityCumulativesuint112[]
volumePerAvgLiquiditysuint256[]

getInnerCumulatives

getInnerCumulatives(int24,int24) view external

Returns a snapshot of the tick cumulative, seconds per liquidity and seconds inside a tick range

NameTypeDescription
bottomTickint24The lower tick of the range
topTickint24The upper tick of the range

Returns:

NameTypeDescription
innerTickCumulativeint56
innerSecondsSpentPerLiquidityuint160
innerSecondsSpentuint32

IAlgebraPoolDerivedState

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.

Functions

getTimepoints

getTimepoints(uint32[]) view external

Returns the cumulative tick and liquidity as of each timestamp `secondsAgo` from the current block timestamp

NameTypeDescription
secondsAgosuint32[]From how long ago each cumulative tick and liquidity value should be returned

Returns:

NameTypeDescription
tickCumulativesint56[]
secondsPerLiquidityCumulativesuint160[]
volatilityCumulativesuint112[]
volumePerAvgLiquiditysuint256[]

getInnerCumulatives

getInnerCumulatives(int24,int24) view external

Returns a snapshot of the tick cumulative, seconds per liquidity and seconds inside a tick range

NameTypeDescription
bottomTickint24The lower tick of the range
topTickint24The upper tick of the range

Returns:

NameTypeDescription
innerTickCumulativeint56
innerSecondsSpentPerLiquidityuint160
innerSecondsSpentuint32