In transferReward and claimSingleReward function we use delete
to remove a reward from an array in the
mapping rewardsOwned
, but it does not change the length of the array after deleting an element.
If user will use this protocol for a long time and then use claimAllRewards
function , it must use for loop
for the array and it can cause extra gas for the user.
Change the logic.
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.