HajLaunchHook
BaseHajLaunchHook is a Uniswap v4 hook on Base. Brand new: its first pool went live today. Busy: 2,371 trades in the last week, and 1 new pool this week.
- Contract name
- HajLaunchHook
How this hook works
Smart feesA smart fees hook. It changes its fee over time, controls who adds liquidity and only lets approved callers create pools.
Fee changes over time
Instead of a fixed fee, it sets the fee itself and changes it over time, for example starting high at launch and coming down. The fee goes to liquidity providers; the hook keeps nothing for itself.
The code that does this (beforeSwap):function beforeSwap(address, PoolKey calldata, SwapParams calldata, bytes calldata) external view onlyPoolManager returns (bytes4, BeforeSwapDelta, uint24) { uint64 started = startedAt; if (started == 0) revert NotLive(); uint24 fee = feeAt(block.timestamp - started); return (IHooks.beforeSwap.selector, BeforeSwapDeltaLibrary.ZERO_DELTA, fee | LPFeeLibrary.OVERRIDE_FEE_FLAG); }Rules for adding liquidity
It decides who can add liquidity, or when.
The code that does this (beforeAddLiquidity):function beforeAddLiquidity(address, PoolKey calldata, ModifyLiquidityParams calldata, bytes calldata) external onlyPoolManager returns (bytes4) { uint64 started = startedAt; if (started == 0) { if (tx.origin != founder) revert NotLive(); startedAt = uint64(block.timestamp); emit Live(uint64(block.timestamp)); } else if (block.timestamp < started + DURATION && tx.origin != founder) { revert LaunchWindow(); } return IHooks.beforeAddLiquidity.selector; }Only approved callers create pools
New pools with this hook can only be created by approved callers, for example its own factory or launcher.
The code that does this (beforeInitialize):function beforeInitialize(address sender, PoolKey calldata key, uint160) external view onlyPoolManager returns (bytes4) { if (sender != founder) revert NotFounder(); if (!_isOurPool(key)) revert WrongPool(); return IHooks.beforeInitialize.selector; }No trading before the start
Trades are refused until trading has been opened.
The code that does this (beforeSwap):function beforeSwap(address, PoolKey calldata, SwapParams calldata, bytes calldata) external view onlyPoolManager returns (bytes4, BeforeSwapDelta, uint24) { uint64 started = startedAt; if (started == 0) revert NotLive(); uint24 fee = feeAt(block.timestamp - started); return (IHooks.beforeSwap.selector, BeforeSwapDeltaLibrary.ZERO_DELTA, fee | LPFeeLibrary.OVERRIDE_FEE_FLAG); }
Who controls it: Nobody. The hook has no admin functions, and the code cannot be changed.
Based on the hook’s published code.What do these labels mean?
Safety report
Before you build on it. Automated checks, not an auditWhat it can do
Its code executes inside each trade in pools that use it.
Pools using it let the hook choose the swap fee instead of a fixed tier.
It checks every deposit before it goes in.
It runs when a pool is created, often to lock in that pool’s settings.
Hook history
- Live 1 time
Counted from what the hook recorded on-chain across all its pools, for every action in its published code, plus token transfers in and out of it.