Closed apbendi closed 2 years ago
Possibly useful: https://github.com/Uniswap/v3-periphery/blob/b771ff9a20a0fd7c3233df0eb70d4fa084766cde/contracts/libraries/OracleLibrary.sol
Believe you: call consult
to get a tick, call getQuoteAtTick
to get a price.
Implement a concrete version of the Oracle interface, likely using Uniswap v3 TWAP.