code-423n4 / 2021-06-tracer-findings

1 stars 0 forks source link

Unused functions and variables #41

Closed code423n4 closed 3 years ago

code423n4 commented 3 years ago

Handle

pauliax

Vulnerability details

Impact

contract GasOracle has this unprotected function: function setDecimals(uint8 _decimals) external { decimals = _decimals; } However, I do not see that this 'decimals' variable is used anywhere, is it basically a dead and misleading code. Similar situation with contract Oracle functions setPrice and setDecimals. Another unused variable in contract Insurance: ITracerPerpetualsFactory public perpsFactory;

Recommended Mitigation Steps

Remove unused code.

raymogg commented 3 years ago

Duplicate of #122