mirror of
https://github.com/luxfi/graph.git
synced 2026-09-24 00:26:07 +00:00
Valuing the history fixed the protocol's total and left every pool reporting the window a pass had just read, so a landing page claimed $206,718 in all-time volume above a list of pools claiming $4,159. Two sums of the same trades, taken in different places over different sets, and the reader has no way to tell which is which. They are one question sliced two ways. The store groups the swap table by pool in a single scan — the pool column has been indexed since a pool's own trade history needed it — and the pass folds that: each pool takes its row, each token takes the rows of the pools holding it, and the protocol takes the sum. What the pass valued this time around stays in the log, where it says what the pass did rather than what the chain has done. Co-authored-by: Hanzo Dev <[email protected]>