TokenLaunchHook Studiov0.1.0

Fair-launch on Uniswap v4 — in one transaction.

TokenLaunchHook enforces anti-snipe, dynamic buy/sell tax, conditional liquidity lock, and an optional whitelist — without touching your ERC-20. This studio launches a campaign and shows you exactly which hook callback enforces each rule. It is a live demo of the hook.

What the hook does

Anti-snipe window_beforeSwapM1 AntiSnipe

During the window, caps the per-transaction buy size to maxBuyAmountIn and blocks exact-out buys. Sells are never restricted.

Buy / sell tax_beforeSwapM2 BuySellTax

Returns a dynamic LP fee per swap, computed from the linear tax decay (asymmetric buy vs sell). Requires the pool's dynamic-fee flag.

Liquidity lock_afterSwap_beforeRemoveLiquidityM3 LiquidityLock

_afterSwap accumulates pair-side volume; _beforeRemoveLiquidity blocks the governance NFT from exiting until the time/volume unlock conditions (AND/OR) are met.

Whitelist phase_beforeSwap_beforeAddLiquidityM5 WhitelistPhase

Until whitelistEndTime, rejects swaps and liquidity adds from non-whitelisted addresses. Removing liquidity is always allowed.