Changing:
bytes32 poolId = borrows[i].poolId;
uint256 debt = borrows[i].debt;
uint256 collateral = borrows[i].collateral;
To
Borrow calldata borrowInfo = borrows[i];
bytes32 poolId = borrowInfo.poolId;
uint256 debt = borrowInfo.debt;
uint256 collateral = borrowInfo.collateral;
Saves 9 gas in the tests because you only call the borrows[i] once.
vscode
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.