How to Serve Your Sandwich? MEV Attacks in Private L2 Mempools
This paper demonstrates that while sandwich attacks are profitable on Ethereum L1, they are largely rare, unprofitable, and often misidentified in private L2 mempools due to execution constraints and sequencing policies that render such attacks probabilistic rather than deterministic.
Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer
Imagine the blockchain as a giant, bustling digital marketplace where people trade digital tokens (like swapping USDC for USDT). In this market, there are "bots" (automated programs) that try to make quick profits by watching what others are about to do.
The Classic "Sandwich" Attack (The Old Way)
In the main marketplace (Ethereum Layer 1), these bots act like ruthless sandwich makers.
- The Victim: A regular person posts a large order to buy something. Everyone can see this order in the public "waiting line" (the mempool).
- The Attack: The bot sees this coming. It quickly buys the item before the victim (the top slice of bread), pushing the price up. Then, the victim's large order comes in, buying at that new, higher price. Finally, the bot immediately sells the item after the victim (the bottom slice of bread), cashing in on the price hike.
- The Result: The bot makes a profit, and the victim gets a worse deal. Because the main marketplace guarantees that these three steps happen instantly and in the exact right order, this attack is very reliable and profitable.
The New Reality: Private "VIP" Lines (Layer 2 Rollups)
The paper investigates what happens when this same attack is tried in newer, faster marketplaces called Layer 2 Rollups (like Arbitrum, Base, Optimism). These places use a "Private Mempool" system.
Think of a Private Mempool as a VIP lounge or a blindfolded auction.
- No Public View: Regular bots cannot see the victim's order in advance. The orders are hidden from the public until a central manager (the "Sequencer") decides to process them.
- No Guaranteed Order: Even if a bot guesses a victim is coming, it cannot guarantee it will get to buy first and sell last. It's like trying to cut in line at a fast-food restaurant where the cashier (Sequencer) decides who goes next based on who shouts the loudest (tips) or who arrived first, but the line moves so fast and chaotically that you can't be sure you'll get the exact spot you want.
What the Researchers Found
The authors, acting like digital detectives, analyzed millions of transactions from these private marketplaces to see if "sandwich attacks" were actually happening. They used a special magnifying glass to distinguish between real attacks and innocent trading.
Here is what they discovered, translated into simple terms:
1. The "Sandwiches" Were Mostly Fake
They found thousands of patterns that looked like sandwiches (a buy, a victim trade, a sell). However, when they checked the math, 95% of them were false alarms.
- Analogy: Imagine seeing three people standing in a row at a bus stop and assuming they are a coordinated team. But upon closer inspection, they are just three strangers waiting for different buses. The "attackers" weren't actually targeting the victim; they were just doing their own thing at the same time.
2. The Math Doesn't Add Up
For a real sandwich attack to be worth the trouble, the bot needs to make more money than it costs to pay the fees and the price slippage (the cost of moving the market).
- The Finding: On these private chains, the "victims" were usually trading small amounts (a few hundred dollars). The cost to execute the attack was higher than the potential profit.
- Analogy: It's like paying $5 in gas money to steal a $1 candy bar. Even if you succeed, you lose money. The researchers found that the median profit for these "attacks" was actually negative. The bots were losing money on average.
3. The "Timing" Problem
In the old public market, the bot could guarantee the sandwich happened in one split second. In the new private market, the bot has to guess when to send its orders.
- The Finding: Because the Sequencer (the manager) orders transactions randomly or by fee, the bot often fails to get the "before" and "after" trades to happen in the same block.
- Analogy: It's like trying to catch a specific falling leaf with two nets. In the old market, you could hold the nets perfectly. In the new market, the wind is so chaotic that you usually miss the leaf, or the nets don't close at the same time.
The Bottom Line
The paper concludes that sandwich attacks are rare, unprofitable, and largely non-existent in these private Layer 2 marketplaces.
- Why? The "private" nature of the line prevents bots from seeing the victim, and the lack of guaranteed ordering makes the attack too risky to be worth the cost.
- The Misconception: Many people assume that because these attacks happen on the main Ethereum chain, they are everywhere. This paper proves that assumption is wrong for these specific private marketplaces. The "sandwich" is mostly a myth in this environment; what looks like an attack is usually just normal, harmless trading activity.
In short: The "ruthless sandwich maker" bot has moved to a new restaurant, but the kitchen is so chaotic and the orders so small that the bot is just standing there, confused, and losing money.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.