Skip to main content
For the first few seconds after a launch, buys pay an extra snipe tax on top of the hook fee, and it drops to zero over that time. It’s there to discourage bots from buying in the opening seconds, and it uses the same decay as v2’s bonding curves. Three seconds is roughly thirty blocks on this chain, so the window lasts well beyond the launch block.
The decay
Sells are never taxed. The creator’s opening buy doesn’t pay it either. That buy runs with the hook as the caller, and Uniswap v4 doesn’t run the swap callbacks for it, so it isn’t taxed and doesn’t end the window.
To quote a buy during the window, read currentSnipeTaxBps(poolId, zeroForOne) from the hook and include it. Otherwise your quote will be higher than what the trade actually returns. The value it returns is before the clamp, and the clamp only applies to the snipe tax: the tax charged is the lower of that value and 10000 - hookFeeBps - creatorTaxBps - 100. The total taken from the quote side is that amount plus hookFeeBps plus creatorTaxBps.
The window can’t be started again. Only the factory can call the hook function that starts it, and the factory only does that during a launch, so the tax can’t come back on a pool that’s already trading.