DaiGoldAuction claim will always leave some dust inside the contract
claim calculates how much each user is owned by multiplying bidTokenAmount
by totalAuctionTokenAmount
and then dividing the result by totalBidTokenAmount
, while rounding down.
However unlike SpiceAuction
, DaiGoldAuction
has no way to retrieve the dust that is left out. This may seems small at first glance, but this rounding will round down on every claim call, on every auction, slowly accumulating over time.
Small amounts of tokens will end up stuck inside the contract.
Manual review
Create a function to rescue this dust, or use the _claimedAuctionTokens mechanic from SpiceAuction
.
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.