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

  • U.S. Congressman Mike Flood: Looking forward to working with the next SEC Chairman to revoke the anti-crypto banking policy SAB 121

     US House of Representatives will investigate Representative Mike Flood's recent statement: "Despite widespread opposition, SAB 121 is still operating as a regulation, even though it has never gone through the normal Administrative Procedure Act process." Flood said, "I look forward to working with the next SEC chairman to revoke SAB 121. Whether Chairman Gary Gensler resigns on his own or President Trump fulfills his promise to dismiss Gensler, the new government has an excellent opportunity to usher in a new era after Gensler's departure." He added, "It's not surprising that Gensler opposed the digital asset regulatory framework passed by the House on a bipartisan basis earlier this year. 71 Democrats and House Republicans passed this common-sense framework together. Although the Democratic-led Senate rejected it, it represented a breakthrough moment for cryptocurrency and may provide information for the work of the unified Republican government when the next Congress begins in January next year."

  • Indian billionaire Adani summoned by US SEC to explain position on bribery case

    Indian billionaire Gautam Adani and his nephew, Sahil Adani, have been subpoenaed by the US Securities and Exchange Commission (SEC) to explain allegations of paying over $250 million in bribes to win solar power contracts. According to the Press Trust of India (PTI), the subpoena has been delivered to the Adani family's residence in Ahmedabad, a city in western India, and they have been given 21 days to respond. The notice, issued on November 21 by the Eastern District Court of New York, states that if the Adani family fails to respond on time, a default judgment will be made against them.

  • U.S. Congressman: SEC Commissioner Hester Peirce may become the new acting chairman of the SEC

    US Congressman French Hill revealed at the North American Blockchain Summit (NABS) that Republican SEC Commissioner Hester Peirce is "likely" to become the new acting chair of the US Securities and Exchange Commission (SEC). He noted that current chair Gary Gensler will step down on January 20, 2025, and the Republican Party will take over the SEC, with Peirce expected to succeed him.

  • Tether spokesperson: The relationship with Cantor is purely business, and the claim that Lutnick influenced regulatory actions is pure nonsense

     a spokesperson for Tether stated: "The relationship between Tether and Cantor Fitzgerald is purely a business relationship based on managing reserves. Claims that Howard Lutnick's joining the transition team in some way implies an influence on regulatory actions are baseless."

  • Bitwise CEO warns that ETHW is not suitable for all investors and has high risks and high volatility

    Hunter Horsley, CEO of Bitwise, posted on X platform that he was happy to see capital inflows into Bitwise's Ethereum exchange-traded fund ETHW, iShares, and Fidelity this Friday. He reminded that ETHW is not a registered investment company under the U.S. Investment Company Act of 1940 and therefore is not protected by the law. ETHW is not suitable for all investors due to its high risk and volatility.

  • Musk said he liked the "WOULD" meme, and the related tokens rose 400 times in a short period of time

    Musk posted a picture on his social media platform saying he likes the "WOULD" meme. As a result, the meme coin with the same name briefly surged. According to GMGN data, the meme coin with the same name created 123 days ago surged over 400 times in a short period of time, with a current market value of 4.5 million US dollars. Reminder to users: Meme coins have no practical use cases, prices are highly volatile, and investment should be cautious.

  • Victory Securities: Funding Rates halved and fell, Bitcoin's short-term direction is not one-sided

    Zhou Lele, the Vice Chief Operating Officer of Victory Securities, analyzed that the macro and high-level negative impact risks in the cryptocurrency market have passed. The risks are now more focused on expected realization, such as the American entrepreneur Musk and the American "Efficiency Department" (DOGE) led by Ramaswamy. After media reports, the increase in Dogecoin ($DOGE) was only 5.7%, while Dogecoin rose by 83% in the week when the US election results were announced. Last week, the net inflow of off-exchange Bitcoin ETF was US$1.67 billion, and the holdings of exchange contracts and CME contracts remained high, but the funding rates halved and fell back, indicating that the direction of Bitcoin in the short term is not one-sided, and bears are also accumulating strength.

  • ECB board member Villeroy: Falling inflation allows ECB to cut interest rates

     ECB board member Villeroy de Galhau said in an interview that the decline in inflation allows the ECB to lower interest rates. In addition, the slow pace of price increases compared to average wages is also a factor in the rate cut. Villeroy de Galhau emphasized that the ECB's interest rate policy decision is independent of the Fed. Evidence shows that the ECB began to lower interest rates in early June, while the Fed lowered interest rates three months later. With the decline in inflation, we will be able to continue to lower interest rates. Currently, the market generally expects the ECB to cut interest rates by 25 basis points at the next meeting in December, but weaker data increases the possibility of a 50 basis point cut.

  • Are we finally ready for a gas limit increase?

    There has been growing discussion around the possibility of increasing Ethereum’s gas throughput, either by raising the gas limit or reducing slot time. The key argument in favor of this is that the hardware requirements for running a validator have steadily decreased over the past four years.

  • Cointime August 17th News Express

    1.VanEck and 21Shares Solana ETF Form 19b-4 Suspected to be Removed from CBOE Website