Dynamic fee hook on BNB Chain

Uniswap v4 Hook Contract 0xf8efbf01b6f466076499cfd39e2a916a58c90080 on BNB Chain · Dynamic fee

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

What it does

A Uniswap v4 hook that applies a dynamic LP fee on each swap, with owner-adjustable parameters and a circuit breaker that can impose a penalty fee.

How it works step by step

  • Runs beforeSwap on every swap in the pool
  • Computes a dynamic fee through calculateFee using stored parameters
  • Applies a PENALTY_FEE constant under certain conditions
  • Supports a circuit breaker flag that can be toggled by the owner
  • Stores a base currency address used in pool configuration
  • Retains owner-based administration for parameter updates
Swap behaviour
beforeSwap computes and returns a dynamic fee for each swap, with a penalty fee path when the circuit breaker is active.
Liquidity behaviour
No liquidity callbacks.
Fee behaviour
Hook overrides the LP fee dynamically in beforeSwap, using a calculateFee(uint256) function and a PENALTY_FEE constant, with a circuit breaker flag that can switch fee behaviour; the exact fee formula cannot be determined without source.
Owner & admin controls
Owner (slot 0) can transfer ownership via transferOwnership, set base currency via setBaseCurrency, and appears to set fee and circuit-breaker parameters through functions 0xf0893cb4, 0x279da5d9, 0x69c9e8a6 and 0xfe732a66 (names inferred only). Owner is gated by the ownable pattern.

Enabled Uniswap v4 callbacks

beforeSwap

beforeSwap is enabled and is used to compute and return a dynamic LP fee for each swap.

Security & trust assessment

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

Who controls it: The owner can change fee-related parameters, toggle the circuit breaker and reassign base currency or ownership, which could raise or redirect swap fees for all pool users.

Risk to user funds: The hook does not appear to hold or move user tokens directly, but a high fee set by the owner would reduce swap output for traders; funds are not custodied by the hook itself based on the decoded functions.

Security findings

  • [medium] Owner-controlled fee parameters: Owner state at slot 0 is writable through transferOwnership and several parameter setters; the owner has broad control over pricing behaviour.
  • [medium] Circuit breaker can alter swap fees: A circuit breaker flag exists and is set via a setter, which may force penalty fees or halt normal fee logic on swaps.
  • [info] No direct custody of funds detected: The hook is a dynamic-fee hook that does not take or hold tokens via return deltas; funds movement is limited to the pool manager flow.

Contract details

Verified source
No
Bytecode size
7,912 bytes
Upgradeable proxy
No
Detected patterns
dynamic-fee, ownable

Pools using Dynamic fee hook