Custom pricing hook on Robinhood Chain
Uniswap v4 Hook Contract 0xbce87e7de5161afa3b2fecd77472fef1b9408088 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
A Uniswap v4 hook that runs custom logic before each swap and adjusts swap settlement through return deltas, with its exact purpose not determinable without verified source.
How it works step by step
- Runs custom logic in beforeSwap on every swap in pools using this hook
- Reads and writes three storage slots that gate or parameterise the swap
- Returns a delta through beforeSwapReturnDelta that changes settled token amounts
- Exposes a view function (selector 0x6a2947cb) that reads stored state
- Swap behaviour
- beforeSwap runs on every swap, reads and updates three storage slots, and can return a delta that changes the settled amounts.
- Liquidity behaviour
- No liquidity callbacks.
- Fee behaviour
- Unclear from decoded bytecode; beforeSwap may adjust the swap via return deltas, but the exact fee logic cannot be determined without source.
- Owner & admin controls
- No admin controls found.
Enabled Uniswap v4 callbacks
beforeSwap, beforeSwapReturnDelta
beforeSwap: runs before each swap and is the entry point that reads and writes hook storage (slots 0, 1, 2). beforeSwapReturnDelta: the hook can return a delta that alters the amounts settled for the swap, so it can take or give tokens during swaps.
Security & trust assessment
Risk level: medium (decoded bytecode, low confidence).
Who controls it: No owner or admin selectors were identified, so no privileged key is evident from the decoded functions. Any control over the stored values would have to be inferred from beforeSwap logic, which cannot be verified.
Risk to user funds: Through return deltas the hook can change the token amounts settled in a swap, so it can effectively take or redirect part of a trader's input or output. The exact amount and conditions cannot be determined from bytecode alone.
Security findings
- [medium] Return-delta permission: The hook is granted beforeSwapReturnDelta, so it can alter the amounts a swap settles and may take a share of swap flow.
- [low] Stateful swap gating: beforeSwap writes three storage slots on every swap, so swap behaviour depends on state that can change over time.
- [info] Unverified source: No source is verified, so the purpose and any hidden logic of the return-delta calculation cannot be confirmed.
Contract details
- Verified source
- No
- Bytecode size
- 1,613 bytes
- Upgradeable proxy
- No
- Detected patterns
- return-delta
Pools using Custom pricing hook
- ETH / PNTG (0.30% fee) — 24h volume $0, TVL $0, 0 swaps today