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:

IDSeverityAddressedTitle
BVT-01CGeneric Typographic Mistakes
BVT-02CNon-Standard Library Usage
BVF-01CGeneric Typographic Mistakes
BVF-02CLoop Iterator Optimization
CCM-01CGeneric Typographic Mistakes
CCM-02CIneffectual Usage of Safe Arithmetics
CCM-03CInefficient Duplicate Query of Storage Location
CCM-04CInefficient Loop Limit Evaluation
CCM-05CLoop Iterator Optimization
CCM-06CSuboptimal Struct Declaration Styles
CCD-01CGeneric Typographic Mistakes
CCD-02CNon-Standard Library Usage
CCD-03CSuboptimal Struct Declaration Styles
CPA-01CGeneric Typographic Mistakes
CPA-02CIneffectual Usage of Safe Arithmetics
CPA-03CLoop Iterator Optimizations
CPA-04CRedundant Initialization of Values
CPA-05CRedundant Repetitive Invocation of Getter Function
EET-01CIneffectual Usage of Safe Arithmetics
EET-02CNon-Standard Library Usage
MEG-01CRedundant Code Duplication
MEG-02CRepetitive Value Literal
VHB-01CGeneric Typographic Mistake
VHB-02CRedundant Logic Import