Skip to main content

What Is the Trade-off between Using a TWAP Oracle and a Real-Time Price Feed?

The trade-off is between security and latency. A TWAP (Time-Weighted Average Price) offers higher security by mitigating price manipulation risk, but it introduces latency because the reported price is always an average of past prices, not the current real-time price.

A real-time feed offers low latency but is more vulnerable to instant price manipulation attacks.

What Mechanisms Can Be Used to Mitigate the Risk of Prolonged Price Manipulation in a TWAP Oracle?
How Does a Time-Weighted Average Price (TWAP) Oracle Mitigate Flash Loan Attacks on a Derivatives Contract?
What Is a “Time-Weighted Average Price” (TWAP) Oracle and Why Is It Used?
How Is the Time Period for a TWAP Calculation Determined and What Are the Trade-Offs?