the function "giveLoan" that takes two input arrays as arguments, the lengths of these arrays must be equal.
There is no conditional check for the lengths of arguments loanIds and arguments poolIds. The lengths must be equal.
cost more gas
function giveLoan(
uint256[] calldata loanIds,
bytes32[] calldata poolIds
) external {
if(loanIds.length!=poolIds.length){
revert ArrayLengthsNotEqual();
}
for (uint256 i = 0; i < loanIds.length; i++) {
...
...
...
}
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.