Custom pricing hook on Robinhood Chain
Uniswap v4 Hook Contract 0x0b0f3cccf90e42282d15fe7dcdf3c57dfb31c044 on Robinhood Chain · Custom pricing
- Volume (24h)
- $3.67
- Value locked (TVL)
- $0
- All-time volume
- $3.67
- Pools using this hook
- 2
- Swaps (24h)
- 1 (1 traders)
- Total swaps
- 1
What it does
This hook takes a share of swap output on each trade and holds it as claimable tokens for the pool owner, so every swap receives slightly less than the pool quotes while liquidity actions are untouched.
How it works step by step
- Uses afterSwap with return deltas, so the hook can take a share of the swap output as a delta rather than leaving it to the pool.
- Mints ERC-6909 claim tokens (mint and burn selectors) to represent value the hook holds on behalf of a user.
- Lets a user redeem those claim tokens through claim(address,uint256), which runs an unlock flow (unlock and unlockCallback) to take tokens out of the pool manager.
- Tracks a claim-in-progress state in slot 0 to guard the unlock and claim sequence against reentrancy.
- Exposes a poolOwner getter and FEE_PPM/FEE_DENOMINATOR constants, which suggests a fee share is computed in parts per million and routed to the pool owner.
- Has no-op or view-only handlers for liquidity add/remove, initialize and donate; these do not move funds.
- Swap behaviour
- After each swap the hook can take a fee-share delta from the swap's output and mint claim tokens for it. Exact amounts and which swap direction pays more cannot be determined from the bytecode alone.
- Liquidity behaviour
- No liquidity callbacks move funds; before/after add and remove liquidity handlers are present but appear to be pass-through.
- Fee behaviour
- Hook takes a share of swap proceeds via return delta, with the rate expressed against FEE_PPM and FEE_DENOMINATOR; the destination appears to be the pool owner. The exact percentage is not determinable from decoded bytecode.
- Owner & admin controls
- A poolOwner getter exists, indicating an owner role that likely receives the fee share. No setter or upgrade selector was identified in the decoded functions, so further admin controls cannot be confirmed.
Enabled Uniswap v4 callbacks
afterSwap, afterSwapReturnDelta
afterSwap is used to compute and take the fee delta from the swap; afterSwapReturnDelta allows that delta to be applied to the swap's accounting.
Security & trust assessment
Risk level: medium, estimated (decoded bytecode, low confidence).
Who controls it: The pool owner appears to receive the swap fee share; without a visible setter the fee rate may be fixed, but ownership of the fee destination is a privileged role.
Risk to user funds: The hook can take a portion of swap output via return deltas and holds claim-token backing for that value until it is claimed; user funds in the pool are exposed to the fee share taken on every swap.
Security findings
- [medium] Return-delta fee capture: afterSwapReturnDelta lets the hook alter the swap's settled amounts and mint claim tokens, so traders receive less than the pool's quoted output by the hook's share.
- [low] Claim and unlock flow: claim and unlockCallback call the pool manager's unlock path and take tokens out; correctness of the claim-in-progress guard in slot 0 determines whether this can be abused.
- [info] Owner receives fee share: poolOwner is exposed, implying a privileged address collects accrued value from swaps.
Contract details
- Verified source
- No
- Bytecode size
- 5,179 bytes
- Upgradeable proxy
- No
- Detected patterns
- erc6909-claims, moves-currency, return-delta, self-unlock
Pools using Custom pricing hook
- ETH / BOOMER (1.25% fee) — 24h volume $3.67, TVL $0, 1 swaps today
- ETH / BOOMER (2.00% fee) — 24h volume $0, TVL $0, 0 swaps today