Likely custom pricing hook on Robinhood Chain
Uniswap v4 Hook Contract 0x668160461db9e66d627063f3d212748d7da1c088 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 adjust swap amounts through a return delta, but the decoded bytecode does not show which trades pay more or less, so its effect on traders and LPs cannot be stated with confidence.
How it works step by step
- Implements beforeSwap and returns a custom delta, so it can override the pool's normal swap accounting for trades routed through it
- Writes several storage slots (slots 0 to 5, including a uint256 to uint256 mapping) on every beforeSwap call, indicating per-swap state tracking
- Reads its own storage in view functions 0x8b86d8c0, 0x8de5f2dd and 0x997b8315, which likely expose internal counters or parameters
- Exact economic mechanism cannot be pinned down from bytecode alone; the purpose of the mapping and the returned delta values is not identifiable
- Swap behaviour
- beforeSwap is called before each swap and can return a delta that alters the amounts exchanged, so the effective price a trader receives may differ from the pool's standard curve. The direction and size of any such adjustment could not be determined from the decoded bytecode.
- Liquidity behaviour
- No liquidity callbacks.
- Fee behaviour
- Uses the pool's static fee as far as the decoded permissions show; the hook can alter amounts through return deltas, which may act as an additional implicit fee, but this cannot be confirmed without the code logic.
- Owner & admin controls
- No admin controls identified from the decoded selectors; no owner, pause or upgrade functions were recognised, though this cannot be fully excluded without source.
Enabled Uniswap v4 callbacks
beforeSwap, beforeSwapReturnDelta
beforeSwap is used to run custom logic and update internal state before each swap; beforeSwapReturnDelta allows that logic to return a delta that changes the swap amounts taken from or given to the pool.
Security & trust assessment
Risk level: high, estimated (decoded bytecode, low confidence).
Who controls it: Cannot be determined without source; no privileged selectors were found, so centralization appears limited, but the hook's behaviour is fixed in code that could not be verified.
Risk to user funds: Because the hook can return a swap delta, it can change the amounts that traders and the pool exchange on every swap, which directly affects user funds even though no admin path to move funds was found.
Security findings
- [high] Return delta on beforeSwap: beforeSwapReturnDelta lets the hook alter swap amounts, so it can take or redirect value from trades; the exact amounts depend on logic that could not be decoded.
- [medium] No verified source: Without verified source, the mapping and the return value computation cannot be audited, so behaviour beyond the decoded selectors is unknown.
- [low] State written on every swap: beforeSwap writes to storage slots 0 to 5 on each call, which adds gas cost and could create ordering dependencies between swaps.
Contract details
- Verified source
- No
- Bytecode size
- 2,029 bytes
- Upgradeable proxy
- No
- Detected patterns
- return-delta