Omniscia Badai Tech Audit

Code Style

Code Style

During the manual portion of the audit, we identified 13 optimizations that can be applied to the codebase that will decrease the operational cost associated with the execution of a particular function and generally ensure that the project complies with the latest best practices and standards in Solidity.

Additionally, this section of the audit contains any opinionated adjustments we believe the code should make to make it more legible as well as truer to its purpose.

These optimizations are enumerated below:

IDSeverityAddressedTitle
AIK-01CGeneric Typographic Mistake
AIK-02CRepetitive Value Literal
BAI-01CGeneric Typographic Mistake
BAI-02CRepetitive Value Literal
BAS-01CGeneric Typographic Mistakes
BAS-02CIneffectual Usage of Safe Arithmetics
BAS-03CInefficient Maximum Mechanism
IPL-01CDeprecated Revert Pattern
IPL-02CInefficient Iterator Types
IPL-03CInefficient Token Skipping Mechanism
IPL-04CRedundant Application of Modifier
IPL-05CRedundant Parenthesis Statements
IPL-06CVariable Mutability Specifier (Immutable)