-
Notifications
You must be signed in to change notification settings - Fork 310
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pindexer: dex_ex: calculate USDC volume continuously (#4987)
This adds a field to the low level snapshot used to derive other metrics, which captures the current price of a given asset relative to USDC (configurable to an arbitrary indexing denom). This then allows a pair summary to have a more accurate view of the volume in USDC terms, and for the aggregate summary to thus have a more accurate view. As a side-effect, this also gets rid of liquidity minimums for considering denoms in the aggregate summary. To test, run pindexer again, compare the aggregate summary, and then check that the converted volume is about the same. ## Checklist before requesting a review - [x] I have added guiding text to explain how a reviewer should test these changes. - [x] If this code contains consensus-breaking changes, I have added the "consensus-breaking" label. Otherwise, I declare my belief that there are not consensus-breaking changes, for the following reason: > indexing only
- Loading branch information
1 parent
fd68dcd
commit 639c799
Showing
2 changed files
with
32 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters