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.
ExampleSlidingWindowOracle.sol
Coming soon…