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

Two arrays with possible diffrent lenght in one for loop

Summary

Its not recomended to give two arrays with diffrent lenght in one for loop. You must to check if array lenght is equal

Vulnerability Details

In function giveLoan give two arrays of loanIds and poolIds if all loans is get from one pool then arrays will be with diffrent lenght and this will revert the transaction

Impact

Revert transaction because array lenght is diffrent

Tools Used

Manual Review

Recommendations

Check arrays lenght before for loop to be equal

Support

FAQs

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

Give us feedback!