Open code423n4 opened 2 years ago
ye0lde
Gas savings
"> 0" is used in the following location(s):
https://github.com/maple-labs/debt-locker/blob/81f55907db7b23d27e839b9f9f73282184ed4744/contracts/DebtLocker.sol#L312
Visual Studio Code, Remix
Change "> 0" to "!=0" for small gas savings.
Good catch.
Valid optimization.
Handle
ye0lde
Vulnerability details
Impact
Gas savings
Proof of Concept
"> 0" is used in the following location(s):
https://github.com/maple-labs/debt-locker/blob/81f55907db7b23d27e839b9f9f73282184ed4744/contracts/DebtLocker.sol#L312
Tools Used
Visual Studio Code, Remix
Recommended Mitigation Steps
Change "> 0" to "!=0" for small gas savings.