ETH Dust Accumulation Due to Rounding
When handling ties in ETH games, if the calculated refund per player is not evenly divisible, the contract will permanently retain dust amounts:
Low. Small amounts of ETH will be permanently trapped in the contract with no mechanism to extract them. Over many games with odd bet amounts, this dust will accumulate.
For a bet of 105 wei:
Total pot = 210 wei
Fee (10%) = 21 wei
Remaining = 189 wei
Each player gets 94 wei (due to integer division)
Result: 1 wei is trapped permanently
Manual code review
Include a mechanism to account for rounding errors:
The tie-handling logic loses one wei due to integer division
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.