Skip to main content

Overview

Token Layer implements anti-sniping protection to ensure fair token launches and prevent malicious actors from exploiting new tokens in the first moments of trading.

How It Works

Time-Based Fee Structure

When a new token is launched, the first 6 seconds of trading (calculated in blocks for each chain) has increased fees:
1

Initial Fee: 80%

At the moment of launch (block 0), the trading fee starts at 80%
2

Linear Decrease

The fee decreases linearly over each block for 6 seconds worth of blocks
3

Final Fee: 1%

At the 6-second mark, the fee reaches 1%
4

Normal Trading

After 6 seconds, normal protocol fees apply

Fee Calculation Example

Here’s how the fees decrease over time for a typical chain:
TimeBlocksFee Percentage
0s080%
1s~0.5~66%
2s~1~53%
3s~1.5~40%
4s~2~26%
5s~2.5~13%
6s31%
6s+3+Normal fees
Block times vary by chain. The 6-second window is converted to the equivalent number of blocks for each specific blockchain.

Who This Affects

All Initial Buyers

The anti-sniping fees apply to everyone buying in the first 6 seconds:
  • First buyer: Pays high fees if buying immediately
  • Early buyers: Pay progressively lower fees as time passes
  • Bots and snipers: Discouraged from instant exploitation
  • Regular traders: Can wait 6 seconds for normal fees

Not Affected By

The anti-sniping protection does NOT affect:
  • Token creators: No fees on token creation
  • Sellers: Only affects buy transactions
  • Later buyers: After 6 seconds, normal fees apply
  • Graduated tokens: After DEX migration, uses standard DEX fees

Why This Matters

Fair Launch

Ensures everyone has an equal opportunity to participate without bots dominating

Prevents Exploitation

Discourages snipers from extracting value immediately after launch

Protects Creators

Gives token creators time for their community to discover the token

Better Price Discovery

Allows organic price formation without immediate manipulation

Trading Strategy

Best Practices

Wait 6 Seconds: For the best value, wait at least 6 seconds after launch to buy at normal fees.
Avoid Immediate Buys: Buying in the first few seconds means paying significantly higher fees with limited benefit.

When to Buy Early

Despite high fees, some traders buy immediately because:
  • Strong conviction in the token’s potential
  • Willing to pay premium for earliest position
  • Expecting significant price appreciation
  • Supporting a specific creator or project

When to Wait

Most traders benefit from waiting because:
  • 6 seconds is minimal delay for massive fee savings
  • Price won’t move significantly in 6 seconds on bonding curve
  • Lower entry price improves potential returns
  • Reduces risk of paying excessive fees

API Integration

The anti-sniping fees are automatically included in all API responses:

Price Quotes

When you get a price quote, the returned amounts already include anti-sniping fees if applicable:

Token Price API

Get quotes with fees automatically included

Trading Transactions

All trading endpoints factor in anti-sniping fees:

Trade Tokens

Buy/sell with automatic fee calculation

Pool Data

Check token status and timing information:

Get Pool Data

View token pool information and launch details

Technical Details

Block-Based Calculation

The system uses blocks (not wall-clock time) to ensure consistency:
  1. Launch Block: Token creation block is recorded
  2. Current Block: Each transaction checks the current block number
  3. Block Difference: Calculates blocks elapsed since launch
  4. Fee Lookup: Maps block difference to fee percentage
  5. Linear Interpolation: Smooth fee decrease between blocks

Chain-Specific Implementation

Different chains have different block times:
ChainAvg Block TimeBlocks in 6s
Ethereum~12s~0.5
Base~2s~3
BNB Chain~3s~2
Arbitrum~0.25s~24
Solana~0.4s~15
The smart contract automatically adjusts for each chain’s block time.

Quoter Integration

The Token Layer Quoter contract:
  • Reads current block number
  • Calculates blocks since token launch
  • Applies appropriate anti-sniping fee if within window
  • Returns accurate quote including all fees
  • No surprises at execution time

Comparison with Normal Fees

Normal Trading Fees (After 6 Seconds)

When anti-sniping period ends, normal fees apply:
  • Protocol Fee: ~0.3% to 1% depending on liquidity
  • Creator Fee: Set by token creator (typically 0.2% - 2%)
  • Gas Fees: Standard network costs

During Anti-Sniping Window

The increased fees replace normal fees temporarily:
  • Anti-Sniping Fee: 80% to 1% (decreasing)
  • Creator Fee: Still applies on top
  • Gas Fees: Standard network costs
After the 6-second window, the anti-sniping fee drops to 0% and normal protocol fees resume.

Frequently Asked Questions

Yes! Simply wait 6 seconds after token launch before buying. The fees automatically drop to normal levels.
No, anti-sniping fees only apply to buy transactions during the first 6 seconds.
The fee will be approximately 1%, which is the minimum of the anti-sniping period before transitioning to normal fees.
No, once a token graduates to external DEXes (Uniswap, PancakeSwap, etc.), it uses standard DEX fees instead.
Check the token’s launch time. If it launched less than 6 seconds ago, anti-sniping fees are active.
No, the fees are enforced at the smart contract level and apply to all transactions equally, including bots.

How to Launch Tokens

Create your own token

How to Trade

Buy and sell tokens

Launchpad Overview

Learn about the launchpad

Need Help?

Click the chat icon in the bottom right corner for support with anti-sniping protection or trading questions.