Omniscia Alliance Block Audit
Code Style
Code Style
During the manual portion of the audit, we identified 42 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 |
---|---|---|---|
ASE-01C | Informational | Yes | Redundant Default Value Assignments |
ASE-02C | Informational | Yes | Variable Mutability Specifier |
ASE-03C | Informational | Yes | Variable Mutability Specifier |
CRF-01C | Informational | Yes | Variable Mutability Specifier |
LAS-01C | Informational | Yes | Variable Mutability Specifier |
LMC-01C | Informational | Yes | Inconsistent Reward Multiplier Sync |
LMC-02C | Informational | Yes | Inefficient Loop Limit Evaluation |
LMC-03C | Informational | Yes | Inexistent Variable Visibility |
LMC-04C | Informational | Yes | Variable Mutability Specifier |
LMC-05C | Informational | Yes | Variable Naming Typo |
LMF-01C | Informational | Yes | Data Location Optimization |
LMF-02C | Informational | Yes | Redundant Usage of SafeMath |
LMF-03C | Informational | Yes | Redundant Validation Loop |
LSE-01C | Informational | Yes | Ambiguous Event |
LSE-02C | Informational | Yes | Redundant struct Member |
LSE-03C | Informational | Yes | Variable Mutability Specifiers |
NCP-01C | Informational | Yes | Data Location Optimization |
NCP-02C | Informational | Yes | Redundant Validation Loop |
NCP-03C | Informational | Yes | Variable Mutability Specifiers |
OSF-01C | Informational | Yes | Data Mutability Optimization |
OEF-01C | Informational | No | Unused Function Argument |
PCR-01C | Informational | Yes | Optimizational Adjustments |
RPB-01C | Informational | No | Data Location Optimization |
RPB-02C | Informational | Yes | Duplicate Calculation |
RPB-03C | Informational | Yes | Duplication of require Checks |
RPB-04C | Informational | Yes | Ineffectual Check |
RPB-05C | Informational | Yes | Inefficient Loop Limit Evaluation |
RPB-06C | Informational | Yes | Redundant SafeMath Utilization |
RPB-07C | Informational | Yes | Redundant SafeMath Utilization |
RPF-01C | Informational | Yes | Data Location Optimization |
RPF-02C | Informational | Yes | Redundant Usage of SafeMath |
RPF-03C | Informational | Yes | Redundant Validation Loop |
SLK-01C | Informational | Yes | Data Mutability Optimization |
STR-01C | Informational | Yes | Empty Block Function |
STF-01C | Informational | Yes | Inconsistent Reward Multiplier Sync |
TET-01C | Informational | No | Data Mutability Optimization |
TET-02C | Informational | Yes | Redundant Array Argument |
TET-03C | Informational | Yes | Redundant while Loop |
TRE-01C | Informational | Yes | Variable Mutability Specifier |
TOD-01C | Informational | Yes | Data Mutability Optimization |
TOD-02C | Informational | Yes | Event Enrichment |
TOF-01C | Informational | Yes | Data Mutability Optimization |