On-Chain Price Manipulation
On-Chain Price Manipulation involves the intentional distortion of an asset's price within a decentralized protocol to extract profit, typically through liquidations or mispriced trades. Because many DeFi protocols rely on automated smart contracts to determine collateral value, an attacker can manipulate the price feed of a single exchange to trigger an unfavorable outcome for the protocol.
Common tactics include using flash loans to skew the reserves of a liquidity pool or executing a series of wash trades to artificially alter the reported price. When a protocol uses an insecure oracle that directly tracks the spot price of a vulnerable pool, it becomes susceptible to these attacks.
To defend against this, developers employ robust oracle designs like VWAP or TWAP, which require sustained market activity to move the price. This forces an attacker to commit significant capital over a longer duration, often making the attack economically unfeasible.
Understanding these manipulation vectors is crucial for maintaining the integrity of financial derivatives and lending markets in the blockchain ecosystem.