Hooks.wtf

Introduction

Review notes and evidence

This report presents the smart contract findings from the 25 November 2026 review of Flaunch v3 at commit 38f14ff. The client and contract scope come from quote 007 for Flayer Labs.

Scope and method

The contract review covered launch creation, token behavior, Uniswap v4 hooks and callbacks, fee accounting, royalty recipients, escrow, staking, index graduation and dividends, and the launch and swap zaps. Uniswap core and periphery code was read where needed to confirm integration behavior; it was not subject to a standalone audit.

The source review combined code tracing, comparison with the 3 November review, targeted Foundry tests, fuzzing, static analysis and read-only Base checks. Candidate issues were challenged against their reachable paths, caller control, practical preconditions and measured effects before inclusion. Duplicate reports of the same root cause were counted once.

The source review records a successful baseline build, 594 passing tests and one skipped test. Its separate proof-of-concept run records 84 passing tests across 20 suites. Those 84 include controls, measurements and checks that rejected candidate issues; they are not 84 separate vulnerabilities. These are the source review's recorded results, not a new test run performed while preparing this report.

Severity

The final ratings follow the source review's scale and its verification results.

RatingBasis
CriticalDirect theft or permanent loss by an unprivileged party.
HighLoss with preconditions, or permanent denial of swaps or launches.
MediumBounded loss, costed griefing, extraction requiring capital, temporary denial of service, or the extent of damage possible through a privileged role.
LowEdge cases and hardening issues with a concrete failure.

There are no Critical findings in this report. B-02 retains its final Medium rating, with the source review's borderline High assessment explained on its page. B-03 is Low and B-16 is Medium after the Base checks described below.

Reproducing the contract tests

Download the Solidity evidence bundle and extract it outside the protocol checkout. It contains:

  • poc/: the reference Solidity tests and shared test bases.
  • poc/README.md: the setup instructions and test-to-finding mapping for this report.
  • verification/H-poc-run-log.md: the original 84-test execution record.

Use a checkout of flayerlabs/flaunch-v3-protocol at 38f14ff816697db48de056d62066a63dc61c0713 with its dependencies installed. From that checkout, set REVIEW_EVIDENCE_DIR to the absolute path of the extracted bundle and run:

git rev-parse HEAD
mkdir -p test/audit
cp "$REVIEW_EVIDENCE_DIR"/poc/*.sol test/audit/
forge build
FOUNDRY_GAS_LIMIT=1000000000000 forge test --match-path 'test/audit/*' -vv

Check that the printed commit matches the reviewed commit. The test files import the project's fixtures by relative path and compile from test/audit/. Run forge build first: sparse compilation from a bare --match-path call can leave the PoolManager artifact unavailable to setUp.

The raised Foundry gas limit is needed for the distribution gas scans. Those tests still check whether a call can complete under the chain's per-transaction cap. After reproducing the findings, remove only the copied evidence files from test/audit/ so they do not become part of the protocol's usual formatting, coverage or CI run.

A passing exploit test means the reported behavior reproduces at this commit. The bundle also includes negative controls and measurement tests, whose purpose is documented in the included README.

Base observations

The source review made read-only calls on 25 November 2026, around Base block 62,149,105. These observations describe that snapshot.

ObservationRelevance
PoolManager held zero RIVNc, BIRDc, AMCc and UNHc, and fewer than 100 whole tokens of 53 other whitelisted stock tokens.Supports B-16's final Medium rating: insufficient reserves were a practical integration condition.
10,000 blocks spanned 2,000 seconds, giving a 0.2-second block interval.Supports B-03's final Low rating and establishes the short holding period required by B-06 and B-07.
The largest transaction gas limit in a sample of 1,481 recent transactions was 16,777,216.Supports the cap used in B-12's distribution tests.
AAPLc and SNDKc kept the same ERC20 balances and total supply across observed multiplier changes, including an 8-for-1 split.The suspected rebasing issue was rejected. The protocol's balance-accounting assumption held in those checks.
All 72 stock addresses in the whitelist were distinct native tokens with eight decimals and non-zero supply.The source review found no incorrect stock address in that list.

The stock tokens are native to the chain and expose a one-byte code marker rather than ordinary EVM bytecode. The review could not establish their freeze or pause rules, and a local fork cannot reproduce their native implementation. B-10 therefore retains an explicit uncertainty about issuer controls for those tokens. The mock rebasing tests in the evidence bundle show a hypothetical incompatibility; they do not establish a vulnerability in the real stock tokens.

Follow-up to the earlier contract review

The source review compared the commit with the findings from 3 November. The following relationships matter to the findings included here.

Earlier findingStatus at the reviewed commitCurrent report
F-01: flash staking reward captureOriginal same-transaction form fixed; cross-block capture remains.B-06
F-02: internal swap pool price manipulationOriginal proof blocked; adding dust liquidity defeats the fix.B-01
F-05: Buy-and-Burn manipulationSame-block form blocked; cross-block manipulation remains.B-07
F-06: prebuy launch interferenceOriginal tests pass; nonce contention and unpinned price ordering are separate follow-on issues.B-08, B-14
F-07: privileged controlsThe fee cap was added; the ownership recovery concern remains.B-24
F-11: recipient gas isolationGas budgets are consistent; low caller gas can now defer every payout without reverting.B-13
F-14: owner-resolving recipientsPayout-time ownership resolution remains.B-21
F-19: ownership transferSingle-step transfers and renunciation remain.B-24

The review found no lost reentrancy guard in the two guard refactors. This table describes status at the reviewed commit; it is not a sign-off on later changes.

Review limits

The supplied review is tool-assisted and is not an independent human audit. Its Uniswap permission analysis rated FlaunchPoolHook at 25 of 33 on its risk scale, a tier for which it recommends multiple independent audits. That score describes review complexity and does not replace the severity of an individual finding.

Static analysis also had a coverage gap: Slither could not build its intermediate representation for seven settlement functions, including _afterSwap and closeInternalSwapPool. The integration findings rely on traced code paths and targeted tests as well as the static output.

The report covers a fixed source snapshot. Its findings state whether they need a privileged role, a particular market state, another venue, or a token issuer's action. The absence of a reported issue in another path should not be read as a guarantee about that path.

Previous
Overview