Base interface for virtual pools
timeOutside()
view external
Returns:
Name | Type | Description |
---|---|---|
ticks(int24)
view external
Name | Type | Description |
---|---|---|
Returns:
Name | Type | Description |
---|---|---|
currentLiquidity()
view external
Returns:
globalTick()
view external
Returns:
globalSecondsPerLiquidityCumulative()
view external
Returns:
prevTimestamp()
view external
Returns:
getInnerSecondsPerLiquidity(int24,int24)
view external
This function is used to calculate the seconds per liquidity inside a certain position
Returns:
applyLiquidityDeltaToPosition(uint32,int24,int24,int128,int24)
external
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
[0]
uint32
tickId
int24
liquidityTotal
uint128
liquidityDelta
int128
outerFeeGrowth0Token
uint256
outerFeeGrowth1Token
uint256
outerTickCumulative
int56
outerSecondsPerLiquidity
uint160
outerSecondsSpent
uint32
initialized
bool
[0]
uint128
[0]
int24
[0]
uint160
[0]
uint32
bottomTick
int24
The bottom tick of a position
topTick
int24
The top tick of a position
innerSecondsSpentPerLiquidity
uint160
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