TestHook on Ethereum

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

Volume (24h)
$1.15K
Value locked (TVL)
$1.34K
All-time volume
$89.12K
Pools using this hook
1
Swaps (24h)
3 (1 traders)
Total swaps
699

What it does

Every buy and sell in the ETH/UKN pool pays a fixed 2% ETH tax that funds NFT holder rewards, a burn vault, buybacks and a small project share, while LPs can add and withdraw freely.

How it works step by step

  • Charges a fixed 2% tax in ETH on every buy and sell in the single ETH/UKN pool it serves.
  • Sends all tax straight to the UKN token contract, which splits it between NFT holders, a burn vault, the project (3%) and buybacks.
  • Tracks UKN bought from the pool so the token can auto-mint 'Sign' NFTs to buyers (every 50M UKN, max 5 per wallet).
  • Runs a manipulation-resistant time-weighted price oracle used for market-cap milestones.
  • Executes protocol buybacks through the pool with a 5% price limit, skipping the tax on those swaps.
Swap behaviour
Every swap pays a 2% ETH tax: on buys it is taken from the ETH paid in, on sells from the ETH paid out, regardless of exact-in or exact-out. Swaps also update the price oracle and, after the collection sells out, try a gas-capped milestone check that can never block trading.
Liquidity behaviour
No liquidity callbacks; LPs can add and withdraw freely.
Fee behaviour
Fixed 2% of the ETH side of each swap (hard-coded, not adjustable), sent to the UKN token contract and split among Sign holders (55-75%), the burn vault (20-40%), the official address (3%) and buyback-and-burn (2%). The pool's normal LP fee still applies separately.
Owner & admin controls
The founder can only initialize the single pool and rescue ETH that was force-sent to the hook; the tax rate and recipient are immutable. In the token contract, the official address can reconfigure burn milestones before the Awakening and sweep only unaccounted surplus ETH.

Enabled Uniswap v4 callbacks

beforeInitialize, beforeSwap, afterSwap, beforeSwapReturnDelta, afterSwapReturnDelta

beforeInitialize: only the founder can register the one allowed ETH/UKN pool and seed the oracle; beforeSwap: records the oracle and takes the 2% tax on exact-input buys and exact-output sells; afterSwap: takes the 2% tax on exact-output buys and exact-input sells, records buy credit for NFT minting, pokes milestones; beforeSwapReturnDelta/afterSwapReturnDelta: let the hook charge that tax on the swap amounts.

Security & trust assessment

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

Who controls it: The founder only controls pool initialization and rescuing stray ETH from the hook; no one can change fees, pause swaps, or touch pool reserves.

Risk to user funds: The hook takes exactly 2% of the ETH side of each swap and nothing more; LP principal in the PoolManager cannot be touched, locked, or drained by the hook.

Security findings

  • [info] Fixed 2% swap tax: The tax is a constant 2% of the ETH leg on both buys and sells and cannot be changed by anyone.
  • [info] Unrestricted LP withdrawals: Remove-liquidity callbacks are disabled, so the hook cannot block or charge LP withdrawals.
  • [info] Founder rescue limited to hook balance: Recall only moves ETH sitting in the hook itself, which by design holds none since taxes go directly to the token contract.

Contract details

Verified source
Yes (TestHook)
Compiler
solc 0.8.26+commit.8a97fa7a
Bytecode size
11,432 bytes
Upgradeable proxy
No
Detected patterns
moves-currency, oracle, return-delta, self-unlock, tax

Pools using TestHook