Omniscia DAFI Protocol Audit

DAFITokenBSC Static Analysis Findings

DAFITokenBSC Static Analysis Findings

DAI-01S: Illegible Numeric Literal

TypeSeverityLocation
Code StyleInformationalDAFITokenBSC.sol:L14

Description:

The linked line contains an illegible numeric literal due to too many zeroes in sequence.

Example:

contracts/DAFITokenBSC.sol
13constructor(address _owner, address _bridge) Ownable(_owner,_bridge) {
14 maxSupply = 2250000000 * 10**_decimals;
15}

Recommendation:

We advise the special underscore (_) separator to be utilized as it is ignored by the compiler (i.e. 10000 becomes 10_000), increasing the legibility of the codebase.

Alleviation:

The DAFI Protocol team evaluated this exhibit but opted not to apply a remediation for it in the current iteration of the codebase.