Money proof
One recorded run of npm run demo:money on NEAR testnet. Each step read every balance from the chain before and after, and compared the change with an amount calculated separately from the oracle price. One micro-USDC off fails the run. USDC here is a test token and the swap venue mints its output.
All checks passed · 2026-11-09 22:27 UTC
Fees into the reserve
$72.00
Profit paid to trader (80%)
$107.02
Profit paid to firm (20%)
$26.75
Breach loss paid by reserve
$207.68
| # | What happened | Exact changes | Transactions |
|---|---|---|---|
| 1 | Faucet: the trader gets test USDC | trader +$1,000.00 minted by mock venue or faucet +$1,000.00 | tx |
| 2 | Buy classic-1-5000: the fee goes to the risk reserve | trader −$36.00 tenor +$36.00 reserve book +$36.00 | tx |
| 3 | Pass the evaluation on paper: no real money may move | No money moved | tx 1tx 2 |
| 4 | fund(): capital leaves the vault for a new Guard account | tenor −$5,000.00 guard1 +$5,000.00 vault book −$5,000.00 capital deployed +$5,000.00 live max loss +$375.00 | tx |
| 5 | Swap all capital into BTC at $75000: USDC goes to the venue | venue +$5,000.00 guard1 −$5,000.00 | tx |
| 6 | BTC +2%: sell, and the proceeds return to the Guard | guard1 +$5,091.84 minted by mock venue or faucet +$5,091.84 | tx |
| 7 | Payout: $91.84 profit splits 80/20, capital stays put | trader +$73.48 treasury +$18.37 guard1 −$91.84 | tx |
| 8 | The trade-only key tries to pay a stranger: nothing may move | No money moved | tx |
| 9 | Swap all capital into BTC at $76500: USDC goes to the venue | venue +$5,000.00 guard1 −$5,000.00 | tx |
| 10 | Trader ends the account: profit splits, all capital returns to the vault | trader +$33.54 tenor +$5,000.00 treasury +$8.38 minted by mock venue or faucet +$5,041.92 vault book +$5,000.00 capital deployed −$5,000.00 live max loss −$375.00 | tx 1tx 2 |
| 11 | Buy classic-1-5000: the fee goes to the risk reserve | trader −$36.00 tenor +$36.00 reserve book +$36.00 | tx |
| 12 | Pass the evaluation on paper: no real money may move | No money moved | tx 1tx 2 |
| 13 | fund(): capital leaves the vault for a new Guard account | tenor −$5,000.00 guard2 +$5,000.00 vault book −$5,000.00 capital deployed +$5,000.00 live max loss +$375.00 | tx |
| 14 | Swap all capital into BTC at $75000: USDC goes to the venue | venue +$5,000.00 guard2 −$5,000.00 | tx |
| 15 | BTC -4%: breach, forced sale, and the reserve covers the $207.68 loss | tenor +$4,792.32 minted by mock venue or faucet +$4,792.32 reserve book −$207.68 vault book +$5,000.00 capital deployed −$5,000.00 live max loss −$375.00 | tx 1tx 2 |