API reference v1.0
Introduction
periphery
tokenomics
IAlgebraVirtualPoolBase

IAlgebraVirtualPoolBase

IAlgebraVirtualPoolBase

Base interface for virtual pools

Functions

timeOutside

timeOutside() view external

Returns:

NameTypeDescription
[0]uint32

ticks

ticks(int24) view external

NameTypeDescription
tickIdint24

Returns:

NameTypeDescription
liquidityTotaluint128
liquidityDeltaint128
outerFeeGrowth0Tokenuint256
outerFeeGrowth1Tokenuint256
outerTickCumulativeint56
outerSecondsPerLiquidityuint160
outerSecondsSpentuint32
initializedbool

currentLiquidity

currentLiquidity() view external

Returns:

NameTypeDescription
[0]uint128

globalTick

globalTick() view external

Returns:

NameTypeDescription
[0]int24

globalSecondsPerLiquidityCumulative

globalSecondsPerLiquidityCumulative() view external

Returns:

NameTypeDescription
[0]uint160

prevTimestamp

prevTimestamp() view external

Returns:

NameTypeDescription
[0]uint32

getInnerSecondsPerLiquidity

getInnerSecondsPerLiquidity(int24,int24) view external

This function is used to calculate the seconds per liquidity inside a certain position

NameTypeDescription
bottomTickint24The bottom tick of a position
topTickint24The top tick of a position

Returns:

NameTypeDescription
innerSecondsSpentPerLiquidityuint160

applyLiquidityDeltaToPosition

applyLiquidityDeltaToPosition(uint32,int24,int24,int128,int24) external

NameTypeDescription
currentTimestampuint32The timestamp of current block
bottomTickint24The bottom tick of a position
topTickint24The top tick of a position
liquidityDeltaint128The amount of liquidity in a position
currentTickint24The current tick in the main pool