The current cumulative pool volumes simply adds token volumes both in & out into a cumulative volume. For some calculations, like fee estimates, we need more granular data where the volumes swapped in & out are separated.
Notes:
With all swaps stored now, we may want to expose a custom resolver that runs a query over swaps instead of storing snapshots of cumulative volumes.
As example, see this PR 127
See also the subsquid docs for more info on custom resolvers.
The current cumulative pool volumes simply adds token volumes both in & out into a cumulative volume. For some calculations, like fee estimates, we need more granular data where the volumes swapped in & out are separated.
Notes: With all swaps stored now, we may want to expose a custom resolver that runs a query over swaps instead of storing snapshots of cumulative volumes. As example, see this PR 127
See also the subsquid docs for more info on custom resolvers.