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

fix(execution): fixing mistake on calculating unbonded power #806

Merged
merged 5 commits into from
Nov 10, 2023

Conversation

themantre
Copy link
Contributor

Description

This PR fixes a mistake in calculating unbonded power.
It is important to note that the power for an unbonded validator is zero.
Therefore, when calculating the powerDelta, we should consider the stake, not the power.

Copy link

codecov bot commented Nov 9, 2023

Codecov Report

Merging #806 (aa5135c) into main (02bff51) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             main     #806   +/-   ##
=======================================
  Coverage   82.98%   82.99%           
=======================================
  Files         173      173           
  Lines        8253     8254    +1     
=======================================
+ Hits         6849     6850    +1     
- Misses       1084     1085    +1     
+ Partials      320      319    -1     

@b00f b00f merged commit c834346 into main Nov 10, 2023
12 checks passed
@b00f b00f deleted the fix-unbond-power branch November 10, 2023 05:54
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