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

Misleading comment

Summary

On #L.142 the poolId for pool p is computed using Lender::getPoolId but on the previous line a comment states that a check on the pool's balance is made which is incorrect.

Recommendations

Refactor the comment or move it to a line on which balances are actually checked.

Support

FAQs

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