code-423n4 / 2022-07-swivel-findings

0 stars 1 forks source link

Gas Optimizations #14

Closed code423n4 closed 2 years ago

code423n4 commented 2 years ago

https://github.com/code-423n4/2022-07-swivel/blob/fd36ce96b46943026cb2dfcb76dfa3f884f51c18/Creator/VaultTracker.sol#L123

In VaultTracker.sol, at line 123 Instead of "maturityRate > 0", using "maturityRate != 0" will cost less in terms of gas.

JeeberC4 commented 2 years ago

Warden submitted multiple Gas Optimizations. Will not be judged.