-
-
Notifications
You must be signed in to change notification settings - Fork 3
Fix percentages not accounting for multipliers #65
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
Conversation
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.
Pull Request Overview
This PR fixes a bug where vote percentages were not accounting for vote multipliers. Previously, the code counted each voter equally (1 vote per voter), but now it properly calculates vote power by multiplying the base vote count by each voter's multiplier.
Key changes:
- Modified percentage calculation to use vote power (base vote × multiplier) instead of simple voter count
- Added vote multiplier tracking in vote data structure
- Added logic to recreate voter panels when multipliers change
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
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.
Pull Request Overview
Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
No description provided.