Omniscia BlazeSwap Audit
Code Style
Code Style
During the manual portion of the audit, we identified 14 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 |
---|---|---|---|
BAB-01C | Incorrect Line Reference | ||
BBM-01C | Variable Mutability Specifier (Immutable) | ||
BSB-01C | Inefficient Loop Limit Evaluation | ||
BDP-01C | Variable Mutability Specifier (Immutable) | ||
BFP-01C | Variable Mutability Specifier (Immutable) | ||
BSP-01C | Inexistent Error Message | ||
BSR-01C | Incorrect Assumptions of Gas Usage | ||
BSR-02C | Ineffectual Usage of Safe Arithmetics | ||
BSR-03C | Inexplicable Code Deviation | ||
FMH-01C | Inexistent Error Message | ||
FMH-02C | Potentially Suboptimal Deviation of Algorithm | ||
FMH-03C | Redundant Validation Check | ||
SER-01C | Redundant Usage of Value Literals | ||
THR-01C | Redundant Usage of Value Literals |