Custom pricing hook on Robinhood Chain
Uniswap v4 Hook Contract 0x8700bca90e04982cc782b75c8270d3bc3905a0cc on Robinhood Chain · Custom pricing
- Volume (24h)
- $1.83K
- Value locked (TVL)
- $81
- All-time volume
- $5.88K
- Pools using this hook
- 1
- Swaps (24h)
- 20 (19 traders)
- Total swaps
- 100
What it does
A Uniswap v4 hook that intercepts swaps and takes a fixed fee via return deltas, with no verified source to confirm the exact mechanics.
How it works step by step
- Hooks into pool initialization through beforeInitialize
- Runs logic before and after every swap via beforeSwap and afterSwap
- Returns swap deltas so it can take a portion of the swap amounts
- Exposes FEE_BPS, poolManager, vault and token getters for reading configuration
- Calls take on the pool manager to move currency out of accounting
- Swap behaviour
- Runs beforeSwap and afterSwap, and uses return deltas to take a fee-like amount from swap flows, likely denominated by FEE_BPS.
- Liquidity behaviour
- Liquidity add and remove callbacks are present in the dispatch table (beforeAddLiquidity, afterAddLiquidity, beforeRemoveLiquidity, afterRemoveLiquidity) but are not enabled in the hook permissions, so they are not expected to run.
- Fee behaviour
- Uses a fixed fee constant exposed as FEE_BPS, applied through the hook's return delta logic rather than the pool's static fee; exact fee math cannot be confirmed without source.
- Owner & admin controls
- No admin controls found. No owner, pause or upgrade selectors were identified; the exposed view getters are FEE_BPS, poolManager, vault and token.
Enabled Uniswap v4 callbacks
beforeInitialize, beforeSwap, afterSwap, beforeSwapReturnDelta, afterSwapReturnDelta
beforeInitialize: runs on pool creation to validate or set up pool state. beforeSwap: runs before each swap and can return a delta to take over part of the swap. afterSwap: runs after each swap and can return a delta adjusting the final settlement. beforeSwapReturnDelta and afterSwapReturnDelta: allow the hook to alter the amounts exchanged with the pool, so it can take or give currency during swaps.
Security & trust assessment
Risk level: medium (decoded bytecode, low confidence).
Who controls it: No privileged owner or admin functions were identified in the decoded selectors, so no single key appears able to change parameters directly; this should be re-checked once source is available.
Risk to user funds: Because the hook uses return deltas on swaps and calls take, it can hold or redirect a portion of swap amounts in the pool's accounting, so user swap proceeds depend on the hook's logic. Exact magnitude and conditions cannot be determined from bytecode alone.
Security findings
- [medium] Hook takes currency via return deltas: The hook enables beforeSwapReturnDelta and afterSwapReturnDelta and the bytecode contains a take(address,address,uint256) call, so the hook can move currency out of the pool accounting during swaps.
- [low] Initialization gate can block operations: Bytecode references HookNotImplemented and NotInitializer errors, indicating an initialization gate; the hook may revert swaps or pool setup if its initialization state is not satisfied.
- [info] Unverified source: No verified source is available, so the exact fee calculation, delta accounting and any transfer logic could not be fully reviewed.
Contract details
- Verified source
- No
- Bytecode size
- 4,116 bytes
- Upgradeable proxy
- No
- Detected patterns
- moves-currency, return-delta
Pools using Custom pricing hook
- ETH / THOOK (0.00% fee) — 24h volume $1.83K, TVL $81, 20 swaps today