Omniscia Mitosis Audit
Code Style
Code Style
During the manual portion of the audit, we identified 24 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:
ID | Severity | Addressed | Title |
---|---|---|---|
BVT-01C | Generic Typographic Mistakes | ||
BVT-02C | Non-Standard Library Usage | ||
BVF-01C | Generic Typographic Mistakes | ||
BVF-02C | Loop Iterator Optimization | ||
CCM-01C | Generic Typographic Mistakes | ||
CCM-02C | Ineffectual Usage of Safe Arithmetics | ||
CCM-03C | Inefficient Duplicate Query of Storage Location | ||
CCM-04C | Inefficient Loop Limit Evaluation | ||
CCM-05C | Loop Iterator Optimization | ||
CCM-06C | Suboptimal Struct Declaration Styles | ||
CCD-01C | Generic Typographic Mistakes | ||
CCD-02C | Non-Standard Library Usage | ||
CCD-03C | Suboptimal Struct Declaration Styles | ||
CPA-01C | Generic Typographic Mistakes | ||
CPA-02C | Ineffectual Usage of Safe Arithmetics | ||
CPA-03C | Loop Iterator Optimizations | ||
CPA-04C | Redundant Initialization of Values | ||
CPA-05C | Redundant Repetitive Invocation of Getter Function | ||
EET-01C | Ineffectual Usage of Safe Arithmetics | ||
EET-02C | Non-Standard Library Usage | ||
MEG-01C | Redundant Code Duplication | ||
MEG-02C | Repetitive Value Literal | ||
VHB-01C | Generic Typographic Mistake | ||
VHB-02C | Redundant Logic Import |