JoinSEEDS / seeds-smart-contracts

Smart contracts for SEEDS - A Regenerative Civilization Building Game.
https://docs.google.com/document/d/1C4w9Ol8VGabCIcQDVPDrwcTRoJXBqhrb7VjslwQbUGU/edit#heading=h.6f4sxygso816
MIT License
20 stars 6 forks source link

revert votes does not use a user's votes #370

Closed n13 closed 3 years ago

n13 commented 3 years ago

also implemented for delegation

What

Revert votes needs to just revert a user's votes, not use votes from the current vote pool - so on an eval proposal, a revert does not consume votes. It just reverts a yes to a no with the same number of votes.

Fixes #369 for proposals.

Note

Was a bit tricky with vote delegation but I modified the unit tests for reversal of notes so have some confidence it works.

Contracts

proposals

No other contracts affected