Fee sharing hook on Robinhood Chain
Uniswap v4 Hook Contract 0x73ffea4c490c230bcf0274b4de4e3ae89f2be0cc on Robinhood Chain · Fee sharing
- Volume (24h)
- $72
- Value locked (TVL)
- $0
- All-time volume
- $72
- Pools using this hook
- 1
- Swaps (24h)
- 2 (1 traders)
- Total swaps
- 2
What it does
A mandatory-fee swap hook for a single token/quote pool that charges a 0.3% platform fee plus a configurable creator fee on every swap and distributes those fees to platform, creator and optional modules.
How it works step by step
- Takes a fixed 30 bps platform fee plus a creator fee on every swap via beforeSwapReturnDelta.
- Carries rounding remainders per trade direction so fees stay exact over time.
- Mints fee claims as ERC6909 in a ledger contract that tracks platform, creator and module credits.
- Dispatches to up to eight bounded-gas optional modules during swaps and actions.
- Restricts initialization to a fixed initializer and initial tick, with a fixed 0 LP fee and 60 tick spacing.
- Swap behaviour
- Every swap is taxed in quote terms: the hook takes the platform and creator fee as a return delta in beforeSwap, validates full fills in afterSwap, and accrues fees to the ledger; swaps that partially fill revert.
- Liquidity behaviour
- No liquidity callbacks. Liquidity add/remove is not hooked and proceeds under Uniswap v4 Core rules.
- Fee behaviour
- Charges a mandatory quote-denominated fee on every swap via beforeSwapReturnDelta: 30 bps platform fee plus a creator fee of creatorFeeBps (up to 10%, multiples of 1%). Fees use persistent rounding carry per direction. The pool LP fee is static at 0. Fees are minted as ERC6909 claims in the ledger and split between platform, creator and module shares.
- Owner & admin controls
- No owner or admin role on the hook itself. Module composition is fixed at construction via createModule from reviewed factories; no registry update changes a live host. The platform recipient is hardcoded and cannot be changed. Modules may act only through executeModuleAction with phase checks, and their quote budget is separately credited. No pausing or upgrade path found.
Enabled Uniswap v4 callbacks
beforeInitialize, beforeSwap, afterSwap, beforeSwapReturnDelta, afterSwapReturnDelta
beforeInitialize restricts pool initialization to the initializer with the fixed initial tick. beforeSwap takes the mandatory fee via a return delta and dispatches to optional modules. afterSwap validates full settlement, commits fee carry, mints fee claims to the ledger, dispatches to modules and emits events. beforeSwapReturnDelta and afterSwapReturnDelta let the hook take fees from swap amounts.
Security & trust assessment
Risk level: medium (verified source, high confidence).
Who controls it: The hook has no privileged owner. The main trust assumptions are the reviewed module factories and the module instances chosen at launch; a malicious module with the OWN_QUOTE_BUDGET resource can claim its credited quote share. Platform and creator claims are fixed recipients.
Risk to user funds: The hook takes a mandatory fee on every swap (platform 0.3% plus creator share) and holds the fee as ERC6909 claims in the ledger until claimed. Modules with quote budget can withdraw their credited share to themselves. The hook cannot move the pool's principal liquidity beyond the swap fee mechanics, and no sweep or arbitrary-call path exists.
Security findings
- [info] Partial fills unsupported: Swaps that would be partially filled revert with PartialFillUnsupported, so exact-output and partial-fill routes may fail rather than fill partially.
- [medium] Module callbacks can block swaps: Module callbacks are dispatched with bounded gas and phase checks; a fail-closed module callback reverts the whole swap. A nonconforming return value reverts the operation.
- [low] Dust swaps can revert: Fee-carry rounding and quoteNet search rely on bounded iteration; nonpositive net amounts revert, so very small swaps may fail.
- [info] Fees held in ledger backing: The ledger holds Core ERC6909 backing for platform, creator and module claims; claims are checked against outstanding backing before withdrawal.
Contract details
- Verified source
- No
- Bytecode size
- 9,955 bytes
- Upgradeable proxy
- No
- Detected patterns
- return-delta
Pools using Fee sharing hook
- WETH / CASK (0.00% fee) — 24h volume $72, TVL $0, 2 swaps today