When the pot is closed the remaining rewards are sent to the people who claimed their rewards, the problem here is that with ERC777 tokens that call the _callTokensReceived
hook on transfer to the recipient a malicious recipient can cause the transfer to fail by reverting the transaction to the _callTokensReceived
Hook.
The malicious contract can revert the tokensReceived
call.
Unclaimed funds remain stuck forever.
Manager are unable to claim their cut.
Manual Analysis
Do not transfer the funds to all the claimants in the closePot function, rather create a function for single transfers and batch transfers to the claimants.
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.