AdvancedFeeHookV5 on Base
Uniswap v4 Hook Contract 0xba83ee6969d09ceb8a4827c3ed77413c75392044 on Base · Dynamic fee · Verified contract
- Volume (24h)
- $0
- Value locked (TVL)
- $2.43K
- All-time volume
- $307.65K
- Pools using this hook
- 37
- Swaps (24h)
- 0 (0 traders)
- Total swaps
- 3,083
What it does
A launchpad fee hook that charges a configurable tax (up to 10%) on token swaps and splits the fee among a platform treasury, a token burn, creator-chosen payees and single-sided liquidity.
How it works step by step
- Takes a per-pool flat tax (taxBps, max 10%) from swap output through afterSwapReturnDelta.
- Sends up to 1% (half the tax, capped) of the swap to the platform treasury.
- Burns a configured share of the creator fee to the dead address when the fee is in the token.
- Adds the creator's liquidity share as a one-sided position just outside the current price.
- Distributes the remaining creator fee to a list of up to 8 payees by basis-point share.
- Falls back to ERC-6909 claim minting when a payout transfer fails.
- Swap behaviour
- On every non-launcher swap, afterSwap takes a flat tax from the unspecified side of the swap, pays up to 1% of the amount to the platform treasury, and distributes the rest to burn, liquidity and payees; non-token fee sides are bought back and burned through the same pool.
- Liquidity behaviour
- No liquidity callbacks are enabled; the hook does not gate or alter add/remove liquidity. It does itself add single-sided liquidity to the pool with the creator's liquidity share (a fixed 10-tick-spacing wedge placed just out of range of the current price), and undoes that position if it would require the hook to pay tokens.
- Fee behaviour
- A per-pool flat tax (taxBps, capped at 10%) is charged on the unspecified side of every non-launcher swap in afterSwap and returned as a positive afterSwap delta, so the hook takes tokens from the trader. Of the tax, up to 1% of the swap amount (half the tax, capped) goes to the platform treasury and the rest to the creator share, which is split into a burn to dead address, a single-sided liquidity add, and payouts to the payee list. Swaps performed by the launcher are exempt.
- Owner & admin controls
- The launcher (the only caller allowed to configure pools and initialize them) sets each pool's tax, burn and liquidity shares once via configurePool; the platform admin can replace payee lists at any time via setPayees and the current payee slot holder can reassign their own slot via transferPayeeSlot. Tax rates are capped at 10% (MAX_TAX_BPS 1000) and platform share at 1% of swaps. The contract is immutable (no proxy or owner-upgrade path found); the four addresses are set at construction.
Enabled Uniswap v4 callbacks
beforeInitialize, afterSwap, afterSwapReturnDelta
beforeInitialize: restricts initialization to the launcher through the pool manager. afterSwap: charges the tax, pays out the platform and creator shares, and returns the fee as a hook delta. afterSwapReturnDelta: allows the hook to take the tax from the swap output.
Security & trust assessment
Risk level: medium (verified source, high confidence).
Who controls it: The launcher can configure pool tax and split parameters once per pool and can initialize pools; the platform admin can overwrite payee recipients and shares for any configured pool at any time, redirecting future creator fees to any address. Payee slot holders can redirect their own slot. There is no pause or fee-cap change after configuration, and the contract holds no owner upgrade path.
Risk to user funds: The hook takes its tax directly from swap output via return deltas and can hold tokens transiently while settling its own liquidity wedge and buyback; it cannot block swaps outright since the swap callback only reverts on pool-manager or launcher misuse. Traders bear up to 10% tax per swap; LPs are diluted by the hook's own single-sided liquidity positions. Compromised platform admin keys could redirect creator fee streams.
Security findings
- [medium] Admin can redirect creator fee recipients: The platform admin can call setPayees at any time to replace the payee list for any pool, changing where the creator's share of every future swap fee is sent.
- [low] Payouts can be deferred to ERC-6909 claims: Payouts use poolManager.take with a 500k gas cap and fall back to minting ERC-6909 claims on failure, so creator and platform payouts can end up as unredeemed claim balances rather than tokens delivered to the recipient.
- [info] Swaps carry a configurable tax of up to 10%: Each swap by non-launcher traders pays a tax of up to 10% plus a platform share, applied to the unspecified side of the swap, so the trader receives less than the pool price implies.
- [low] Nested pool operations inside afterSwap: A non-token fee side triggers a buyback swap through the same pool via a nested poolManager.swap call inside afterSwap, and creator liquidity is added via modifyLiquidity; failures are caught and fall back silently, which hides errors rather than reverting.
Contract details
- Verified source
- Yes (AdvancedFeeHookV5)
- Compiler
- solc 0.8.28+commit.7893614a
- Bytecode size
- 12,140 bytes
- Upgradeable proxy
- No
- Detected patterns
- erc6909-claims, launchpad, moves-currency, return-delta, tax
Pools using AdvancedFeeHookV5
- COBIECAP / USDC (0.30% fee) — 24h volume $0, TVL $1.15K, 0 swaps today
- DANCINGCAT / wtCOIN (0.30% fee) — 24h volume $0, TVL $0, 0 swaps today
- JEWELS / USDC (0.30% fee) — 24h volume $0, TVL $1.22K, 0 swaps today
- のあちゃん / GOOGLc (0.30% fee) — 24h volume $0, TVL $17, 0 swaps today
- MARTIANS / wtSPCX (0.30% fee) — 24h volume $0, TVL $0, 0 swaps today
- HASBI / BSTONK (0.30% fee) — 24h volume $0, TVL $2.83, 0 swaps today
- JESSE / USDC (0.30% fee) — 24h volume $0, TVL $3.57, 0 swaps today
- 100 / wtCOIN (0.30% fee) — 24h volume $0, TVL $0, 0 swaps today
- BASE / wtCOIN (0.30% fee) — 24h volume $0, TVL $0, 0 swaps today
- ANAL / AAPLc (0.30% fee) — 24h volume $0, TVL $34, 0 swaps today
- SPARKY / wtSPCX (0.30% fee) — 24h volume $0, TVL $0, 0 swaps today
- NINJA / wtNVDA (0.30% fee) — 24h volume $0, TVL $0, 0 swaps today
- X402 / wtCOIN (0.30% fee) — 24h volume $0, TVL $0, 0 swaps today
- MARTIANS / wtSPCX (0.30% fee) — 24h volume $0, TVL $0, 0 swaps today
- REAL WOMEN / BSTONK (0.30% fee) — 24h volume $0, TVL $0, 0 swaps today
- 666 / wtMSTR (0.30% fee) — 24h volume $0, TVL $0, 0 swaps today
- LINUX / GOOGLc (0.30% fee) — 24h volume $0, TVL $0, 0 swaps today
- PICK / BSTONK (0.30% fee) — 24h volume $0, TVL $0, 0 swaps today
- STOCKS / wtCOIN (0.30% fee) — 24h volume $0, TVL $0, 0 swaps today
- STARBASE / wtSPCX (0.30% fee) — 24h volume $0, TVL $0, 0 swaps today