IAlgebraVirtualPoolBase

Base interface for virtual pools

Functions

timeOutside

timeOutside() view external

Returns:

NameTypeDescription

[0]

uint32

ticks

ticks(int24) view external

NameTypeDescription

tickId

int24

Returns:

NameTypeDescription

liquidityTotal

uint128

liquidityDelta

int128

outerFeeGrowth0Token

uint256

outerFeeGrowth1Token

uint256

outerTickCumulative

int56

outerSecondsPerLiquidity

uint160

outerSecondsSpent

uint32

initialized

bool

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

bottomTick

int24

The bottom tick of a position

topTick

int24

The top tick of a position

Returns:

NameTypeDescription

innerSecondsSpentPerLiquidity

uint160

applyLiquidityDeltaToPosition

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

NameTypeDescription

currentTimestamp

uint32

The timestamp of current block

bottomTick

int24

The bottom tick of a position

topTick

int24

The top tick of a position

liquidityDelta

int128

The amount of liquidity in a position

currentTick

int24

The current tick in the main pool