Description:
As Solidity doesn't support decimal number there is a change of loss precision in a division. Therefore this loss of precision can left some remaining amount locked in the contract.
For this reason a function to sweep the remaining dust is a good idea.
Impact:
Never is good have some dust tokens stuck in the contract, for that reason a function to get it out could be useful.
Proof of Concept:
Pot::closePot
has some divisions that make inevitable to left some token due to Solidity doesn't support decimal number
Recommended Mitigation:
Consider add a sweep function fo withdraw the remaining token due to the loss of precision.
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.