-
Notifications
You must be signed in to change notification settings - Fork 170
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(oracle): power vote calculation #1852
Conversation
Co-authored-by: Adam Moser <63419657+toteki@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pushed some changes:
- fix simulations
- updates some comments
- combine two for loops with identical iterations
Looks good from my side as soon as test pass - might want to wait for another review from woz before resolving the final conversation
Codecov Report
📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more @@ Coverage Diff @@
## main #1852 +/- ##
==========================================
- Coverage 56.95% 56.91% -0.04%
==========================================
Files 93 93
Lines 8797 8803 +6
==========================================
Hits 5010 5010
- Misses 3422 3428 +6
Partials 365 365
|
* fix(oracle): power vote calculation * finish test * oracle: add SetVoteThreshold method * more VoteThreshold tests * lint * cleanup * Update x/oracle/types/params.go Co-authored-by: Adam Moser <63419657+toteki@users.noreply.github.com> * comment changes only (review) * combine loops * fix simulations * fix error test * fix sims? * review --------- Co-authored-by: Adam Moser <63419657+toteki@users.noreply.github.com> (cherry picked from commit 76fc6f1)
* fix(oracle): power vote calculation * finish test * oracle: add SetVoteThreshold method * more VoteThreshold tests * lint * cleanup * Update x/oracle/types/params.go Co-authored-by: Adam Moser <63419657+toteki@users.noreply.github.com> * comment changes only (review) * combine loops * fix simulations * fix error test * fix sims? * review --------- Co-authored-by: Adam Moser <63419657+toteki@users.noreply.github.com> (cherry picked from commit 76fc6f1) Co-authored-by: Robert Zaremba <robert@zaremba.ch>
Description
Fixes power vote calculation in the oracle end blocker.
#1845 partially handles that, but in fact introduces a bug.