Launchpad hook on Ink

Uniswap v4 Hook Contract 0xb40439125d3d83f79fb7cd65e96e39c9294c00cc on Ink · Launchpad

Volume (24h)
$1.93K
Value locked (TVL)
$0
All-time volume
$1.93K
Pools using this hook
1
Swaps (24h)
6 (3 traders)
Total swaps
6

What it does

A token launch hook that charges fixed buy and sell taxes on swaps, which are paid to a tax recipient, and limits oversized trades right after launch, while LPs can withdraw freely.

This read was written for the hook 0x8f9a…c0cc on Ink 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 buy tax and a sell tax on swaps in a single token's pool, with the rates stored as read-only values in the contract.
  • Includes an anti-snipe limit tied to a launch time that can reject oversized trades shortly after launch.
  • Tracks a per-address amount during swaps, likely used for the anti-snipe limit.
  • Accumulates taxes as pending and lets anyone call collect() to send them to a fixed tax recipient.
Swap behaviour
On each swap the hook can take a buy or sell tax from the swap amounts through return deltas. Early after launch, trades exceeding an anti-snipe limit revert.
Liquidity behaviour
No liquidity callbacks; LPs can add and withdraw freely.
Fee behaviour
Buy and sell taxes are charged in basis points and capped by a MAX_TAX_BPS constant, whose exact value cannot be read from bytecode alone. Taxes collect as pending and are paid out to the tax recipient.
Owner & admin controls
No owner or setter functions were found; the tax rates, recipient, token and launch time appear fixed after deployment.

Enabled Uniswap v4 callbacks

beforeSwap, afterSwap, beforeSwapReturnDelta, afterSwapReturnDelta

beforeSwap: applies the tax and anti-snipe checks before execution; afterSwap: records per-address amounts and takes tax from the output; 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: No admin setters were detected, so no one appears able to change taxes or pause trading after deployment. The tax recipient receives all collected taxes.

Risk to user funds: Only swap amounts are touched, reduced by the buy or sell tax up to an unverified MAX_TAX_BPS cap. LP principal cannot be locked or drained.

Security findings

  • [low] Swap tax via return deltas: The hook deducts buy and sell taxes from swaps, bounded by a MAX_TAX_BPS constant whose exact value is not verifiable from bytecode.
  • [info] Anti-snipe trade limit: Trades above a limit near launch revert with AntiSnipeLimit, which temporarily restricts large buys or sells.
  • [info] LP withdrawals unrestricted: Remove-liquidity callbacks are disabled, so LPs can always withdraw.

Contract details

Verified source
No
Bytecode size
5,766 bytes
Upgradeable proxy
No
Detected patterns
moves-currency, return-delta, self-unlock

Pools using Launchpad hook