Skip to content
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

Add tests mantissa refactor #97

Merged
merged 9 commits into from
Sep 21, 2023
Merged

Add tests mantissa refactor #97

merged 9 commits into from
Sep 21, 2023

Conversation

coreyar
Copy link
Collaborator

@coreyar coreyar commented Jun 16, 2023

Before updating the Venus Core subgraph I added tests. I used the Isolated Pool tests as a base and updated the handlers and graph keys to pass the tests.

This PR also changes how we use the vTokenDecimal. It is not assumed to be 8 but rather fetched from the contract.
This change and correcting some values labeled as mantissa but are actually scaled down will need to be brought to the isolated pools subgraph

@coreyar coreyar requested a review from gleiser-oliveira June 16, 2023 21:14
@coreyar coreyar force-pushed the add-tests-mantissa-refactor branch from 629ad18 to 81c0fc6 Compare June 19, 2023 13:21
@coreyar coreyar force-pushed the add-tests-mantissa-refactor branch 5 times, most recently from f6cf26b to 669efc9 Compare September 6, 2023 14:31
subgraphs/venus/schema.graphql Outdated Show resolved Hide resolved
subgraphs/venus/schema.graphql Outdated Show resolved Hide resolved
subgraphs/venus/schema.graphql Outdated Show resolved Hide resolved
subgraphs/venus/src/operations/update.ts Outdated Show resolved Hide resolved
subgraphs/venus/src/operations/update.ts Show resolved Hide resolved
subgraphs/venus/src/utilities/getBnbPriceInUsd.ts Outdated Show resolved Hide resolved
@coreyar coreyar force-pushed the add-tests-mantissa-refactor branch from 669efc9 to 26bbd10 Compare September 20, 2023 21:39
@coreyar coreyar force-pushed the add-tests-mantissa-refactor branch from 26bbd10 to bf53351 Compare September 20, 2023 21:47
@coreyar coreyar merged commit 143d30f into main Sep 21, 2023
2 checks passed
@coreyar coreyar deleted the add-tests-mantissa-refactor branch January 2, 2024 15:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants