Omniscia Myso Finance Audit
Code Style
Code Style
During the manual portion of the audit, we identified 31 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 |
---|---|---|---|
BVL-01C | Multiple Top-Level Declarations | ||
BVL-02C | Suboptimal Struct Declaration Styles | ||
BGY-01C | Code Simplification | ||
BGY-02C | Redundant Parenthesis Statement | ||
BGY-03C | Relocation of Statement | ||
CBC-01C | Redundant Parenthesis Statement | ||
CBW-01C | Inexplicable Price Methodology | ||
CLP-01C | Inefficient Withdrawal Flow | ||
CLP-02C | Redundant Function Argument | ||
ESR-01C | Potential Error Usability Enhancement | ||
FPL-01C | Duplicate Calculation of Same Value | ||
FPL-02C | Ineffectual Usage of Safe Arithmetics | ||
FPL-03C | Inefficient mapping Lookups | ||
FPL-04C | Redundant Parenthesis Statement | ||
LVI-01C | Code Repetition | ||
LVI-02C | Implicit Arithmetic Grouping | ||
LVI-03C | Inefficient Removal of Signer | ||
LVI-04C | Inefficient mapping Lookups | ||
LVI-05C | Redundant Temporary Variable | ||
LVI-06C | Restrictive Automated Withdrawal Feature | ||
LPI-01C | Generic Typographic Mistake | ||
LPI-02C | Inefficient mapping Lookups | ||
LPI-03C | Redundant Parenthesis Statement | ||
OOE-01C | Misleading Contract Setup | ||
OEL-01C | Generic Typographic Mistake | ||
OEL-02C | Inefficient Event Emission | ||
OEL-03C | Non-Standard Initialization of Owner | ||
QHR-01C | Inefficient mapping Lookups | ||
UVC-01C | Inefficient mapping Lookups | ||
UVC-02C | Redundant Parenthesis Statement | ||
UVL-01C | Multiple Top-Level Declarations |