All posts
guideanti-sniperdefiliquidity

How to Protect Your Token from Snipers

Learn what sniper bots are, how they exploit new token launches on Solana, and how to use anti-sniper protection to stop them — for free.

SolFoundry TeamApril 24, 2026 7 min read

What Are Sniper Bots?

Every time a new liquidity pool launches on Solana, bots are watching. Within milliseconds of the pool going live, they execute buy orders — accumulating a massive share of the token supply before any real buyer has a chance.

These are sniper bots, and they're one of the biggest problems in crypto token launches.

Here's what a typical sniper attack looks like:

  1. Creator launches a pool with 100M tokens + 1 SOL
  2. Within 200 milliseconds, a bot buys 20% of the supply
  3. Real buyers start buying minutes later, pushing the price up
  4. The bot dumps its 20% on real buyers, crashing the price
  5. The bot walks away with profit. Real buyers hold the bags.

This happens on every chain, but Solana's speed makes it worse — bots can execute in under a second.

Why Regular Launches Are Vulnerable

When you create a standard liquidity pool, the trading fee is fixed at 0.25%. This means a sniper pays the same fee whether they buy in the first millisecond or the first hour.

For a bot, 0.25% is nothing. If it accumulates 20% of supply and dumps for a 5x, that's a 500% return minus 0.50% in fees. The math overwhelmingly favors the bot.

The problem isn't speed — it's that there's no cost to being first.

How Anti-Sniper Protection Works

SolFoundry's anti-sniper protection changes the economics completely. Instead of a fixed fee, it uses Meteora's fee time scheduler — an exponential decay curve that starts with extremely high trading fees and gradually drops to normal levels.

The idea is simple: make the first few minutes expensive to trade in. Snipers who buy immediately pay massive fees. Real buyers who wait a few minutes pay normal rates.

Here's how the fee curve works:

  • At launch: The pool charges a high fee (5%, 15%, or 50% depending on your preset)
  • Over time: The fee decays exponentially toward the standard 0.25%
  • After the protection window: Normal trading fees apply permanently

The decay is exponential, not linear. This means fees drop quickly after the initial window but stay high enough in the critical first minutes to make sniping unprofitable.

Three Presets to Choose From

SolFoundry offers three protection levels. Each one is designed for a different launch scenario:

Anti-sniper presets — Light, Standard, and Aggressive — with fee decay timeline

PresetStarting FeeFinal FeeDurationBest For
Light5%0.25%15 minLow-profile launches, small communities
Standard15%0.25%30 minMost launches (recommended)
Aggressive50%0.25%60 minHigh-visibility launches, large communities

Light (5% over 15 minutes)

A gentle deterrent. Snipers still lose money, but the fee isn't punishing enough to stop the most aggressive bots. Best for tokens launching to a small, trusted community where sniping isn't a major concern.

Standard (15% over 30 minutes)

The recommended setting for most launches. A 15% starting fee makes sniping mathematically unprofitable — the bot would need the price to increase 18% just to break even. By the time real buyers arrive after a few minutes, fees are already dropping toward normal levels.

Aggressive (50% over 60 minutes)

Maximum protection. A bot buying at launch loses half its investment immediately to fees. This is designed for high-profile launches where significant sniper activity is expected. The tradeoff is that even real buyers pay elevated fees if they buy in the first 10-15 minutes.

Where Do the Sniper Fees Go?

This is the best part: sniper fees go directly to your locked liquidity.

When a bot pays a 15% fee on a large buy, that fee doesn't disappear. It gets deposited into the liquidity pool and accrues to the creator's locked position. You can claim these fees anytime from your SolFoundry dashboard.

In other words, snipers are literally funding the token creator. The worse the sniping attempt, the more fees the creator earns.

How to Enable Anti-Sniper Protection

Anti-sniper protection is configured when you create your liquidity pool on SolFoundry's Liquidity Lock page. Here's the process:

SolFoundry Liquidity Lock — select your token and configure the pool

  1. Go to Liquidity Lock — paste your token mint or select from "Your Tokens"
  2. Set your pool parameters — choose how much SOL and tokens to deposit
  3. Toggle on Anti-Sniper Protection — the option appears below the pool settings
  4. Choose a preset — Light, Standard, or Aggressive
  5. Create Pool + Lock Liquidity — one transaction does everything

The entire setup happens in a single atomic transaction. Anti-sniper protection is activated the moment the pool goes live — there's no gap where bots can sneak in.

Full anti-sniper configuration — presets, fee decay timeline, and cost breakdown

Cost: Free. Anti-sniper protection has zero platform fees. The only cost is the standard Solana network rent for creating the pool.

Real Math: Why Sniping Doesn't Work

Let's run the numbers for a sniper bot attacking a pool with Standard protection (15% starting fee):

Without anti-sniper:

  • Bot buys 10 SOL of tokens at 0.25% fee = 0.025 SOL in fees
  • Price increases 50% from organic buying
  • Bot sells for 15 SOL at 0.25% fee = 0.0375 SOL in fees
  • Bot profit: ~4.94 SOL

With anti-sniper (Standard):

  • Bot buys 10 SOL of tokens at 15% fee = 1.50 SOL in fees (only 8.50 SOL worth of tokens)
  • Price increases 50% from organic buying
  • Bot sells for 12.75 SOL at ~8% fee (partially decayed) = 1.02 SOL in fees
  • Bot profit: ~1.23 SOL (vs 4.94 without protection)

And with Aggressive protection (50%), that same trade becomes a net loss for the bot. The math simply doesn't work.

Anti-Sniper vs Other Protection Methods

There are other approaches to preventing sniping. Here's how they compare:

MethodHow It WorksDrawbacks
Whitelist/PresaleOnly approved wallets can buy earlyCentralized, excludes real buyers
Max wallet limitsCap how much one wallet can holdBots use multiple wallets
Buy cooldownsDelay between buysHurts real buyers, bots adapt
Fee decay (SolFoundry)High fees that decay over timeNone — transparent, on-chain

Fee decay is the only method that's fully transparent, permissionless, and doesn't restrict legitimate buyers. Anyone can buy at any time — they just pay a higher fee if they buy too early.

Tips for Choosing Your Preset

  • Launching to a small community? Use Light. Your buyers know when the pool goes live and can wait a few minutes.
  • Public launch with social media promotion? Use Standard. It balances protection with a reasonable fee window.
  • Expecting heavy sniper activity? Use Aggressive. Accept that early buyers pay higher fees — it's worth the protection.
  • Not sure? Start with Standard. It's the right choice for 90% of launches.

FAQ

Does anti-sniper protection cost extra? No. It's completely free on SolFoundry. There's no additional platform fee for enabling it.

Can I change the preset after the pool is created? No. The fee schedule is set at pool creation and cannot be modified afterward. This is by design — it ensures the rules are transparent and unchangeable.

Does it stop ALL bots? It makes sniping unprofitable, which stops most bots. A bot could still buy at a loss, but there's no economic incentive to do so.

Will my real buyers be affected? If they buy in the first few minutes, they'll pay higher fees. Communicate to your community that waiting 5-10 minutes after launch gets them better rates. With Standard protection, fees drop below 5% within the first 10 minutes.

Do I need to lock liquidity to use anti-sniper? Yes. Anti-sniper protection is configured as part of the Meteora pool creation on SolFoundry's Liquidity Lock page. The liquidity is permanently locked in the same transaction.

Can I use anti-sniper with any token? Yes. It works with any SPL or Token-2022 token on Solana, whether launched on SolFoundry or another platform.


Ready to launch with sniper protection? Head to solfoundry.io and enable anti-sniper protection when you lock your liquidity — it's free.

Ready to launch your token?

Create, configure, and launch on Solana in minutes.

Launch App