Skip to content

Add governance edge case tests -- voting twice, zero balance, tie-breaking - #663

Merged
DeFiVC merged 8 commits into
ChainLearnOfficial:mainfrom
Johnpii1:issue-532
Oct 20, 2026
Merged

DeFiVC merged 8 commits into
ChainLearnOfficial:mainfrom
Johnpii1:issue-532

Conversation

@Johnpii1

Copy link
Copy Markdown
Contributor

closes #530
closes #531
closes #532
closes #533

Description

Added unit tests for governance edge cases in the Learn Token contract.

Changes Made

  • Tested that a voter cannot vote twice on the same proposal.
  • Tested voting when no balance snapshot is available.
  • Tested that voting is rejected after the voting period ends.
  • Tested that proposals cannot be executed before the voting period ends.
  • Tested tie-breaking behavior when multiple choices receive equal votes.

Testing

  • Added unit tests for the listed governance scenarios.
  • Tests have not yet been executed.

@drips-wave

drips-wave Bot commented Oct 19, 2026

Copy link
Copy Markdown

@Johnpii1 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@DeFiVC
DeFiVC merged commit db2ab91 into ChainLearnOfficial:main Oct 20, 2026
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants