The function violates Checks-Effects-Interactions (CEI) pattern but is protected by nonReentrant modifier.
Likelihood:
Med: Though the pattern has been violated buy the impact is non-critical
Impact:
Since the function is already protected by nonReentrant guard, so the attacker can not reenter the `withdrawWinnings` function, causing low impact.
Follow CEI pattern for code clarity and defense-in-depth.
We only audit the current code in scope. We cannot make speculation with respect to how this codebase will evolve in the future. For now there is a nonReentrant modifier which mitigates any reentrancy. CEI is a good practice, but it's not mandatory. Informational
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.