Loss of native eth funds send to RockPaperScissors
In our RockPaperScissors
contract we have the payable receive function which accepts direct eth transfer
But we can't able to recover those funds and those will be lost forever
-> send Eth the RockPaperScissors
contract
-> RockPaperScissors
contract only has withdrawFees()
function where owner able to withdraw the on the accumulatedFees
and not more than that
-> There is no other function provided to recover the native eth sent to the contract
we can add the below function to retrive the funds that was sent to the contract
added condition with RockPaperScissors::accumulatedFees
so that we wont withdraw the funds that was accumulated through the protocol fees which we use RockPaperScissors::withdrawFees
to withdraw
If we thought of no direct eth was needed , then we can remoe the payable receive funtion from the contract , so there will be no funds to lost as it will revert on direct eth transfers
ETH sent directly to the contract via the receive function or after a canceled game becomes permanently locked
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.