20,000 USDC
View results
Submission Details
Severity: gas

Custom error has no error details

Summary

Custom error has no error details

Vulnerability Details

Consider adding parameters to the error to indicate which user or values caused the failure.

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

https://github.com/Cyfrin/2023-07-beedle/blob/main/src/utils/Errors.sol#L4-L18

Impact

Informational

Tools Used

Manual review

Recommendations

Add parameters to the error to indicate which value caused failure

Support

FAQs

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