Likely custom pricing hook on Robinhood Chain
Uniswap v4 Hook Contract 0x42cb73e2c41ee77bff8341b5aeef43582d280088 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 and can take an unknown portion of swap amounts based on adjustable stored settings, while leaving LP deposits and withdrawals untouched.
How it works step by step
- Runs custom logic before every swap and can change how much the swapper pays or receives.
- Can pull tokens out of the pool manager to itself (or another address) during a swap using a return delta.
- Keeps simple counters in storage that are updated on each swap, likely tracking swap counts or amounts taken.
- Has a two-number setter function that updates two stored parameters used in the swap logic; whether it is access-restricted is not visible.
- Does not touch liquidity adds or withdrawals.
- Swap behaviour
- Before each swap the hook reads its stored parameters and can adjust the swap amounts through a return delta, taking tokens from the swap. The exact amount or percentage taken cannot be confirmed from bytecode.
- Liquidity behaviour
- No liquidity callbacks; LPs can add and withdraw freely.
- Fee behaviour
- May take an extra cut from swaps via return delta, based on two stored parameters; the exact rate and any cap are unknown from bytecode. The recipient of taken tokens is not identifiable.
- Owner & admin controls
- A function taking two numbers rewrites the two stored parameters that feed the swap logic; no owner check or bounds could be confirmed, so it may be callable by anyone or restricted.
Enabled Uniswap v4 callbacks
beforeSwap, beforeSwapReturnDelta
beforeSwap: runs custom checks and accounting before each swap; beforeSwapReturnDelta: lets the hook alter 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 parameter setter; whoever can may change how much the hook takes from swaps.
Risk to user funds: Swappers' input or output can be reduced by an unknown amount during swaps. LP principal cannot be locked or taken by this hook.
Security findings
- [medium] Swap amounts can be altered: The hook can modify swap amounts and take tokens via return delta; the size of the deduction cannot be verified from bytecode.
- [medium] Unbounded parameter setter: A two-argument function updates parameters used in swap logic, with no visible cap or confirmed access control.
- [info] LP withdrawals unaffected: Remove-liquidity callbacks are disabled, so LPs can always withdraw.
Contract details
- Verified source
- No
- Bytecode size
- 1,534 bytes
- Upgradeable proxy
- No
- Detected patterns
- moves-currency, return-delta
Pools using Likely custom pricing hook
- ETH / OUTLAW (0.30% fee) — 24h volume $0, TVL $0, 0 swaps today