liquity / V2-gov

MIT License
9 stars 8 forks source link

Known Issue 2 - You can vote on a unregisterable initiative #35

Open GalloDaSballo opened 1 month ago

GalloDaSballo commented 1 month ago

You can waste you vote by voting on an unregisterable proposal

This can be fixed by enfocing a strong FSM by using getInitiativeState

GalloDaSballo commented 1 month ago

Can be fixed by removing the status in allocateLQTY meaning that any initiative that becomes unregisterable can never be voted on We also have a property check_unregisterable_consistecy that shows this breaking, can be used to test the fix