Launchpad hook on Arc

Uniswap v4 Hook Contract 0xed295a3c204575467f1bc186c5b17433859d28cc on Arc · Launchpad

Volume (24h)
$0
Value locked (TVL)
$290
All-time volume
$107.08K
Pools using this hook
6
Swaps (24h)
0 (0 traders)
Total swaps
2,251

What it does

A launchpad hook for a token pool that applies trading taxes, creator fee accounting and graduation-related gating on swaps and liquidity changes for traders and liquidity providers.

How it works step by step

  • Initializes pools on beforeInitialize and records token and creator metadata per pool.
  • Applies swap taxes through beforeSwapReturnDelta and afterSwapReturnDelta, taking a share of swap amounts.
  • Accrues creator fees per recipient and token, exposed through claimableFees and claimFees.
  • Gates liquidity additions and removals through beforeAddLiquidity and beforeRemoveLiquidity callbacks.
  • Tracks graduation market cap and anti-sniper state that gate trading behaviour.
  • Exposes owner-managed factory wiring and ownership transfer or renunciation.
Swap behaviour
beforeSwap and afterSwap run on every swap, applying a trade tax and buyback or platform fee via return deltas and tracking per-token state.
Liquidity behaviour
beforeAddLiquidity and beforeRemoveLiquidity and their after-callbacks are dispatched, indicating the hook gates or inspects liquidity changes, likely restricting trading or liquidity around the launch pool before graduation.
Fee behaviour
Fees appear to be set from constants and flags exposed by the hook (buy and sell pool fees, a dynamic fee flag, platform fee, buyback fee and trade tax in basis points), with creator fee recipients tracked per token and claimable through claimFees; exact fee formulas are not determinable from the decoded input.
Owner & admin controls
Owner (Ownable) can set the factory via setFactory, transfer ownership, and renounce ownership; the owner-gated functions are inferred from selectors only, so exact parameter-change capabilities such as graduation thresholds or tax parameters cannot be confirmed without source.

Enabled Uniswap v4 callbacks

beforeInitialize, beforeAddLiquidity, beforeSwap, afterSwap, beforeSwapReturnDelta, afterSwapReturnDelta

beforeInitialize registers the pool for a token; beforeAddLiquidity and beforeRemoveLiquidity inspect liquidity changes; beforeSwap and afterSwap run swap logic and taxes; beforeSwapReturnDelta and afterSwapReturnDelta indicate the hook takes a cut of swap amounts via return deltas, and afterSwap is nonpayable and writes state.

Security & trust assessment

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

Who controls it: The owner controls the factory address and ownership; a compromised owner key could reassign the factory and potentially alter token-related state or redirect fee-related flows, though the precise impact cannot be confirmed without source.

Risk to user funds: The hook can take a portion of swap amounts through return deltas and transfer tokens via the pool manager's take function, and tracks claimable creator fees, so user funds in swaps are subject to hook-defined taxes; the hook does not appear to hold large pooled liquidity itself, but the exact custody model is unconfirmed.

Security findings

  • [info] Swap-level tax via return deltas: The hook uses return deltas on swaps and calls take on the pool manager, so it can extract a portion of user swap amounts as tax and fees.
  • [medium] Single owner key: The contract is Ownable with transferOwnership and renounceOwnership, so a single key holds administrative authority over factory wiring.
  • [low] Unverified accounting logic: Several storage slots hold mappings of token state, fee claims and factory references, and afterSwap writes state, so behaviour depends on hook-internal accounting that could not be fully reviewed.

Contract details

Verified source
No
Bytecode size
16,568 bytes
Upgradeable proxy
No
Detected patterns
moves-currency, ownable, return-delta

Pools using Launchpad hook