Omniscia DAFI Protocol Audit
Code Style
Code Style
During the manual portion of the audit, we identified 20 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 |
---|---|---|---|
BBO-01C | Informational | Yes | Inexistent Error Message |
BBO-02C | Informational | Yes | Redundant keccak256 Re-Execution |
BBO-03C | Informational | No | Suboptimal Conditionals |
BBO-04C | Informational | Yes | Variable Mutability Specifiers |
DAF-01C | Informational | No | Inexistent Error Messages |
DAF-02C | Informational | No | Inexistent Visibility Specifiers |
DAF-03C | Informational | No | Suboptimal Code |
DAF-04C | Informational | No | Variable Mutability Specifiers |
DAI-01C | Informational | Yes | Inexistent Visibility Specifiers |
DAI-02C | Informational | Yes | Suboptimal Code |
DAI-03C | Informational | Yes | Variable Mutability Specifier |
EBO-01C | Informational | Yes | Inexistent Error Message |
EBO-02C | Informational | Yes | Redundant keccak256 Re-Execution |
EBO-03C | Informational | No | Suboptimal Conditionals |
EBO-04C | Informational | Yes | Variable Mutability Specifiers |
BAS-01C | Informational | Yes | Inexistent Visibility Specifiers |
BAS-02C | Informational | Yes | Redundant require Check |
OWN-01C | Informational | No | Variable Mutability Specifiers |
STA-01C | Informational | Yes | Redundant require Checks |
STA-02C | Informational | Yes | Suboptimal Code |