20,000 USDC
View results
Submission Details
Severity: low
Valid

prevent zero addresses of loan and collateral tokens

Details

allow passing zero address to the loanToken and the collateralToken will cause unnecessary gas consumption by executing the function setPool with invalid tokens ,and it is not gas efficient.

Recommendations

check for the loanToken and collateralToken
if (loanToken == address(0)) revert();
if (collateralToken == address(0)) revert();

Support

FAQs

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