code-423n4 / 2022-03-maple-findings

0 stars 0 forks source link

Gas Optimizations #38

Open code423n4 opened 2 years ago

code423n4 commented 2 years ago

Since there's a require statement to check whether ‘amount’ is the smaller operand of the two, can use unchecked block :

https://github.com/maple-labs/loan/blob/4c6fe2cd91d6d16b8434c426fe7eb6d2bc77bc30/contracts/Refinancer.sol#L16

lucas-manuel commented 2 years ago

Acknowledged but won't implement for cleanliness