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;
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.