near-daos / sputnik-dao-contract

Smart contracts for https://app.astrodao.com
https://astrodao.com/
MIT License
107 stars 76 forks source link

Throw error when proposal expire #205

Open Megha-Dev-19 opened 3 months ago

Megha-Dev-19 commented 3 months ago

After the proposal expires, it still allows users to vote, which I believe is to update the status of the proposal from “In Progress” to “Expired”, which is fine, but ideally it should throw an error in the contract that the voting is over, otherwise the user thinks that their vote was counted and the proposal should have been passed (if quorum reached) but they see "Expired".