Skip to content

Conversation

@RonTuretzky
Copy link
Collaborator

Summary

  • Remove minRequiredVotingPower state variable and related checks in castVote and castVoteWithMultipliers
  • Remove BelowMinRequiredVotingPower error from the interface
  • Remove setMinRequiredVotingPower admin function
  • Add _initialOwner parameter to initialize function and call __VotingMultipliers_init to fix initialization (tests were failing because ownership wasn't set up)
  • Update deploy scripts and test configs to remove the deprecated parameter

This allows all BREAD holders to vote regardless of their balance, fixing the issue where getVotingPower returns 0 even when users have some voting power but below the minimum threshold.

Test plan

  • All existing tests pass (80 tests)
  • Removed test for BelowMinRequiredVotingPower revert
  • Verified voting works without minimum threshold

- Remove minRequiredVotingPower state variable and related checks
- Remove BelowMinRequiredVotingPower error
- Remove setMinRequiredVotingPower function
- Add _initialOwner parameter to initialize function and call __VotingMultipliers_init
- Update deploy scripts and test configs

This allows all BREAD holders to vote regardless of their balance,
preventing the getVotingPower function from returning 0 for users
with small but non-zero voting power.
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