Description:
Location in Code: The end
and withdraw
functions.
State variables are sometimes updated after making external calls.
If the external call fails or is exploited, the state may not reflect the correct status.
Impact:
The contract's state may be inconsistent, leading to vulnerabilities or loss of funds.
Proof of Code :
Recommendation:
Update state before external calls.
Reorder code to ensure state reflects the intended action before any external interaction.
Corrected Code:
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.