“Frontrunning on EVM is the practice of watching blockchain transactions in order to gain an advantage. It occurs when someone watches a transaction being broadcast to the network, and then quickly submits their own transaction before the original is mined, thus allowing them to benefit from the original transaction.” - In other words, MEV bots use your maximum slippage to their benefit, and slurp your money.
How to protect yourself from this?
Use an anti-MEV RPC so your transactions are not visible in the mempool, thus preventing your TX from getting sandwiched.
Some generic best practices:
- Minimizing the slippage can help prevent MEV from profiting off your transactions.
- If you swap large amounts, you can use CowSwap - why?
- Try to use DEX aggregators
-
Use a private MEV RPC
Here are some alternative, private RPCs you could use:
Anti-MEV RPC providers
Flashbots
https://rpc.flashbots.net
DefiLlama
https://eth.llamarpc.com
https://medium.com/llamanodes/llamanodes-launches-mev-boost-mev-protect-rpc-4edb57c8cf00
MEVblocker
From the CowSwap team.
https://rpc.mevblocker.io
Eden Network
RPC | Frontrunning Protection | Transaction Speed |
---|---|---|
Eden RPC | Guaranteed ![]() |
Fast ![]() |
Eden Rocket RPC | Best Effort ![]() |
Faster ![]() |
https://api.edennetwork.io/v1/rpc
https://api.edennetwork.io/v1/rocket
Maestro Telegram Bot
@MaestroSniperBot has a build-in Anti-MEV feature for ETH.
Why is MEV’ing possible?
This is possible on the Ethereum blockchain because the network is open and all transactions are publicly visible. This practice can be used to manipulate the market by taking advantage of the opportunity to gain profits or prevent losses before other market participants."
I want to know more!
https://medium.com/flashbots/frontrunning-the-mev-crisis-40629a613752