Omniscia Parabola Finance Audit
Dashboard Code Style Findings
Dashboard Code Style Findings
DAS-01C: Variable Mutability Specifiers
Type | Severity | Location |
---|---|---|
Gas Optimization | Informational | Dashboard.sol:L57-L65 |
Description:
The linked variables are assigned to only once during the contract's constructor
.
Example:
contracts/Dashboard.sol
56constructor(address _weth, string memory _base, string memory _symbol, uint _blockPerYear, address _reward, address _master, address _factory, address _ref) public {57 weth = IERC20(_weth);58 base = _base;59 symbol = _symbol;60 blockPerYear = _blockPerYear;61 reward = IERC20(_reward);62 master = IMasterChef(_master);63 factory = IUniswapV2Factory(_factory);64 ref = IStdReference(_ref);65 _owner = msg.sender;66}
Recommendation:
We advise them to be set as immutable
greatly optimizing the codebase.
Alleviation:
The Parabola team opted not to apply a remediation for this finding in the current iteration of the codebase.