Omniscia DAFI Protocol Audit
ownable Code Style Findings
ownable Code Style Findings
OWN-01C: Variable Mutability Specifiers
| Type | Severity | Location |
|---|---|---|
| Gas Optimization | Informational | ownable.sol:L5, L6, L12, L13 |
Description:
The linked variables are assigned to only once during the contract's constructor.
Example:
contracts/ownable.sol
11constructor(address _owner,address _bridge) {12 owner = _owner;13 bridge = _bridge;14}Recommendation:
We advise them to be set as immutable greatly optimizing the codebase.
Alleviation:
The DAFI Protocol team evaluated this exhibit but opted not to apply a remediation for it in the current iteration of the codebase.