Skip to main content
← Back to blog
MEV Advanced

MEV on Solana — What It Is and How to Protect Your Trades

· 7 min read · MoonHydra Research

Every time you buy a memecoin on Solana, there's a non-zero chance another bot is making money off your specific transaction. They don't know you. They don't care about your portfolio. They're skimming a percentage on millions of swaps per day, and your trade is one of them.

The technical term is MEV — Maximal Extractable Value. The retail name for the most common form is sandwich attacks. This piece explains what's happening, how much it costs you, and what works as a defense.

What a sandwich looks like

Imagine you buy 5 SOL of $DOG. The mechanics inside your tx:

  1. Your tx hits the mempool, broadcasting "buy 5 SOL of DOG at up to 5% slippage."
  2. A searcher bot sees your pending tx, calculates it'll push price up ~2%.
  3. The bot front-runs you with a buy 0.5s before yours lands.
  4. Your tx executes, pushing price up further. You buy at the worse price.
  5. The bot back-runs you with a sell right after, capturing the price delta.

Result: you paid 0.5-3% more than you should have. The bot profited that delta. Multiply across 100k+ swaps a day, sandwich attackers are running 8-9 figure annual businesses.

How much does it actually cost you?

Estimates vary, but Solana MEV studies pin retail sandwich costs at:

  • 0.5–1.5% on stable pairs (SOL/USDC swap on Orca): low — pools are deep, attackers extract less.
  • 2–5% on mid-cap memecoins (BONK/SOL, WIF/SOL on Raydium): moderate — typical sandwich target.
  • 5–15% on fresh launches (Pump.fun graduation, low-liquidity new pools): high — sandwich attackers compete fiercely for these.

If you're trading 100 SOL/month and getting sandwiched on 50% of trades for 3% each: that's ~1.5 SOL/month bleeding to MEV bots. Compounds fast.

Why Solana is especially vulnerable

Two structural reasons:

  • Public mempool by default. Most Solana RPCs broadcast your tx to validators, who include it in the next block. Searchers monitor the mempool and can construct sandwiches in <100ms.
  • Sub-second block times. Ethereum's 12s blocks give defenders time to react. Solana's 400ms blocks mean the attacker AND defender both have to run extremely fast — and the attacker has the structural advantage.

Defenses that work

1. Jito bundles (the gold standard)

Jito's Block Engine accepts bundles — groups of transactions that either all land in a block or none do. Crucially, bundled txs don't pass through the public mempool. Searchers can't sandwich what they can't see.

To use Jito: submit your swap as a bundle with a small "tip" (usually 1000–10000 lamports) to a Jito tip account. The bundle gets included atomically. No sandwich opportunity.

Cost: you pay the tip even on losing trades. ~0.000001-0.00001 SOL per trade ($0.0002–$0.002). Cheaper than getting sandwiched by 3%.

2. Higher slippage tolerance (paradoxically)

Wait, isn't lower slippage better? Not against sandwiches. If your slippage is 5%, the attacker has 5% to extract. If your slippage is 0.5%, the attacker can only extract 0.5% before your tx fails.

The catch: if you set slippage too tight on a volatile token, your swap fails entirely and you waste the priority fee. Tradeoff zone: 1-3% on stable pairs, 5-10% on memecoins. For fresh launches: higher (you'd rather pay the slippage than miss the buy).

3. Private RPCs

Some RPC providers (Helius, Triton, Jito's own) offer "private" tx submission that skips the public mempool. Same protection as bundles, simpler integration.

MoonHydra uses Helius — already a private-ish path. Adding Jito bundles in Phase 3 closes the remaining gap.

4. Avoid known-MEV-heavy routes

Some DEX pools are sandwich-bot magnets. Raydium AMM pools with low fees attract the most attackers. Newer concentrated liquidity (Orca Whirlpools, Meteora DLMM) is harder to sandwich profitably. Jupiter routing usually picks the best price — but you can configure preferences.

What doesn't work

  • Front-running your own front-runner. You'd have to pay higher priority fee than them. They optimize for this — you won't win.
  • "Random" tx timing. Sandwich bots react in milliseconds. You can't out-randomize them.
  • Hoping nobody noticed. Public mempool means everyone with $100/mo for a colocated node sees your tx within 50ms.

MoonHydra's MEV roadmap

Today: partial protection. Trades route through Helius (private RPC, faster than public). Slippage and priority fee are user-configurable.

Phase 3: full Jito bundle protection. Every swap submitted as a bundle with a configurable tip. Anti-bundling detection on the input side too — we'll warn you if a token's recent buys look bot-bundled (a sign of coordinated manipulation).

The pragmatic bottom line

If you trade more than ~10 SOL/month:

  1. Set slippage as low as you can without your swaps failing (start 3-5%, tune down).
  2. Use a private RPC or bundle-capable bot (Helius, Jito, MoonHydra in Phase 3).
  3. Avoid the lowest-fee, highest-MEV pools when alternatives exist.
  4. Don't sweat the rare 0.5% loss — sandwich math averages out. Focus on win rate and sizing, not perfect MEV avoidance.

Reality: MEV is a tax on speed-blindness. Pay it where it's small. Eliminate it where it's worth the engineering. MoonHydra already minimizes it via Helius routing; full Jito support is queued.


Ready to put this into practice?

MoonHydra is a multi-wallet Solana memecoin trading bot on Telegram. 1% per trade. No subscription. Open source.

🐉 Open MoonHydra