Glossary
MEV
MEV bots see your trade before it lands and trade around it. How sandwich attacks work on Solana and the settings that stop feeding them.
MEV — maximal extractable value — is the profit a bot makes from seeing your transaction before it settles and acting around it. The version that hits memecoin traders is the sandwich attack.
How a sandwich works
Your buy sits briefly in the mempool before it lands. A bot reads it, works out exactly how much your trade will push the price, and buys immediately in front of you. You fill at the higher price your own order created. The bot sells straight after.
You get a worse fill, the bot pockets the difference, and nothing looks broken — you just paid more than the screen said.
What makes you a target
- High slippage. You're telling the bot its maximum profit. See slippage.
- Big trades in thin pools, where your price impact is large and predictable.
- Obvious moments — migration, or a coin everyone is buying at once.
Small trades on deep pools with tight slippage are barely worth a bot's time.
How to reduce it
Keep slippage as low as the trade allows, accepting that some will fail — a failed transaction costs a fraction of a cent, a sandwich costs real percent.
Several Solana terminals offer MEV protection or private routing that keeps your transaction out of the public mempool. Worth turning on; the terminals guide covers which do what.
The honest version
You can’t eliminate it, only make yourself unprofitable to attack. Treat it as a cost of trading on a public chain, and don’t let it push you into the much more expensive habit of setting slippage to 50% so nothing ever fails.
Related terms
Ready to put it to work? Ask questions, watch real calls and learn with the squad.