code-423n4 / 2022-01-openleverage-findings

0 stars 0 forks source link

Unused input parameters #263

Closed code423n4 closed 2 years ago

code423n4 commented 2 years ago

Handle

sirhashalot

Vulnerability details

Impact

The liquidateAllowed() function in ControllerV1.sol contract two input parameters that are not used. These could be removed to save gas.

Proof of Concept

The liquidateAmount and dexData variables are unused input parameters and could be removed.

Recommended Mitigation Steps

Remove unused function input parameters for gas savings.

ColaM12 commented 2 years ago

Duplicate to #153