Anti-snipe
A built-in buy limit on the first blocks keeps bots from cornering a launch before real buyers can act.
The problem
On most launchpads, automated bots watch the mempool and snap up huge chunks of supply in the very first block, then sell into the hype. That leaves ordinary buyers paying inflated prices.
The protection
For the first antiSnipeBlocks blocks after a token is created, no single buy can exceed antiSnipeMaxBps of the bonding supply. Any transaction that would receive more than the cap reverts with AntiSnipeLimit.
buy (anti-snipe window)
if (block.number <= info.createdBlock + antiSnipeBlocks) {
uint256 maxBuy = (BONDING_SUPPLY * antiSnipeMaxBps) / BPS;
if (tokensOut > maxBuy) revert AntiSnipeLimit();
}Default settings
| Parameter | Value |
|---|---|
| antiSnipeBlocks | 10 blocks |
| antiSnipeMaxBpsmax 16M tokens per buy | 200 = 2% |
Fair by default
With a 2% cap during the first 10 blocks, it takes many separate buyers to absorb the early supply — exactly the distribution a fair launch wants. After the window passes, normal trading resumes.