How it was tested
What was checked before launch, and what wasn't.
| Layer | What |
|---|---|
| Unit tests | Every contract, with Foundry |
| Fuzz tests | 10,000 runs per property (20,000 in CI) |
| Invariants | Stateful 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 checks | Halmos on GameItems |
| Static analysis | Slither on every contract; a high finding fails the build except three detectors reviewed line by line (below) |
| End to end | Real sessions through the CLI against a local chain: plant, a day passes, harvest, rare-find roll, quest |
| Upgrade safety | A storage layout snapshot of every upgradeable contract; a check fails if an upgrade moves, retypes or removes anything already stored |
| Skill lint | A test that keeps the skill's rules and the CLI in step |
Slither detectors reviewed by hand
| Detector | Why it isn't a bug here |
|---|---|
weak-prng | Notice 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-state | Two mappings that start empty and are filled by their own functions |
arbitrary-send-eth | The 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.