20,000 USDC
View results
Submission Details
Severity: gas

Custom error with no error details

Summary

Some custom errors are raised with no details.

Vulnerability Details

There are 15 instances of this issue.

View 15 Instances
File: src/utils/Errors.sol
4: error PoolConfig();
5: error LoanTooSmall();
6: error LoanTooLarge();
7: error RatioTooHigh();
8: error FeeTooHigh();
9: error TokenMismatch();
10: error Unauthorized();
11: error AuctionStarted();
12: error AuctionNotStarted();
13: error AuctionEnded();
14: error AuctionNotEnded();
15: error RateTooHigh();
16: error PoolTooSmall();
17: error ZeroCollateral();
18: error AuctionTooShort();
File Link Instance Count Instance Links
Errors.sol 15 4,5,6,7,8,9,10,11,12,13,14,15,16,17,18

Impact

Errors raised with no details may make diagnosing failure unnecessarily difficult.

Tools Used

baudit: a custom static code analysis tool; manual review

Recommendations

Add parameters to the error that indicate which user or values caused the failure.

Support

FAQs

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