CRITICAL: shore-up math double-subtracts cash — unreserved banks bankrupted without consulting the bond market #119
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Found by the v0.6.0 review (issue #118). Game.shoreUpNeed (game.go:596-607) computes:
The
− cashappears twice. The correct borrow target is bills + reserveNeed − cash, so post-bills cash lands on the reserve. Consequences:Evidence: scratch test (cash=3000, bills=1050, reserve=5000, 9500 standing in the market): short=50, bank borrowed 950, flagged "cannot meet the 10% reserve: the bond market could not shore up 1050" and went insolvent — with the market full. A live 80-turn spectate had all 3 bankruptcies reserve-triggered with zero successful shore-up borrows. This math was carried from the original #75 code when #114 unified it into shoreUpNeed.