Good evening,
I have some questions regarding the implementation of the final term's smart contract:
- What happens if there is a parity between yaySouls and naySouls? I assumed that in order to be confirmed a mayor needs the majority + 1, so in the event of a tie, the nos win
- Although not useful, is a voter allowed to vote with 0 souls? Is it left to our choice?
- I noticed that in cast_envelope it is not checked whether the voter has already voted or not, this, on the one hand, allows the voter to change his vote but on the other hand, causes an increase in voting_condition.envelopes_casted and therefore it could happen that the quorum is reached but in reality, only one voter voted, who only changed his vote several times. It's correct? I added a further control thus avoiding that a voter can vote more than once (and therefore not even allowing the modification of the vote).
Thank you.