Fee sharing hook on Base

Uniswap v4 Hook Contract 0xbfb882c0eea3981f9bc7ccb53782e9e6ac47a0cc on Base · Fee sharing

Volume (24h)
$0
Value locked (TVL)
$242
All-time volume
$0
Pools using this hook
1
Swaps (24h)
0 (0 traders)
Total swaps
0

What it does

Every swap in either direction pays a fixed, immutable fee of up to 3% in the pool's quote token to a treasury vault, while LPs can add and withdraw liquidity freely.

This read was written for the hook 0xc7e6…a0cc on Robinhood Chain and reused here: the two share a code shape, so constants such as fees, owners and addresses can differ.

How it works step by step

  • Charges a fixed fee on every swap, in either direction, paid in the pool's quote token (for example USDG).
  • The fee rate is set once at deployment and hard-capped at 3%; it can never be changed afterward.
  • Fees are sent as real tokens straight to a fixed vault address set at deployment.
  • Only allows pools to be created if one of the two tokens is the configured quote token.
  • Does not touch liquidity adds or withdrawals, so LPs can add and remove freely.
Swap behaviour
If the trader specifies the quote-token amount, the fee is taken from that amount before the swap. Otherwise it is taken from the quote-token side after the swap, so buyers and sellers pay the same fixed percentage.
Liquidity behaviour
No liquidity callbacks; LPs can add and withdraw freely.
Fee behaviour
A fixed fee set at deployment, at most 3% (the exact rate is readable via feeBps), is charged on the quote-token amount of every swap on top of the pool's normal LP fee. The fee goes to an immutable vault address.
Owner & admin controls
No admin controls found. The fee rate, quote token and vault are all fixed at deployment, and the fee is capped at 3%.

Enabled Uniswap v4 callbacks

beforeInitialize, beforeSwap, afterSwap, beforeSwapReturnDelta, afterSwapReturnDelta

beforeInitialize: rejects pools that lack the quote token; beforeSwap and beforeSwapReturnDelta: take the fee when the quote amount is specified; afterSwap and afterSwapReturnDelta: take the fee from the quote output or input otherwise.

Security & trust assessment

Risk level: low, estimated (decoded bytecode, high confidence).

Who controls it: There is no owner or admin key. All settings, including the fee recipient vault, are immutable.

Risk to user funds: The hook only takes a fixed swap fee of at most 3% of the quote-token amount, paid to the vault. It cannot touch LP principal, and LP withdrawals are unrestricted.

Security findings

  • [info] Immutable fee capped at 3%: The fee rate is fixed in the constructor and cannot exceed 3%. There is no owner who can change it.
  • [info] LP withdrawals unrestricted: Remove-liquidity callbacks are disabled, so the hook cannot block or charge LP withdrawals.

Contract details

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

Pools using Fee sharing hook