Launchpad hook on HyperEVM
Uniswap v4 Hook Contract 0x314cf21649625c6e7244e015d0970292db9148c4 on HyperEVM · Launchpad
- Volume (24h)
- $17
- Value locked (TVL)
- $17
- All-time volume
- $17
- Pools using this hook
- 1
- Swaps (24h)
- 1 (1 traders)
- Total swaps
- 1
What it does
A launchpad hook that charges a tier-based fee on every swap, held for creator and protocol release, blocks exact-output sells and outside liquidity adds, and tracks graduation progress, while leaving LP withdrawals unrestricted.
How it works step by step
- Runs a launchpad bonding-curve style pool for newly launched tokens, tracking market cap and progress toward a graduation threshold.
- Takes a swap fee through the after-swap callback and accrues it per pool, with a creator share and a later release step.
- Blocks outside liquidity additions to curve pools while the curve liquidity is locked, so only the launch setup can add liquidity.
- Rejects exact-output sells and tallies sell activity per epoch, which can be settled by a public function.
- Lets a designated locker register pools and mark them graduated once the threshold is reached.
- Swap behaviour
- Before each swap the hook checks the pool is registered and rejects exact-output sells. After the swap it takes a fee from the swap amount and records market cap, epoch tallies and pending sells.
- Liquidity behaviour
- Adding liquidity is checked and can revert with a 'curve liquidity locked' error, so only the launch flow can add liquidity. Remove-liquidity callbacks are disabled, so the hook can never block or charge LP withdrawals.
- Fee behaviour
- A per-pool fee rate and creator share, read from configured fee tiers, are deducted from swaps and held for later release to the creator and others. Exact percentages and caps cannot be confirmed from bytecode.
- Owner & admin controls
- A locker or factory address can register pools, choose fee tiers and mark pools graduated, and an unnamed function can add new fee tiers. Fee tier caps are not visible in the bytecode.
Enabled Uniswap v4 callbacks
beforeAddLiquidity, beforeSwap, afterSwap, afterSwapReturnDelta
beforeAddLiquidity: restricts who can add liquidity to curve pools; beforeSwap: validates the pool and blocks exact-output sells; afterSwap: updates market cap and epoch tallies; afterSwapReturnDelta: takes the swap fee from the trade.
Security & trust assessment
Risk level: medium, estimated (decoded bytecode, medium confidence).
Who controls it: A locker/deployer address registers pools, sets fee tiers and controls graduation. It cannot block withdrawals, but fee tier values are unverified.
Risk to user funds: The hook can deduct a fee from swap amounts at a rate set by configured tiers whose maximum is unknown. LP principal cannot be locked or drained through withdrawals.
Security findings
- [low] Swap fee taken via return delta: The hook deducts a per-pool fee from swaps and holds it for later release; the exact fee range cannot be verified from unverified bytecode.
- [info] Liquidity additions gated: Curve pools reject outside liquidity additions while locked, which is typical for launchpads.
- [info] LP withdrawals unrestricted: Remove-liquidity callbacks are disabled, so the hook cannot block or tax withdrawals.
Contract details
- Verified source
- No
- Bytecode size
- 11,571 bytes
- Upgradeable proxy
- No
- Detected patterns
- launchpad, moves-currency, return-delta
Pools using Launchpad hook
- HYPE / TEST (Dynamic fee) — 24h volume $17, TVL $17, 1 swaps today