The giveLoan
function, in charge of allowing lenders to transfer loan (loanIds) to give to a respective pool (poolIds), simultaneously iterates over both arrays based on the length of just one of them (loanIds). If the number of elements in poolIds is less than that in loanIds, the whole transaction will be reverted for attempting to access an out-of-bounds index.
The whole transaction will be reverted
Consider including a require clause with an explicit error message to check for matching array length.
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.