When the user calls claimReward
and _isClaimEarly==false, if the user wants to withdraw the reward earlier and accept the penalty. He cannot call the claimReward
function again.
background:
If the claimReward
function has been called and it has not reached 3 weeks, it cannot be called again.
Users can determine whether to accept the penalty and skip the three-week waiting period through the parameters of the claimReward
function.
So if the user has already called the claimReward function once and chosen to wait 3 weeks, he cannot change his decision. He cannot withdraw the reward early.
Users cannot use the claimReward
function to withdraw rewards in advance, which is a design flaw. So I think the influence is Med. The possibility that the user wants to call this is Med/Low. So I think the ultimate risk is Med/Low.
manual
It is recommended to modify the judgment logic of claimReward
function and increase the priority of _isClaimEarly.
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.