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

  • The Bitcoin-native stablecoin bitSmiley Alphanet V1 Surpasses $24M TVL in 24 Hours!

    In a remarkable achievement, bitSmiley's Alphanet V1 skyrocketed to over $24 million in TVL within just 24 hours of its launch with over 6 million bitUSD stablecoins minted through over-collateralization. bitSmiley stands as a pioneering initiative, introducing stablecoins by over-collateralizing Bitcoin.

  • Securitize raises $47M in funding led by BlackRock to enhance innovation and expansion in digital asset securities ecosystem

    Miami-based company Securitize, which specializes in tokenizing real-world assets, has raised $47 million in funding. The round was led by BlackRock, with participation from Hamilton Lane, ParaFi Capital, Tradeweb Markets, Aptos Labs, Circle, and Paxos. The funds will be used to enhance the company's innovation and expansion as it consolidates its position in the digital asset securities ecosystem. BlackRock's first tokenized fund, the BlackRock USD Institutional Digital Liquidity Fund, has also been launched on Ethereum and is available to investors by subscribing to the fund with Securitize.

  • Web3 game Shadow War completes $5 million financing, led by Momentum 6

    Game studio Patriots Division has raised $5 million in seed and Series A financing for its Web3 game Shadow War. The Series A funding was led by Momentum 6, with participation from iAngels, Cointelligence Fund, Xborg, Andromeda VC, Cogitent Ventures, and Cluster Capital.

  • BTC falls below $57,000

    According to market data, BTC has fallen below $57,000 and is currently trading at $56,999.99, with a daily decline of 5.48%. The market is volatile, so please be prepared for risk control.

  • CoreWeave, an AI cloud service provider, completes $1.1 billion Series C financing led by Coatue

    CoreWeave, a cloud service provider focusing on artificial intelligence, announced the completion of a $110 million Series C financing round. Coatue led this round of financing, with Magnetar (the main investor in the previous round), Altimeter Capital, Fidelity Management & Research Company, and Lykos Global Management participating.

  • Cointime MAY 1 News Express

    1.Celsius Network destroys 94% of total supply of CEL, worth over $89 million2.USDC Treasury destroyed more than 200 million USDC3.Pike was suspected of being hacked and lost 479 ETH4.Fantom launches $6.5 million development fund, betting on safer memecoins5.Yesterday, the U.S. spot Bitcoin ETF had a net outflow of $162 million6.The balance of Binance Bitcoin wallet increased by 6249.36 in the past 24 hours, and 15565.89 inflows in the past 7 days7.In April, NFT sales on the Bitcoin chain exceeded US$685 million, setting the third highest monthly record in history8.On-chain content distribution agreement Metale Protocol completes additional $2 million in seed round financing9.A whale deposited 1,140 MKR into Coinbase, losing about $1.1 million10.The Bitcoin stablecoin project, bitSmiley, goes live with its Alphanet V1, marking its debut deployment on the Bitcoin Layer 2 network, Bitlayer.

  • Barcelona-based Web3 Video Games Startup GFAL Raises $3.2M in Seed Funding to Expand Team and Accelerate Production Plans

    Barcelona-based startup GFAL has secured $3.2 million in seed funding from investors including Supercell Ltd and Mitch Lasky. The company plans to use the funds to expand its team and accelerate its game production plans, which leverage AI and Web3 technology for immersive gameplay. GFAL's Elemental Raiders mobile game soft-launched in March 2023, with plans to build on this for a 2024 launch. CEO Manel Sort expressed gratitude for the investment and excitement to work with former colleagues from Digital Chocolate.

  • BTC falls below $58,000

    Golden Finance reported that according to OKX market data, BTC briefly touched $57,700 and is now trading at $58,581.53, with a daily decline of 7.15%. The market is volatile, so please be prepared for risk management.

  • On-chain content distribution agreement Metale Protocol completes additional $2 million in seed round financing

    Metale Protocol, a content distribution protocol on the blockchain, announced the completion of an additional $2 million seed round of financing. Waterdrip Capital led the investment, with participation from Aipollo Investment and Ultiverse. As of now, the total size of its seed round financing has reached $4 million. Metale Protocol was formerly known as Read2N, a Web3 decentralized reading application. The new funds will be allocated to its content creation fund to stimulate more content creation activities and promote the construction of its protocol as a platform for issuing and distributing content assets on the blockchain.

  • Market News: South Africa authorizes 75 companies as cryptocurrency service providers

    According to Jinshi news, South Africa has authorized 75 companies as cryptocurrency service providers.