The giveLoan function does not check whether the lengths of the arrays submitted are equal. This can lead to unexpected results.
If one of the arrays is shorter, the additional values in the other array will be ignored. This could lead to unexpected results, which would be better served by reverting.
Manual review
Add a check to compare the length of the two arrays.
require(loanIds.length == poolIds.length, "array length not equal");
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.