Likely custom pricing hook on Robinhood Chain
Uniswap v4 Hook Contract 0x16788099a999bbcc9228877d142d2ae280eac088 on Robinhood Chain · Custom pricing
- Volume (24h)
- $0
- Value locked (TVL)
- $0
- All-time volume
- $0
- Pools using this hook
- 1
- Swaps (24h)
- 0 (0 traders)
- Total swaps
- 0
What it does
This hook runs custom logic before each swap and can change the amounts traders receive or pay through a return delta, so who pays more or less depends on logic that cannot be fully determined without source.
How it works step by step
- Implements beforeSwap, which takes control of swap execution on the pool and can return a delta that offsets the swap amounts.
- Calls take(address,address,uint256) to move currency out of the pool manager to a recipient during the swap.
- Maintains a per-address mapping of uint128 values in storage slot 0, updated during swaps.
- Keeps two uint256 state variables (slots 1 and 2) that are written during swaps and read by the view function selected by 0xe1cfb402.
- Contains a Panic(uint256) path, indicating checked arithmetic or assertion failures can revert swaps.
- Swap behaviour
- beforeSwap runs before each swap, may update the mapping and counters, takes currency through the pool manager, and returns a delta that changes the amounts the trader receives or pays. Which trades pay more or less cannot be determined from bytecode alone.
- Liquidity behaviour
- No liquidity callbacks.
- Fee behaviour
- Uses the pool's static fee unless the returned delta alters effective amounts; no explicit fee-setting logic was identified from the decoded bytecode.
- Owner & admin controls
- No admin controls found in the decoded bytecode, but without source this cannot be confirmed.
Enabled Uniswap v4 callbacks
beforeSwap, beforeSwapReturnDelta
beforeSwap is enabled so the hook can run logic before swaps; beforeSwapReturnDelta is enabled so the hook can alter the swap's token amounts and take currency via take().
Security & trust assessment
Risk level: high, estimated (decoded bytecode, low confidence).
Who controls it: Unknown from bytecode; if any privileged key controls the stored mapping or the delta parameters, it could redirect or skim swap value.
Risk to user funds: The hook can take currency from the pool via take() and alter swap deltas, so user and LP funds can be moved or diverted by its logic.
Security findings
- [high] Return delta with currency movement: The hook has beforeSwapReturnDelta and calls take(), so it can adjust swap amounts and move pool currency to an address it selects, which directly affects trader and LP funds.
- [medium] No verified source: Without verified source the exact logic that computes the delta, the recipient of taken funds, and any gating conditions cannot be reviewed.
- [medium] Unknown owner or upgrade controls: No ownership, pause, or upgrade functions were identified, but their absence is not proven from partial bytecode.
Contract details
- Verified source
- No
- Bytecode size
- 1,230 bytes
- Upgradeable proxy
- No
- Detected patterns
- moves-currency, return-delta
Pools using Likely custom pricing hook
- ETH / YUZU (0.30% fee) — 24h volume $0, TVL $0, 0 swaps today