Omniscia BlazeSwap Audit
BlazeSwapDelegationPlugin Code Style Findings
BlazeSwapDelegationPlugin Code Style Findings
BDP-01C: Variable Mutability Specifier (Immutable)
Type | Severity | Location |
---|---|---|
Gas Optimization | BlazeSwapDelegationPlugin.sol:L9 |
Description:
The linked variable is assigned to only once during the contract's constructor
.
Example:
contracts/core/BlazeSwapDelegationPlugin.sol
9address public implementation = address(new BlazeSwapDelegation());
Recommendation:
We advise it to be set as immutable
greatly optimizing its read-access gas cost.
Alleviation:
The variable has been set as immutable
according to our recommendation.