Omniscia DAFI Protocol Audit
Data Static Analysis Findings
Data Static Analysis Findings
DAT-01S: Variable Mutability Specifier
| Type | Severity | Location |
|---|---|---|
| Gas Optimization | Informational | Data.sol:L10 |
Description:
The reduction variable is assigned to only once during the contract's constructor.
Example:
contracts/Data.sol
9uint256 public reward = 50000000000000000000;10uint256 reduction = 5000000000000000;11address[] platformUsers;Recommendation:
We advise it to be set to constant greatly optimizing the codebase.
Alleviation:
The constant mutability specifier was introduced for the reduction variable greatly optimizing the codebase.