Launchpad hook on Ink
Uniswap v4 Hook Contract 0x4cc8f6d5b7ce150ccc0a9b7664532b1283b96ac4 on Ink · Rewards
- Volume (24h)
- $0
- Value locked (TVL)
- $37.94K
- All-time volume
- $1.41M
- Pools using this hook
- 10
- Swaps (24h)
- 0 (0 traders)
- Total swaps
- 7,152
What it does
A Uniswap v4 hook that routes swaps and liquidity events through market and limit-order modules, with fee accumulation and an upgradeable, pausable proxy design.
How it works step by step
- Proxies calls to an upgradeable implementation at 0x1db122e10b5dbdf4da90dba6c77bdcd5da3f99f5
- Hooks beforeSwap and afterSwap to run custom logic around each swap
- Uses afterSwapReturnDelta to take or return tokens as part of swap settlement
- Exposes buy and sell functions for market and settlement flows
- Stores a limit-order settlement address and accumulates fees withdrawable by an authorized caller
- Can be paused via paused/ContractPaused checks
- Swap behaviour
- beforeSwap and afterSwap run on every swap; afterSwapReturnDelta lets the hook adjust token amounts, and buy/sell entry points route orders through market or settlement modules.
- Liquidity behaviour
- beforeAddLiquidity and beforeRemoveLiquidity are enabled, so the hook can inspect or restrict liquidity changes; the exact logic cannot be determined from the decoded bytecode.
- Fee behaviour
- Hook accumulates fees in storage (withdrawFees exists) and takes a share via afterSwapReturnDelta; exact fee rate cannot be determined without source.
- Owner & admin controls
- Proxy admin can upgrade the implementation via upgradeToAndCall (ERC1967 UUPS-style). setLimitOrderSettlement sets the limit-order settlement address, reachable by an access-controlled caller. withdrawFees lets an authorized party withdraw accumulated fees. A pausable mechanism exists (paused/ContractPaused selectors present), suggesting an owner can pause swaps. Exact owner identity cannot be determined from bytecode alone.
Enabled Uniswap v4 callbacks
beforeInitialize, beforeAddLiquidity, beforeRemoveLiquidity, beforeSwap, afterSwap, afterSwapReturnDelta
beforeInitialize: pool setup checks. beforeAddLiquidity and beforeRemoveLiquidity: gate or inspect liquidity changes. beforeSwap: pre-swap checks, possibly routing to market or limit-order modules. afterSwap and afterSwapReturnDelta: post-swap accounting and a return delta that lets the hook take or give tokens from the swap.
Security & trust assessment
Risk level: high, estimated (decoded bytecode, low confidence).
Who controls it: An upgrade-capable admin key could replace the implementation with arbitrary logic, change settlement routing, pause trading, or withdraw accumulated fees, potentially affecting all users of the pool.
Risk to user funds: The hook sits in the swap path with afterSwapReturnDelta enabled and holds accumulated fees, so it can take or divert tokens from swaps, and an upgraded or paused implementation could block or redirect user funds.
Security findings
- [high] Upgradeable proxy: The hook is a proxy whose implementation can be replaced through upgradeToAndCall, so its behaviour is controlled by whoever holds upgrade rights.
- [medium] Return-delta token capture: afterSwapReturnDelta lets the hook take or return tokens during swaps, so it can alter the amounts users receive.
- [medium] Pausable trading: Pausable selectors indicate an owner could halt swaps and possibly settlement flows.
- [info] Unverified source: Source is unverified; the implementation's logic and access controls could not be confirmed from decoded bytecode.
Contract details
- Verified source
- No
- Bytecode size
- 130 bytes
- Upgradeable proxy
- Yes
- Detected patterns
- launchpad, limit-orders, pausable, return-delta, upgradeable
Pools using Launchpad hook
- ETH / LEWTCAT (0.10% fee) — 24h volume $0, TVL $5.02K, 0 swaps today
- ETH / MIM (0.10% fee) — 24h volume $0, TVL $6.53K, 0 swaps today
- ETH / KRAKENITES (0.10% fee) — 24h volume $0, TVL $3.87K, 0 swaps today
- ETH / GMINK (0.10% fee) — 24h volume $0, TVL $3.26K, 0 swaps today
- ETH / KRAK (0.10% fee) — 24h volume $0, TVL $5.70K, 0 swaps today
- ETH / 57073 (0.10% fee) — 24h volume $0, TVL $1.24K, 0 swaps today
- ETH / XDG (0.10% fee) — 24h volume $0, TVL $3.35K, 0 swaps today
- ETH / MTGOX (0.10% fee) — 24h volume $0, TVL $2.90K, 0 swaps today
- ETH / MIM (0.10% fee) — 24h volume $0, TVL $3.28K, 0 swaps today
- ETH / PAYWARD (0.10% fee) — 24h volume $0, TVL $2.78K, 0 swaps today