LXFeeHook on Base

Uniswap v4 Hook Contract 0x3995ec2dc41f3c2210821860f6667eb9eac2a8ec on Base · Launchpad · Verified contract

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

What it does

Launch-pool hook for LX token/WETH pairs that charges every buy and sell the same fixed 1% to 5% WETH fee for the token's fee recipient, allows only the launch liquidity, and blocks swaps that would push the price below launch.

How it works step by step

  • Runs LX token/WETH launch pools created by an authorized LX factory.
  • Charges a fixed fee of 1% to 5% on the WETH side of every buy and sell; the rate is set once per pool and can never change.
  • Fees are held as WETH claims and paid in WETH to the token's fee recipient; anyone can trigger the payout.
  • Allows only one liquidity addition (the launch position) and rejects donations.
  • Blocks any swap that would push the token price below its launch price, and rejects partial fills when WETH is the specified amount.
Swap behaviour
Each swap pays a fixed 1% to 5% fee in WETH: buyers pay it on top of the WETH they send in, and sellers have it taken from the WETH they receive. Swaps revert if they would end below the launch price or if a WETH-specified swap only partially fills.
Liquidity behaviour
Only the factory's single launch liquidity addition is allowed; all other liquidity additions revert. Remove-liquidity callbacks are disabled, so the hook can never block withdrawals of existing positions.
Fee behaviour
A per-pool fee between 1% and 5% of the gross WETH amount, fixed at registration and never changeable, accrues to the token's fee recipient and is paid out in WETH. The pool's own LP fee is set to 0.
Owner & admin controls
The owner can only authorize or revoke factories, which affects new pools only. The fee recipient of each token can hand that role to a new address, and factories cannot be fee recipients.

Enabled Uniswap v4 callbacks

beforeInitialize, beforeAddLiquidity, beforeSwap, afterSwap, beforeDonate, beforeSwapReturnDelta, afterSwapReturnDelta

beforeInitialize: allows only factory-registered pools and records the launch price; beforeAddLiquidity: permits only the one launch liquidity addition; beforeSwap: takes the WETH fee when WETH is the specified amount; afterSwap: takes the WETH fee otherwise and enforces the launch price floor; beforeDonate: rejects donations; beforeSwapReturnDelta and afterSwapReturnDelta: let the hook collect the WETH fee from swap amounts.

Security & trust assessment

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

Who controls it: The owner can only approve or revoke factories that create new pools; it cannot change fees, take fees, or touch existing pools. Fee recipients control only where their own token's fees are sent.

Risk to user funds: The hook takes only its fixed 1% to 5% WETH fee from each swap and pays it to the registered recipient. LP principal cannot be locked or drained by the hook.

Security findings

  • [info] Immutable fee within 1% to 5%: The fee rate is fixed per pool at registration and is hard-capped between 1% and 5%. No one can change it afterwards.
  • [info] Single launch liquidity only: Nobody except the launch transaction can add liquidity. Remove-liquidity callbacks are disabled, so withdrawals cannot be blocked.
  • [info] Launch price floor: Swaps that would end below the launch price revert. This can limit very large sells but does not take any funds.

Contract details

Verified source
Yes (LXFeeHook)
Compiler
solc 0.8.26+commit.8a97fa7a
Bytecode size
9,999 bytes
Upgradeable proxy
No
Detected patterns
dynamic-fee, erc6909-claims, fee-sharing, launchpad, moves-currency, ownable, return-delta, self-unlock

Pools using LXFeeHook