Launchpad hook on Ethereum
Uniswap v4 Hook Contract 0x950abbfd47ed59dd0d540efcebdf150e26c080cc on Ethereum · Launchpad
- Volume (24h)
- $15.04K
- Value locked (TVL)
- $0
- All-time volume
- $15.04K
- Pools using this hook
- 1
- Swaps (24h)
- 142 (37 traders)
- Total swaps
- 142
What it does
This hook runs a launchpad style pool with reward and burn logic, and its swap callbacks can take a share of each trade through return deltas, so traders may pay more than the pool's static fee, though the exact rate and which trade direction is affected cannot be confirmed from the decoded bytecode.
How it works step by step
- Exposes a large set of owner or admin style entry points (launch, create, register, setup, initialize, configure, open, start) that all take a pool key style argument of address, uint24 fee, int24 tickSpacing, address hooks and a uint160 starting price, indicating it deploys or initializes pools for new tokens.
- Implements beforeSwap and afterSwap callbacks that read and write storage slots, including a totalBurned style counter, and return deltas, so it can adjust the amounts taken or given during a swap.
- Enables beforeSwapReturnDelta and afterSwapReturnDelta, meaning the hook can take a share of swap amounts directly and settle it through the pool manager.
- Uses ERC6909 claim style accounting and calls to the pool manager (unlock, settle, take, mint, burn) to hold and distribute currency on behalf of the hook.
- Includes reward and staking style functions (stake, claim, deposit, supply, fund, seed, mint, burn) and an automation hook (performUpkeep) suggesting scheduled or keeper driven actions.
- Contains an unlockCallback and self-unlock pattern so the hook can open pool manager sessions itself to move currency during these operations.
- Swap behaviour
- On every swap the beforeSwap and afterSwap callbacks run, can return a delta that changes the amounts settled, and may route a portion of the swap amount through the hook, so traders can receive or pay a different amount than the plain pool curve would give.
- Liquidity behaviour
- No liquidity callbacks.
- Fee behaviour
- The hook can take a portion of swap amounts through return deltas and appears to track a burn amount in basis points (MAX_BURN_FEE_BPS is exposed), so the effective cost to traders is not limited to the pool's static fee; the exact rate cannot be determined from the decoded bytecode.
- Owner & admin controls
- Storage slots hold owner or role mappings that are written by setup and configuration selectors, and a pause style boolean and an unlock toggle exist; the exact authority model and whether it is upgradeable cannot be determined without source, so admin controls are likely present but unverified.
Enabled Uniswap v4 callbacks
beforeSwap, afterSwap, beforeSwapReturnDelta, afterSwapReturnDelta
beforeSwap and afterSwap are used to run logic around every trade; beforeSwapReturnDelta and afterSwapReturnDelta are used to take or redirect a share of swap amounts; the hook exposes add liquidity and remove liquidity checks that are not enabled in the permission flags.
Security & trust assessment
Risk level: high, estimated (decoded bytecode, low confidence).
Who controls it: A privileged key could potentially adjust configuration, pause or redirect fund flows, and trigger reward or burn actions that affect pool balances; the scope cannot be confirmed without source.
Risk to user funds: The hook can hold tokens and claims, take shares through return deltas during swaps, and move currency through the pool manager, so user and pool funds are exposed to its logic.
Security findings
- [high] Return deltas can take user funds: beforeSwapReturnDelta and afterSwapReturnDelta are enabled, so the hook can alter the amounts users receive on every swap; the size of any taken share is set by logic not visible in the decoded input.
- [medium] Privileged configuration functions: Many externally callable configure, setup, initialize and open style selectors write to owner-like storage slots, so a privileged key may be able to change pool parameters or routing.
- [medium] Currency movement through pool manager: The hook calls settle, take, mint and burn on the pool manager and uses ERC6909 claims, so it holds and moves token balances on behalf of users and itself.
- [info] Upkeep and automation entry points: performUpkeep and relay style selectors accept arbitrary bytes and may trigger state changes or fund movement by any caller depending on access checks not visible here.
Contract details
- Verified source
- No
- Bytecode size
- 21,272 bytes
- Upgradeable proxy
- No
- Detected patterns
- erc20, erc6909-claims, launchpad, moves-currency, return-delta, rewards, self-unlock
Pools using Launchpad hook
- ETH / XFRAMES (1.00% fee) — 24h volume $15.04K, TVL $0, 142 swaps today