Closed code423n4 closed 2 years ago
sirhashalot
The liquidateAllowed() function in ControllerV1.sol contract two input parameters that are not used. These could be removed to save gas.
liquidateAllowed()
The liquidateAmount and dexData variables are unused input parameters and could be removed.
Remove unused function input parameters for gas savings.
Duplicate to #153
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.