Hook on Ethereum
Uniswap v4 Hook Contract 0xd5bd98d3cc0e1b92bd31bb1bb80422b084ae6acc on Ethereum · Launchpad · Verified contract
- Volume (24h)
- $52
- Value locked (TVL)
- $37.26K
- All-time volume
- $336.38K
- Pools using this hook
- 1
- Swaps (24h)
- 1 (1 traders)
- Total swaps
- 534
What it does
Launch hook for a token/WETH pool that closes bootstrap liquidity, blocks LP removals, charges a decaying trading fee routed to a mechanic, and funds buybacks when the price sets new highs.
How it works step by step
- Admits only the designated token/WETH pool and only from the authorized initializer
- Gates bootstrap liquidity additions and closes the gate at trading enablement
- Blocks all liquidity removals after launch
- Charges a time-decaying fee on buys and sells and sends it to the mechanic
- Tracks 5-minute epochs, all-time-high candidates, and drawdown state
- Executes capped internal buybacks that burn tokens when the price is at or above the confirmed high
- Swap behaviour
- Buys and sells pay a time-decaying WETH fee (20% decaying to 5% over 30 minutes) via specified-currency return deltas. After each swap the hook records epoch volume, reference prices, and apex candidates, and may run an internal buyback on eligible exact-input buys.
- Liquidity behaviour
- Only the bootstrap liquidity path can add liquidity, and only while bootstrap is open with positive deltas. After launch, all liquidity removals revert and external additions are rejected by the bootstrap gate.
- Fee behaviour
- Charges a time-decaying WETH fee on every swap: buys and sells start at 20% and decay linearly to a 5% floor over 30 minutes after trading is enabled. Fees are taken to the mechanic via PoolManager.take and recorded, not shared with LPs. The pool's static LP fee is set by the designated pool key.
- Owner & admin controls
- No owner or admin role found in the source; no pause, upgrade, or parameter-setter functions. The authorized initializer and bootstrap liquidity path are fixed at construction. Mechanic and token wiring are immutable.
Enabled Uniswap v4 callbacks
beforeInitialize, beforeAddLiquidity, beforeRemoveLiquidity, beforeSwap, afterSwap, beforeSwapReturnDelta, afterSwapReturnDelta
beforeInitialize restricts pool creation to the authorized initializer and the designated pool key. beforeAddLiquidity gates bootstrap liquidity. beforeRemoveLiquidity blocks all removals. beforeSwap computes the fee as a specified-currency return delta on buys and sells. afterSwap records market state, takes fees to the mechanic, and runs the buyback and apex logic. beforeSwapReturnDelta and afterSwapReturnDelta let the hook take fees through return deltas.
Security & trust assessment
Risk level: medium (verified source, high confidence).
Who controls it: No privileged key is found in the hook. Behaviour is governed by immutable constructor parameters and by the external mechanic and token contracts, whose admin controls are outside this source.
Risk to user funds: The hook holds WETH or tokens only transiently during internal buyback settlement and fee take, which are asserted to net to zero. WETH fees are routed to the external mechanic. Direct transfers to the hook are unrecoverable. Users' swap principal passes through the pool, not custody by the hook.
Security findings
- [info] Liquidity removal permanently blocked: beforeRemoveLiquidity always reverts, so liquidity can never be withdrawn from the designated pool after bootstrap closes.
- [info] Internal buyback mechanism moves pool and hook funds: The hook performs internal WETH-to-token swaps, burns the received tokens, and settles WETH through the mechanic. Execution is bounded by a price limit and self-call gas caps, with balance and delta invariants asserted afterward.
- [low] Dependence on external token and mechanic: Holder accounting, when enabled, depends on an external token contract that must report this hook as its context controller. Correctness of holder payouts therefore relies on that external token and mechanic.
Contract details
- Verified source
- Yes (Hook)
- Compiler
- solc 0.8.26+commit.8a97fa7a
- Bytecode size
- 23,717 bytes
- Upgradeable proxy
- No
- Detected patterns
- launchpad, moves-currency, return-delta
Pools using Hook
- WETH / CIL (0.00% fee) — 24h volume $52, TVL $37.26K, 1 swaps today