globalState()
view external
The globalState structure in the pool stores many values but requires only one slot and is exposed as a single method to save gas when accessed externally.
Returns:
Name | Type | Description |
---|---|---|
totalFeeGrowth0Token()
view external
The fee growth as a Q128.128 fees of token0 collected per unit of liquidity for the entire life of the pool
Returns:
totalFeeGrowth1Token()
view external
The fee growth as a Q128.128 fees of token1 collected per unit of liquidity for the entire life of the pool
Returns:
liquidity()
view external
The currently in range liquidity available to the pool
Returns:
ticks(int24)
view external
Look up information about a specific tick in the pool
Returns:
tickTable(int16)
view external
Returns 256 packed tick initialized boolean values. See TickTable for more information
Returns:
positions(bytes32)
view external
Returns the information about a position by the position's key
Returns:
timepoints(uint256)
view external
Returns data about a specific timepoint index
Returns:
activeIncentive()
view external
Returns the information about active incentive
Returns:
liquidityCooldown()
view external
Returns the lock time for added liquidity
Returns:
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
price
uint160
tick
int24
fee
uint16
timepointIndex
uint16
communityFeeToken0
uint8
communityFeeToken1
uint8
unlocked
bool
[0]
uint256
[0]
uint256
[0]
uint128
tick
int24
The tick to look up
liquidityTotal
uint128
liquidityDelta
int128
outerFeeGrowth0Token
uint256
outerFeeGrowth1Token
uint256
outerTickCumulative
int56
outerSecondsPerLiquidity
uint160
outerSecondsSpent
uint32
initialized
bool
wordPosition
int16
[0]
uint256
key
bytes32
The position's key is a hash of a preimage composed by the owner, bottomTick and topTick
liquidityAmount
uint128
lastLiquidityAddTimestamp
uint32
innerFeeGrowth0Token
uint256
innerFeeGrowth1Token
uint256
fees0
uint128
fees1
uint128
index
uint256
The element of the timepoints array to fetch
initialized
bool
blockTimestamp
uint32
tickCumulative
int56
secondsPerLiquidityCumulative
uint160
volatilityCumulative
uint88
averageTick
int24
volumePerLiquidityCumulative
uint144
virtualPool
address
cooldownInSeconds
uint32