
Uniswap V3 USDC/cbBTC Pool (Base)
0xfBB6...43efDeFiuniswapV3stablecoinsdefi
Contract Level Prompt
Foundational semantic layer for AI interpretation.
Uniswap v3 trading pool for WETH to USDC on Base network.
observe()
viewFunctional Prompt
Returns an array of `tickCummulative` and an array of `secondsPerLiquidityCumulativeX128s` which can be used to compute the TWAP and TWAL of a pool. Thus a Uniswap V3 pool can act as a price/liquidity oracle.
Input Parameters
input
secondsAgosuint32[]
A array of integers representing how far back in seconds to make an observation of the `tickCumulative` and `secondsPerLiquidityCumulativeX128s`.
Output Parameters
output
tickCumulativesint56[]
A array of cumulative tick values used to compute TWAP.
output
secondsPerLiquidityCumulativeX128suint160[]
An array of cumulative liquidity over time used to calculate TWAL.