Skip to content

Conversation

@RonTuretzky
Copy link
Collaborator

Summary

  • Fixed getCurrentVotingPower to include voting power from the current cycle, not just the previous cycle
  • Changed the end block parameter from lastClaimedBlockNumber to block.number

This resolves the issue where users who hold BREAD in the current cycle would see 0 voting power returned.

Test plan

  • Verify getCurrentVotingPower returns non-zero for users with BREAD in current cycle
  • Verify existing voting functionality still works correctly

🤖 Generated with Claude Code

Change getCurrentVotingPower to calculate voting power from
previousCycleStartingBlock to block.number instead of just
to lastClaimedBlockNumber. This ensures users who hold BREAD
in the current cycle have their voting power counted.
@RonTuretzky
Copy link
Collaborator Author

reccomending merging this in and setting the minimum voting power to 0 to allow for instant voting @bagelface

we wil need to do another upgrade

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