DeFiFoundry
20,000 USDC
View results
Submission Details
Severity: medium
Invalid

Missing validation of _totalTokens in FjordAuction

Summary

When the FjordAuction contract is created, there is not validation on _totalTokens parameter in constructor().

Vulnerability Details

If the _totalTokens is set as 0 and someone bid() on it they will get no auctionTokens as the multiplier will be 0.

Impact

It'll lead to user losing Fjord points and will get no auction tokens in return.

Tools Used

VS Code

Recommendations

Add a constraint of _totalTokens > 0 in constructor.

if (_totalTokens == 0) {
revert InvalidAuctionTokens();
}
Updates

Lead Judging Commences

inallhonesty Lead Judge 10 months ago
Submission Judgement Published
Invalidated
Reason: Non-acceptable severity

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.