fix(exchange): load every order history page - #2542
Conversation
|
Claude finished @ethicnology's task in 2m 49s —— View job Review: fix(exchange): load every order history page
The fix is sound: the loop pages until a short/empty page, dedupes by
Findings1. Termination silently trusts that the server honors the requested
2. The loop has no absolute upper bound —
3. Edge case: a full page of all-duplicates aborts the remaining history — With 4. Performance / failure-amplification regression for the callers —
5. Pre-existing, now reachable mid-loop: Test nit: the exact-multiple case (last page completely full, next page empty — the SummaryNo blocking bugs — the happy path is correct and the infinite-loop guards work. The one change I'd recommend before merge is basing termination on |
listOrderSummaries only fetched page 1 (50 orders), silently dropping older transactions. Now pages through until the backend returns a short page.
Closes #2528