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

store MASP total rewards #3375

Merged
merged 4 commits into from
Jul 5, 2024
Merged

store MASP total rewards #3375

merged 4 commits into from
Jul 5, 2024

Conversation

tzemanovic
Copy link
Member

@tzemanovic tzemanovic commented Jun 5, 2024

Describe your changes

closes #1730

Additionally, the original impl didn't increment the token total supply with the minted reward. This is fixed by using the fn credit_tokens that takes care of it.

Indicate on which release or other PRs this topic is based on

v0.39.0

Checklist before merging to draft

  • I have added a changelog
  • Git history is in acceptable state

@tzemanovic tzemanovic marked this pull request as ready for review June 5, 2024 15:15
@tzemanovic tzemanovic requested a review from murisi June 5, 2024 15:16
Copy link

codecov bot commented Jun 5, 2024

Codecov Report

Attention: Patch coverage is 46.96970% with 35 lines in your changes missing coverage. Please review.

Project coverage is 53.91%. Comparing base (879a326) to head (b0f851f).

Files Patch % Lines
crates/sdk/src/queries/vp/token.rs 0.00% 18 Missing ⚠️
crates/apps_lib/src/client/rpc.rs 0.00% 12 Missing ⚠️
crates/sdk/src/rpc.rs 0.00% 5 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3375      +/-   ##
==========================================
- Coverage   53.92%   53.91%   -0.02%     
==========================================
  Files         317      317              
  Lines      107575   107634      +59     
==========================================
+ Hits        58011    58026      +15     
- Misses      49564    49608      +44     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@brentstone brentstone mentioned this pull request Jun 6, 2024
@brentstone
Copy link
Collaborator

Are we only waiting for review here?

@tzemanovic
Copy link
Member Author

Are we only waiting for review here?

yeah, I'll add a changelog

Copy link
Contributor

@murisi murisi left a comment

Choose a reason for hiding this comment

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

Looks good to me. Thanks!

brentstone added a commit that referenced this pull request Jun 7, 2024
* tomas/masp-total-rewards:
  changelog: add #3375
  client/rpc: print MASP total rewards in conversions query
  sdk: add a query for MASP total rewards
  shielded_token: store the total rewards minted by MASP
@brentstone brentstone merged commit 9502ac6 into main Jul 5, 2024
17 of 20 checks passed
@brentstone brentstone deleted the tomas/masp-total-rewards branch July 5, 2024 21:16
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.

Separate accounting for shielded rewards
3 participants