The transferReward
function allows the transfer of rewards by index. However, if a reward at a given index has been deleted, it can still be transferred as a default-valued reward, leading to unintended behavior and potential confusion.
The transferReward
function uses delete
to remove rewards, which sets the reward to its default value but does not remove it from the array. Consequently, a reward at a deleted index can still be transferred, albeit with default values (e.g., an empty string for name
and zero for value
).
Recipients may receive rewards with default values, which are not meaningful or intended, leading to user confusion.
Manual Review
Implement checks to ensure that only valid, non-default rewards are transferred
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.