Omniscia DAFI Protocol Audit
Code Style
Code Style
During the manual portion of the audit, we identified 12 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 |
---|---|---|---|
BTN-01C | Informational | No | Inaccurate Evaluation |
BTN-02C | Informational | No | Nonstandard Naming Convention |
BTN-03C | Informational | No | Redundant SafeMath Invocation |
BTN-04C | Informational | No | Visibility Specifiers Missing |
DAF-01C | Informational | No | Redundant Usage of Storage |
DAT-01C | Informational | No | System Optimization |
DAT-02C | Informational | Yes | Visibility Specifiers Missing |
OWN-01C | Informational | Yes | Inexistent Error Messages |
PFD-01C | Informational | No | Redundant Code |
DTO-01C | Informational | No | Codebase Optimization |
DTO-02C | Informational | No | Redundant Assignment |
DTO-03C | Informational | No | Redundant Check |