The Dussehra::killRavana
function can be called multiple times, allowing the organiser to receive the full amount of Ether contributed by participants instead of just half.
The function killRavana
lacks a mechanism to prevent multiple executions. Each call to killRavana
transfers 50% of the total contributed Ether to the organiser. Multiple calls result in the organiser receiving more than the intended 50%.
Pass the following test in Dussehra.t.sol
The organiser can drain all the Ether from the contract, leaving nothing for the selected Ram.
Manual review.
Implement a check to ensure killRavana
can only be called once:
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.