Releases: linear-protocol/validator-voting-contract
Releases · linear-protocol/validator-voting-contract
Validator Voting Contract v0.2.0
The v0.2.0 voting contract comes with below update:
- Tracks both YES and NO votes in the contract.
- No more votes are allowed after deadline passes;
- No voting result until deadline is reached. The voting result will be concluded in the first
ping()after deadline; - The proposal will pass if both conditions are satisfied:
- Total voted stake > 1/3 of total validator stake
- Stake voted with YES > 2/3 of total voted stake
What's Changed
- fix: don't remove kicked out validators in
ping()by @linguists in #8 - feat: update voting rules by @linguists in #9
Full Changelog: v0.1.0...v0.2.0
Validator Voting Contract v0.1.0
The purpose of this contract is for validators to vote on any specific proposal. Validators can call vote function to vote for yes or no with the staked amount on the validator. If there are more than 2/3 of the stake at any given moment voting for yes, the voting is done. After the voting is finished or the voting deadline has passed, no one can further modify the contract.
What's Changed
- feat: validator voting contract by @linguists in #1
- test: voting contract integration test by @linguists in #2
- fix: hide test functions by @linguists in #3
- fix: vote from new staking pool contract by @linguists in #5
- feat: vote with choice yes or no by @linguists in #6
- refactor: rename choice to vote by @linguists in #7
Full Changelog: https://github.com/linear-protocol/validator-voting-contract/commits/v0.1.0