The closePot
function in the Pot
contract calculates claimantCut
using integer division, which can lead to truncation and result in unclaimed tokens. This issue can cause a small amount of tokens to remain undistributed.
The claimantCut
calculation in the closePot
function uses integer division.
Integer division truncates any remainder, potentially leaving a small number of tokens undistributed.
A small amount of tokens may remain in the contract, leading to inefficiencies and potential disputes over the remaining balance.
Manual Review
Implement logic to handle any remainder from the division, ensuring all tokens are distributed. For example, consider distributing the remainder to a few claimants or the contract owner.
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.