What Is a Time-Weighted Average Price (TWAP) Oracle and Its Benefit?

A TWAP oracle calculates the average price of an asset over a specific time interval, rather than using a single snapshot price. The primary benefit is that it makes the oracle less susceptible to manipulation through flash loan attacks or temporary price spikes on a single exchange.

By averaging over time, it provides a more robust and representative price feed for decentralized protocols.

What Is a Time-Weighted Average Price (TWAP) Oracle and Why Is It Used?
Can a Flash Loan Be Used to Attack an Oracle That Relies on a TWAP?
What Is the Role of Time-Weighted Average Price (TWAP) in Mitigating Oracle Attacks?
How Do Flash Loan Attacks Differ from Legitimate Flash Loan Arbitrage?
How Does Using a Time-Weighted Average Price (TWAP) Make Oracle Manipulation More Difficult?
What Is Time-Weighted Average Price (TWAP) and How Does It Defend against Flash Loan Attacks on Oracles?
How Does a TWAP Oracle Specifically Defend against Flash Loan Price Manipulation?
What Is the Role of Time-Weighted Average Price (TWAP) in DeFi Oracles?

Glossar