BPOI Banner
What Is MEV and How Does It Impact Your Blockchain Transactions What Is MEV and How Does It Impact Your Blockchain Transactions

What Is MEV and How Does It Impact Your Blockchain Transactions

HodlX Guest Post  Submit Your Post

 

In the early days of Bitcoin, miners could receive rewards for either mining a block or as commissions for a transaction with the highest gas price.

The logic behind forming a block was relatively simple get all the valid unmined transactions from the mempool, sort them according to their gas price, form them into a block and then begin mining.

In time, as blockchain got more and more advanced, we witnessed the development of Turing-complete smart contracts on Ethereum and then the whirlwind of DeFi growth.

With all that, block producers received additional methods of turning profit.

It turned out that by including, excluding and rearranging the order of transactions, block producers could now earn additional rewards.

This mechanism was called MEV (maximal extractable value) the biggest sum that block producers could earn.

The history of MEV

Even before Ethereum’s mainnet release, discussions regarding gaining additional profit began showing up online.

Users have discovered that the public decentralized nature of blockchain allows ‘sneaking’ a smaller transaction in front of a large one, so anyone can easily purchase assets at a lower price.

Because a larger purchase increases the asset’s value on decentralized exchanges, an earlier transaction can prove profitable, since the assets have been obtained prior to growth.

The term ‘MEV’ was coined in 2019 after the research Flash Boys 2.0 was published. It was the first comprehensive research on the matter which provided a detailed look into the issue.

How does it work

Usually, miners, validators or block producers have the authority to include, exclude and rearrange certain transactions.

Imagine a scenario you see an opportunity to earn money on a protocol. You realize that the opportunity has been available to everyone for a while, yet it hasn’t been exploited.

So, you prepare a transaction, send it and eagerly await its mining to receive the desired reward.

However, it turns out someone jumps right ahead of you with a similar transaction and steals the reward for themselves from under your nose.

It’s only reasonable to wonder what are the chances of two people simultaneously finding the same opportunity.

Pretty low, and to make matters worse, no one had been looking – there are programs and tools that automatically analyze the submitted transactions and then modify the ones that can prove profitable for the benefit of their owner.

If this works, the copycat transaction is sent ahead using frontrunning.

MEV types

Arbitrage

Arbitrage is a way to profit from the price gaps on different platforms. Miners who notice said gaps can be the first to send their transactions to take advantage of them.

These actions are considered to have a positive influence on the market because they help maintain relatively similar asset prices on different platforms and exchanges since bigger gaps can prove problematic.

Frontrunning

An MEV transaction is placed ahead of the original one. We have already discussed them earlier, noting that when such a transaction is submitted ahead of the original one of a larger purchase on a DEX.

Another mechanism involves copying the original transaction with small adjustments for the attacker to get the profit instead of the initial sender.

Backrunning

It’s similar to frontrunning, except the transaction is placed right after the original one. An example of this usage is buying a token first right after the project launch as soon as it becomes available on the DEX.

Sandwich attack

It’s a combination of two previously described types of attack. The attacker sends two transactions one before and one after the original one.

This way, as opposed to a frontrun preceding a large purchase, the attacker can easily review and document their profit.

Liquidation

Lending protocols are often arranged in a way that allows a position to be liquidated by any user, which allows them to earn extra funds.

Users have to compete for sending the liquidation transaction to receive the profit.

MEV prevention

It’s obvious that the possibility of using MEVs imposes additional commissions on users and brings additional risks.

The Flashbots system was created specifically for combating MEVs. This system attempts to control MEVs by creating an open transaction auction.

Conclusion

The possibility of MEVs is a result of the open and decentralized structure of blockchain. This has both positive and negative effects.

It’s vital for blockchain users and developers to understand the way the technology works to minimize the risks of becoming a victim of an unexpected attack.


Gleb Zykov is the co-founder and CTO of HashEx Blockchain Security. He has more than 14 years of experience in the IT industry and over eight years in internet security, as well as a strong technical background in blockchain technology (Bitcoin, Ethereum and EVM-based blockchains).

 

Check Latest Headlines on HodlX

Follow Us on Twitter Facebook Telegram

Check out the Latest Industry Announcements
 

Disclaimer: Opinions expressed at The Daily Hodl are not investment advice. Investors should do their due diligence before making any high-risk investments in Bitcoin, cryptocurrency or digital assets. Please be advised that your transfers and trades are at your own risk, and any loses you may incur are your responsibility. The Daily Hodl does not recommend the buying or selling of any cryptocurrencies or digital assets, nor is The Daily Hodl an investment advisor. Please note that The Daily Hodl participates in affiliate marketing.

Generated Image: Midjourney



Source link

Gleb Zykov

https://dailyhodl.com/2024/08/19/what-is-mev-and-how-does-it-impact-your-blockchain-transactions/

2024-08-20 03:40:32

bitcoin
Bitcoin (BTC) $ 94,871.42 2.37%
ethereum
Ethereum (ETH) $ 3,258.94 1.98%
tether
Tether (USDT) $ 0.998452 0.14%
xrp
XRP (XRP) $ 2.18 2.73%
bnb
BNB (BNB) $ 645.72 2.18%
solana
Solana (SOL) $ 178.99 1.28%
dogecoin
Dogecoin (DOGE) $ 0.308244 4.19%
usd-coin
USDC (USDC) $ 1.00 0.05%
staked-ether
Lido Staked Ether (STETH) $ 3,257.81 1.72%
cardano
Cardano (ADA) $ 0.876276 3.21%
tron
TRON (TRX) $ 0.243099 0.39%
avalanche-2
Avalanche (AVAX) $ 36.29 3.35%
chainlink
Chainlink (LINK) $ 21.99 0.78%
the-open-network
Toncoin (TON) $ 5.35 1.07%
wrapped-steth
Wrapped stETH (WSTETH) $ 3,879.40 1.68%
wrapped-bitcoin
Wrapped Bitcoin (WBTC) $ 94,605.35 2.35%
sui
Sui (SUI) $ 4.28 1.79%
shiba-inu
Shiba Inu (SHIB) $ 0.000021 1.90%
stellar
Stellar (XLM) $ 0.353604 0.92%
polkadot
Polkadot (DOT) $ 6.81 2.15%
hedera-hashgraph
Hedera (HBAR) $ 0.263884 3.59%
hyperliquid
Hyperliquid (HYPE) $ 27.96 13.61%
weth
WETH (WETH) $ 3,259.64 1.79%
bitcoin-cash
Bitcoin Cash (BCH) $ 442.46 2.56%
leo-token
LEO Token (LEO) $ 9.31 0.37%
uniswap
Uniswap (UNI) $ 13.80 2.93%
litecoin
Litecoin (LTC) $ 99.00 2.07%
pepe
Pepe (PEPE) $ 0.000018 0.98%
wrapped-eeth
Wrapped eETH (WEETH) $ 3,441.69 1.91%
near
NEAR Protocol (NEAR) $ 4.98 0.74%
ethena-usde
Ethena USDe (USDE) $ 0.999029 0.15%
bitget-token
Bitget Token (BGB) $ 4.12 1.09%
usds
USDS (USDS) $ 0.995857 0.35%
aptos
Aptos (APT) $ 9.19 2.94%
aave
Aave (AAVE) $ 315.55 5.45%
internet-computer
Internet Computer (ICP) $ 9.87 2.20%
crypto-com-chain
Cronos (CRO) $ 0.152949 3.10%
polygon-ecosystem-token
POL (ex-MATIC) (POL) $ 0.469933 0.65%
mantle
Mantle (MNT) $ 1.16 0.39%
ethereum-classic
Ethereum Classic (ETC) $ 25.84 0.71%
vechain
VeChain (VET) $ 0.045314 0.55%
render-token
Render (RENDER) $ 6.98 1.37%
whitebit
WhiteBIT Coin (WBT) $ 24.42 0.40%
mantra-dao
MANTRA (OM) $ 3.67 0.66%
monero
Monero (XMR) $ 186.51 1.63%
dai
Dai (DAI) $ 0.999313 0.16%
bittensor
Bittensor (TAO) $ 449.44 1.42%
fetch-ai
Artificial Superintelligence Alliance (FET) $ 1.25 1.17%
arbitrum
Arbitrum (ARB) $ 0.74041 0.50%
ethena
Ethena (ENA) $ 1.04 3.16%