Reporter: name each account's withdrawal count

The master clears a completed cycle once the payout it was waiting for has
left the account, and the balance going down is only visible from here.
Omitted rather than zeroed while an account's fund history hasn't loaded:
undercounting leaves an entry standing, a wrong zero would clear one early.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Brandon Li
2026-09-25 00:17:08 -05:00
co-authored by Claude Opus 5
parent 809f337055
commit 49c4725e0c
2 changed files with 21 additions and 5 deletions
+7 -2
View File
@@ -102,8 +102,13 @@ export interface FirmStats {
* payoutable flag or withdrawal stages, the test that reports its
* completions as 'payout' — null while the account has no type. Absent
* when the firm isn't synced (unknown, not empty). Optional: older
* instances omit it. */
accounts?: { name: string; size: number; payoutable: boolean | null }[];
* instances omit it.
*
* withdrawals = how many times the balance has gone down for a payout
* (negative fund transactions), which tells the master a completed
* cycle's money is out. Omitted while the account's fund history hasn't
* loaded, so a restart can't read as zero withdrawals. */
accounts?: { name: string; size: number; payoutable: boolean | null; withdrawals?: number }[];
/** Per account type, summing to the firm's own totals. Optional so a master
* on an older build simply ignores it. */
accountTypes?: AccountTypeStats[];