Maximal Extractable Value (MEV) is responsible for up to $666 million in extracted value from the Ethereum Network since January 1st 2020.
According to Chainlink, it is when miners/validators/bots determine the order of when transactions are processed on the blockchain and exploit that power to their advantage. In my simple words, it is when the most incentivize transactions are chosen to be processed first rather than on a first-come-first-serve basis. When a bribe is paid to be processed first.
MEV exploits have become a very well-established income stream for bad actors, miners, and validators and this is made possible by the Blockchain Technology and processing method in itself. To help us understand this better let’s quickly look at the blockchain and how it processes transactions.
According to Ledger,
The above definition captures the motivation for MEV exploits - Incentives.
There are 3 parts to the execution of a transaction on the blockchain as it relates to MEV
Essentially the miner can see everything that happens on the blockchain, and so naturally they pick the most incentivize transaction to process first, therein lies the MEV opportunities.
But not only Miners exploit MEV, Validators and more rampantly MEV Searchers
MEV Searchers, as the name implies, are search bots looking for MEV opportunities in the public mempool. Once MEV searchers find a profitable opportunity inside the public mempool, they bribe miners to manipulate the order of transactions in a way that’s profitable to them
The process looks like this:
MEV – Arbitrage Exploitation
MEV – Sandwich Trading
MEV – Lending Protocol Liquidation
Lending protocol liquidations present another well-known MEV opportunity.
Lending protocols like MakerDAO and Aave let users borrow different assets and tokens from others by depositing some sort of collateral (e.g. ETH).
As the value of your collateral fluctuates, so too does your borrowing power. Remember, your collateral is the only way the lending protocol can protect itself. So if your collateral value drops significantly, lending protocols could be in trouble.
To protect themselves, lending protocols have a rule. If the value of your collateral drops below a certain percentage of the borrowed assets, the protocol will liquidate your collateral by selling it at a discount. Think of this as a stop-loss for lending protocols.
Lending protocols offer liquidators hefty incentives to those who buy your discounted collateral and cover your debt. This is where the MEV opportunity comes in.
MEV searchers look through blockchain data to find borrowers who get liquidated. Once they’re identified, they’ll bribe miners to prioritize their liquidation transaction to collect the liquidation incentive + discounted collateral
As MEV has gotten more rampant on the blockchain protocols, Dapps, Wallets and even developers tools have added features to ensure that they can protect their users. Web3 Wallets like BlockWallet have developed Ant-Phishing and Anti-Front running bots tools as a default into their wallet to protect users and even developers like Tatum have honed the developers kit to enhance security when used for development.