ULTRAMINT security
Audited by

Smart contract audit

15 findings, none critical: 12 fixed and 3 acknowledged. Hexens verified the fixes.

Hexens, an independent security firm, reviewed the smart contracts that run ULTRAMINT markets. Here is what it found, what changed, and what the review did not cover.

Download the full report (PDF)

Final report, 13 Nov 20262.6 MB, 49 pages

AuditorHexens
Review leadTrung DinhLead Security Researcher
Final report
Findings1512 fixed, 3 acknowledged

Findings

What Hexens found, and what we did about it.

Fixed findings were changed in the contracts, and Hexens checked each fix. Acknowledged findings were not fully fixed: we accepted what remains of each, for the reason given under it.

  • Critical0
  • High1
  • Medium1
  • Low3
  • Informational10
Findings by severity
IDFindingSeverityStatus
FERM1-1Resolving a market during the buying window allows front-running of the outcome HighFixed
FERM1-6Seed provider can make risk-free underdog buys at the expense of the treasury Every winner is paid in full before the seed is refunded, so the exposure is limited to what the market keeps for the creator pool and the treasury. Fees in plain wordsMediumAcknowledged
FERM1-7Yield is shared by stake size only, so a late stake can take most of the accrued yield risk-free By design, every stake is valued at what was put in, so a vault loss and any recovery are shared by all stakes in the market, whenever they joined. Yield on positionsLowAcknowledged
FERM1-11Base's transaction gas cap prevents ordinary buys in 32-outcome markets LowFixed
FERM1-9Protocol resolver fee ignores collateral decimals LowFixed
FERM1-16Parlay baskets add too much liquidity depth: each selected cell is counted, though only one can pay InformationalFixed
FERM1-2priceBps() is documented as the marginal price but returns the softmax probability InformationalFixed
FERM1-3Seeded parlays refund losing buys when the winning cell is empty InformationalFixed
FERM1-5Seed-cover scaling can reduce an earlier winner's payout after a later buy InformationalFixed
FERM1-8Seed is deposited into the yield vault, contrary to the documentation InformationalFixed
FERM1-10Sub-basis-point prices cap fills while charging the full stake InformationalFixed
FERM1-12Outstanding allowlist signature can override the owner's later direct update InformationalFixed
FERM1-13Unused _isScalar() function InformationalFixed
FERM1-14Dispute incentives weaken as the market grows The challenge bond is capped at 2,500 USDC, and it comes back if the challenge is upheld or not ruled on in time. Fees in plain wordsInformationalAcknowledged
FERM1-15Misplaced NatSpec for _credit() InformationalFixed

Scope

The market contracts, at one commit.

Hexens reviewed the Strata market contracts: how markets are created, priced, resolved, challenged and paid out.

  • MarketCore
  • LsLmsr
  • MarketFactory
  • MarketScalar
  • DisputeResolver
  • Allowlist

Reviewed at

989ef62e3db320d56d34f9538c455b5f480eee5d

Fixes verified at

449fdaf596feaf4392101fe1ca5b0e6a38520822

Running on Base

96af5bfccd3cc25be6dab80670578109295e8b10

Production runs Strata 96af5bf. Its market contract code is identical to 449fdaf; the later commits change only the account contracts. The Strata repository is not public, so the commits are listed for reference.

Not covered by this audit

  • The ULTRAMINT account contracts: the account module, guard, setup and upgrader, and the account policy.
  • The release that added the fee pot, the per-market creator shares and the Market Promoter cap, as the Terms of Service state.
  • Any later release of the market contracts.

An audit lowers risk. It can't remove it.

Timeline

From first review to final report.

  1. Audit started
  2. Initial report
  3. Revision received
  4. Final report

Deployed contracts

The audited contracts on Base.

The production contracts whose source is in the scope above, at the addresses the bug bounty names, on chain ID 8453. Each address opens on Basescan. MarketCore has no address of its own: it is the base every market template is built on. The other templates and contracts the bug bounty lists add source outside this scope.

Audited contracts on Base
ContractRoleAddress
MarketFactoryCreates markets and selects the shape implementation0x51179033557503024263A9482A2f62B1Aa287fdc
DisputeResolverProtocol dispute and bonded-resolution path0xe6d588B88e5117CEb75bA782b63EA9DB6f67Fb87
MarketScalarScalar-market template0x62C3113E5d07d9Aaa5Af45667A1A00E3cd911193
LsLmsrPricing library0xab46f8D0dD500A9818770197aA357aBFBb2A4232

Report a vulnerability

Found something? Tell us privately.

Email engineering@fermah.xyz and include no live secrets. The bug bounty sets out what is in scope, the testing rules and what to send.