Oracles

Every pair in Uniswap V2 keeps track of two price accumulators. These values can power nearly any type of price oracle measuring the relative price of the pair assets. For an in-depth discussion of Uniswap V2 oracles, see the whitepaper.

Examples

ExampleOracleSimple.sol

ExampleSlidingWindowOracle.sol

Discussion

Coming soon…