[#71] Bond take screen: total cash offered + effective rate #72

Merged
robertismo merged 1 commit from 71-liquidity into master 2026-09-29 21:29:06 +00:00
Owner

Market liquidity summary on the take screen

The take screen's market table now ends with a TOTAL row:

  PRICE       UNITS TURNS LEFT IMPLIED / TURN
  1000           10        10      189.9000%
  1000           29        10      190.0000%  (yours)
  TOTAL          39,005                189.9744%
  • Total cash offered = Σ units × price across ALL standing offers (your own included, matching the table).
  • Effective rate = the per-turn discount blended cash-weighted across the offers: Σ(cash_i × rate_i) / Σ cash_i. Hand-checked against the smoke run: (10,005 × 189.9% + 29,000 × 190.0%) / 39,005 = 189.9744% ✓.

go build, go test ., go vet ./... green; spectate regression 0 [ai errors, 0 divergences, no leakage into headless mode.

## Market liquidity summary on the take screen The take screen's market table now ends with a TOTAL row: ``` PRICE UNITS TURNS LEFT IMPLIED / TURN 1000 10 10 189.9000% 1000 29 10 190.0000% (yours) TOTAL 39,005 189.9744% ``` - **Total cash offered** = Σ units × price across ALL standing offers (your own included, matching the table). - **Effective rate** = the per-turn discount blended cash-weighted across the offers: Σ(cash_i × rate_i) / Σ cash_i. Hand-checked against the smoke run: (10,005 × 189.9% + 29,000 × 190.0%) / 39,005 = 189.9744% ✓. `go build`, `go test .`, `go vet ./...` green; spectate regression 0 `[ai` errors, 0 divergences, no leakage into headless mode.
[#71] Bond market liquidity: total cash offered + effective rate on the take screen
All checks were successful
build / build (push) Successful in 25s
095cda44f5
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
Winnie/bankwars!72
No description provided.