The for loops in MartenitsaVoting::announceWinner
and MartenitsaEvent::stopEvent
read from storage _tokenIds.length
and participants.length
respectively which consumes a lot of gas
The owner has to pay a lot of gasfee when he calls these functions
Instead of Reading from storage, creating Local Variables for array Lengths and using those Local Variables in the for loops will mitigate this issue.
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.