Launchpad hook on Robinhood Chain
Uniswap v4 Hook Contract 0xbb67a74e741959364c423a9d50dbf7a6bd556fdc on Robinhood Chain · Launchpad
- Volume (24h)
- $1.24K
- Value locked (TVL)
- $0
- All-time volume
- $1.24K
- Pools using this hook
- 1
- Swaps (24h)
- 13 (1 traders)
- Total swaps
- 13
What it does
This launchpad-style hook charges a tax on some swaps that is taken into the hook and accrued for a treasury, and the exact trades affected and tax rate could not be determined from decoded bytecode.
How it works step by step
- Hook carries before and after callbacks for initialize, liquidity add and remove, swap and donate, and uses before-swap and after-swap return deltas, so it can take a cut of swap amounts.
- Exposes a tax accounting model: totalTax, taxedSwaps and withdrawable treasuryAccrued and treasuryWithdrawn counters, indicating a tax is levied on some swaps and accrued for a treasury.
- Includes a self-unlock flow: unlockCallback is an external entry point and the bytecode calls unlock on the pool manager, so the hook re-enters the manager to settle balances.
- Moves currency through take calls on the manager during callbacks, which is how accrued tax is pulled out of pool accounting.
- Has a settlement state flag (settlementActive) and an IDO-style launch surface (editIDO, launchHook, initialSqrtPriceX96, currentLimit), suggesting a token launch that gates trading around a sale phase.
- Exposes withdrawTax, which lets the treasury address move accrued tax out of the hook.
- Swap behaviour
- beforeSwap and afterSwap run on every swap and both return deltas, so the hook can alter the amounts exchanged. Based on the taxedSwaps and totalTax counters, some swaps are taxed and the tax is taken from the swap currency into the hook and recorded as treasury accrual. Which direction or trade size is taxed could not be determined from decoded bytecode.
- Liquidity behaviour
- beforeAddLiquidity, afterAddLiquidity, beforeRemoveLiquidity and afterRemoveLiquidity are all enabled, so the hook observes and may gate liquidity changes. The exact gating conditions could not be determined from decoded bytecode.
- Fee behaviour
- Swaps carry a hook-level tax tracked in totalTax, taken via return deltas and accrued to a treasury; this is in addition to any pool fee. The tax rate and which trades it applies to could not be determined from decoded bytecode.
- Owner & admin controls
- A treasury address is exposed and withdrawTax moves accrued tax to it; a manager reference is present. Owner or access-control checks and whether the treasury can be changed could not be confirmed from decoded bytecode. The editIDO and settlement functions suggest privileged launch parameter changes.
Enabled Uniswap v4 callbacks
beforeInitialize, beforeAddLiquidity, afterAddLiquidity, beforeRemoveLiquidity, afterRemoveLiquidity, beforeSwap, afterSwap, afterDonate, beforeSwapReturnDelta, afterSwapReturnDelta
beforeInitialize: validates or sets up the pool at creation. beforeAddLiquidity and beforeRemoveLiquidity: gate or inspect liquidity changes. afterAddLiquidity and afterRemoveLiquidity: post-liquidity accounting. beforeSwap and afterSwap with return deltas: apply the tax by altering swap amounts. afterDonate: observes donations. beforeSwapReturnDelta and afterSwapReturnDelta: allow the hook to take currency from swaps.
Security & trust assessment
Risk level: high, estimated (decoded bytecode, low confidence).
Who controls it: A treasury or admin key could withdraw all accrued tax, adjust launch and settlement state, and possibly change tax parameters, affecting traders who pay the hook tax.
Risk to user funds: The hook holds accrued tax and moves currency during swaps and liquidity callbacks via return deltas and take; user trades are subject to the hook tax and settlement gating could block trading.
Security findings
- [high] Swap return deltas take currency: The hook enables beforeSwapReturnDelta and afterSwapReturnDelta and takes tokens through take calls, so it can extract value from every swap it is called on.
- [medium] Treasury can withdraw accrued tax: withdrawTax and the treasuryAccrued and treasuryWithdrawn counters show tax is moved to a treasury address; if that address is controlled by one key, accrued fees can be withdrawn at will.
- [medium] Privileged launch and settlement controls: editIDO, settlementActive and launchHook selectors suggest an operator can change launch parameters and toggle settlement state, which could affect trading availability.
- [info] Self-unlock re-entry surface: unlockCallback is externally callable and the hook calls unlock on the manager; callers and the authorization check on unlockCallback could not be verified from bytecode.
Contract details
- Verified source
- No
- Bytecode size
- 10,090 bytes
- Upgradeable proxy
- No
- Detected patterns
- launchpad, moves-currency, return-delta, self-unlock, tax
Pools using Launchpad hook
- ETH / TEST (0.00% fee) — 24h volume $1.24K, TVL $0, 13 swaps today