there is no check for the length of the two array loanIds[] and poolIds[] although the length of them should match .
without checking the length of the arrays loanIds[] and poolIds[] , it will waste much gas to execute the function and the for loop then revert after that .
check if the length of the two arrays loanIds[] and poolIds[] match befor the for loop .
if (loanIds.length != poolIds.length ) revert lengthNotMatches(); will prevent going through the loop without matching lengths .
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.