15,000 USDC
View results
Submission Details
Severity: gas
Valid

DSCEngine__NotAllowedToken

Summary

Adding (address token) as an argument.

Vulnerability Details

Add (address token) as an argument in below code =>
error DSCEngine__NotAllowedToken(address token);

modifier isAllowedToken(address token) {
if (s_priceFeeds[token] == address(0)) {
revert DSCEngine__NotAllowedToken(token);
}
_;
}

Impact

It will include the token address that caused the error as an argument to the error. This can provide more detailed information about what caused the error and can be useful for debugging and troubleshooting.

Tools Used

Manual Review

Recommendations

Support

FAQs

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