Omniscia Bluejay Finance Audit
Code Style
Code Style
During the manual portion of the audit, we identified 22 optimizations that can be applied to the codebase that will decrease the gas-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 |
---|---|---|---|
BBD-01C | Redundant Entry Variable | ||
BBD-02C | Sub-Optimal mapping Lookups | ||
BGR-01C | Duplicate Application of Modifier | ||
BGR-02C | Inexistent Visibility Specifiers | ||
BGR-03C | Redundant Safe Arithmetics | ||
BRR-01C | Inexistent Error Messages | ||
PFO-01C | Inefficient Loop Limit Evaluation | ||
PFO-02C | Inexistent Visibility Specifiers | ||
PSR-01C | Inexistent Visibility Specifiers | ||
SBD-01C | Inexistent Visibility Specifiers | ||
SEE-01C | Assignment Statement Optimization | ||
SEE-02C | Inexistent Error Messages | ||
SEE-03C | Inexistent Visibility Specifier | ||
STN-01C | Inexistent Visibility Specifiers | ||
STN-02C | Redundant Safe Arithmetics | ||
STN-03C | Variable Mutability Specifiers | ||
TBD-01C | Inexistent Visibility Specifiers | ||
TBD-02C | Redundant Duplicate Transfer | ||
TOE-01C | Inexistent Visibility Specifier | ||
TOE-02C | Potentially Misleading Error Message | ||
PAC-01C | Inexistent Visibility Specifier | ||
WSP-01C | Inexistent Visibility Specifier |