Likely custom pricing hook on Robinhood Chain
Uniswap v4 Hook Contract 0x4deaef2c306efa8b107e2fd622bb0dd5fecac088 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
An unverified hook that runs before each swap, can change swap amounts and take tokens with an unknown size, and has a toggle that changes its swap behaviour, while LPs can still add and withdraw freely.
How it works step by step
- Runs custom logic before every swap and can change swap amounts through a return delta.
- Can pull tokens out of the PoolManager during swaps and holds ERC-20 transfer logic, so it may take a cut of swap input.
- Has a stored on/off switch, set by an unnamed function, that changes how the swap hook behaves.
- Keeps running counters updated on each swap and exposes a read function that reports them.
- Has no liquidity callbacks, so LPs can add and withdraw freely.
- Swap behaviour
- Before each swap the hook checks a stored flag and updates counters, and it can alter the swap amounts via a return delta, possibly taking tokens from the PoolManager. The exact amount or rule cannot be confirmed from bytecode alone.
- Liquidity behaviour
- No liquidity callbacks; LPs can add and withdraw freely.
- Fee behaviour
- Uses the pool's static fee, plus a possible extra deduction taken by the hook during swaps whose size and recipient are unknown from bytecode.
- Owner & admin controls
- One function sets a stored on/off flag that affects swap behaviour, and another writes a stored value. Whether these are restricted to an owner, and any limits on them, cannot be confirmed from bytecode.
Enabled Uniswap v4 callbacks
beforeSwap, beforeSwapReturnDelta
beforeSwap: runs the flag check and counter updates 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: It is unclear who can call the flag-setting and value-writing functions, since the bytecode shows no clear owner checks. Whoever can call them may change swap behaviour but cannot touch LP withdrawals.
Risk to user funds: Swap input or output may be partly taken by the hook via return deltas, with an unknown maximum. LP principal cannot be locked or drained through withdrawal callbacks.
Security findings
- [medium] Swap amounts can be modified: The hook can change swap amounts and take tokens from the PoolManager during swaps. The size of any deduction is not verifiable without source.
- [low] Toggleable swap behaviour: A stored boolean flag, set by an external function, changes how the swap hook behaves. It could possibly be used to pause or alter swaps.
- [info] LP withdrawals unaffected: Remove-liquidity callbacks are disabled, so the hook can never block LP withdrawals.
Contract details
- Verified source
- No
- Bytecode size
- 2,064 bytes
- Upgradeable proxy
- No
- Detected patterns
- erc20, moves-currency, return-delta
Pools using Likely custom pricing hook
- ETH / NULLPOOLS (1.00% fee) — 24h volume $0, TVL $0, 0 swaps today