Likely custom pricing hook on Robinhood Chain
Uniswap v4 Hook Contract 0x6afcc8d25ef7e179f7ea0c1bf34118e8942f0088 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 take tokens from the pool and adjust swap amounts, but its exact pricing and fee rules could not be determined from the bytecode.
How it works step by step
- Exposes a beforeSwap callback that runs before each swap in a pool using this hook
- Reads and writes several storage slots (slots 0 to 4) during beforeSwap, including a mapping keyed by uint256
- Calls take(address,address,uint256) on the pool manager, which withdraws tokens from the pool to the hook
- Uses beforeSwapReturnDelta, so it can alter the amounts settled for the swap and take currency from the swap flow
- Exposes a view function 0x8cc71f0a that reads storage slots 0, 1 and 4
- Swap behaviour
- beforeSwap runs on every swap; the hook can take currency via PoolManager.take and returns a delta that changes the swap settlement. The exact pricing rule cannot be determined from decoded bytecode alone.
- Liquidity behaviour
- No liquidity callbacks.
- Fee behaviour
- Cannot be determined from decoded bytecode; no fee-setting or fee-override selector was identified, so the hook may use the pool's static fee, but it may also adjust amounts through the return delta.
- Owner & admin controls
- No admin controls found in the decoded selectors; any owner or upgrade logic cannot be confirmed from bytecode.
Enabled Uniswap v4 callbacks
beforeSwap, beforeSwapReturnDelta
beforeSwap is used to run custom logic and to take currency from the pool before the swap settles; beforeSwapReturnDelta lets the returned value change the swap's token amounts.
Security & trust assessment
Risk level: high, estimated (decoded bytecode, low confidence).
Who controls it: Cannot be determined without source; if storage slots hold owner or parameter values written by an admin path, that key could alter swap deltas or redirect taken currency.
Risk to user funds: The hook can take currency from the pool through PoolManager.take and alter swap amounts via its return delta, so user swap proceeds and pool reserves are exposed to its logic.
Security findings
- [medium] Return delta alters swap settlement: beforeSwapReturnDelta is enabled, so the hook's return value changes the amounts a swapper settles, which can move value between trader and pool.
- [medium] Hook withdraws pool currency: The bytecode calls take(address,address,uint256) on the pool manager, so the hook can withdraw tokens from the pool during swaps.
- [info] Unverified source: No verified source is available, so the exact conditions for taking currency and computing deltas cannot be audited.
Contract details
- Verified source
- No
- Bytecode size
- 1,395 bytes
- Upgradeable proxy
- No
- Detected patterns
- moves-currency, return-delta
Pools using Likely custom pricing hook
- ETH / NEURA (0.30% fee) — 24h volume $0, TVL $0, 0 swaps today