In the 'Pot:Constructor', the initialization will fail if the players array is larger than the rewards array.
There is no check to ensure that the arrays are the same length or that the rewards array is at least as long as the players array. Since the initialization loop assumes both arrays are the same length, this will cause a failure:
In some cases, the admin will not be able to create a contest due to an "out of bounds" error, which can cause a loss of gas. The likelihood of this error is high, but the impact is relatively low since no actual funds are lost in the transaction except for the gas fees. Therefore, the total impact is considered Medium.
Manual code analysis.
One possible solution is to check the array lengths before proceeding and revert the transaction if the arrays do not match:
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.