Omniscia Tren Finance 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 |
---|---|---|---|
ACT-01C | Inefficient Imposition of Access Control | ||
ACT-02C | Redundant Parenthesis Statement | ||
BOS-01C | Improper Usage of Low-Level Status | ||
CIE-01C | Ineffectual Usage of Safe Arithmetics | ||
CAS-01C | Non-Standard Definition of Gap | ||
CAS-02C | Repetitive Value Literal | ||
FCR-01C | Inefficient Data Location | ||
FCR-02C | Repetitive Value Literal | ||
FPA-01C | Ineffectual Usage of Safe Arithmetics | ||
FLN-01C | Ineffectual Usage of Safe Arithmetics | ||
LTR-01C | Inefficient Data Pointer | ||
LTR-02C | Inefficient Storage Reads | ||
LTR-03C | Mislabelled Variable | ||
LTR-04C | Non-Standard Overlap of Modifier | ||
LTR-05C | Suboptimal Struct Declaration Style | ||
PFD-01C | Inefficient Enum Handling | ||
STR-01C | Ineffectual Usage of Safe Arithmetics | ||
SPL-01C | Inefficient mapping Lookups | ||
TRN-01C | Ineffectual Usage of Safe Arithmetics | ||
TRN-02C | Inefficient Handling of Debt Token Gains | ||
TRN-03C | Inefficient Update of Debt Token Snapshots | ||
TRN-04C | Inefficient mapping Lookups | ||
TKC-01C | Generic Typographic Mistake | ||
TBO-01C | Redundant Code Branches | ||
TBO-02C | Redundant Parenthesis Statements | ||
TBS-01C | Inefficient mapping Lookups | ||
TBS-02C | Redundant Parenthesis Statement |