Omniscia Euler Finance Audit
Code Style
Code Style
During the manual portion of the audit, we identified 32 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 |
---|---|---|---|
BFR-01C | Inefficient mapping Lookups | ||
BUL-01C | Inefficient mapping Lookups | ||
BUL-02C | Inexistent Propagation of Optimized Arithmetics | ||
BPY-01C | Repetitive Value Literal | ||
BPY-02C | Unconditional Appendment of Metadata | ||
BUS-01C | Ineffectual Usage of Safe Arithmetics | ||
BUS-02C | Inefficient Update of User's Debt | ||
BUS-03C | Inefficient mapping Lookups | ||
CEH-01C | Inconsistent Unwrapping Mechanism | ||
CAT-01C | Repetitive Value Literal | ||
DHC-01C | Redundant Copy of Call Data | ||
ESH-01C | Ineffectual Usage of Safe Arithmetics | ||
ESH-02C | Inefficient Loop Limit Evaluation | ||
ESH-03C | Inefficient Structure Mutability Specifiers | ||
ESH-04C | Loop Iterator Optimization | ||
GFY-01C | Generic Typographic Mistake | ||
GFY-02C | Ineffectual Usage of Safe Arithmetics | ||
GEC-01C | Inefficient Negation of Conditional | ||
GEC-02C | Potentially Misleading Variable Naming | ||
GEC-03C | Redundant Parenthesis Statement | ||
IRL-01C | Ineffectual Usage of Safe Arithmetics | ||
LTC-01C | Inefficient Conditional Exclusivity | ||
LNO-01C | Repetitive Value Literal | ||
MPD-01C | Inefficient Memory Assignment | ||
PSM-01C | Inefficient Re-Calculation of Fee Percentages | ||
PCG-01C | Optimization of Structure Assignments | ||
PCG-02C | Repetitive Value Literal | ||
PCG-03C | Variable Grouping | ||
STO-01C | Potentially Inefficient Storage Structure | ||
SEG-01C | Potential Combination of Data Points | ||
USE-01C | Inconsistent Bit Clearance Style | ||
USE-02C | Repetitive Value Literal |