Omniscia Steer Protocol Audit

Whitelist Code Style Findings

Whitelist Code Style Findings

WTS-01C: Generic Typographic Mistake

TypeSeverityLocation
Code StyleWhitelist.sol:L5

Description:

The referenced line contains a typographical mistake (i.e. private variable without an underscore prefix, a non-snake_case module) or generic documentational error (i.e. copy-paste) that should be corrected.

Example:

src/Whitelist.sol
5mapping(address => bool) private whitelist;

Recommendation:

We advise this to be done so to enhance the legibility of the codebase.

Alleviation:

The Steer Protocol team evaluated this exhibit but opted to acknowledge it in the current iteration of the codebase.

WTS-02C: Variable Mutability Specifier (Immutable)

Description:

The linked variable is assigned to only once during the contract's constructor.

Example:

src/Whitelist.sol
6address public owner;
7
8constructor() {
9 owner = msg.sender;
10}

Recommendation:

We advise it to be set as immutable greatly optimizing its read-access gas cost.

Alleviation:

The owner contract-level variable of the contract has been set as immutable, optimizing its read-access gas cost significantly.