Likely custom pricing hook on Robinhood Chain
Uniswap v4 Hook Contract 0xef11cd73e78c6e2e596786aefecfc5af9d58c088 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 every swap and can adjust the swap's token amounts, but the exact fee and pricing effect on buyers and sellers cannot be determined from the decoded bytecode alone.
How it works step by step
- Implements beforeSwap, which runs before each pool swap and can return a custom delta that replaces or adjusts the swap amounts
- Reads and writes two per-address mapping storage slots (slots 0 and 1) during swaps, suggesting per-user or per-address accounting state
- Exposes a view function at selector 0xb085ef2d taking an address argument, likely a query of that per-address state
- Does not implement any liquidity callbacks or fee override functions from the decoded selectors
- Swap behaviour
- beforeSwap is called on every swap and can return a return delta (beforeSwapReturnDelta is enabled), so the hook can alter amounts taken from or given to the swapper; the exact pricing or fee logic cannot be determined from decoded bytecode alone.
- Liquidity behaviour
- No liquidity callbacks.
- Fee behaviour
- Uses the pool's static fee as far as the decoded selectors show; no separate fee override or fee-sharing function was found, though the return delta could carry a fee-like amount.
- Owner & admin controls
- No admin controls found in the decoded selectors; no owner or pause function was identified, but the storage layout could hold an owner value that cannot be confirmed without source.
Enabled Uniswap v4 callbacks
beforeSwap, beforeSwapReturnDelta
beforeSwap is used to run custom logic before each swap and to return a delta that changes the swap's token amounts; beforeSwapReturnDelta allows that delta to be applied to the pool accounting.
Security & trust assessment
Risk level: high, estimated (decoded bytecode, low confidence).
Who controls it: Without source, no privileged key is identified; if the storage holds an owner, that party could only be assessed once the code is known.
Risk to user funds: The hook can alter swap settlement amounts through its return delta, so it can take or give user and pool tokens on each swap depending on logic not visible in the decoded bytecode.
Security findings
- [high] Return delta can move pool funds: beforeSwapReturnDelta is enabled, so beforeSwap can return a delta that changes the amounts settled on each swap, letting the hook take or give tokens relative to the pool's normal pricing.
- [medium] Unverified logic: No verified source is available, so the exact conditions under which the delta is non-zero and the storage meaning of the two mappings cannot be confirmed.
- [low] Per-address state updated during swaps: beforeSwap writes to mappings keyed by address, so swap outcomes may depend on accumulated per-user state that the hook controls.
Contract details
- Verified source
- No
- Bytecode size
- 1,632 bytes
- Upgradeable proxy
- No
- Detected patterns
- return-delta
Pools using Likely custom pricing hook
- ETH / VEIL (1.00% fee) — 24h volume $0, TVL $0, 0 swaps today