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

Lender.sol - no token address checks

Vulnerability Details

There are several statements inside the if to make sure the config for the pool is correct, but there are no 0 address checks for the tokens provided, which could lead to the creation of an unusable pool.

Impact

Unnecessary gas payments when interacting with such pools.

Tools Used

Manual Review

Recommendations

Add a 0 address check for both tokens inside the if to avoid gas wasting.

Support

FAQs

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