Omniscia Tokemak Network Audit

RewardHash Code Style Findings

RewardHash Code Style Findings

RHH-01C: Redundant Default Value Assignment

TypeSeverityLocation
Gas OptimizationInformationalRewardHash.sol:L17

Description:

The linked statement performs a default value assignment during the constructor's execution.

Example:

contracts/rewards/RewardHash.sol
16constructor() public {
17 latestCycleIndex = 0;
18}

Recommendation:

We advise it to be omitted.

Alleviation:

The constructor has been safely omitted.