Omniscia Kanpeki Finance Audit

Pausable Code Style Findings

Pausable Code Style Findings

PAU-01C: Redundant constructor Implementation

TypeSeverityLocation
Gas OptimizationInformationalPausable.sol:L14-L17

Description:

The Pausable contract contains a single statement in its constructor that assigns false to its _paused member.

Example:

contracts/roles/Pausable.sol
14constructor ()
15{
16 _paused = false;
17}

Recommendation:

All variables in Solidity are initialized to their default zero value, meaning that an assignment of false in the constructor is redundant. As a result, we advise the constructor to be completely omitted, reducing the bytecode size and gas cost of the contract's deployment.

Alleviation:

The Kanpeki Finance team opted not to apply this exhibit.