Fee sharing hook on Robinhood Chain

Uniswap v4 Hook Contract 0xfc8e1b30e149514d04e0d63ded97236797f9e0cc on Robinhood Chain · Fee sharing

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

Traders pay an extra swap fee that varies by trading session and holidays, split between the pool creator and the platform, while LPs can add and withdraw liquidity freely.

How it works step by step

  • Charges a time-based swap fee that changes by trading session (for example, market hours versus off-hours) and can apply special rates on admin-set holidays.
  • Takes its fee directly from swap amounts using return deltas and books it as owed balances for a pool creator or initializer and a platform fee recipient.
  • Uses separate buy and sell fee splits between the creator and the platform, with a hard-coded maximum session fee whose exact value cannot be read from bytecode.
  • Fee earners withdraw their accrued balances through a claim function.
  • Only registered initializers can set up pools, and each pool can carry its own fee configuration.
Swap behaviour
On each swap the hook works out the current session fee from a stored weekly schedule and holiday list, then deducts that fee from the swap and credits it to the creator and platform as claimable balances. The exact fee level depends on the time of day and holidays, and its precise cap is not visible in the bytecode.
Liquidity behaviour
No liquidity callbacks; LPs can add and withdraw freely.
Fee behaviour
A session-dependent hook fee is taken on top of the pool fee and split between the pool creator and the platform using fixed buy and sell split constants. The four session fee tiers can be changed by the owner, and the contract checks them against a hard-coded maximum whose value is unknown from bytecode.
Owner & admin controls
The owner can change the four session fees (bounded by a hard-coded maximum session fee), change the session schedule, mark or unmark holidays, and transfer ownership. The exact fee cap could not be confirmed from bytecode.

Enabled Uniswap v4 callbacks

beforeInitialize, beforeSwap, afterSwap, beforeSwapReturnDelta, afterSwapReturnDelta

beforeInitialize registers the pool and checks who initialized it; beforeSwap picks the session fee and can take part of the input; afterSwap settles or records the fee on the output side; the swap return-delta permissions let the hook deduct its fee from swap amounts.

Security & trust assessment

Risk level: medium, estimated (decoded bytecode, medium confidence).

Who controls it: A single owner can retune the session fees within the coded maximum, edit the trading schedule and holidays, and hand off ownership. They cannot touch LP principal.

Risk to user funds: The hook only takes its session fee from swappers' trade amounts, and the exact maximum is unverified. LP principal cannot be locked or drained, and withdrawals are unrestricted.

Security findings

  • [low] Owner-adjustable swap fees: The owner can change the session fee tiers. The code enforces a maximum session fee, but its value is not readable from unverified bytecode.
  • [info] Swap return deltas active: The hook deducts its fee from swap amounts and credits it as claimable balances. This is standard fee collection, not a drain.
  • [info] LP withdrawals unrestricted: Remove-liquidity callbacks are disabled, so the hook can never block or charge LP withdrawals.

Contract details

Verified source
No
Bytecode size
9,030 bytes
Upgradeable proxy
No
Detected patterns
dynamic-fee, erc6909-claims, fee-sharing, moves-currency, ownable, return-delta, self-unlock

Pools using Fee sharing hook