OnDemand Oracle
What is OnDemand Oracle
How It Protect for Uniswap V2 & Forks
Extra Storage For Price
struct V2PriceOracle {
uint32 blockTimestampLast; // BlockTime of last update
uint price0; // TWAP for token0
uint price1; // TWAP for token1
uint price0CumulativeLast; // Cumulative TWAP for token0
uint price1CumulativeLast; // Cumulative TWAP for token1
}
Price Validation
Oracle Update

How to Protect for Uniswap V3
Last updated
Was this helpful?