TWAP Oracles
Time-Weighted Average Price oracles calculate the average price of an asset over a specific period of time to prevent short-term price manipulation. By averaging the price, the oracle becomes resistant to sudden, artificial spikes or dips caused by low liquidity or malicious actors.
This method is commonly used in decentralized exchanges to ensure that the reported price reflects the true market value rather than a momentary anomaly. While TWAP oracles are more resistant to manipulation, they are also slower to react to legitimate market shifts.
This latency can be a disadvantage in fast-moving markets where real-time accuracy is required. Protocols must balance the trade-off between manipulation resistance and price responsiveness.
They are often used as a secondary check or in conjunction with other oracle types. Understanding the strengths and weaknesses of TWAP is essential for evaluating the security of DeFi price feeds.