Function "_getWinnerShares" can be optimized to save gas. It can use memory array to read user's addresses instead getting it from storage in a loop.
Likelihood:
Reason 1: When setWinner function is called
Impact:
Impact 1: Higher gas consumption
Run gas report with following results:
Mitigation is to use memory variable in a loop
The _getWinnerShares() function is intended to iterate through all users and sum their shares for the winning country, returning the total.
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.