Omniscia Xcaliswap Audit
Code Style
Code Style
During the manual portion of the audit, we identified 35 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 |
---|---|---|---|
B46-01C | ![]() | ![]() | Sub-Optimal Assembly Block |
BEB-01C | ![]() | ![]() | Generic Typographic Mistakes |
BEB-02C | ![]() | ![]() | Inexistent Error Message |
FMH-01C | ![]() | ![]() | Inexistent Error Messages |
GEG-01C | ![]() | ![]() | Inexistent Error Messages |
MHT-01C | ![]() | ![]() | Code Duplication |
MRE-01C | ![]() | ![]() | Generic Typographic Mistakes |
MRE-02C | ![]() | ![]() | Ineffectual Usage of Safe Arithmetics |
MRE-03C | ![]() | ![]() | Inexistent Error Messages |
MRE-04C | ![]() | ![]() | Order of Operation Legibility Increase |
MRE-05C | ![]() | ![]() | Repetitive Value Literal |
MPA-01C | ![]() | ![]() | Inexistent Error Messages |
MPA-02C | ![]() | ![]() | Redundant Consecutive Checks |
MPA-03C | ![]() | ![]() | Repetitive Value Literal |
RRE-01C | ![]() | ![]() | Generic Typographic Mistakes |
RRE-02C | ![]() | ![]() | Inexistent Error Messages |
RUL-01C | ![]() | ![]() | Multiple Top-Level Declarations |
SFY-01C | ![]() | ![]() | Inefficient Fee Definition System |
SFY-02C | ![]() | ![]() | Inexistent Error Messages |
SFS-01C | ![]() | ![]() | Inexistent Error Messages |
SPR-01C | ![]() | ![]() | Inefficient Calculation of Domain Separator |
SPR-02C | ![]() | ![]() | Inexistent Error Messages |
SPR-03C | ![]() | ![]() | Loop Iterator Optimization |
SPR-04C | ![]() | ![]() | Repetitive Value Literal |
TNE-01C | ![]() | ![]() | Inexplicable Mint Instruction |
TNE-02C | ![]() | ![]() | Inefficient mapping Lookups |
TNE-03C | ![]() | ![]() | Inexistent Error Messages |
TNE-04C | ![]() | ![]() | Inexistent Override of Interface |
VRE-01C | ![]() | ![]() | Generic Typographic Mistakes |
VRE-02C | ![]() | ![]() | Inexistent Error Messages |
VDT-01C | ![]() | ![]() | Repetitive Value Literal |
VDT-02C | ![]() | ![]() | Variable Mutability Specifiers (Immutable) |
VEW-01C | ![]() | ![]() | Inefficient Data Type |
VEW-02C | ![]() | ![]() | Inexistent Error Messages |
VEW-03C | ![]() | ![]() | Non-Unique Name & Symbol |