20,000 USDC
View results
Submission Details
Severity: gas

Custom error has no parameters

Summary

Custom error has no parameters

Vulnerability Details

Consider adding some parameters to the error describing the cause of the error

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();

Link to code - https://github.com/Cyfrin/2023-07-beedle/tree/main/src/utils/Errors.sol

Tools Used

Manual Code Review by SolSaver

Recommendations

Consider adding parameters to the custom errors that describe the error in more details

Support

FAQs

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