UniswapOracleLibrary
Provides functions to integrate with V3 pool oracle
Functions
consult
Calculates time-weighted means of tick and liquidity for a given Uniswap V3 pool
Parameters
Name
Type
Description
pool
address
Address of the pool that we want to observe
secondsAgo
uint32
Number of seconds in the past from which to calculate the time-weighted means
Returns
Name
Type
Description
arithmeticMeanTick
int24
The arithmetic mean tick from (block.timestamp - secondsAgo) to block.timestamp
harmonicMeanLiquidity
uint128
The harmonic mean liquidity from (block.timestamp - secondsAgo) to block.timestamp