Since the balance of the entire contract is not used to share the fee, a rare case can happen:
Being divided by 2 (multiply by 50/100), if the tokens has the last decimal set and the number is odd, 1 wei will stay in the contract.
Recommendation for this finding will even permit to retrieve funds donated by user who did not participated.
Likelyhood: Low
Only if the last bit of totalAmountGivenToRam
is set to 1. It means an odd number with the last decimal set.
Impact: Low
Dust stuck in the contract: 1 wei
More if people donate to the contract
Use address(this).balance
to divide the fees and send all this remaining balance to the selected Ram. It will prevent dust and will permit to collect any money if people donated to the contract.
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.