Launchpad hook on Arc
Uniswap v4 Hook Contract 0x01427fc5b40d6dd3289b0052fb90dbf8dd5ba5dc on Arc · Launchpad
- Volume (24h)
- $0
- Value locked (TVL)
- $0
- All-time volume
- $0
- Pools using this hook
- 1
- Swaps (24h)
- 20 (11 traders)
- Total swaps
- 20
What it does
A Flaunch-style launchpad hook that deploys and initializes new token pools, charges and distributes swap and launch fees between protocol, creators and referrers, and manages bid walls and fee escrows for traders and LPs.
How it works step by step
- Registers new pools and records initial price, tick and paired token on initialization.
- Determines swap fees through a configurable fee calculator in beforeSwap.
- Takes a share of swap value through before and after swap return deltas and distributes fees to protocol, creators and referrers.
- Manages liquidity callbacks including bid wall handling and position-related fee accounting.
- Records price observations to an oracle and tracks swaps and donations.
- Holds fee escrows (paired token, referral, creator fees) and exposes ERC6909-style claims for them.
- Swap behaviour
- beforeSwap computes the swap fee through an external fee calculator and may take a share of the swap via return deltas; afterSwap tracks the swap and records oracle observations, and fees are split per the configured distribution.
- Liquidity behaviour
- Hook callbacks beforeAddLiquidity, afterAddLiquidity, beforeRemoveLiquidity and afterRemoveLiquidity are present; the add/remove paths appear to route through a bid wall and fee accounting, with the hook able to take or settle tokens and manage position-related state including bid walls and fee escrows.
- Fee behaviour
- Fees are split across a configurable fee distribution (protocol, creator and referral shares stored per pool and globally, adjustable by the owner). Swap fees are determined by an external fee calculator contract set by the owner (determineSwapFee). Flaunching fees are computed via getFlaunchingFee and market cap via getFlaunchingMarketCap, which can depend on the external oracle or fee calculator. Creator fees are accumulated per pool and withdrawable through fee escrow mechanisms.
- Owner & admin controls
- Owner (Ownable with two-step ownership handover) can set the fee calculator (setFeeCalculator), referral escrow (setReferralEscrow), flaunch contract (setFlaunch), initial price (setInitialPrice), protocol fee distribution (setProtocolFeeDistribution), global fee distribution (setFeeDistribution), per-pool fee distribution (setPoolFeeDistribution), close bid walls (closeBidWall), transfer or renounce ownership. Owner can also trigger fee-related state changes, so admin keys are a meaningful control point.
Enabled Uniswap v4 callbacks
beforeInitialize, afterAddLiquidity, afterRemoveLiquidity, beforeSwap, afterSwap, afterDonate, beforeSwapReturnDelta, afterSwapReturnDelta
beforeInitialize: validates and records pool setup, initial tick and paired token. afterInitialize: pool registration. beforeAddLiquidity and beforeRemoveLiquidity: liquidity gating and fee accounting around positions. afterAddLiquidity and afterRemoveLiquidity: post-position bookkeeping and fee settlement. beforeSwap and afterSwap: swap fee determination via the fee calculator, swap tracking and oracle observation. beforeSwapReturnDelta and afterSwapReturnDelta: the hook can take a share of swap amounts (fee capture and bid wall or rebalancing), altering the net currency deltas returned to the pool. afterDonate: donation accounting.
Security & trust assessment
Risk level: medium (decoded bytecode, low confidence).
Who controls it: The owner can repoint the fee calculator, oracle-dependent logic, referral escrow and flaunch contract, and can change fee distribution percentages, which directly alters how much of each swap or flaunch fee goes to protocol versus creators versus referrers. A compromised owner key could redirect fees or set parameters that affect user execution. Ownership handover pattern limits accidental transfers but not key compromise.
Risk to user funds: The hook can take a portion of swap and liquidity value via return deltas and currency settlement, holds fee and escrow balances (creator fees, paired token escrow, referral escrow) and can allocate these to parties. Owner-controlled parameters determine the split. Funds are therefore exposed to hook logic and to owner-set parameters.
Security findings
- [medium] Owner-controlled fee parameters: Owner can change fee distribution and fee calculator, changing swap and flaunch economics for all pools without user consent.
- [medium] Hook takes value through return deltas: beforeSwapReturnDelta and afterSwapReturnDelta are enabled, so the hook can take tokens from swaps and alter net deltas, which means it holds and moves a portion of user swap value.
- [low] Hook holds claims and moves currency: Hook exposes ERC6909-style claims and moves currency (take/settle/sync), so it holds pool-related balances that depend on correct accounting.
- [info] Unverified source: Contract is not verified; function behaviour is inferred from selectors and storage access only, so the analysis may be incomplete.
Contract details
- Verified source
- No
- Bytecode size
- 23,173 bytes
- Upgradeable proxy
- No
- Detected patterns
- erc6909-claims, moves-currency, ownable, return-delta, self-unlock
Pools using Launchpad hook
- MINER / XAUM (0.00% fee) — 24h volume $0, TVL $0, 20 swaps today