ILiquidityPool

Generic interface for liquidity pool methods for fetching observations (to calculate TWAP) and other basic information

getTimepoints

function getTimepoints(uint32[] secondsAgos) external view returns (int56[] tickCumulatives, uint160[] secondsPerLiquidityCumulatives, uint112[] volatilityCumulatives, uint256[] volumePerAvgLiquiditys)

AlgebraPool V1.9 equivalent of Uniswap V3 observe function See https://github.com/cryptoalgebra/AlgebraV1.9/blob/main/src/core/contracts/interfaces/pool/IAlgebraPoolDerivedState.sol for more information

observe

function observe(uint32[] secondsAgos) external view returns (int56[] tickCumulatives, uint160[] secondsPerLiquidityCumulativeX128s)

Uniswap V3 observe function See https://github.com/Uniswap/v3-core/blob/main/contracts/interfaces/pool/IUniswapV3PoolDerivedState.sol for more information

token0

function token0() external view returns (address)

The first of the two tokens of the pool, sorted by address

Return Values

Name
Type
Description

[0]

address

The token contract address

token1

function token1() external view returns (address)

The second of the two tokens of the pool, sorted by address

Return Values

Name
Type
Description

[0]

address

The token contract address