Dynamic fee hook on Robinhood Chain
Uniswap v4 Hook Contract 0x7b1be698bf2b12111f20721565f7df31cc78c088 on Robinhood Chain · Dynamic fee
- 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 adjust the amounts exchanged, but from the decoded bytecode alone it is not possible to say which trades pay more or less.
How it works step by step
- Implements only beforeSwap with a return delta, so it can adjust swap amounts or take value from swaps before the pool executes them
- Reads and writes four storage slots (slots 0 to 3) in the swap path, indicating stateful per-pool or global parameters or counters
- Exposes two view functions (0x0809b33e and 0x7544f700) that read state, likely returning configuration or pricing values
- No liquidity hooks or fee-setting selectors were decoded, so the exact pricing or fee logic cannot be confirmed
- Swap behaviour
- beforeSwap is invoked on every swap and can return a delta that alters the amounts exchanged; the exact direction and size of any adjustment cannot be determined from the decoded bytecode.
- Liquidity behaviour
- No liquidity callbacks.
- Fee behaviour
- Fee behaviour is not confirmed from the decoded bytecode; the hook's before-swap return delta may act as an implicit fee or adjustment, but the pool's fee source could not be identified.
- Owner & admin controls
- No admin controls found in the decoded selectors; no owner, pause or upgrade functions were identified, though these may exist undetected.
Enabled Uniswap v4 callbacks
beforeSwap, beforeSwapReturnDelta
beforeSwap is used to run custom logic before each swap and beforeSwapReturnDelta lets the hook return a delta that changes the swap amounts or takes currency.
Security & trust assessment
Risk level: medium, estimated (decoded bytecode, low confidence).
Who controls it: Without decoded admin functions, no privileged key is evident, but if the storage values are settable by an unseen owner, that party could change swap adjustments.
Risk to user funds: The hook can alter swap deltas and take currency through its return delta, so it can affect the amounts users receive or pay on swaps through this pool.
Security findings
- [medium] Return delta on swaps: beforeSwapReturnDelta permission means the hook can alter swap amounts and take currency from the trade, so its arithmetic and any parameters it reads from storage directly affect user outcomes.
- [medium] Unverified source: No verified source is available, so the logic of the beforeSwap function and the storage values it writes could not be reviewed for correctness.
- [low] Mutable storage in swap path: The beforeSwap selector writes to storage slots 0 to 3, meaning swaps mutate hook state, which can introduce ordering or manipulation effects.
Contract details
- Verified source
- No
- Bytecode size
- 1,760 bytes
- Upgradeable proxy
- No
- Detected patterns
- return-delta