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

`++i/i++` should be `unchecked{++i}/unchecked{i++}` when it is not possible for them to overflow, as is the case when used in for- and while-loops

Summary

There are 6 instances of this issue:

File: src/Lender.sol
233: for (uint256 i = 0; i < borrows.length; i++) {
293: for (uint256 i = 0; i < loanIds.length; i++) {
359: for (uint256 i = 0; i < loanIds.length; i++) {
438: for (uint256 i = 0; i < loanIds.length; i++) {
549: for (uint256 i = 0; i < loanIds.length; i++) {
592: for (uint256 i = 0; i < refinances.length; i++) {

This can be improved by using an uncheked block.

Support

FAQs

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