selectWinner() - unsafe casting of fee
from uint256
down to uint64
.
If the fee
is a value larger than type uint64
max, the casting will cause overflow and result in no fees being added.
Also, if the fee
is smaller than uint64
max but large enough so that totalFees + uint64(fee) > type(uint64).max
, it will also overflow and result in zero total fees.
Low severity because it's highly unlikely to ever reach a fee value anywhere close enough.
Zero fees will be recorded if the near impossible happens.
address(this).balance
and totalFees
will be perpetually out of sync.
VSC.
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.