Hooks.wtf

Introduction

Dices Launchpad Security Review

This report presents the 25 November 2026 internal, tool-assisted review of the Dices launchpad at commit bcd45b2. It covers the launchpad contracts in src/ and the V001 deployment script.

Summary of findings

The review confirmed 22 findings: 4 Medium, 4 Low, 1 Undetermined and 13 Informational. It checked and rejected eight further candidates. There are no Critical or High findings in the consolidated report.

SeverityCountMain concerns
Medium4Permanently broken pools from zero creators, unreachable game levels, unbounded owner controls and manipulation of queued fee conversions.
Low4Mainnet ownership defaults, launch-block router exemptions, malformed calculator returns and inconsistent fee splits after calculator replacement.
Undetermined1The intended fee, reserve and sealed-game model requires client confirmation.
Informational13Callback gas, settlement dependencies, token behavior, unused code, documentation, events, testing and known design limits.

DICES-05 is the confirmed path for an unprivileged caller to leave with USDC: after a single 30,000 USDC buy, a contract starting with no coins, USDC or approvals received 470.38 USDC in the recorded test. The opportunity depends on a large buy leaving queued fees and is bounded by that buy's fee inventory.

The review found no path to remove the locked launch liquidity, take another user's coins or take credits from the escrow. This describes the reviewed snapshot and the tests recorded in the source report; it is not a guarantee about all possible behavior or later code.

Findings by contract

Each finding retains its original DICES identifier and final severity. Its complete write-up lives on one contract page; other affected contract pages link to it under shared findings. The table counts every confirmed finding once.

IDSeverityPrimary contract pageFinding
DICES-01MediumDicesHook.solA zero creator or buy-and-burn recipient makes USDC-fee swaps revert
DICES-02MediumLiveCalculator.solGame levels 9 and 10 can never unlock
DICES-03MediumDicesHook.solThe owner can change the fee, the split and the level of existing pools without bound or delay
DICES-05MediumInternalSwapPool.solQueued fees are converted at a spot price that any caller can push down first
DICES-04LowV001.s.solThe deployment script leaves a single EOA as owner on mainnet by default
DICES-06LowDicesHook.solThe launch-block guard does not stop anyone who uses the trusted router
DICES-07LowDicesHook.solA calculator that returns malformed data halts every swap; the level is not bounded
DICES-08LowInternalSwapPool.solThe swap pool keeps the fee split it was deployed with
DICES-09UndeterminedFeeCalculator.solThe fee model in the code is not the one in the brief as restated in AGENT.md
DICES-10InformationalInternalSwapPool.solA conversion position is opened on every buy; callback gas is high
DICES-11InformationalInternalSwapPool.solProduction code uses a settler from v4-core's test utilities
DICES-12InformationalDicesCoin.solAnyone can initialise the coin implementation
DICES-13InformationalInternalSwapPool.solETH sent to the swap pool is stuck
DICES-14InformationalLiveCalculator.solLevels price the coin on a supply that burning changes
DICES-15InformationalDicesCoin.solEvery holder gives Permit2 an infinite allowance
DICES-16InformationalDicesHook.solCode that cannot run or has no effect
DICES-17InformationalDicesHook.solDocumentation and comments promise things the code does not do
DICES-18InformationalDicesHook.solEvents leave gaps for indexers and monitoring
DICES-19InformationalDicesHook.solFees are taken from the PoolManager before the swapper pays
DICES-20InformationalDicesHook.solBlind spots in the test suite
DICES-21InformationalDicesHook.solDesign limits the team already documents
DICES-22InformationalDicesCoin.solUnbounded inputs

Review details

ItemDetails
ProtocolDices launchpad
RepositoryDices-Tech/launchpad-evm-tokens
Reviewed commitbcd45b2eea7b67477797df599443e2e8ae018f88 on main
Source review date25 November 2026
Source reviewerClaude Code, using Trail of Bits and Uniswap review skills
ScopeLaunchpad core in src/, plus script/deployment/V001.s.sol
Remediation statusThe supplied review does not include a subsequent review of fixes.

Contract scope

The documentation is organised by affected implementation contract, library or deployment script. Interfaces and tests support the analysis where needed to establish behavior.

ModuleReview focus
DicesHook.solLaunch validation, locked liquidity, callbacks, fee collection, owner controls and level synchronisation.
DicesCoin.solClone initialisation, holder counting, token supply, burns and Permit2 allowances.
InternalSwapPool.solQueued fee inventory, conversion pricing, temporary liquidity and settlement.
FeeEscrow.solBeneficiary validation, fully funded credits, claims and monitoring.
TrustedRouters.solRouter trust, caller attribution and inherited ownership.
FeeCalculator.solLaunch price, rates, fee distribution and agreement with the brief.
LiveCalculator.solRolling price averages, holder floors, market-cap targets and game levels.
CurrencySettler.solSettlement utility selection, reachable branches and comments.
UniswapEvents.solEvent coverage, unused declarations and indexing assumptions.
V001.s.solMainnet ownership, recipient validation and router wiring.
  1. Validate the creator in createCoin and the buy-and-burn recipient in the constructor (DICES-01).
  2. Confirm the holder requirements and intended fee model with the client (DICES-02, DICES-09).
  3. Choose a conversion price floor or a USDC buy-fee design before adjusting the conversion machinery (DICES-05).
  4. Before mainnet, cap fees, validate distributions and levels, require an explicit contract owner and use two-step ownership (DICES-03, DICES-04, DICES-07).
  5. Decide who may trade in the launch block and make the guard enforce that decision (DICES-06).
  6. Update the protocol documentation and expand tests around the confirmed failures (DICES-17, DICES-20).

Evidence and review limits

The review notes and evidence describe the method, recorded test results, rejected candidates and reproduction steps. Download the complete source review and Solidity proof-of-concept bundle for the original reports, verification records and test sources.

This is an internal, tool-assisted review, not an independent audit. The original Uniswap skill assessment placed the hook in a tier requiring a professional audit before mainnet. Preparing these pages did not rerun the Solidity tests, make on-chain queries or review a later commit.