AdvancedFeeHookV3 on Base
Uniswap v4 Hook Contract 0xbeff407b7062e2fe15928960a58aec93b0c76044 on Base · Launchpad · Verified contract
- Volume (24h)
- $0
- Value locked (TVL)
- $5.18
- All-time volume
- $0.14
- Pools using this hook
- 100
- Swaps (24h)
- 17 (12 traders)
- Total swaps
- 42,386
What it does
A launchpad fee hook for BaseStonk tokens that charges a capped swap tax on trades and splits it between the platform, token burns, liquidity and configured creator payees.
How it works step by step
- Charges a per-pool swap tax of up to 10% through afterSwap and afterSwapReturnDelta
- Sends up to 1% of swap volume to the platform treasury as platform fee
- Burns a configured share of creator fees by sending tokens to 0x...dEaD, buying back the token first when the fee is in the paired currency
- Places single-sided liquidity wedges with part of the creator fee and collects leftovers to treasury
- Pays the remaining creator fee to up to 8 configured payees, with the last payee receiving the rounding remainder
- Blocks direct liquidity add and remove by users and restricts pool initialization to the launcher
- Swap behaviour
- After each swap the hook takes a tax (up to 10%) on the unspecified currency, pays half of it (capped at 1%) to the platform treasury, and distributes the rest through burns, single-sided liquidity and payees. Trades by the launcher address are not taxed.
- Liquidity behaviour
- No liquidity callbacks are implemented; adding or removing liquidity by users is blocked by reverting HookNotImplemented. The hook itself places single-sided liquidity wedges via poolManager.modifyLiquidity using part of the creator fee, and collects any leftover or failed wedge amounts to the treasury.
- Fee behaviour
- Charges a per-pool tax (taxBps, capped at 10%) on the unspecified side of every swap through afterSwap, returned as a hook delta. Half of the tax, capped at 1%, goes to the platform treasury. The remainder of the creator share is split between token burn to 0x...dEaD, single-sided liquidity re-injection, and payouts to configured payees. Swaps by the launcher address are exempt.
- Owner & admin controls
- Only platformAdmin can call setPayees to rewrite the payee list of a configured pool (any pool, up to 8 payees, shares must sum to BPS minus burn and liquidity shares). Any existing payee can reassign its own slot via transferPayeeSlot. The launcher is the only caller allowed to configure pools and initialize them, and configuration is write-once per pool. Tax rates and burn/liquidity splits are set once at configuration and are immutable afterwards; there is no pause, upgrade proxy or owner withdrawal function. platformTreasury, launcher and platformAdmin are immutable constructor arguments.
Enabled Uniswap v4 callbacks
beforeInitialize, afterSwap, afterSwapReturnDelta
beforeInitialize restricts pool initialization to the launcher. afterSwap takes the tax as a return delta and performs fee payouts, buybacks and liquidity placement. afterSwapReturnDelta lets the hook claim part of the swap output as its fee.
Security & trust assessment
Risk level: medium (verified source, high confidence).
Who controls it: The platform admin can redirect future creator fee splits of any pool by replacing the payee list at any time, potentially sending all creator fees to an address it controls. The launcher controls which pools get configured. The treasury receives platform fees and any residual funds, so the treasury key is a trust point for those amounts.
Risk to user funds: The hook can take up to 10% of swap output on tax-enabled pools and route it to the treasury, creator payees, burn address or liquidity wedges. It holds no persistent user balance and cannot block swaps for users, but a payout failure can leave tokens as ERC-6909 claims in the pool manager.
Security findings
- [medium] Admin can rewrite fee recipients: setPayees lets platformAdmin replace the entire payee list of any configured pool at any time, with no timelock, so future creator fees can be redirected.
- [info] Swap tax is taken by the hook: The hook takes up to 10% of every swap on the unspecified side via afterSwapReturnDelta, which directly reduces what traders receive for pools where the tax is set.
- [info] Failed payouts become ERC-6909 claims: _payOut falls back to poolManager.mint (ERC-6909 claims) if the direct take fails, so payouts to recipients that revert are held as claims in the pool manager rather than lost.
- [low] Buyback and liquidity wedge failures route funds to treasury: Buyback swaps and single-sided liquidity placement are executed with the hook's own funds from fees, with failure paths that swallow errors and send residual amounts to the treasury.
Contract details
- Verified source
- Yes (AdvancedFeeHookV3)
- Compiler
- solc 0.8.28+commit.7893614a
- Bytecode size
- 12,091 bytes
- Upgradeable proxy
- No
- Detected patterns
- erc6909-claims, launchpad, moves-currency, return-delta, tax
Pools using AdvancedFeeHookV3
- BALD / wtCOIN (0.30% fee) — 24h volume $0, TVL $0, 10 swaps today
- BITBANK / wtCOIN (0.30% fee) — 24h volume $0, TVL $0, 7 swaps today
- BSTONKB / BSTONK (0.30% fee) — 24h volume $0, TVL $0, 0 swaps today
- TIMI / wtCOIN (0.30% fee) — 24h volume $0, TVL $0, 0 swaps today
- COIN50 / wtCOIN (0.30% fee) — 24h volume $0, TVL $0, 0 swaps today
- BUILD / wtCOIN (0.30% fee) — 24h volume $0, TVL $0, 0 swaps today
- CLEF / wtCOIN (0.30% fee) — 24h volume $0, TVL $0, 0 swaps today
- TIMI / wtCOIN (0.30% fee) — 24h volume $0, TVL $0, 0 swaps today
- C50 / CLAIM (0.30% fee) — 24h volume $0, TVL $0, 0 swaps today
- BSTONKB / BSTONK (0.30% fee) — 24h volume $0, TVL $0, 0 swaps today
- WORTH / wtCOIN (0.30% fee) — 24h volume $0, TVL $0, 0 swaps today
- RUSSELL / wtCOIN (0.30% fee) — 24h volume $0, TVL $0, 0 swaps today
- BITBANK / wtCOIN (0.30% fee) — 24h volume $0, TVL $0, 0 swaps today
- BLUECHIP / NVDAc (0.30% fee) — 24h volume $0, TVL $3.63, 0 swaps today
- CATGAME / CLAIM (0.30% fee) — 24h volume $0, TVL $0, 0 swaps today
- BLUECHIP / wtNVDA (0.30% fee) — 24h volume $0, TVL $0, 0 swaps today
- BALD / wtCOIN (0.30% fee) — 24h volume $0, TVL $0, 0 swaps today
- BITBANK / wtCOIN (0.30% fee) — 24h volume $0, TVL $0, 0 swaps today
- DINGER / wtSPCX (0.30% fee) — 24h volume $0, TVL $0, 0 swaps today
- BUBBLEWRAP / wtCOIN (0.30% fee) — 24h volume $0, TVL $0, 0 swaps today