Omniscia Swisscoast Audit
Code Style
Code Style
During the manual portion of the audit, we identified 27 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 |
---|---|---|---|
BHS-01C | Inefficient Function Implementation | ||
BOS-01C | Redundant Duplicate Member | ||
GPL-01C | Deprecated Empty Revert | ||
GPL-02C | Variable Mutability Specifiers (Immutable) | ||
HCH-01C | Deprecated Revert Pattern | ||
HCH-02C | Inefficient Function Implementation | ||
HCH-03C | Inefficient Negation of Conditional | ||
HCH-04C | Redundant Function Implementation | ||
HCH-05C | Variable Mutability Specifier (Immutable) | ||
HLQ-01C | Deprecated Revert Pattern | ||
HLQ-02C | Inefficient Function Implementation | ||
HLQ-03C | Inefficient Negation of Conditional | ||
HLQ-04C | Potentially Incorrect Token Name / Symbol | ||
HLQ-05C | Redundant Function Implementation | ||
HLQ-06C | Variable Mutability Specifier (Immutable) | ||
PFD-01C | Redundant Parenthesis Statements | ||
PCR-01C | Deprecated Revert Pattern | ||
PCR-02C | Optimization of Returned Arguments | ||
PCR-03C | Repetitive Value Literal | ||
PCR-04C | Variable Mutability Specifier (Immutable) | ||
SCT-01C | Redundant Library Implementation | ||
SER-01C | Incorrect & Unused Library Implementation | ||
SCR-01C | Improper Return Arguments | ||
SCR-02C | Inefficient Integration of Supra | ||
SCR-03C | Optimization of Returned Arguments | ||
SCR-04C | Variable Mutability Specifier (Immutable) | ||
TMR-01C | Redundant Duplicate Member |