Omniscia Kanpeki Finance Audit

StakingManager Code Style Findings

StakingManager Code Style Findings

SMR-01C: Redundant Visibility Specifier

TypeSeverityLocation
Gas OptimizationInformationalStakingManager.sol:L31

Description:

The linked variable is meant to be an internally accessible constant yet is declared as public.

Example:

contracts/managers/StakingManager.sol
31bytes32 public constant STAKER_ROLE = keccak256("STAKER_ROLE");

Recommendation:

We advise it to be set as private or internal to reduce the bytecode and gas cost of the contract's deployment.

Alleviation:

The Kanpeki Finance team opted not to apply this exhibit.