Skip to main content

What Is a ‘Front-Running’ Attack in the Context of an Oracle Price Update?

A front-running attack occurs when a malicious actor sees a pending, profitable oracle price update transaction in the memory pool (mempool). The attacker then submits their own transaction with a higher gas fee to execute a trade (e.g. a large options position) before the oracle price update is confirmed, profiting from the imminent, predictable price change.

What Role Do Gas Fees Play in the Profitability of a Front-Running Attack?
How Does Front-Running Occur in the Context of Smart Contracts?
What Is a “Front-Running” Attack in DeFi and How Does It Undermine Trustless Execution?
What Is Front-Running in the Context of Decentralized Exchanges?