Skip to main content

What Is Front-Running in the Context of Decentralized Exchanges?

Front-running on decentralized exchanges (DEXs) occurs when an attacker observes a profitable transaction pending in the public mempool. The attacker then copies this transaction but submits their own with a higher transaction fee (gas).

This incentivizes network validators to process the attacker's transaction first. The attacker profits from the price movement caused by the victim's original, now-delayed transaction.

This is a common form of Maximal Extractable Value (MEV).

Can a Transaction with a Low Gas Fee Still Be Front-Run?
Define ‘Front-Running’ and How It Exploits Low Finality in Trading
Can Private Mempools Effectively Prevent Front-Running Attacks?
What Are the Differences between Front-Running in Traditional Finance and on DEXs?