-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changed type on Pairs entities property volumeToken[x] #62
base: develop
Are you sure you want to change the base?
Conversation
…ameter to prevent build error
…Decimal with being calculated with each token decimals.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very nice Gabi, great work in the PR description 👍
Is this deployed anywhere yet that can be tested?
If it is, please add it in the description under a testing
section or similar
For reference, here's one of my recent PRs cowprotocol/cowswap#905
Think as if you are someone looking at this PR without much context and need to verify it.
List steps - if necessary - to validate the changes done here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome!
Sorry I missed this answer. Regarding this, we are only replacing the price for 0xee... token. If you are ok with this, I can add a ticket for addressing this change. |
Close #61
On entities Pair, PairHourly and PairDaily the properties volumeToken0 and volumeToken1 was expressed in BigInt with each volume calculated in atoms. That type made difficult to compare volumes and have a better idea of the volume traded.
volumeToken0 and volumeToken1 is now expressed in BigDecimal making the calculation of the decimals using each token decimals property.
Example query:
Previous version result:
New version result:
To test:
For testing this is deployed both on Ethereum mainnet and Gnosis chain
Here is an example query that should work for Pairs, PairsDailies and PairsHourlies entities:
The expected result is to have volumes of the tokens expressed with decimals, based on each token definition