Skip to content

Learn · Explainer

Sandwich attacks on Solana: how MEV bots work and how to keep your fills clean

A Solana sandwich attack worked through on a 1 SOL pump.fun buy: how MEV bots see a trade, how your slippage setting limits them, and how to keep fills clean.

Updated OCTOBER 27, 2026· Fullport Capital

On this page

What a sandwich attack is

A Solana sandwich attack is when a bot sees your pending memecoin buy, buys the same token just before you, lets your buy fill at the higher price it created, then sells straight after. You get fewer tokens and the difference becomes the bot's profit. Your slippage setting caps how much it can take.

What is MEV in crypto?

MEV, maximal extractable value, is profit someone can make by choosing the order of transactions in a block. The sandwich is the version an ordinary trader is most likely to meet, and a few settings handle it well.

A sandwiched trade shows on your screen as a fill further from the quote than you expected, usually put down to "slippage".

How common are sandwich attacks on Solana?

In a talk at Solana's Accelerate conference in 2025, the team behind the sandwiched.me tracker estimated that sandwich bots had extracted roughly $370 million to $500 million on Solana over about 16 months. Around 93% of the cases they found were "wide" sandwiches, where the bot's two legs land in different blocks (summary by Solana Compass).

A sandwich, worked through on a pump.fun curve

Take a pump.fun coin with 10 SOL of real buys in its bonding curve. You send a 1 SOL buy with a 20% slippage tolerance. A bot that can see your transaction before it lands front-runs it with 3 SOL, which is about as much as it can buy while keeping your fill inside 20%, so that your transaction still goes through.

No sandwichSandwiched
Tokens you receive19.39M16.84M
Your average fill vs the price you saw+3.8%+19.7%
Within your 20% tolerance?YesYes, just
Bot's profit after paying the curve fee twice on 3 SOL—≈ 0.057 SOL

Swipe or scroll to compare all columns.

Constant-product math on pump.fun's published reserves with the 1.25% curve fee on every leg; network fees and tips ignored.

In this example the sandwich takes about 13% of your tokens. The bot made about 0.057 SOL and the curve collected fees on all three legs. Repeat that on every buy a bot can see and you get the totals above, which is why the settings below are worth a minute.

Your tolerance sets the limit

The bot's front-run size is chosen to push your fill right up to your limit and no further, because it only profits when your transaction goes through. With 10% tolerance the bot in this example could front-run only about 1 SOL; with 40% it could front-run 5 SOL or more. A tight tolerance is the simplest protection you have.

How a bot gets to see your transaction

Solana has no public mempool in the Ethereum sense. Transactions go from your RPC provider towards the validators scheduled to produce the next blocks, and a sandwich needs someone in that path to see yours and order theirs around it. In practice that has meant:

  • Validators that participate, directly or by sharing what they receive. The sandwiched.me work tracked a "sandwich rate" per validator for exactly this reason, and found some validators with far higher rates than others.
  • Private transaction streams sold to searchers. Jito shut down its own public mempool stream in 2024; private streams persisted.
  • Bundles that let the bot's buy and sell be placed around your transaction, when it is seen in time.
  • Wide sandwiches, where the legs land in different blocks. They need less coordination and were the large majority of cases in the sandwiched.me data.

Because a sandwich depends on the route your transaction takes, two traders sending identical orders from different terminals can get very different fills, which makes the route something you can choose.

Which trades get sandwiched?

A bot only acts when the expected profit beats its costs: two venue fees on its own size, network fees, any tip, and the chance that your transaction does not go through or lands somewhere else. That points it at large buys relative to the depth of the curve or pool, sent with wide slippage, on coins it can get in and out of quickly.

Small orders with tight tolerance on deep pools are rarely worth a bot's trouble. Sells can be sandwiched too, in reverse: the bot sells ahead of you, lets your sell fill lower, and buys back after.

What actually protects your fills

  1. 1

    Keep slippage as tight as the coin allows

    It caps what a sandwich can take. See memecoin slippage settings for the trade-off with getting filled.

  2. 2

    Use a protected route when your terminal offers one

    Many terminals have an MEV-protection or anti-MEV mode that sends through routes designed to refuse front-running, such as Jito's jitodontfront marker. Check what the toggle actually does.

  3. 3

    Size against the depth

    A bot's profit grows with your impact. Small orders relative to the curve or pool give a bot little to work with.

  4. 4

    Check your fills

    Compare the price you clicked with your actual average fill in your terminal's trade history. A pattern of fills at the edge of your tolerance tells you to tighten slippage or switch route.

Together these lower both the chance of being sandwiched and how much a bot could take, and they cost nothing to set up. A bigger Jito tip works alongside these settings rather than in place of them, because a tip changes your place in an auction the bot is also bidding in.

Sandwiches on a Fullport account

A Fullport order never reaches the chain, so nobody can see it or trade around it. Sandwiches and other MEV against you are deliberately not modeled (fill policy). Every order is priced from a fresh read of the real curve or pool after a modeled 250 ms delay, with the venue fee, a modeled network fee, a 1% platform fee and your own price impact charged.

A 25% impact cap keeps each order to a size the real curve or pool can absorb. Fills come from the market itself rather than from block ordering, so MEV capture and bundle sniping are not part of the account, and the conduct rules ask that you trade real markets without moving the price of a coin you hold here.

A one-time evaluation fee of $150 to $330 buys the account, and every trade runs on the simulated balance, never your wallet. Once funded you keep 80% of every payout, paid in SOL, with payout requests every 5 active days. Trade the same coins from the browser terminal or with Fullport Tap on your usual terminal; memecoin trading, step by step covers the rest of the routine.

Quick answers

What is a sandwich attack on Solana?
A bot sees your pending swap, buys the same token just before it, lets your swap fill at the higher price it created, and sells right after. You receive fewer tokens than you would have, and the difference, minus fees, becomes the bot's profit.
How do I avoid sandwich attacks on Solana?
Use the tightest slippage the coin allows, turn on your terminal's MEV-protection route if it has one, keep orders small relative to the curve or pool, and check your fills. Each one reduces how much a bot can take, and together they keep your fills close to the quote.
How much do sandwich bots take on Solana?
Estimates vary. In a 2025 Solana Accelerate talk, the sandwiched.me team put the total at roughly $370 million to $500 million over about 16 months, with most of them being wide sandwiches whose legs land in different blocks.
Does a higher Jito tip protect me from sandwiches?
A tip helps you land, and the route is what protects the fill. A tip changes where you land in Jito's auction, which the bot also bids in. Protection comes from routes that refuse to place other transactions ahead of yours, such as Jito's jitodontfront marker, plus tight slippage.
Terms usedSlippage