Launchpad hook on Robinhood Chain
Uniswap v4 Hook Contract 0x3e9ae74eeb8f5464c406dbe3505f4a6b894f68cc on Robinhood Chain · Launchpad
- Volume (24h)
- $0
- Value locked (TVL)
- $0
- All-time volume
- $0
- Pools using this hook
- 1
- Swaps (24h)
- 3 (1 traders)
- Total swaps
- 3
What it does
This launch hook takes a decaying dynamic fee and a protocol and bounty share from swaps in the pool, so traders pay more during the early decay period, and it uses the collected fees to buy back and burn tokens.
How it works step by step
- Registers a token launch pool via register(), storing a PoolKey and a rules struct (fee parameters, buyback and bounty settings) keyed by pool id
- Implements a start-fee decaying dynamic fee, with feeNow and per-pool stats tracked in mappings
- Takes a share of swap fees via return deltas in beforeSwap and afterSwap and accrues protocol and bounty balances
- Runs a buybackAndBurn routine that uses the pool's accrued funds to buy back tokens within configured impact and interval caps, with a bounty paid to the caller
- Accrues protocol fees in protocolAccrued and lets them be flushed to a vault, which can be locked, and lets claimants withdraw claimable balances
- Uses unlockCallback and a self-unlock pattern with the pool manager to move funds during buybacks and flushes
- Swap behaviour
- beforeSwap and afterSwap run custom logic that applies a decaying fee and takes a protocol and bounty share of the swap via return deltas, so the trader pays the hook fee on top of the pool fee. Exact per-direction effects cannot be fully determined from decoded bytecode.
- Liquidity behaviour
- beforeAddLiquidity gates liquidity additions for launch pools, and afterRemoveLiquidity and beforeRemoveLiquidity are present as decoded selectors; the precise gating conditions cannot be fully determined from bytecode.
- Fee behaviour
- Uses a dynamic start-fee that decays toward an LP fee using rule parameters (MAX_START_FEE_BPS, MAX_DECAY, MAX_FEE_BPS), with protocolBps and bountyBps taken from swaps and accrued to protocol and bounty balances.
- Owner & admin controls
- Owner (transferOwnership) can set the launchpad, vault, protocol bps and buyback parameters, and lock the vault; the vault can be set and locked, and protocol bps is capped by MAX_PROTOCOL_BPS.
Enabled Uniswap v4 callbacks
beforeInitialize, beforeAddLiquidity, beforeSwap, afterSwap, beforeSwapReturnDelta, afterSwapReturnDelta
beforeInitialize registers the pool, beforeAddLiquidity gates liquidity provision, beforeSwap and afterSwap apply dynamic fees and take shares via return deltas (beforeSwapReturnDelta and afterSwapReturnDelta), and afterRemoveLiquidity and beforeRemoveLiquidity are present for liquidity exit handling.
Security & trust assessment
Risk level: medium, estimated (decoded bytecode, medium confidence).
Who controls it: The owner can change the launchpad address, the vault, protocol bps and buyback parameters, and can transfer ownership, which affects future fee and fund flows for pools using this hook.
Risk to user funds: The hook takes swap fee shares through return deltas and holds accrued protocol and bounty balances, and it moves pool funds during buybacks through the pool manager unlock flow, so user funds are exposed to these mechanisms.
Security findings
- [medium] Owner-set protocol fee share: setProtocolBps lets the owner change the protocol cut of swaps up to MAX_PROTOCOL_BPS, so fees taken from traders can be raised by the privileged key.
- [medium] Return-delta fee taking: beforeSwapReturnDelta and afterSwapReturnDelta let the hook take a portion of swap amounts, so traders pay the hook fee on every swap through these deltas.
- [medium] Owner-configurable buyback and bounty parameters: setBuybackParams and the register path set buyback caps, intervals and bounty bps that control how pool funds are used and paid out.
- [info] Vault control and lock: setVault and lockVault control where protocol funds are flushed; once locked the vault is fixed, which limits later redirection.
- [info] Unverified source: Without verified source, the exact guard logic for launch rules and the unlock flow could not be fully confirmed.
Contract details
- Verified source
- No
- Bytecode size
- 16,808 bytes
- Upgradeable proxy
- No
- Detected patterns
- launchpad, liquidity-management, ownable, return-delta, self-unlock
Pools using Launchpad hook
- ETH / TBROOK (0.00% fee) — 24h volume $0, TVL $0, 0 swaps today