It's possible for funds to remain stucked in Dussehra contract if noone calls Dussehra::killRavana
method.
The function Dussehra::killRavana
is meant to not revert only between 12th October 2024 00:00:00 and 13th October 2024 00:00:00.
But if noone calls the function in that time period even if ram is selected, then funds will remain stucked in the Dussehra
contract - the organizer doesn't receive funds transfer and also the selected ram user cannot withdraw his/her reward because Dussehra::withdraw
requires that the state variable Dussehra::IsRavanKilled
is true
.
Organiser cannot withdraw his/her funds, nor the selected ram the reward.
Manual Review
Add the following test case to Dussehra.t.sol
:
Run the following command: forge test --mt test_cannotKillRavanaAfterEventIsFinished
Add function to fix the issue in such scenario which:
is callable only by the organiser
sets Dussehra::IsRavanKilled
to true
.
transfers half of the funds to the organiser
The organizer is trusted and he/she will call the `killRavana` function.
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.