Commit 3300fef
Edward (Mike's bot)
docs(order-book): match README to widened u128 money math and CEI order in settle_funds
Two README updates to keep prose in sync with the code:
1. Section on integer math:
The old line claimed only the fee division uses u128. After the
widening commit, *every* product of two u64 money values is computed
in u128 and narrowed back via try_into. Also mention the per-fill
fee_quote <= gross_quote invariant.
2. Section 3.5 (settle_funds):
Document that unsettled_* are zeroed before the transfer CPIs, not
after, and explain why (checks-effects-interactions defence). This
is the README counterpart to the settle_funds CEI commit.1 parent a067c24 commit 3300fef
1 file changed
Lines changed: 11 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
476 | 476 | | |
477 | 477 | | |
478 | 478 | | |
479 | | - | |
480 | | - | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
481 | 483 | | |
482 | 484 | | |
483 | 485 | | |
| |||
622 | 624 | | |
623 | 625 | | |
624 | 626 | | |
| 627 | + | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
| 632 | + | |
| 633 | + | |
625 | 634 | | |
626 | 635 | | |
627 | 636 | | |
| |||
0 commit comments