Omniscia fetchai Audit
Code Style
Code Style
During the manual portion of the audit, we identified 11 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 |
|---|---|---|---|
| ACT-01C | Informational | Yes | Inefficient Swap |
| DBR-01C | Informational | Yes | Ineffectual Multiplication |
| ICO-01C | Informational | Yes | Inefficient Assignment |
| ICO-02C | Informational | Yes | Inefficient Data Retrieval |
| ICO-03C | Informational | Yes | Redundant require Check |
| IMR-01C | Informational | No | Code Standardization |
| LPL-01C | Informational | Yes | Duplication of Code |
| LPL-02C | Informational | Yes | Function Mutability Optimization |
| LPL-03C | Informational | Yes | Redundant msg.sender Check |
| LPS-01C | Informational | Yes | Inefficient Modifier Types |
| PSB-01C | Informational | Yes | Redundant storage Read |