TaxHook on Base

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

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

What it does

A launchpad tax hook that charges both buyers and sellers a creator-set tax of 0% to 10% plus a platform fee of up to 1% in the quote currency, splits the proceeds among the creator's recipients, holder rewards and the protocol, and never restricts LP withdrawals.

How it works step by step

  • Charges a buy and sell tax of 0% to 10% (set per pool at launch) on launchpad token pools, always collected in the quote currency such as ETH or USDC.
  • Adds a platform fee of up to 1% of trade volume on top of the tax, paid to the platform treasury.
  • Lets anyone trigger payouts that split collected tax among the creator's chosen wallets, charity, holder rewards and a protocol cut of up to 20% of the tax.
  • Caps the size of buys per transaction during an anti-snipe window of up to 1 hour after launch.
  • Only the launchpad can create pools on this hook. The token creator can only lower taxes, never raise them.
Swap behaviour
Each swap pays the pool's buy or sell tax (0% to 10%) plus the platform fee (0% to 1%) in the quote currency, taken from the input or output depending on the swap type. Swaps that would only partially fill revert, and early buys over the anti-snipe cap revert.
Liquidity behaviour
No liquidity callbacks; LPs can add and withdraw freely.
Fee behaviour
Combined fee is at most 11% of the quote amount: a tax of 0% to 10% fixed at launch (the creator can only lower it) plus a platform fee of 0% to 1% (the owner can only lower it for live tokens). The tax goes to the creator's recipients and holder rewards, minus a protocol cut of up to 20% fixed at launch, and the platform fee goes to the treasury.
Owner & admin controls
The owner can set the treasury address, set the launchpad once, set the protocol tax share for future launches (max 20% of tax), and set the platform fee for future launches (max 1%) or lower it for live tokens. Each token's creator admin can change tax recipients, lower buy and sell taxes, or hand off or renounce admin rights.

Enabled Uniswap v4 callbacks

beforeInitialize, beforeSwap, afterSwap, beforeSwapReturnDelta, afterSwapReturnDelta

beforeInitialize: only the launchpad can create registered pools; beforeSwap: takes the fee when the quote side is the specified amount; afterSwap: takes the fee on the unspecified quote side, enforces the anti-snipe buy cap and blocks partial fills; beforeSwapReturnDelta/afterSwapReturnDelta: let the hook take the fee from swap amounts.

Security & trust assessment

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

Who controls it: The owner controls the treasury address and future-launch fee settings within caps of 1% platform fee and 20% protocol tax share. Token creators can only redirect tax recipients or lower taxes.

Risk to user funds: The hook only takes the stated fee from swaps, at most 11% of the quote amount combined, and holds collected fees as claims until they are distributed. It cannot touch LP principal, and LPs can withdraw freely.

Security findings

  • [info] Hard-capped fees: Tax is capped at 10% per side and the platform fee at 1%, and neither can be raised on a live token.
  • [info] Unrestricted LP withdrawals: Remove-liquidity callbacks are disabled, so the hook can never block or charge LP withdrawals.
  • [low] Partial fills revert: Swaps that hit a price limit before fully filling on the taxed side revert instead of partially executing, which may cause some routed trades to fail.

Contract details

Verified source
Yes (TaxHook)
Compiler
solc 0.8.26+commit.8a97fa7a
Bytecode size
13,954 bytes
Upgradeable proxy
No
Detected patterns
erc20, launchpad, moves-currency, ownable, return-delta, rewards, self-unlock, tax

Pools using TaxHook