After quorum is reached, distributeRewards and sendEth function are executed. It means, last voter whose vote is needed to reach quorum will pay much higher gas than other voters.
Last voter will pay double gas than rest of voters.
PoC
Test result:
Foundry
_distributeRewards might be external function with 'if' statement inside allow to call only if quorum is reached. To keep current logic of the contract, do not forget add 'if' statement in vote function as well to prevent enter the function after the quorum is reached.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.