Length of array inputs not checked.
If the length of two array inputs are not equal, they may revert at the last index, and can lose a lot of gas.
Here, the i
iterates over the length of loanIds
. Thus if the length of poolIds
is less than loanIds
, it causes the whole loop to revert and a lot of gas is lost.
Manual Analysis
Check the length of two array inputs to be same if they are both used together in the function.
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.