Launchpad hook on Base
Uniswap v4 Hook Contract 0xcfee68e91ddd8c0216fdd0bf6df045c8e925a0cc on Base · Launchpad
- Volume (24h)
- $2.97K
- Value locked (TVL)
- $0
- All-time volume
- $2.97K
- Pools using this hook
- 3
- Swaps (24h)
- 37 (13 traders)
- Total swaps
- 37
What it does
A launchpad-style tax hook that charges every swap in registered pools a fixed per-pool tax within hard-coded min and max bounds, then splits it among the creator, the treasury, flywheel rewards, and burn, while LPs can withdraw freely.
This read was written for the hook 0x47d7…20cc on Ethereum and reused here: the two share a code shape, so constants such as fees, owners and addresses can differ.
How it works step by step
- Charges a tax on swaps in registered pools, with the rate set per pool at registration and bounded by built-in minimum and maximum tax constants whose exact values are not readable from bytecode.
- Splits collected tax into buckets: token creator, platform treasury, a 'flywheel' rewards share, and per-pool burn or pool amounts.
- Lets creators claim their accrued share, and lets anyone or the engine push the flywheel and treasury shares to external contracts.
- Only pools registered through a factory can initialize with this hook.
- Records a tick per pool during swaps, likely for tracking price movement.
- Swap behaviour
- On each swap the hook can take a tax from the swap input (beforeSwap) or output (afterSwap) using return deltas, and moves those tokens out of the pool manager to itself. The exact tax rate per pool is set at registration within MIN_TAX_BPS and MAX_TAX_BPS limits that cannot be read from bytecode.
- Liquidity behaviour
- No liquidity callbacks; LPs can add and withdraw freely.
- Fee behaviour
- A per-pool swap tax, bounded by hard-coded minimum and maximum constants of unknown value, is split between the creator, the platform treasury, a flywheel rewards bucket, and burn or pool allocations using fixed split constants. Creators claim their share, and the treasury and flywheel shares are forwarded to external contracts.
- Owner & admin controls
- The owner can set the factory and engine addresses. The factory registers pools with their tax and split settings, and creator addresses can be reassigned. No function to raise a pool's tax after registration was identified, but this cannot be fully confirmed from bytecode.
Enabled Uniswap v4 callbacks
beforeInitialize, beforeSwap, afterSwap, beforeSwapReturnDelta, afterSwapReturnDelta
beforeInitialize: only allows registered pools; beforeSwap: computes and can take the tax on input; afterSwap: can take the tax on output and accrues balances; beforeSwapReturnDelta/afterSwapReturnDelta: let the hook deduct the tax from swap amounts.
Security & trust assessment
Risk level: medium, estimated (decoded bytecode, medium confidence).
Who controls it: An owner controls the factory and engine addresses, and the factory controls pool registration and tax settings within the constant bounds. The owner cannot block LP withdrawals.
Risk to user funds: Traders pay a swap tax bounded by an unverified maximum constant, and the hook holds accrued tax until it is claimed or pushed out. LP principal cannot be locked or taken.
Security findings
- [medium] Swap tax via return deltas: The hook deducts a per-pool tax from swaps. It is capped by a MAX_TAX_BPS constant, but that value cannot be verified from bytecode.
- [low] Owner sets factory and engine: The owner can change the factory, which registers pools and their configs, and the engine, which receives flywheel funds. This affects future pools and where rewards are sent.
- [info] LP withdrawals unaffected: The remove-liquidity callbacks are disabled, so LPs can always withdraw.
Contract details
- Verified source
- No
- Bytecode size
- 6,596 bytes
- Upgradeable proxy
- No
- Detected patterns
- moves-currency, ownable, return-delta
Pools using Launchpad hook
- ETH / HEPTAD (0.00% fee) — 24h volume $2.97K, TVL $0, 37 swaps today
- ETH / Test (0.00% fee) — 24h volume $0, TVL $0, 0 swaps today
- ETH / Testlaunch (0.00% fee) — 24h volume $0, TVL $0, 0 swaps today