Custom pricing hook on Robinhood Chain
Uniswap v4 Hook Contract 0x02fad62623698dff970aba4507538815358f8088 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
A hook that runs before each swap, can take currency from the pool and adjust the swap's settled amounts through a return delta, with the exact logic unverified.
How it works step by step
- Executes custom logic in beforeSwap on every swap in the pool
- Reads pool key and swap parameters (direction, amount, price limit) passed to the callback
- Calls take to move tokens out of the pool manager during the swap
- Returns a before-swap delta that alters the amounts the swapper settles
- Updates internal storage slots 0 to 2 during swaps
- Swap behaviour
- Runs beforeSwap on every swap, reads the swap parameters and pool key, may take currency via the pool manager, and returns a delta that changes the settled amounts.
- Liquidity behaviour
- No liquidity callbacks.
- Fee behaviour
- No fee logic identified in decoded selectors; the hook may take a custom amount via return deltas, but the fee mechanism cannot be confirmed from the bytecode alone.
- Owner & admin controls
- No admin controls found.
Enabled Uniswap v4 callbacks
beforeSwap, beforeSwapReturnDelta
beforeSwap: runs before each swap and is the entry point that reads swap parameters and can take currency through the pool manager; beforeSwapReturnDelta: allows the hook to return a delta that alters the amounts settled for the swap.
Security & trust assessment
Risk level: medium (decoded bytecode, low confidence).
Who controls it: No owner or admin selector was decoded, so no privileged key was identified. Behaviour is fixed by the deployed bytecode unless it is an upgradeable proxy, which could not be confirmed.
Risk to user funds: The hook can take tokens from the pool and return a delta that changes amounts settled with swappers, so it can affect the funds that flow through swaps in this pool. No admin path to block swaps was identified.
Security findings
- [medium] Hook moves currency and alters swap deltas: beforeSwapReturnDelta combined with a take call means the hook can move pool currency and change swap settlement amounts during every swap.
- [info] Unverified source: Only 944 bytes of runtime code and no source are available, so the exact logic of the delta calculation cannot be verified.
- [info] Internal swap state: A filler() view function and storage slots 0 to 2 are read and written in beforeSwap, suggesting internal state that the hook updates on swaps.
Contract details
- Verified source
- No
- Bytecode size
- 944 bytes
- Upgradeable proxy
- No
- Detected patterns
- moves-currency, return-delta
Pools using Custom pricing hook
- ETH / MINT (1.00% fee) — 24h volume $0, TVL $0, 0 swaps today