Omniscia Metavisor Audit
Code Style
Code Style
During the manual portion of the audit, we identified 11 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 |
---|---|---|---|
ESR-01C | Potential Error Usability Enhancements | ||
MMV-01C | Inefficient Invocations of Getter Function | ||
MRY-01C | Inefficient mapping Lookups | ||
MRY-02C | Simplification of Conditional | ||
MRY-03C | Variable Mutability Specifiers (Immutable) | ||
UIH-01C | Implied Order of Operations | ||
UIH-02C | Improper Negation of Values | ||
UIH-03C | Ineffectual Usage of Safe Arithmetics | ||
UIH-04C | Inefficient Boolean Argument | ||
UIH-05C | Literal Value Presence | ||
UIH-06C | Suboptimal Struct Declaration Style |