Launchpad hook on Ethereum
Uniswap v4 Hook Contract 0x5d8e8e94e7512cadc2e8663aaca006e37d7680cc on Ethereum · Launchpad
- Volume (24h)
- $17.15K
- Value locked (TVL)
- $0
- All-time volume
- $17.15K
- Pools using this hook
- 1
- Swaps (24h)
- 197 (44 traders)
- Total swaps
- 197
What it does
This launchpad-style hook takes a fee or burn from swaps through its return-delta callbacks, but the exact trades that pay more or less cannot be determined from decoded bytecode alone.
How it works step by step
- Exposes a large set of launch and pool setup selectors (create, launch, register, setup, initialize, open, start) that take a currency pair, fee, tick spacing and sqrtPriceX96 start price.
- Has beforeSwap and afterSwap callbacks that read and update storage slots and can return a delta, so the hook can take or give currency during swaps.
- Includes liquidity-related selectors (add, supply, deposit, mint, stake, claim, fund, seed) and ERC6909 claim-style accounting, indicating tokens are held and tracked by the hook.
- Includes reward and upkeep selectors (claim, performUpkeep, totalBurned, MAX_BURN_FEE_BPS), suggesting a burn or reward mechanism funded from pool activity.
- Uses a self-unlock pattern through unlock and unlockCallback to move currency through the pool manager.
- Contains an exempt mapping and a withdrawToken function, indicating privileged address handling and an ability to move tokens out of the hook.
- Swap behaviour
- beforeSwap and afterSwap are both enabled and both can return deltas, so the hook can adjust the currency amounts of a swap; the exact fee or burn direction cannot be determined from decoded bytecode alone.
- Liquidity behaviour
- Liquidity-related selectors exist (add, supply, deposit, mint, stake, seed, fund) but beforeAddLiquidity and afterAddLiquidity are not among the enabled hook permissions, so liquidity changes are handled through the hook's own functions rather than pool callbacks.
- Fee behaviour
- A burn fee cap (MAX_BURN_FEE_BPS) and totalBurned counter suggest a burn-based fee taken on swaps through return deltas; the exact fee rate and who sets it cannot be confirmed without source.
- Owner & admin controls
- Possible privileged functions include withdrawToken, exempt-style mappings, a boolean owner-like storage flag, and performUpkeep. Owner identity and any pause or upgrade mechanism cannot be determined from decoded bytecode.
Enabled Uniswap v4 callbacks
beforeSwap, afterSwap, beforeSwapReturnDelta, afterSwapReturnDelta
beforeSwap: gates or adjusts swaps before execution. afterSwap: updates accounting and can apply post-swap deltas. beforeSwapReturnDelta: lets the hook take or give currency during swaps. afterSwapReturnDelta: lets the hook settle an additional amount after swaps.
Security & trust assessment
Risk level: high, estimated (decoded bytecode, low confidence).
Who controls it: A privileged key may be able to withdraw hook-held tokens, change the exempt list, trigger upkeep and adjust launch parameters; the exact powers cannot be confirmed without source.
Risk to user funds: The hook holds balances and moves currency through the pool manager and return deltas, so user funds in swaps and claims pass through hook-controlled logic.
Security findings
- [high] Hook takes currency through return deltas: beforeSwapReturnDelta and afterSwapReturnDelta are enabled, so the hook can alter the amounts users receive or pay on each swap.
- [medium] Token withdrawal function present: withdrawToken(address,address,uint256) is dispatched, which can move hook-held tokens if access control is weak or absent.
- [medium] Swap gating in beforeSwap: beforeSwap is enabled and can revert or restrict swaps, and an exempt mapping suggests selective blocking of addresses.
- [medium] Unverified source: No verified source is available, so the admin model, upgradeability and access checks cannot be confirmed.
Contract details
- Verified source
- No
- Bytecode size
- 21,811 bytes
- Upgradeable proxy
- No
- Detected patterns
- erc20, erc6909-claims, launchpad, moves-currency, return-delta, rewards, self-unlock
Pools using Launchpad hook
- AGG / WETH (1.00% fee) — 24h volume $17.15K, TVL $0, 197 swaps today