• bitcoinBitcoin (BTC) $ 62,227.00
  • ethereumEthereum (ETH) $ 3,430.27
  • tetherTether (USDT) $ 0.999059
  • bnbBNB (BNB) $ 579.72
  • solanaSolana (SOL) $ 145.42
  • staked-etherLido Staked Ether (STETH) $ 3,427.41
  • usd-coinUSDC (USDC) $ 1.00
  • xrpXRP (XRP) $ 0.474811
  • the-open-networkToncoin (TON) $ 7.59
  • dogecoinDogecoin (DOGE) $ 0.124153
  • cardanoCardano (ADA) $ 0.388669
  • avalanche-2Avalanche (AVAX) $ 28.99
  • tronTRON (TRX) $ 0.124922
  • shiba-inuShiba Inu (SHIB) $ 0.000017
  • wrapped-bitcoinWrapped Bitcoin (WBTC) $ 62,171.00
  • polkadotPolkadot (DOT) $ 6.21
  • chainlinkChainlink (LINK) $ 14.06
  • bitcoin-cashBitcoin Cash (BCH) $ 393.22
  • uniswapUniswap (UNI) $ 9.22
  • nearNEAR Protocol (NEAR) $ 5.31
  • litecoinLitecoin (LTC) $ 74.96
  • leo-tokenLEO Token (LEO) $ 5.83
  • matic-networkPolygon (MATIC) $ 0.555540
  • daiDai (DAI) $ 0.999993
  • pepePepe (PEPE) $ 0.000012
  • wrapped-eethWrapped eETH (WEETH) $ 3,571.26
  • kaspaKaspa (KAS) $ 0.186162
  • internet-computerInternet Computer (ICP) $ 8.05
  • ethena-usdeEthena USDe (USDE) $ 0.999221
  • fetch-aiFetch.ai (FET) $ 1.41
  • ethereum-classicEthereum Classic (ETC) $ 23.65
  • renzo-restaked-ethRenzo Restaked ETH (EZETH) $ 3,465.35
  • aptosAptos (APT) $ 7.00
  • moneroMonero (XMR) $ 167.78
  • render-tokenRender (RNDR) $ 7.55
  • hedera-hashgraphHedera (HBAR) $ 0.075456
  • stellarStellar (XLM) $ 0.090603
  • cosmosCosmos Hub (ATOM) $ 6.68
  • mantleMantle (MNT) $ 0.788922
  • okbOKB (OKB) $ 42.91
  • arbitrumArbitrum (ARB) $ 0.794199
  • filecoinFilecoin (FIL) $ 4.45
  • blockstackStacks (STX) $ 1.69
  • crypto-com-chainCronos (CRO) $ 0.091166
  • makerMaker (MKR) $ 2,517.27
  • immutable-xImmutable (IMX) $ 1.52
  • injective-protocolInjective (INJ) $ 23.12
  • vechainVeChain (VET) $ 0.026452
  • dogwifcoindogwifhat (WIF) $ 2.14
  • first-digital-usdFirst Digital USD (FDUSD) $ 1.00
  • optimismOptimism (OP) $ 1.77
  • the-graphThe Graph (GRT) $ 0.205878
  • suiSui (SUI) $ 0.809396
  • rocket-pool-ethRocket Pool ETH (RETH) $ 3,811.47
  • bittensorBittensor (TAO) $ 270.35
  • arweaveArweave (AR) $ 27.53
  • lido-daoLido DAO (LDO) $ 1.97
  • ondo-financeOndo (ONDO) $ 1.18
  • flokiFLOKI (FLOKI) $ 0.000169
  • mantle-staked-etherMantle Staked Ether (METH) $ 3,563.69
  • bitget-tokenBitget Token (BGB) $ 1.15
  • fantomFantom (FTM) $ 0.573334
  • theta-tokenTheta Network (THETA) $ 1.53
  • bonkBonk (BONK) $ 0.000023
  • based-brettBrett (BRETT) $ 0.150697
  • notcoinNotcoin (NOT) $ 0.014277
  • aaveAave (AAVE) $ 95.74
  • whitebitWhiteBIT Coin (WBT) $ 9.62
  • jasmycoinJasmyCoin (JASMY) $ 0.028555
  • thorchainTHORChain (RUNE) $ 4.07
  • ether-fi-staked-ethether.fi Staked ETH (EETH) $ 3,417.13
  • celestiaCelestia (TIA) $ 6.17
  • coredaoorgCore (CORE) $ 1.33
  • eosEOS (EOS) $ 0.574159
  • algorandAlgorand (ALGO) $ 0.143498
  • pyth-networkPyth Network (PYTH) $ 0.319646
  • quant-networkQuant (QNT) $ 77.00
  • jupiter-exchange-solanaJupiter (JUP) $ 0.819895
  • flare-networksFlare (FLR) $ 0.024229
  • gatechain-tokenGate (GT) $ 7.85
  • sei-networkSei (SEI) $ 0.335021
  • kelp-dao-restaked-ethKelp DAO Restaked ETH (RSETH) $ 3,459.56
  • galaGALA (GALA) $ 0.027393
  • zebec-protocolZebec Protocol (ZBC) $ 0.018899
  • kucoin-sharesKuCoin (KCS) $ 9.98
  • flowFlow (FLOW) $ 0.619708
  • ethereum-name-serviceEthereum Name Service (ENS) $ 28.78
  • starknetStarknet (STRK) $ 0.679187
  • bitcoin-svBitcoin SV (BSV) $ 44.75
  • axie-infinityAxie Infinity (AXS) $ 5.99
  • bittorrentBitTorrent (BTT) $ 0.00000088
  • tokenize-xchangeTokenize Xchange (TKX) $ 10.56
  • ethenaEthena (ENA) $ 0.519015
  • akash-networkAkash Network (AKT) $ 3.45
  • layerzeroLayerZero (ZRO) $ 3.32
  • dydx-chaindYdX (DYDX) $ 1.38
  • ordinalsORDI (ORDI) $ 39.00
  • neoNEO (NEO) $ 11.42
  • beam-2Beam (BEAM) $ 0.016007
  • msolMarinade Staked SOL (MSOL) $ 173.84
  • elrond-erd-2MultiversX (EGLD) $ 29.11
  • singularitynetSingularityNET (AGIX) $ 0.606626
  • pendlePendle (PENDLE) $ 5.02
  • tezosTezos (XTZ) $ 0.785601
  • the-sandboxThe Sandbox (SAND) $ 0.326567
  • usddUSDD (USDD) $ 0.998393
  • gnosisGnosis (GNO) $ 283.26
  • fasttokenFasttoken (FTN) $ 2.22
  • roninRonin (RON) $ 2.10
  • book-of-memeBOOK OF MEME (BOME) $ 0.009804
  • mog-coinMog Coin (MOG) $ 0.000002
  • nexoNEXO (NEXO) $ 1.20
  • lido-staked-solLido Staked SOL (STSOL) $ 172.09
  • frax-etherFrax Ether (FRXETH) $ 3,420.08
  • chilizChiliz (CHZ) $ 0.075032
  • oasis-networkOasis Network (ROSE) $ 0.098420
  • conflux-tokenConflux (CFX) $ 0.158576
  • zksyncZKsync (ZK) $ 0.176472
  • fraxFrax (FRAX) $ 0.997222
  • popcatPopcat (POPCAT) $ 0.659552
  • havvenSynthetix Network (SNX) $ 1.97
  • wormholeWormhole (W) $ 0.357879
  • dexeDeXe (DEXE) $ 11.29
  • mantra-daoMANTRA (OM) $ 0.773189
  • coinbase-wrapped-staked-ethCoinbase Wrapped Staked ETH (CBETH) $ 3,686.91
  • ecasheCash (XEC) $ 0.000032
  • worldcoin-wldWorldcoin (WLD) $ 2.44
  • decentralandDecentraland (MANA) $ 0.333896
  • apecoinApeCoin (APE) $ 0.984408
  • safeSafe (SAFE) $ 1.43
  • aioz-networkAIOZ Network (AIOZ) $ 0.546762
  • mina-protocolMina Protocol (MINA) $ 0.530161
  • swethSwell Ethereum (SWETH) $ 3,634.61
  • dog-go-to-the-moon-runeDOG•GO•TO•THE•MOON (Runes) (DOG) $ 0.005958
  • klay-tokenKlaytn (KLAY) $ 0.159109
  • heliumHelium (HNT) $ 3.45
  • tether-goldTether Gold (XAUT) $ 2,333.56
  • pancakeswap-tokenPancakeSwap (CAKE) $ 2.15
  • iotaIOTA (IOTA) $ 0.171592
  • livepeerLivepeer (LPT) $ 16.33
  • staked-frax-etherStaked Frax Ether (SFRXETH) $ 3,736.49
  • nervos-networkNervos Network (CKB) $ 0.011943
  • wemix-tokenWEMIX (WEMIX) $ 1.38
  • 1inch1inch (1INCH) $ 0.398297
  • theta-fuelTheta Fuel (TFUEL) $ 0.075297
  • true-usdTrueUSD (TUSD) $ 0.998602
  • constitutiondaoConstitutionDAO (PEOPLE) $ 0.093584
  • kavaKava (KAVA) $ 0.435567
  • raydiumRaydium (RAY) $ 1.75
  • terra-lunaTerra Luna Classic (LUNC) $ 0.000082
  • stader-ethxStader ETHx (ETHX) $ 3,536.21
  • trust-wallet-tokenTrust Wallet (TWT) $ 1.07
  • axelarAxelar (AXL) $ 0.628167
  • apenftAPENFT (NFT) $ 0.00000045
  • illuviumIlluvium (ILV) $ 66.78
  • xdce-crowd-saleXDC Network (XDC) $ 0.029552
  • aevo-exchangeAevo (AEVO) $ 0.520646
  • bitcoin-goldBitcoin Gold (BTG) $ 24.92
  • pax-goldPAX Gold (PAXG) $ 2,309.91
  • paypal-usdPayPal USD (PYUSD) $ 0.999202
  • mx-tokenMX (MX) $ 4.30
  • arkhamArkham (ARKM) $ 1.78
  • usdbUSDB (USDB) $ 0.999117
  • woo-networkWOO (WOO) $ 0.212312
  • rocket-poolRocket Pool (RPL) $ 19.77
  • sats-ordinalsSATS (Ordinals) (SATS) $ 0.00000019
  • cat-in-a-dogs-worldcat in a dogs world (MEW) $ 0.004439
  • ocean-protocolOcean Protocol (OCEAN) $ 0.604793
  • pepecoin-2PepeCoin (PEPECOIN) $ 3.32
  • astarAstar (ASTR) $ 0.067870
  • blastBlast (BLAST) $ 0.022254
  • memecoin-2Memecoin (MEME) $ 0.018518
  • safepalSafePal (SFP) $ 0.831315
  • echelon-primeEchelon Prime (PRIME) $ 8.82
  • compound-ethercETH (CETH) $ 68.94
  • corgiaiCorgiAI (CORGIAI) $ 0.001086
  • iotexIoTeX (IOTX) $ 0.039541
  • dydxdYdX (ETHDYDX) $ 1.39
  • kusamaKusama (KSM) $ 23.62
  • osmosisOsmosis (OSMO) $ 0.534695
  • aerodrome-financeAerodrome Finance (AERO) $ 0.686074
  • curve-dao-tokenCurve DAO (CRV) $ 0.283342
  • golemGolem (GLM) $ 0.352312
  • ether-fiEther.fi (ETHFI) $ 3.05
  • manta-networkManta Network (MANTA) $ 1.04
  • aragonAragon (ANT) $ 8.69
  • blurBlur (BLUR) $ 0.203538
  • stepnGMT (GMT) $ 0.163279
  • compound-governance-tokenCompound (COMP) $ 49.16
  • zilliqaZilliqa (ZIL) $ 0.017493
  • m2-global-wealth-limited-mmxMMX (MMX) $ 2.27
  • turboTurbo (TURBO) $ 0.004665
  • compound-wrapped-btccWBTC (CWBTC) $ 1,248.28
  • holotokenHolo (HOT) $ 0.001811
  • magaMAGA (TRUMP) $ 6.92
  • celoCelo (CELO) $ 0.595964
  • ioio.net (IO) $ 3.31
  • radixRadix (XRD) $ 0.030052
  • zcashZcash (ZEC) $ 20.59
  • biconomyBiconomy (BICO) $ 0.383918

MEV Bots and Sandwich Attacks: How do they work?

0 170

MEV Bots and Sandwich Attacks: How do they work?

A Maximal Extractable Value (MEV) bot using a subway-themed identifier recently made over a million dollars in profit using sandwich attacks. MEV bots are not new; now, sandwich attacks are becoming familiar enough for developers to think about and deploy countermeasures. But what are MEV bots, and how does a sandwich attack work?

MEV’s Role in the Blockchain Networks

Maximal Extractable Value (MEV) is the function of monetization present in blockchain networks. Network participants in charge of processing transactions, miners or validators, order their selection and execution. This architecture allows MEV bots to profit from price discrepancies (arbitrage).

For example, an MEV arbitrage bot could be deployed to monitor trades on decentralized exchanges (DEXes). If there is an incoming large buy order in play, this will point toward the price increase of a particular cryptocurrency.

When identifying such a sizeable incoming trade, the MEV bot executes its order. This way, it would take advantage of the price shift likely resulting from the DEX order. The MEV bot would typically place a buy order at a lower price just moments before the DEX order is executed.

As the asset price increases following the DEX trade, the MEV arbitrage bot would extract the value – profits – from the price discrepancy. Therefore, although MEV bots are independent of miners/validators, they take advantage of their transaction ordering.

However, some MEV profit extraction strategies are more manipulative than others.

MEVs: Sandwiching and Frontrunning

Another way to extract value from incoming trades is to submit a sell/buy order between trades. For example, if the MEV bot places a large sell order just before a large buy order, it could decrease the asset price. The goal is to repurchase the asset at a lower price, which the bot would sell for a higher price.

This MEV strategy is called a “sandwich attack” because the bot inserts its trades between the large buy order and the follow-up sell orders. Based on the market liquidity at the time and the buy order size, sandwich-based MEV extraction has a varying degree of success.

In April, sandwich-based MEV profits more than doubled compared to standard MEV arbitrage.

MEV Bots and Sandwich Attacks: How do they work?

Out of $5.81 billion transaction volume in April, MEV bots extracted $5.58 million in profits using the sandwich ordering strategy. Image credit: EigenPhi

MEV bots can also front-run users’ transactions just before they are confirmed on the network. They do so by copying them but setting a higher gas fee to push transactions through ahead of the original one.

Of course, the network throughput is burdened as a side effect of people deploying MEV bots to insert orders to extract value. Consequently, transaction fees go up as the network gets congested, which happened in April with increased bot activity.

MEV Bots and Sandwich Attacks: How do they work?

Ethereum gas fees in April. Image credit: ycharts

Suffice it to say the resulting fees, averaging $29 on Uniswap, do not constitute a welcoming user experience. Even simple stablecoin transfers, at $8.54, makes it exceedingly difficult to make a case for mass DeFi adoption.

MEV Bots: Exploiting Complexity

Technically, Bitcoin has smart contracts, but they are severely limited in scope. They focus on basic financial transactions, such as sending and receiving BTC and enforcing multi-sig requirements. In contrast, Ethereum’s Solidity programming language supports complex smart contracts and functions.

This difference in smart contract complexity mirrors the difference between MEV on Bitcoin vs. MEV on Ethereum. On the Bitcoin network, MEV bots are limited due to the UTXO (Unspent Transaction Output) model, which straightforwardly handles transactions.

For instance, Bitcoin miners could deploy MEV bots to extract value by including the transactions they mine or by reordering the mempool transactions to take advantage of price movements.

However, unlike Ethereum, Bitcoin’s mempool doesn’t include the entire transaction pool because transactions have to become eligible to be included, following strict criteria such as non-conflicting transaction ID, fees, and valid signatures. This makes it exceedingly difficult for MEV bots to manipulate transaction orders.

Moreover, Bitcoin’s 10-minute block interval, compared to Ethereum’s 12-second block finalization time, creates drastically fewer opportunities to front-run transactions. Ironically, this creates a situation in which Bitcoin inherently disincentivizes excessive network load, leading to lower transaction fees and lesser fee volatility.

Have you ever used MEV bots to generate profits? Let us know in the comments below.

Source

Leave A Reply

Your email address will not be published.