Table of Contents

If you have ever swapped tokens on a decentralized exchange, there is a good chance someone made money off your trade before it got completed. This might sound like a conspiracy, but it isn’t. It’s a built-in peculiar feature of how blockchain transactions work, and it goes by a technical name: Maximal Extractable Value, or MEV.

For years, some crypto traders and developers—known as MEV searchers—have exploited Maximal Extractable Value (MEV) opportunities on blockchains like Ethereum. They deploy bots to monitor the public mempool for pending trades, then front-run them by inserting their own transactions ahead in the queue or executing sandwich attacks: buying just before a large purchase to drive up the price, letting the victim’s trade execute at a worse rate, and selling immediately after to capture the profit. 

To the average user, the trade appears to be complete normally, with no visible red flags—but in reality, they are hit with hidden slippage or inflated costs, as value is quietly siphoned off. Cumulative estimates peg these MEV extractions at billions of dollars drained from everyday users across ecosystems, with Ethereum alone seeing over $1.2 billion in value captured by 2023, and projections for linked attacks surpassing $5 billion by mid-2025.

Think of it like an auction where you bid for a painting, but before your offer lands in the official basket, the person behind you somehow buys the piece first, then immediately sells it back to you for a higher price. It feels unfair, but that’s essentially what happens thousands of times a day across crypto markets. The only difference is that in this world, the middlemen are replaced by bots and code.

Join our newsletter

Breaking Down MEV

MEV was said to be Miner Extractable Value during the days when miners controlled transaction ordering. Now, validators call the shots, but the concept has not changed much. At its core, MEV is profit that gets squeezed out by strategically shuffling around the order of transactions within a blockchain block

Here’s how it works. When a buyer initiates a transaction on Ethereum or similar networks, it does not get processed straight away. The transaction lands in something called the mempool, basically a waiting area where transactions sit around until validators bundle them into blocks and put them on the blockchain. And here is the interesting part—validators can arrange those transactions however they please and when they wish to do so (mainly depending on the gas fee paid by each). That power? It’s worth a fortune.

How the Pickpocketing Happens

Let’s imagine an actual scenario. A buyer decides to get a decent chunk of some token on Uniswap. He hits submit, and the transaction shows up in a mempool, where anyone watching the network can see it. Plenty of bots are watching, and they are scanning constantly, crunching numbers, and looking for ways to make a quick buck.

A bot spots the big order, and its algorithm does some quick maths, and finds that the purchase will drive up the token’s price (as per the laws of supply and demand). So in a fraction of a second, this bot submits its own buy order for the same token, but here is the trick: it attaches a higher gas fee. Validators see that juicy fee and process the bot’s transaction first. The bot buys the tokens at the lower price, and the actual buyer’s transaction goes through at the inflated price, and following this, the bot dumps everything immediately that it bought for a profit. This is called a sandwich attack, and it can cost a buyer anywhere from pocket change to serious money depending on how much is being traded. 

Back-running is a close cousin of front-running. Instead of sneaking in before your transaction, these searchers wait for your trade to execute first—say, a large swap that moves the price—then immediately follow it in the same block with their own transaction to capture the slippage or price shift you created (e.g., buying right after your sell pushes the price down).

Arbitrage bots, meanwhile, are the classic “no-risk, pure-profit” players. They spot price discrepancies for the same token across different DEXs (or sometimes between a DEX and a CEX) and execute simultaneous buy-low/sell-high trades that get bundled into the same block, locking in the spread before anyone else can react. True arbitrage is basically risk-free in theory, because the block builder bundles both the “buy cheap here” and “sell high there” trades into the same block—so everything happens at once, and the profit is locked in before the prices can change.

Liquidations are another goldmine for MEV bots. In DeFi lending protocols like Aave or Compound, if a borrower’s collateral falls below the required level, anyone can trigger a liquidation to repay the loan and claim a big bonus (usually 5-10% of the collateral). MEV searchers constantly monitor the chain for underwater positions and race each other to be the first to submit the liquidation transaction. The competition is insane—some bots will happily burn hundreds of dollars in priority gas fees just to win by a few milliseconds and snag that liquidation reward. 

The Numbers Are Staggering

How much money are we talking about here? Flashbots, a research and development organization focused on mitigating the negative effects of MEV in various blockchains, has tracked over a billion dollars extracted from Ethereum alone. And plenty of people think that is far below the actual numbers. According to industry experts, if other blockchain networks and extraction methods that happen under the radar are factored in, then the actual figures could be much larger. 

What’s more, professional MEV extraction needs the kind of infrastructure you will find at Wall Street high-frequency trading platforms. Top extractors run complex algorithms, maintain direct lines to validators, and operate server farms that can crunch mempool data and fire off transaction bundles faster than the blink of an eye. The barrier to entry has gotten so high that solo operators can’t compete anymore.

These operations employ full development teams, buy enterprise-level hardware, and use strategies straight out of traditional finance playbooks. As per experts, the MEV operations have spawned their own mini-economy. Companies sell MEV-as-a-Service, doing the heavy lifting for a cut of the profits. 

The Moral Maze

Whether MEV extraction crosses ethical lines depends on who you ask. Some people see it as standard market behavior, basically the same as high-frequency trading: sharp players using better tech and faster connections to snatch opportunities that were sitting there for anyone to take. Others call it parasitic and say it betrays everything decentralized finance stands for.

The pro-MEV camp points out that some extractors actually do useful things. Arbitrage traders keep prices consistent across exchanges, fixing inefficiencies that would stick around otherwise. Liquidation bots keep DeFi lending platforms healthy by making sure bad positions get closed before they spiral into system-threatening debt. Some economists even claim MEV makes networks more secure by bumping up validator rewards, which makes running an honest operation more worthwhile than attempting an attack.

But the other side has strong arguments too. Sandwich attacks and front-running steal value without giving anything back. Some industry players call it a market failure, plain and simple. The transparency that makes blockchains trustworthy also lets sophisticated players prey on everyone else. The whole decentralization movement was supposed to fix information imbalances and create fairer markets. MEV does the opposite—it’s a system where people with better tech and bigger bankrolls systematically drain value from everyone else.

This gets at something fundamental about fairness in decentralized systems. Crypto advocates love bashing traditional finance. Yet MEV creates the same kind of problem. Well-funded, technically sophisticated operations extract value from everyday users who cannot afford to protect themselves or join in on the extraction.

Fighting Back

The crypto world has not just accepted the problems related to MEV. Various groups have come up with technical fixes, though nothing has overcome the problem completely. Flashbots built MEV-Boost, which sets up a marketplace where validators get pre-made blocks from competing builders. Under MEV-Boost, specialized entities known as builders compete to construct the most valuable blocks possible. These ready-made blocks are then submitted through a public auction system. Validators simply review the offers, select the one providing the highest payment, and sign it for inclusion in the chain.

Other projects are trying encryption approaches. Encrypted mempools hide transactions until validators slot them into blocks, so observers cannot spot front-running opportunities. Some protocols use time-locks or commit-reveal schemes where you commit to transaction details without showing many details, then reveal everything only after validators have locked in the transaction order. These cryptographic solutions look promising, but they tend to make things more complicated for users.

Some apps have also come to the rescue. CoW Swap is a standout example. It works like a group discount for trades: it collects everyone’s orders, matches them internally as much as possible, and only sends the leftovers (the ones that could not be matched) to the public market as a single batched transaction. Because the final swap is one big lump instead of lots of little ones, sandwich bots can’t easily wrap their attacks around individual users—there’s no “before” or “after” to exploit. The profit for attackers drops sharply.

Regular users also have some simple tools at their disposal. Crypto wallets now let you set slippage limits that cap how far your execution price can drift from the quoted price. If a sandwich attack tries to grab too much, your transaction just fails instead of going through at a terrible price. Privacy services help hide your trades from mempool watchers by routing them through private channels. But these services come with their own trust issues and fees that sometimes match what a buyer would lose to MEV anyway.

Where This All Leads

MEV is one of blockchain’s nastiest contradictions. The transparency that lets you verify everything without trusting anyone also opens doors for exploitation by people with better tools and more money. As crypto pushes toward mainstream use, the MEV problem becomes harder to ignore. 

Research into mitigating MEV continues apace. A growing number of protocol designers argue that fundamental architectural improvements can eliminate harmful forms of extraction—such as sandwich attacks—while preserving beneficial market functions like arbitrage and liquidations.

Layer-two solutions and rollups might cut down MEV opportunities by changing how transactions get handled. These systems process transactions off the main Ethereum chain in large batches before submitting a single compressed proof to layer-1. By concealing individual orders until the moment of settlement, rollups significantly narrow the window during which searchers can observe and exploit pending transactions.

Other researchers are less optimistic. They say MEV is just baked into transparent blockchain systems. Any setup where transactions become visible before they finalize will let someone extract value somehow. Getting rid of MEV completely might mean giving up some transparency, which defeats part of the purpose.

Meanwhile, MEV extraction continues to become rampant. With more money flowing into blockchain networks, the incentives to extract have become even stronger. Understanding this “invisible tax” has gone from being a curiosity to must-know info for anyone putting money into DeFi.

Disclaimer: Coin Medium is not responsible for any losses or damages resulting from reliance on any content, products, or services mentioned in our articles or content belonging to the Coin Medium brand, including but not limited to its social media, newsletters, or posts related to Coin Medium team members.

The Prose Engineer
I am a journalist with over 17 years of experience, and I love crafting insightful content on topics ranging from cryptocurrency and sustainable development to renewable energy, commodity markets, and shipping issues. I bring both strategic thinking and a deep commitment to impactful storytelling. Outside the newsroom, I’m a proud mom of two, an avid traveler, and a passionate foodie who loves trying new cuisines. I thrive on making new friends and engaging in lively conversations. Whether I’m writing a feature or sharing stories over a meal, I bring curiosity, warmth, and clarity to everything I do.

Related Articles