Likely custom pricing hook on Robinhood Chain
Uniswap v4 Hook Contract 0xef2ada252690191382ce74f367ceb8fe88f78088 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 unverified, test-like hook runs before every swap and can change swap amounts and take tokens from traders by an unknown amount, while LPs can always add and withdraw liquidity freely.
How it works step by step
- Runs custom code before every swap in pools that use it.
- Can change the swap amounts through a return delta and pull tokens out of the PoolManager with a take call.
- Keeps one counter in storage that is updated on each swap and can be read publicly (a function named buggy()).
- Looks like a small test or experimental hook rather than a production product.
- Swap behaviour
- Before each swap the hook runs, updates a stored counter, and may return a delta that changes what the trader pays or receives, taking tokens from the PoolManager. How much it takes cannot be confirmed from bytecode alone.
- Liquidity behaviour
- No liquidity callbacks; LPs can add and withdraw freely.
- Fee behaviour
- No fee percentage could be confirmed. The hook can take part of a swap's tokens through its return delta and take call, but the amount and the recipient are unknown from bytecode.
- Owner & admin controls
- No admin controls found. No owner or setter functions are visible in the dispatched selectors.
Enabled Uniswap v4 callbacks
beforeSwap, beforeSwapReturnDelta
beforeSwap: runs custom logic and updates a counter before each swap; beforeSwapReturnDelta: lets the hook change swap amounts and take tokens.
Security & trust assessment
Risk level: medium, estimated (decoded bytecode, low confidence).
Who controls it: No admin or owner functions were found and the contract is not a proxy. Its behaviour appears fixed at deployment.
Risk to user funds: Traders' swap amounts can be altered or partly taken through the before-swap delta, and the exact amount is unknown. LP principal cannot be locked or charged on withdrawal.
Security findings
- [medium] Unverified swap delta with token taking: The hook can change swap amounts and calls take to move tokens out of the PoolManager. Without source code, the exact amount taken from traders cannot be verified.
- [low] Experimental-looking contract: The contract is small, keeps a counter, and exposes a function named buggy(). This suggests a test hook that may behave unexpectedly.
- [info] LP withdrawals unrestricted: The remove-liquidity callbacks are disabled in the hook address, so the hook can never block or charge LP withdrawals.
Contract details
- Verified source
- No
- Bytecode size
- 1,311 bytes
- Upgradeable proxy
- No
- Detected patterns
- moves-currency, return-delta
Pools using Likely custom pricing hook
- ETH / PEPTI (1.00% fee) — 24h volume $0, TVL $0, 0 swaps today