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) $ 91,239.45 3.47%
ethereum
Ethereum (ETH) $ 3,150.86 2.37%
tether
Tether (USDT) $ 1.00 0.01%
solana
Solana (SOL) $ 220.97 5.96%
bnb
BNB (BNB) $ 624.84 0.47%
dogecoin
Dogecoin (DOGE) $ 0.378608 2.41%
xrp
XRP (XRP) $ 0.913376 10.09%
usd-coin
USDC (USDC) $ 0.99989 0.01%
staked-ether
Lido Staked Ether (STETH) $ 3,149.25 2.30%
cardano
Cardano (ADA) $ 0.737891 23.23%
tron
TRON (TRX) $ 0.189822 6.38%
shiba-inu
Shiba Inu (SHIB) $ 0.000025 7.48%
avalanche-2
Avalanche (AVAX) $ 34.43 9.10%
the-open-network
Toncoin (TON) $ 5.43 3.19%
wrapped-steth
Wrapped stETH (WSTETH) $ 3,714.53 1.84%
wrapped-bitcoin
Wrapped Bitcoin (WBTC) $ 91,118.41 3.59%
sui
Sui (SUI) $ 3.87 21.67%
pepe
Pepe (PEPE) $ 0.000023 8.15%
weth
WETH (WETH) $ 3,155.65 2.45%
chainlink
Chainlink (LINK) $ 14.26 8.74%
bitcoin-cash
Bitcoin Cash (BCH) $ 434.26 3.40%
polkadot
Polkadot (DOT) $ 5.25 8.37%
near
NEAR Protocol (NEAR) $ 6.10 12.24%
leo-token
LEO Token (LEO) $ 7.76 4.29%
aptos
Aptos (APT) $ 12.48 8.93%
litecoin
Litecoin (LTC) $ 83.75 2.47%
wrapped-eeth
Wrapped eETH (WEETH) $ 3,312.08 2.20%
uniswap
Uniswap (UNI) $ 8.81 8.23%
usds
USDS (USDS) $ 0.994887 0.73%
crypto-com-chain
Cronos (CRO) $ 0.168688 6.63%
stellar
Stellar (XLM) $ 0.145269 7.05%
internet-computer
Internet Computer (ICP) $ 9.04 12.88%
bittensor
Bittensor (TAO) $ 535.96 6.33%
dogwifcoin
dogwifhat (WIF) $ 3.91 11.30%
kaspa
Kaspa (KAS) $ 0.14075 6.24%
ethereum-classic
Ethereum Classic (ETC) $ 23.58 6.26%
fetch-ai
Artificial Superintelligence Alliance (FET) $ 1.32 8.00%
dai
Dai (DAI) $ 0.999775 0.03%
whitebit
WhiteBIT Coin (WBT) $ 22.30 0.77%
ethena-usde
Ethena USDe (USDE) $ 1.00 0.07%
bonk
Bonk (BONK) $ 0.000044 26.91%
polygon-ecosystem-token
POL (ex-MATIC) (POL) $ 0.379814 6.09%
hedera-hashgraph
Hedera (HBAR) $ 0.078807 17.82%
blockstack
Stacks (STX) $ 1.94 6.83%
render-token
Render (RENDER) $ 7.35 11.86%
monero
Monero (XMR) $ 144.09 3.05%
okb
OKB (OKB) $ 44.19 1.81%
first-digital-usd
First Digital USD (FDUSD) $ 1.00 0.18%
floki
FLOKI (FLOKI) $ 0.000265 24.42%
aave
Aave (AAVE) $ 169.45 8.86%