Skip to content

store MASP total rewards#3375

Merged
brentstone merged 4 commits intomainfrom
tomas/masp-total-rewards
Jul 5, 2024
Merged

store MASP total rewards#3375
brentstone merged 4 commits intomainfrom
tomas/masp-total-rewards

Conversation

@tzemanovic
Copy link
Copy Markdown
Collaborator

@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
@codecov
Copy link
Copy Markdown

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 force-pushed the tomas/masp-total-rewards branch from 35bd91a to 054f915 Compare June 6, 2024 09:30
@brentstone brentstone mentioned this pull request Jun 6, 2024
@brentstone
Copy link
Copy Markdown
Collaborator

Are we only waiting for review here?

@tzemanovic
Copy link
Copy Markdown
Collaborator Author

Are we only waiting for review here?

yeah, I'll add a changelog

Copy link
Copy Markdown
Collaborator

@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
@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