Launchpad hook on Ethereum

Uniswap v4 Hook Contract 0x3780fd52f84be01516052731b5236525a6b260cc on Ethereum · Launchpad

Volume (24h)
$2.34
Value locked (TVL)
$2.35
All-time volume
$2.34
Pools using this hook
1
Swaps (24h)
1 (1 traders)
Total swaps
1

What it does

A launchpad-style hook that manages a token launch on a Uniswap v4 pool, controlling swaps and liquidity during launch and collecting fees for the platform and creator.

How it works step by step

  • Sets up the pool in beforeInitialize and tracks launch state with launchedAt and launched flags.
  • Applies custom logic on beforeSwap and afterSwap, including return-delta accounting for fees.
  • Maintains protected liquidity and an LP token reserve across add and remove liquidity callbacks.
  • Accrues platform and creator credits and fees that are withdrawable via claimPlatform and claimCreator.
  • Uses an unlock callback to settle currency with the pool manager during launch and maintenance.
  • Exposes a checkpoint function that updates internal reserves and maintenance timing.
Swap behaviour
beforeSwap and afterSwap run custom launch logic and use return deltas to adjust amounts and accrue fees on each swap.
Liquidity behaviour
Hook intercepts add and remove liquidity with before/after callbacks and maintains a protected liquidity reserve and an LP token reserve tied to launched state.
Fee behaviour
Hook takes fees via return deltas and accrues unredeemed fees and platform/creator credits (PLATFORM_BPS, claimPlatform, claimCreator); exact fee split and rates cannot be confirmed from bytecode alone.
Owner & admin controls
Owner-style roles appear via stored addresses (deployer, creator, platform); functions claimCreator, claimPlatform, checkpoint, and launch are nonpayable and likely gated, but no source confirms access checks or any pause or upgrade mechanism.

Enabled Uniswap v4 callbacks

beforeInitialize, beforeSwap, afterSwap, beforeSwapReturnDelta, afterSwapReturnDelta

beforeInitialize sets up the pool on creation; beforeSwap and afterSwap run custom logic and adjust balances; beforeSwapReturnDelta and afterSwapReturnDelta let the hook take or adjust swap amounts; liquidity callbacks are dispatched but the hook does not enable liquidity return deltas.

Security & trust assessment

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

Who controls it: Privileged roles (deployer, creator, platform) can claim accrued credits and fees; their exact authority and any parameter changes cannot be verified without source.

Risk to user funds: The hook can hold and move pool funds via return deltas and take calls, and accrued fee and credit balances are withdrawable through claim functions; the actual exposure depends on logic that cannot be fully confirmed from bytecode.

Security findings

  • [info] Return-delta swap accounting: The hook enables beforeSwapReturnDelta and afterSwapReturnDelta, so it can take or redirect tokens during swaps, which is inherent to the custom accounting design.
  • [medium] Hook moves currency via self-unlock: The bytecode uses the unlock and take flow and includes an unlockCallback, meaning the hook moves currency through the pool manager during launch and maintenance.
  • [medium] Unverified privileged claim paths: Claim functions and checkpoint are nonpayable and their access control cannot be verified; unauthorized or misconfigured access would affect accrued fees.
  • [low] No source to confirm admin limits: Without verified source, it is unknown whether fees, launch parameters or liquidity protection can be changed after deployment or whether the contract is upgradeable.

Contract details

Verified source
No
Bytecode size
20,415 bytes
Upgradeable proxy
No
Detected patterns
moves-currency, return-delta, self-unlock

Pools using Launchpad hook