SwapFeeHook on Ethereum

Uniswap v4 Hook Contract 0x200d1d56a118e1b580684e69d61cf011d3c820cc on Ethereum · Fee sharing · Verified contract

Volume (24h)
$96
Value locked (TVL)
$978
All-time volume
$17.07K
Pools using this hook
1
Swaps (24h)
8 (8 traders)
Total swaps
150

What it does

Every trade in this ETH/token pool pays a fixed, unchangeable 1% fee in ETH to a set recipient, while LPs can add and withdraw freely and no admin can change anything.

How it works step by step

  • Charges a fixed 1% fee in ETH on every swap in the ETH/token pool it was built for.
  • Sends the fee straight to a fixed fee recipient address as the swap settles; the hook never holds funds.
  • Covers all four swap types (buy or sell, exact-in or exact-out) so no trader can avoid the fee.
  • Only a single pre-set launcher address can create the pool, preventing others from front-running pool creation at a chosen price.
  • Has no owner and no settings: fee, token, recipient and launcher are all fixed at deployment.
Swap behaviour
On each swap in the ETH/token pool, the hook takes 1% of the ETH side of the trade and sends it to the fee recipient. Depending on trade type, the trader either swaps 1% less ETH, receives 1% less ETH, or pays 1% more ETH. Pools with other tokens pass through untouched.
Liquidity behaviour
No liquidity callbacks; LPs can add and withdraw freely.
Fee behaviour
A constant 1% hook fee on the ETH amount of every swap, paid to an immutable fee recipient address. This is charged on top of the pool's normal LP fee and can never be changed.
Owner & admin controls
No admin controls found. The fee, recipient, token and launcher address are all fixed at deployment.

Enabled Uniswap v4 callbacks

beforeInitialize, beforeSwap, afterSwap, beforeSwapReturnDelta, afterSwapReturnDelta

beforeInitialize: only the authorized launcher can create the pool; beforeSwap: takes 1% ETH when ETH is the fixed-amount side; afterSwap: takes 1% ETH when ETH is the computed side; beforeSwapReturnDelta/afterSwapReturnDelta: adjust the swap amounts so the trader pays the fee.

Security & trust assessment

Risk level: low (verified source, high confidence).

Who controls it: No one holds admin keys; the only privileged address is the launcher, which can only initialize the pool once. Nobody can change fees or redirect funds.

Risk to user funds: The hook only takes exactly 1% of the ETH amount of each swap for the fixed recipient. LP principal cannot be touched, locked or drained by the hook.

Security findings

  • [info] Fixed 1% swap fee: The fee is a hard-coded constant of 1% of the ETH side of each swap and cannot be raised by anyone.
  • [info] Immutable, ownerless contract: There is no owner, no upgrade path, and the fee recipient cannot be changed.
  • [info] Unrestricted LP withdrawals: Remove-liquidity callbacks are disabled, so the hook cannot block or charge LP withdrawals.

Contract details

Verified source
Yes (SwapFeeHook)
Compiler
solc 0.8.33+commit.64118f21
Bytecode size
3,740 bytes
Upgradeable proxy
No
Detected patterns
fee-sharing, moves-currency, return-delta

Pools using SwapFeeHook