Omniscia Steer Protocol Audit
Code Style
Code Style
During the manual portion of the audit, we identified 14 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 |
---|---|---|---|
AMP-01C | Redundant Parenthesis Statement | ||
DSG-01C | Inefficient Code Structure | ||
DSG-02C | Inefficient Separation of Logic | ||
DSG-03C | Inefficient Variable Reads | ||
DSG-04C | Repetitive Value Literals | ||
FMR-01C | Inefficient mapping Lookups | ||
FMR-02C | Loop Iterator Optimizations | ||
FMR-03C | Suboptimal Struct Declaration Styles | ||
MPL-01C | Inexistent Error Messages | ||
MPL-02C | Redundant Parenthesis Statement | ||
PSB-01C | Incorrect Specification of Gap | ||
PSM-01C | Redundant Parenthesis Statements | ||
SSG-01C | Inefficient Code Structure | ||
SSG-02C | Repetitive Value Literal |