Cointime

Download App
iOS & Android

What is MEV in Ethereum?

Validated Venture

Maximal Extractable Value (MEV) is a method for miners or validators to increase their profits by changing the order of transactions before approving a new block on the network. Is it really profitable? How does it work? Let’s find out!

MEV is used to boost network commissions at the expense of increased user costs, which are commonly associated with transactions in decentralized applications. Miners or validators, in particular, try to gain an arbitrage position so that the user pays the extra commission that was not accounted for before the transaction is sent. MEV is regarded as an unethical practice.

MEV was first seen in Ethereum and EVM-compatible networks. Flash bots were one of the most effective solutions to this problem.

According to experts, the switch to Proof-of-Stake (PoS) will not eliminate MEVs from Ethereum, but it will result in the separation of validators into professional categories, the emergence of different types of blocks, and the creation of long-term strategies based on MEVs.

How does MEV work?

Blocks recorded in a blockchain, as we know, are immutable information that cannot be rewritten. However, before a transaction is validated, miners or validators can include, exclude, or reorder it in a future block at their discretion.

Each unconfirmed transaction is routed through the public mempool first. Following that, miners select which transactions from the mempool to include in the block. The miners form the most profitable combination of user transactions for themselves in this manner.

This results in abuse. Miners (and, since Ethereum’s transition to PoS, validators) prioritize the largest transactions, descending in size from largest to smallest, and add them to the next block to be written to the blockchain.

This feature led to the creation of a mechanism for extracting value by substituting transactions in the right order. This method is known as maximum extractable value, or MEV.

The MEV strategy entails validators searching for speculative transactions based on available unconfirmed transactions and increasing the actual fees for their execution.

Let’s look at an example where an Ethereum user decided to exchange 10,000 USDC for ETH at $2,000 per coin on DEX in the USDC/ETH liquidity pool. Here’s what happens after you submit an exchange request:

  1. The mempool runs special bots that monitor unconfirmed transactions and collect various data from DeFi-applications, including price and liquidity volumes.
  2. When the bots detect a user’s intent to buy ETH, they initiate a transaction that raises the price just before the user’s transaction is executed. A bot, for example, can add more USDC/ETH to the liquidity pool to raise the price of ETH.
  3. Thus, the user’s expected price of $2000 per ETH coin will change to a notional $2500 per ETH coin. The transaction will be executed, but the user will only receive 4 ETH instead of 5 ETH. The initiator of this MEV transaction will profit 1 ETH minus commission costs.

Because MEV results in higher commissions for the user, it is also called an “invisible tax,” which is not unique to Ethereum.

When did the “invisible tax” appear in MEV?

The problem of “spoofing” user transactions, now called MEV, was first raised on Reddit by algorithmic trader and analyst Pmcgoohan in 2014, , prior to the launch of Ethereum mainnet. He proposed that miners could manipulate user transactions for their own gain without violating any consensus rules.

The term MEV was not coined until 2019 in “Flash Boys 2.0” which was the first publicly available publication to explore the severity of the problem described by Pmcgoohan.

The scale and seriousness of the problem was only brought up in 2020 in articles such as “Ethereum is a dark forest” and “Escaping the Dark Forest” written by Dan Robinson, Georgios Konstantopoulos, and crypto investor Samczsun. These publications were intended to inform Ethereum users about the “invisible tax” levied on them.

Varieties of MEVs

The growth of the decentralized finance (DeFi) sector and specific elements of the Ethereum ecosystem, such as price oracles, liquid tokens, and cross-chain bridges, has resulted in the emergence of various MEV strategies.

Front-running

The most common strategy where an MEV transaction is attempted before the original transaction. Special bots can track potentially profitable transactions by simply copying users’ transactions, acting ahead of the curve.

Back-running

Issuing a transaction as a consequence of an event. For example, as soon as a new pool appears on Uniswap, the exploiter may buy back a significant portion of the tokens and take first place in the queue, effectively emptying the pool. He then lets the other participants sell before selling himself at a higher price.

Sandwich Attack

A combination of the previous two schemes. If the bot finds a large buy order in the mempool, it places its own order in front of it to buy tokens at a lower price using frontrunning. The large order is executed, causing the price to rise. The coins are then sold at a profit ahead of the other users using back-running.

Liquidation

A strategy used by the validator to make profit by redeeming the pledged position in the lending protocol immediately after it has been liquidated. The user notices that the position can be liquidated in the next block and sends a transaction to redeem the collateral.

Uncle bandit attack

A complex type of MEV strategy based on a speculative chain of transactions found in a competing block. There are times when miners find two blocks at the same time. At that point, miners can use the data from the “neighboring” block to their advantage.

Time bandit attack

Involves a process of reorganizing previous blocks in which miners specifically suggest competing blocks containing other transactions. This results in the disappearance of transactions and their inclusion in a completely different block.

How to self-protect from MEV?

MEV is not unique to Ethereum. Bots moved into EVM-enabled blockchains such as Polygon and BNB Chain as the DeFi-application sector evolved and competition became more intense. However, in terms of combating this problem, Ethereum has become the most advanced network.

According to 2021 data, Ethereum miners earned $730 million in MEV extraction rewards, accounting for 4.3% of total annual revenue. This indicates the growth of “dishonest markets,” which leads to a worsening user experience through higher fees and a lack of predictability in the transaction execution process.

As a solution, a centralized Flashbots system, funded by venture capital firm Paradigm, emerged in 2020. It does not seek to eliminate the problem, but rather to take control of it by creating an open market through the development of a public auction of ETH transactions.

The solution quickly gained popularity. According to BitMEX, the research arm of the cryptocurrency exchange, more than 90% of miners on the Ethereum network were connected to the Flashbots server in May 2022. According to the researchers, 63% of the rewards for MEV transactions went to operators, while the remaining 37% went to miners.

Was it interesting? Leave your feedback in comments.Study more with us and make a profit with our exchange!

Comments

All Comments

Recommended for you

  • TrumpAI tokens on Ethereum have been RUG

    PeckShield has monitored that the TrumpAI token on the Ethereum blockchain has fallen by 100%. An address starting with 0x935A sold 5,000,000,000,000,000,000,000 TrumpAI tokens, which is about 26.57 WETH (approximately $80,000). Note: rugpull tokens have the same name as legitimate tokens.

  • South Korea’s Monetary Authority: Confirmed to include token delisting standards in the Virtual Asset User Protection Act

    The Financial Supervisory Service (FSS) of South Korea has confirmed that token delisting standards will be included in the "Best Practice for Compliance with the Virtual Asset User Protection Act" released in early June. An official from the Financial Supervisory Service stated in a conversation with Bloomberg on Tuesday that the upcoming "Best Practices for Compliance with the Virtual Asset User Protection Act" will not only include listing standards for virtual assets, but also provide guidance on whether to maintain trading of listed virtual assets. The guidance will provide a basis for cryptocurrency issuers to delist in the event of problems. The guidance will be released from the end of May to early June. Currently, the Financial Supervisory Service is developing guidelines to support self-regulation by cryptocurrency exchanges under the Virtual Asset User Protection Act before it is implemented in July. The plan proposes standards for virtual asset issuance, circulation, and trading support, prohibits the listing of virtual assets with a history of hacking attacks, and requires the release of Korean white papers and technical manuals when listing overseas virtual assets.

  • HKEX CEO: Virtual asset exchanges have become HKEX’s competitors

    On May 10th, Hong Kong Exchanges and Clearing Limited's new CEO, Nicolas Aguzin, stated in an interview with the Shanghai Securities News that HKEX faces competition not only from other securities exchanges, but also from external competitors such as virtual asset exchanges. In order to meet the rapidly evolving demands of customers and technology, HKEX must balance innovation and stable business operations, continuously expand its resources for listed companies, and improve its market services.

  • WOOFi attacker address has transferred 100 ETH to Tornado cash

    PeckShield monitoring shows that the address marked by the WOOFi attacker has transferred 100 ETH to Tornado cash. The WOOFi attacker has already transferred 2200 ETH (worth about $6.5 million) to Tornado cash.

  • Trump will hold a private dinner on the day of the court recess, inviting NFT trading card buyers to attend

    On May 10th, according to sources, former US President Donald Trump will host a dinner at his Mar-a-Lago estate on a day off, inviting NFT trading card buyers to attend. This event is part of Trump's series of non-campaign activities, aimed at balancing his White House campaign and legal disputes. After Stormy Daniels testified in Trump's trial on Tuesday, Trump expressed his desire for campaigning rather than being tied up in court. Despite no public campaign activities on Wednesday, Trump's schedule includes private political meetings.

  • Tether: Deutsche Bank’s analysis lacks clarity and substantive evidence

    According to a report on stablecoins released on May 7, Deutsche Bank analyzed 334 currencies linked to stablecoins and found that 49% of stablecoins had failed during their median lifespan of about eight to ten years. The analysts concluded that most anchored assets in the cryptocurrency field will experience significant "turbulence" caused by speculative sentiment and ultimately suffer some form of decoupling event. Deutsche Bank analysts also pointed out that Tether's reserve transparency was lacking and described the company's solvency as "doubtful".

  • Yesterday, Solana’s on-chain DEX transaction volume surpassed Ethereum, reaching $1.314 billion

    On May 10th, according to DeFiLlama data, the trading volume of Solana's DEX reached 1.314 billion US dollars yesterday, surpassing the trading volume of 1.297 billion US dollars on Ethereum's DEX.

  • US court orders seizure of 279 virtual currency accounts containing criminal proceeds from North Korean hacking

    A US court has ordered the confiscation of 279 virtual currency accounts containing proceeds from North Korean hacker crimes. US District Court Judge Timothy Kelly in Washington, DC approved the federal prosecutor's request for a summary judgment on these accounts and ordered their confiscation on May 8. This ruling means that these accounts are now under the control of the US Department of Treasury.

  • South Korea’s National Tax Service announced that it would collect 40 billion won in taxes from Bithumb users

    Bithumb has issued a preliminary notice of comprehensive income tax to some users who participated in activities held between 2018 and 2021, and announced full support for the related tax amount. The position of the National Tax Service is that rewards paid to users through various activities (including virtual assets) constitute taxable income. Bithumb does not agree with the National Tax Service's opinion, but explains that taxation is mandatory.

  • The 133rd Ethereum ACDC meeting: The goal is to complete the devnet within 7-10 days

    The Ethereum developers held their 133rd ACDC conference call. First, they outlined the latest research on Ethereum protocol confirmation rules. Then, they discussed Pectra updates related to EIP-7547 and CFI states, and decided to put them on hold temporarily. They also updated the v1.5.0-alpha.1 specification. Regarding the implementation updates for devnet-0, most teams are making progress, but there are also some unexpected complexities. The goal is to complete devnet within 7-10 days.