TaxHook on Base
Uniswap v4 Hook Contract 0x4eae159d76ff5bbe5eaf15d9278df987eeb120cc on Base · Launchpad · Verified contract
- Volume (24h)
- $0
- Value locked (TVL)
- $0
- All-time volume
- $0
- Pools using this hook
- 2
- Swaps (24h)
- 8 (5 traders)
- Total swaps
- 8
What it does
A launchpad tax hook that charges every buy and sell 1% to 10% in the quote asset (up to 80% during a sniper window of at most 5 minutes), sending it to the platform, the creator, locked liquidity, stakers and buy-and-burn, while LPs can always withdraw freely.
How it works step by step
- Charges a trading tax on every swap of a launched token, always taken in the quote asset (such as USDC or WETH), never in the token itself.
- Every trade pays a standard 1% fee: 0.5% to the platform treasury and 0.5% to the token creator.
- The creator can add 0% to 9% extra on buys and sells, so traders pay 1% to 10% in total. That extra is split between the creator, the locked pool liquidity, a staking vault and buy-and-burn.
- An optional sniper tax can start at 80% and fall in a straight line to the normal rate over at most 5 minutes after launch.
- Only the platform's launch adapter can open pools on this hook, and only one pool per token is allowed.
- Swap behaviour
- Buys pay the tax out of the quote going in and sells pay it out of the quote coming out, at 1% to 10% (up to 80% during a sniper window of 5 minutes or less). Swaps that would only partially fill are reverted.
- Liquidity behaviour
- No liquidity callbacks; LPs can add and withdraw freely. Pools run at a 0% LP fee, so outside LPs earn nothing from the tax, and the liquidity share of the tax is added only to the platform's locked position.
- Fee behaviour
- Total fee is 1% to 10% per trade: 0.5% to the platform, 0.5% to the creator, plus a creator-set 0% to 9% split among creator, liquidity, stakers and burn. A sniper tax can start at 80% and decay linearly to the normal rate within 5 minutes, and dynamic launches can only lower their rates.
- Owner & admin controls
- On dynamic launches, the creator's tax admin can lower rates and change the four-way split (split changes take effect after a 24-hour delay), but can never raise rates above 9% plus the 1% standard fee. The protocol guardian can permanently turn the tax off for one pool or all pools; the owner can set the keeper, migrate the staking vault, and release stuck booked funds 7 days after a pool's tax is turned off; only the keeper or treasury can run compound and burn.
Enabled Uniswap v4 callbacks
beforeInitialize, beforeSwap, afterSwap, beforeSwapReturnDelta, afterSwapReturnDelta
beforeInitialize: only the launch adapter can create a pool, one per token; beforeSwap: charges tax on exact-input buys and exact-output sells; afterSwap: charges tax on exact-input sells and exact-output buys, and checks full fills; beforeSwapReturnDelta and afterSwapReturnDelta: let the hook take the tax amount from the swap.
Security & trust assessment
Risk level: low (verified source, high confidence).
Who controls it: Not stated.
Risk to user funds: The hook takes 1% to 10% of each swap's quote amount (up to 80% during a sniper window of at most 5 minutes) and holds it until it is paid out to fixed recipients. It cannot touch LP principal, and withdrawals are unrestricted.
Security findings
- [info] Hard-capped tax: The creator's tax is capped at 9% on top of the fixed 1% standard fee, so traders pay at most 10%, and dynamic launches can only lower their rates.
- [low] Short sniper tax window: Right after launch the total tax can be as high as 80%, decaying linearly to the normal rate within at most 5 minutes. This schedule is fixed at launch and cannot be restarted.
- [info] One-way fail-open: The guardian can permanently disable the tax on a pool or on all pools. This only removes fees and never blocks trading.
- [info] LP withdrawals unaffected: Remove-liquidity callbacks are disabled, so the hook can never block or charge LP withdrawals.
Contract details
- Verified source
- Yes (TaxHook)
- Compiler
- solc 0.8.24+commit.e11b9ed9
- Bytecode size
- 24,382 bytes
- Upgradeable proxy
- No
- Detected patterns
- erc20, launchpad, liquidity-management, moves-currency, ownable, return-delta, self-unlock, tax
Pools using TaxHook
- TOSHI2.0 / TOSHI (0.00% fee) — 24h volume $40, TVL $0, 2 swaps today