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:

IDSeverityAddressedTitle
BAB-01CIncorrect Line Reference
BBM-01CVariable Mutability Specifier (Immutable)
BSB-01CInefficient Loop Limit Evaluation
BDP-01CVariable Mutability Specifier (Immutable)
BFP-01CVariable Mutability Specifier (Immutable)
BSP-01CInexistent Error Message
BSR-01CIncorrect Assumptions of Gas Usage
BSR-02CIneffectual Usage of Safe Arithmetics
BSR-03CInexplicable Code Deviation
FMH-01CInexistent Error Message
FMH-02CPotentially Suboptimal Deviation of Algorithm
FMH-03CRedundant Validation Check
SER-01CRedundant Usage of Value Literals
THR-01CRedundant Usage of Value Literals