Time-Weighted Average Price Manipulation
Time-Weighted Average Price (TWAP) manipulation involves artificially influencing the price of an asset over a period of time to distort the calculation of its average value. TWAP is commonly used in DeFi to prevent price spikes from affecting protocol liquidations or oracle data.
However, if an attacker can control a significant portion of the trading volume over the measurement period, they can bias the average price. This allows them to manipulate the settlement of derivatives or borrow against overvalued collateral.
To prevent this, protocols often require high liquidity and long averaging windows to make manipulation prohibitively expensive. Understanding the economics of TWAP is crucial for designing resilient financial systems that can withstand attempts to subvert price discovery.
The goal is to ensure that the average price remains a true reflection of market sentiment rather than a manipulated metric.