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 |
---|---|---|
|
| Address of the pool that we want to observe |
|
| Number of seconds in the past from which to calculate the time-weighted means |
Returns
Name | Type | Description |
---|---|---|
|
| The arithmetic mean tick from (block.timestamp - secondsAgo) to block.timestamp |
|
| The harmonic mean liquidity from (block.timestamp - secondsAgo) to block.timestamp |