Omniscia Tokemak Network Audit

Toke Static Analysis Findings

Toke Static Analysis Findings

TOK-01S: Illegible Numeric Literal

TypeSeverityLocation
Code StyleInformationalToke.sol:L14

Description:

The numeric literal minted to the contract's deployer during its constructor is illegible.

Example:

contracts/token/Toke.sol
11constructor() public {
12 // TODO: split the supply among different accounts (e.g. staking rewards
13 // contract, team, etc.)
14 _mint(msg.sender, 100000000e18); // 100M
15}

Recommendation:

We advise it to be set to a contract-level constant declaration whose numeric value uses the underscore (_) numeric separator (i.e. 10000 becomes 10_000) as it is ignored by the Solidity compiler.

Alleviation:

The _ separator was introduced to the literal representing the total supply and it was also declared as a contract-level SUPPLY constant.