20,000 USDC
View results
Submission Details
Severity: gas
Valid

++i Costs less Gas Than i++, Especially when it's used in for-loops And also Add unchecked{}

Summary

++i Costs less Gas Than i++, Especially when it's used in for-loops And also Add unchecked{}

Vulnerability Details

https://github.com/Cyfrin/2023-07-beedle/blob/main/src/Lender.sol

File: src/Lender.sol
233 for (uint256 i = 0; i < borrows.length; i++) {
293 for (uint256 i = 0; i < loanIds.length; i++) {
359 for (uint256 i = 0; i < loanIds.length; i++) {
438 for (uint256 i = 0; i < loanIds.length; i++) {
549 for (uint256 i = 0; i < loanIds.length; i++) {
592 for (uint256 i = 0; i < refinances.length; i++) {

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.