code-423n4 / 2022-04-backed-findings

1 stars 1 forks source link

Gas Optimizations #127

Closed code423n4 closed 2 years ago

code423n4 commented 2 years ago

updateOriginationFeeRate max fee could be set as constant.

updateOriginationFeeRate; L303-312

To save gas on updateOriginationFeeRate the max fee of 5% could be implemented as a constant instead of having to be calculated every time.

wilsoncusack commented 2 years ago

cannot be constant because we need to be able to change it