Launchpad hook on HyperEVM

Uniswap v4 Hook Contract 0x23a075f280131f3f5b684942f97afa0a2afca8cc on HyperEVM · Launchpad

Volume (24h)
$19
Value locked (TVL)
$1.14
All-time volume
$19
Pools using this hook
1
Swaps (24h)
3 (1 traders)
Total swaps
3

What it does

Launchpad-style hook that charges every swap of a registered token a bounded tax, splitting it among the token creator, platform treasury and a rewards flywheel, while LPs can withdraw freely.

How it works step by step

  • Charges a tax on swaps of registered tokens, using return deltas to take part of the swap amount (bounds exposed as MIN_TAX_BPS and MAX_TAX_BPS, values not readable from bytecode).
  • Splits collected tax between the token creator, a platform treasury and a 'flywheel' rewards contract (shares set by PLATFORM_BPS and FLYWHEEL_BPS constants).
  • Creators can claim their accrued share; the treasury and flywheel shares are pushed out through dedicated functions, and the flywheel is notified of new rewards.
  • Only tokens registered through a factory-like address can initialize pools; liquidity adds are checked but withdrawals are never touched.
Swap behaviour
On swaps in pools of registered tokens, the hook takes a tax cut from the swap input or output via return deltas and records it as owed to the creator, treasury and flywheel. The exact tax rate per token is set at registration within hard-coded minimum and maximum bounds that cannot be read from the bytecode.
Liquidity behaviour
A before-add-liquidity check runs (it may restrict who can add liquidity), but remove-liquidity callbacks are disabled, so LPs can always withdraw freely.
Fee behaviour
A per-token swap tax set at registration within MIN_TAX_BPS to MAX_TAX_BPS (exact percentages unknown from bytecode) is split among creator, platform treasury and flywheel rewards; the pool's LP fee applies separately.
Owner & admin controls
An owner set via a one-time setup configures the factory and flywheel addresses; a factory/registrar registers tokens with tax settings and creator addresses can be updated. Tax rates appear bounded by constants whose values are unverified.

Enabled Uniswap v4 callbacks

beforeInitialize, beforeAddLiquidity, beforeSwap, afterSwap, beforeSwapReturnDelta, afterSwapReturnDelta

beforeInitialize: only allows pools for registered tokens; beforeAddLiquidity: validates liquidity additions; beforeSwap / afterSwap: compute and record tax; beforeSwapReturnDelta / afterSwapReturnDelta: take the tax from swap amounts.

Security & trust assessment

Risk level: medium, estimated (decoded bytecode, medium confidence).

Who controls it: The owner and registrar control token registration, tax settings within constant bounds, and creator/flywheel addresses. They cannot touch LP principal.

Risk to user funds: Traders lose the configured swap tax (capped by an unverified MAX_TAX_BPS) on each swap; accrued tax is held for creator, treasury and flywheel. LP principal cannot be locked or drained by the hook.

Security findings

  • [medium] Swap tax via return deltas: The hook deducts a per-token tax from swaps; it is bounded by a MAX_TAX_BPS constant, but that value cannot be confirmed from bytecode.
  • [info] LP withdrawals unrestricted: Remove-liquidity callbacks are disabled, so the hook cannot block or charge LP withdrawals.
  • [info] Not upgradeable: Direct contract, not a proxy.

Contract details

Verified source
No
Bytecode size
6,438 bytes
Upgradeable proxy
No
Detected patterns
erc20, moves-currency, ownable, return-delta, rewards, tax

Pools using Launchpad hook