Launchpad hook on Ethereum

Uniswap v4 Hook Contract 0x7d7f6913c04e33ff1dbcc4cf0ff537bff601e0cc on Ethereum · Launchpad

Volume (24h)
$43.39K
Value locked (TVL)
$3.85K
All-time volume
$43.39K
Pools using this hook
1
Swaps (24h)
322 (140 traders)
Total swaps
322

What it does

A token launch hook that applies time-limited buy and sell fees and per-buyer buy caps during an opening protection window, then routes accrued fees to platform and creator recipients.

How it works step by step

  • Records the pool start time at initialization to define a protection window
  • Caps buy amounts per buyer during launch protection (maxBuyAmount, boughtDuringProtection)
  • Charges buy, sell and opening fees through swap return deltas
  • Accrues platform and creator fees and tracks them as ERC-6909 claims
  • Counts buys and exposes window and status views for frontends
Swap behaviour
beforeSwap enforces launch protection limits and afterSwap records buys and fees, with return-delta fee adjustments applied to swaps.
Liquidity behaviour
Liquidity add, remove and donate callbacks are exposed as views only; no liquidity mutation is performed by the hook logic beyond fee accounting.
Fee behaviour
Applies buy and sell fees (BUY_FEE_BPS, SELL_FEE_BPS, opening fee) via beforeSwapReturnDelta and afterSwapReturnDelta, with platform and creator fee accruals (platformAccrued, creatorAccrued, platformFeesPending) and a quoteFees helper; LP_FEE is a constant.
Owner & admin controls
No owner or pause function was decoded, but a dev wallet, treasury and fee-vault addresses are immutable-looking constants; parameters such as buy/sell fee bps and protection window appear fixed in bytecode. Upgrade or admin paths could not be confirmed from bytecode alone.

Enabled Uniswap v4 callbacks

beforeInitialize, beforeSwap, afterSwap, beforeSwapReturnDelta, afterSwapReturnDelta

beforeInitialize records the pool start time (storage slot 1); beforeSwap enforces launch protection and per-buyer limits such as maxBuyAmount and boughtDuringProtection; afterSwap records buys, counts them and updates fee accruals; beforeSwapReturnDelta and afterSwapReturnDelta let the hook take a fee cut from swap deltas, and ERC-6909 claims are used to hold fee balances.

Security & trust assessment

Risk level: medium (decoded bytecode, medium confidence).

Who controls it: Immutable recipients (dev wallet, treasury, fee vault) receive protocol and creator fees; a configuration of protection and fee constants was set at deployment and cannot be seen changing from bytecode.

Risk to user funds: The hook can take a fee from swaps and holds accrued platform and creator fees as claims; it does not appear to hold arbitrary user principal, but it can restrict buys during the protection window.

Security findings

  • [medium] Swap return delta takes tokens from trades: Return-delta permissions let the hook take a portion of every swap, so swap output is reduced by the hook's fee logic.
  • [low] Launch protection can block large buys: maxBuyAmount and protection window limit buys during the launch period; during protection some buyers can be blocked from buying more than the cap.
  • [info] Fee accrual via ERC-6909 claims: Fees are accrued to platform and creator balances tracked as ERC-6909 claims, which are redeemable against the pool manager.
  • [info] No pause control found: No pause or admin setter was found among decoded selectors, so no emergency stop is evident.

Contract details

Verified source
No
Bytecode size
12,014 bytes
Upgradeable proxy
No
Detected patterns
erc6909-claims, return-delta

Pools using Launchpad hook