Limit orders hook on Robinhood Chain
Uniswap v4 Hook Contract 0x3333afc4aa82ccd9f469005e13b72e6477f1e0cc on Robinhood Chain · Limit orders
- Volume (24h)
- $19
- Value locked (TVL)
- $0
- All-time volume
- $19
- Pools using this hook
- 1
- Swaps (24h)
- 3 (1 traders)
- Total swaps
- 3
What it does
This hook routes swaps in registered pools through an external order book and charges owner-set platform and creator fees within hard-coded caps. Swaps that cannot be fully filled revert, while LPs can withdraw freely.
How it works step by step
- Routes swaps in registered pools through an external order book (vault) via before-swap and after-swap return deltas, so trades fill against resting orders instead of only pool liquidity.
- Charges a platform fee and possibly a creator fee on swaps, with both capped by hard-coded maximums whose exact values are not readable from bytecode.
- Reverts a swap that the order book cannot fully fill.
- Restricts pool initialization to pools registered by a factory-like caller, and only these pools use the hook.
- Gives the owner an emergency withdraw function for tokens held by the hook.
- Swap behaviour
- Before a swap, the hook can take over the trade, book it against an external order book and settle it through return deltas. Swaps that cannot be fully filled revert. A platform fee and possibly a creator fee are deducted.
- Liquidity behaviour
- No liquidity callbacks; LPs can add and withdraw freely.
- Fee behaviour
- A platform fee in basis points is set by the owner and capped by a hard-coded maximum, and a creator fee also has a fixed cap. The exact cap percentages cannot be confirmed from bytecode. Fees appear to be minted as Uniswap v4 claim tokens to recipients.
- Owner & admin controls
- The owner can set the platform fee up to a hard-coded maximum, which is enforced by a FeeTooHigh check. The owner can also transfer or renounce ownership through a two-step handoff and call emergencyWithdraw to move any tokens held by the hook.
Enabled Uniswap v4 callbacks
beforeInitialize, beforeSwap, afterSwap, beforeSwapReturnDelta, afterSwapReturnDelta
beforeInitialize: allows only registered pools to start; beforeSwap: prices and routes the trade through the order book; afterSwap: settles fills and fees; beforeSwapReturnDelta/afterSwapReturnDelta: let the hook replace or adjust swap amounts to collect fees and settle order fills.
Security & trust assessment
Risk level: medium, estimated (decoded bytecode, low confidence).
Who controls it: A single owner sets the platform fee within a fixed cap and can sweep tokens held by the hook. The owner cannot block LP withdrawals.
Risk to user funds: Swap input and output pass through the hook's deltas and lose fees capped by constants that cannot be read from bytecode. LP principal in the pool cannot be locked or drained by this hook.
Security findings
- [medium] Swap amounts modified by hook: Return deltas let the hook settle swaps against an external order book and deduct fees. The exact fee caps are unverified because only bytecode is available.
- [low] Owner emergency withdraw: The owner can transfer out any tokens sitting in the hook contract. Pool reserves held by the PoolManager are not affected.
- [info] LP withdrawals unrestricted: Remove-liquidity callbacks are disabled, so LPs can always withdraw.
Contract details
- Verified source
- No
- Bytecode size
- 5,655 bytes
- Upgradeable proxy
- No
- Detected patterns
- erc20, erc6909-claims, liquidity-management, ownable, return-delta
Pools using Limit orders hook
- ETH / TESTTEST (0.00% fee) — 24h volume $19, TVL $0, 3 swaps today