Fee sharing hook on Robinhood Chain

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

Volume (24h)
$27.05K
Value locked (TVL)
$37.49K
All-time volume
$27.05K
Pools using this hook
1
Swaps (24h)
185 (50 traders)
Total swaps
185

What it does

This hook takes a fixed fee on swaps in the pool and sends it to a treasury address, so traders receive slightly less than the pool's normal output.

How it works step by step

  • Runs custom logic in beforeSwap and afterSwap on each swap
  • Computes a fixed fee in basis points (FEE_BPS)
  • Uses return deltas to take a share of the swap amount
  • Sends the taken amount to the treasury address via the pool manager's take
  • Exposes read-only treasury, FEE_BPS and poolManager getters
Swap behaviour
beforeSwap and afterSwap run on every swap; they compute a fee in basis points and settle it through a return delta and a take call to the pool manager, sending the fee to the treasury.
Liquidity behaviour
No liquidity callbacks.
Fee behaviour
A fixed fee in basis points (FEE_BPS) is taken from the swap via a return delta and routed to a treasury address. The exact fee amount and direction cannot be confirmed without source.
Owner & admin controls
No admin controls found. No owner, pause or setter selectors were decoded; treasury() and FEE_BPS() are read-only views.

Enabled Uniswap v4 callbacks

beforeSwap, afterSwap, beforeSwapReturnDelta, afterSwapReturnDelta

beforeSwap and afterSwap are used to run custom swap logic; beforeSwapReturnDelta and afterSwapReturnDelta let the hook take a portion of the swap amount, which is then sent to the treasury via the pool manager's take call.

Security & trust assessment

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

Who controls it: The treasury address is read-only in the decoded functions, so no key appears able to redirect fees. Any upgrade or owner path cannot be ruled out from bytecode alone.

Risk to user funds: The hook can take a fixed fee from swap amounts via return deltas and send it to the treasury. It does not appear to hold a custodial balance, but it can alter how much users receive per swap.

Security findings

  • [info] Hook skims swap amounts into a treasury: The hook calls take on the pool manager and holds return deltas, so it can move a share of user swap proceeds to a treasury address.
  • [medium] Unverified source code: The source is unverified, so the fee rate, treasury address logic and any hidden owner or upgrade paths cannot be fully checked.
  • [low] Return-delta arithmetic not reviewable: Return deltas let the hook alter the amounts settled by the pool manager; a bug in the delta arithmetic could misstate balances.

Contract details

Verified source
No
Bytecode size
2,022 bytes
Upgradeable proxy
No
Detected patterns
moves-currency, return-delta

Pools using Fee sharing hook