Fee sharing hook on HyperEVM

Uniswap v4 Hook Contract 0xc3b3ffe44df2aa3939202baf7156339932dd20cc on HyperEVM · Fee sharing

Volume (24h)
$6.44K
Value locked (TVL)
$67
All-time volume
$6.44K
Pools using this hook
1
Swaps (24h)
61 (26 traders)
Total swaps
61

What it does

This hook charges a configurable per-pool fee on every swap and splits it among the pool creator, the platform and module owners, while LPs can always withdraw freely.

How it works step by step

  • Registers pools at initialization with a per-pool configuration of fee rates and optional plug-in modules, set up through a factory/deployer.
  • Charges a hook fee on swaps using return deltas, with separate rates stored per pool (likely creator and platform shares).
  • Credits accrued fees to the pool creator, a platform recipient, and module owners, who claim them later.
  • Can run per-pool modules during swaps; a module failure reverts the swap.
  • Appears to reject partial fills and swaps on unknown pools, and may rely on a trusted router to identify the real trader.
Swap behaviour
On each swap the hook runs its configured modules and takes a fee from the swap amounts via return deltas, holding it in the PoolManager for later claims. Swaps on unregistered pools or that cannot be fully filled revert.
Liquidity behaviour
No liquidity callbacks are active; LPs can add and withdraw freely.
Fee behaviour
A per-pool hook fee is charged on swaps, with rates stored as small integers (likely basis points) for creator and platform portions. Exact percentages and caps cannot be confirmed from bytecode; fees go to the pool creator, the platform recipient and module owners.
Owner & admin controls
A deployer can set the factory address, and the factory configures pools and fee rates at creation. No function to change fees on existing pools was clearly seen, but caps are unverified.

Enabled Uniswap v4 callbacks

beforeInitialize, beforeSwap, afterSwap, beforeSwapReturnDelta, afterSwapReturnDelta

beforeInitialize: registers and validates the pool config; beforeSwap: runs modules and may take fee from input; afterSwap: computes and books fees; beforeSwapReturnDelta/afterSwapReturnDelta: let the hook deduct its fee from swap amounts.

Security & trust assessment

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

Who controls it: The deployer controls the factory address, and the factory sets pool configurations and modules. The worst case is high fees or blocking modules on newly created pools.

Risk to user funds: The hook can take a fee from traders' swap amounts; the exact maximum is unknown from bytecode. LP principal cannot be locked or taken by this hook.

Security findings

  • [medium] Swap fee via return deltas, cap unverified: The hook can deduct tokens from swaps; fee rates are stored as 16-bit values, which suggests a bound near 6.5% if basis points, but this cannot be verified from bytecode.
  • [low] External modules run on swaps: Per-pool modules are called during swaps and can make swaps revert, effectively gating trading on that pool.
  • [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
13,229 bytes
Upgradeable proxy
No
Detected patterns
moves-currency, return-delta, self-unlock

Pools using Fee sharing hook