Skip to Content
Docs

How it was tested

What was checked before launch, and what wasn't.

LayerWhat
Unit testsEvery contract, with Foundry
Fuzz tests10,000 runs per property (20,000 in CI)
InvariantsStateful tests on Market Row: the contract's BNB always equals open bids plus proceeds plus unpaid fees; item escrow equals open asks; the book never crosses; no fill is worse than its limit; cancelling returns exactly what's left; price levels stay sorted and first-in-first-out
Symbolic checksHalmos on GameItems
Static analysisSlither on every contract; a high finding fails the build except three detectors reviewed line by line (below)
End to endReal sessions through the CLI against a local chain: plant, a day passes, harvest, rare-find roll, quest
Upgrade safetyA storage layout snapshot of every upgradeable contract; a check fails if an upgrade moves, retypes or removes anything already stored
Skill lintA test that keeps the skill's rules and the CLI in step

Slither detectors reviewed by hand

DetectorWhy it isn't a bug here
weak-prngNotice Board orders, errand offers and Pim's cart use hash-based picks on purpose; guessing them only tells you which order comes next. Rare finds use the randomness oracle.
uninitialized-stateTwo mappings that start empty and are filled by their own functions
arbitrary-send-ethThe rare-find module refunds unspent BNB to the Keeper who sent it, last, behind a reentrancy guard

What wasn't done

There has been no external audit yet; one did not fit the launch timeline. Treat the contracts accordingly: play with amounts you are comfortable with, and keep Market Row orders modest. An external audit and a bug bounty are planned after launch.

On this page