Provides functions to integrate with V3 pool oracle
Calculates time-weighted means of tick and liquidity for a given Uniswap V3 pool
Parameters
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
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