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

pindexer: insights: correct calculation of total value shielded #4932

Merged
merged 1 commit into from
Nov 18, 2024

Conversation

cronokirby
Copy link
Contributor

Describe your changes

This corrects the calculation of the total value shielded. Previously, were were adding the absolute value of outbound transfers, as well as refunds to the total. Instead, we just need to consider deposits.

To test, we should look at current mainnet data, and make sure that the total for USDC is changing appropriately.

Issue ticket number and link

Closes #4925

Checklist before requesting a review

  • I have added guiding text to explain how a reviewer should test these changes.

  • 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:

    REPLACE THIS TEXT WITH RATIONALE (CAN BE BRIEF)

Copy link
Contributor

@conorsch conorsch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approving optimistically; along with another batch of pindexer improvements landing today, I'll reindex the insights db and we can observe the effect live.

@conorsch conorsch merged commit 0b413ac into main Nov 18, 2024
14 checks passed
@conorsch conorsch deleted the 4925-insights branch November 18, 2024 21:42
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.

Don't take into account refunds for "total value shielded"
2 participants