Omniscia Mantissa Finance Audit
Code Style
Code Style
During the manual portion of the audit, we identified 20 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 |
---|---|---|---|
CON-01C | Generic Typographic Mistakes | ||
CON-02C | Loop Iterator Optimizations | ||
MEC-01C | Inefficient mapping Lookups | ||
MEC-02C | Repetitive Value Literals | ||
MMS-01C | Inefficient Square Root Implementation | ||
MMS-02C | Inefficient Update of Pools | ||
MMS-03C | Loop Iterator Optimizations | ||
MMS-04C | Repetitive Value Literal | ||
PLO-01C | Loop Iterator Optimization | ||
PHR-01C | Deprecated Representation of Maximum | ||
PHR-02C | Documentation Discrepancy | ||
PHR-03C | Repetitive Value Literal | ||
PVE-01C | Loop Iterator Optimization | ||
RRE-01C | Ineffectual Usage of Safe Arithmetics | ||
RRE-02C | Redundant Casting Operation | ||
VGN-01C | Ineffectual Usage of Safe Arithmetics | ||
MNE-01C | Loop Iterator Optimizations | ||
MNE-02C | Potentially Redundant Shift Operation | ||
MNE-03C | Redundant Parenthesis Statement | ||
MNE-04C | Repetitive Value Literal |