Skip to main content

What Is the Role of Gas Fees in Executing a Successful Sandwich Attack?

Gas fees are crucial. The attacker must ensure their front-run transaction is included immediately before the victim's and their back-run transaction immediately after.

To guarantee this precise ordering, the attacker must pay a higher gas fee (a "gas war") than the victim for the front-run and a competitive fee for the back-run. The attack is only profitable if the profit from the sandwich exceeds the total gas cost of the two manipulative transactions.

What Is a “Sandwich Attack” and How Is It a Form of MEV?
How Does a High-Slippage Tolerance Make a User More Vulnerable to Sandwich Attacks?
What Technical Measures Can a User Take to Prevent Being a Victim of a Sandwich Attack?
What Role Do Gas Fees Play in Transaction Ordering on Proof-of-Work/proof-of-Stake Blockchains?