Fee sharing hook on Robinhood Chain
Uniswap v4 Hook Contract 0xd5b120d2e51081511edd169f38e578df65f260cc on Robinhood Chain · Fee sharing
- Volume (24h)
- $0
- Value locked (TVL)
- $0
- All-time volume
- $0
- Pools using this hook
- 2
- Swaps (24h)
- 3 (2 traders)
- Total swaps
- 3
What it does
This hook takes a share of swap flows and credits it to launch creators, while the owner can pause trading and adjust starting parameters.
How it works step by step
- Acts as a launchpad-style Uniswap v4 hook that tracks launches and pools keyed by launch index and subname
- Uses beforeSwap and afterSwap with return-delta permissions, so it can take a share of swap amounts from the pool flow and credit it to creator fee balances
- Accrues creator fees per token and per address in internal mappings that can later be claimed through claimCreatorFees
- Uses an unlockCallback path with self-unlock to move currency through the pool manager during swaps and launches
- Exposes a start tick setting, a pause flag and a base fee and max creator fee configuration
- Includes ERC20 token handling via transfer and approve selectors, consistent with launch token distribution
- Swap behaviour
- beforeSwap and afterSwap are both enabled with return-delta permissions, so the hook can alter swap deltas and move currency on swaps; the exact fee split between traders and the creator could not be fully determined from decoded bytecode.
- Liquidity behaviour
- Liquidity add and remove callbacks are present as view selectors, and the hook has no evident state-changing liquidity logic beyond the launch and pool bookkeeping mappings.
- Fee behaviour
- Fees are set from a base fee in basis points with a maximum creator fee cap; a portion is credited to creator fee balances and claimable via claimCreatorFees, with the remainder going to the pool.
- Owner & admin controls
- Owner (ownable with two-step transfer and renounce) can set the start tick, pause or unpause the hook, and set extensions and launch-related permissions; no upgrade mechanism is evident.
Enabled Uniswap v4 callbacks
beforeInitialize, beforeSwap, afterSwap, beforeSwapReturnDelta, afterSwapReturnDelta
beforeInitialize registers pool setup for launches; beforeSwap and afterSwap apply swap-time fee accounting and can return deltas; beforeSwapReturnDelta and afterSwapReturnDelta allow the hook to take currency from swap amounts.
Security & trust assessment
Risk level: medium, estimated (decoded bytecode, low confidence).
Who controls it: A single owner key can pause swaps, change the start tick and enable extensions, and can transfer or renounce ownership, so a compromised key could disrupt or redirect pool behaviour.
Risk to user funds: The hook can hold and move pool and user currency through return deltas and claimable creator fee balances; it can also block swaps when paused.
Security findings
- [medium] Return-delta fee capture: beforeSwapReturnDelta and afterSwapReturnDelta let the hook take currency from swaps, so any change to the fee or split logic directly changes what traders receive.
- [medium] Owner pause and start tick control: The owner can call setPaused to block swaps and setStartTick to alter the starting tick used in pool setup, affecting live trading.
- [low] Owner extension and permission control: setExtension(address,bool) and a related owner-gated setter allow the owner to enable extensions that may interact with the hook's flows.
- [low] Self-unlock and currency movement: The hook uses self-unlock and unlockCallback to move currency through the pool manager, which increases the surface for unexpected token flows if the callback path is misconfigured.
Contract details
- Verified source
- No
- Bytecode size
- 21,686 bytes
- Upgradeable proxy
- No
- Detected patterns
- erc20, fee-sharing, launchpad, moves-currency, ownable, pausable, return-delta, self-unlock