The teams array should be constant once set.
When a participant join the event, he bets on a country based on a country id. This country id is directly set by the function setCountry and can be called multiple time, even after the tournament started
Likelihood:
Will occur if the contract owner is malicious
Impact:
Participant can be scammed, they think they have bet on a country but the owner has changed the team array. Even if their bet is correct there is a posibility that they can be considered as loosers.
Impact 2
After a country won, call to setCountry with a different sorting in parameter string[48] memory countries, make the sorting as you need to maximise the contract owner profit.
When seting the winner, the teams array will be different from the one that participant has bet on.
Add a check on array teams.
Check that the array is already set by checking the value of the 1st element. By default the value is "" with a length of 0. Checking this value ensuer us that the array has already been set.
This is owner action.
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.