Description:Description\
The function recoverRewards() recovers the unassigned rewards so that the owner of the campaign doesn't lose them.
But, the rewards that were assigned to users who didn't claim them for a long time will stuck in the contract forever. Which is a loss for both the user and the owner.
Attachments
Proof of Concept (PoC) File
Revised Code File (Optional)
In the attached file I've added a recoverUnclaimedRewards() to mitigate this issue
This is actually the intended functionality as to not force the user to do anything and allow the maximum amount of freedom in handling rewards claiming.
Github username: -- Twitter username: @flyingBird_246 Submission hash (on-chain): 0xba1576f3560a185af3575e0e4e6ae3b9d797227d236bc0d127927d88a5b79efd Severity: medium
Description: Description\ The function recoverRewards() recovers the unassigned rewards so that the owner of the campaign doesn't lose them. But, the rewards that were assigned to users who didn't claim them for a long time will stuck in the contract forever. Which is a loss for both the user and the owner.
Attachments
Proof of Concept (PoC) File
Revised Code File (Optional) In the attached file I've added a recoverUnclaimedRewards() to mitigate this issue
Files: