Omniscia Kanpeki Finance Audit

RewardManager Code Style Findings

RewardManager Code Style Findings

RMR-01C: Redundant Visibility Specifier

TypeSeverityLocation
Gas OptimizationInformationalRewardManager.sol:L28

Description:

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

Example:

contracts/managers/RewardManager.sol
28bytes32 public constant REWARDER_ROLE = keccak256("REWARDER_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.