How to protect your token from sandwich attacks
7 November 2026
A sandwich attack is when a bot sees a trade waiting to go through, buys just before it to push the price up, lets the trade fill at the worse price, then sells straight after. The trader gets less, and the bot keeps the difference.
Why it hurts your token
Every sandwiched buyer pays more than they should. New tokens with thin liquidity are the easiest targets, right when you want early buyers to have a good experience.
Rules that fight it
- No buy-and-sell in one block: a wallet can't buy and then sell within the same block. The cheapest sandwiches need exactly that, so they stop working.
- Sandwich guard: a trade that pushes the price back toward where the block started, which is what the second half of a sandwich does, pays an extra fee to liquidity providers. That eats the bot's profit.
- Volatility fee: trades that move the price a lot pay more, which makes the first half of a sandwich expensive.
Add them to your pool
Tick the rules on the Create page when you launch. They work from the first trade and can't be switched off later. For launch-day bots, add anti-snipe rules too.
Try it on your own token. Pick the rules, sign one transaction, no code.Create a hook