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,474.31 2.25%
ethereum
Ethereum (ETH) $ 3,271.47 1.99%
tether
Tether (USDT) $ 0.999503 0.05%
xrp
XRP (XRP) $ 2.16 3.07%
bnb
BNB (BNB) $ 655.59 0.86%
solana
Solana (SOL) $ 179.14 1.44%
dogecoin
Dogecoin (DOGE) $ 0.309366 2.28%
usd-coin
USDC (USDC) $ 1.00 0.15%
staked-ether
Lido Staked Ether (STETH) $ 3,263.98 1.99%
cardano
Cardano (ADA) $ 0.878947 1.85%
tron
TRON (TRX) $ 0.243571 0.52%
avalanche-2
Avalanche (AVAX) $ 36.25 2.65%
chainlink
Chainlink (LINK) $ 22.17 0.42%
the-open-network
Toncoin (TON) $ 5.38 1.62%
wrapped-steth
Wrapped stETH (WSTETH) $ 3,866.65 2.50%
wrapped-bitcoin
Wrapped Bitcoin (WBTC) $ 94,238.25 2.14%
shiba-inu
Shiba Inu (SHIB) $ 0.000021 1.21%
sui
Sui (SUI) $ 4.29 2.22%
stellar
Stellar (XLM) $ 0.352471 0.32%
polkadot
Polkadot (DOT) $ 6.77 2.55%
hedera-hashgraph
Hedera (HBAR) $ 0.259751 3.34%
hyperliquid
Hyperliquid (HYPE) $ 28.09 18.24%
weth
WETH (WETH) $ 3,273.72 1.90%
bitcoin-cash
Bitcoin Cash (BCH) $ 439.76 3.05%
leo-token
LEO Token (LEO) $ 9.40 1.19%
uniswap
Uniswap (UNI) $ 13.76 0.67%
litecoin
Litecoin (LTC) $ 100.23 0.10%
pepe
Pepe (PEPE) $ 0.000018 1.02%
wrapped-eeth
Wrapped eETH (WEETH) $ 3,454.73 1.92%
near
NEAR Protocol (NEAR) $ 5.03 1.28%
ethena-usde
Ethena USDe (USDE) $ 0.999963 0.06%
bitget-token
Bitget Token (BGB) $ 4.06 3.04%
usds
USDS (USDS) $ 0.998882 0.06%
aptos
Aptos (APT) $ 9.08 2.43%
aave
Aave (AAVE) $ 318.71 6.95%
internet-computer
Internet Computer (ICP) $ 9.81 1.78%
crypto-com-chain
Cronos (CRO) $ 0.15152 2.53%
polygon-ecosystem-token
POL (ex-MATIC) (POL) $ 0.471115 0.44%
mantle
Mantle (MNT) $ 1.16 0.46%
ethereum-classic
Ethereum Classic (ETC) $ 25.97 0.06%
vechain
VeChain (VET) $ 0.045029 0.15%
render-token
Render (RENDER) $ 6.99 0.33%
whitebit
WhiteBIT Coin (WBT) $ 24.32 0.42%
mantra-dao
MANTRA (OM) $ 3.66 2.05%
monero
Monero (XMR) $ 189.19 0.22%
dai
Dai (DAI) $ 1.00 0.03%
bittensor
Bittensor (TAO) $ 448.83 0.70%
fetch-ai
Artificial Superintelligence Alliance (FET) $ 1.25 0.33%
arbitrum
Arbitrum (ARB) $ 0.743391 0.27%
ethena
Ethena (ENA) $ 1.05 3.59%