Omniscia Evergon Labs Audit

Code Style

Code Style

During the manual portion of the audit, we identified 85 optimizations that can be applied to the codebase that will decrease the operational 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
ACS-01CNon-Standard Storage Slot Definition
ACS-02CNon-Streamlined Code
ACS-03CPotentially Inefficient Mapping Layouts
ACS-04CReduced Legibility of Conditionals
ACS-05CRepetitive Invocations of Layout
CCN-01CGeneric Typographic Mistake
CCN-02CInefficient mapping Lookups
CCI-01CGeneric Typographic Mistake
CCI-02CInefficient mapping Lookups
CCS-01CNon-Standard Storage Slot Definition
CRF-01CNon-Standard Storage Slot Definition
CRF-02CRepetitive Value Literals
CRF-03CTest Dependency Import
CVF-01CInefficient Code Structure
CVF-02CNon-Standard Storage Slot Definition
CVF-03CRepetitive Value Literal
CVM-01CInefficient Code Structure
CVM-02CNon-Standard Storage Slot Definition
CVM-03CRepetitive Value Literal
ERF-01CInexistent Specification of Memory Safety
ERF-02CNon-Standard Storage Slot Definition
ERU-01CError Ambiguity
EIG-01CInefficient ABI Encoding Mechanism
EIG-02CNon-Standard Storage Slot Definition
EIG-03CRepetitive Value Literal
ERG-01CInefficient ABI Encoding Mechanism
ERG-02CInefficient mapping Lookups
ERG-03CNon-Standard Storage Slot Definition
ERG-04CRepetitive Value Literal
ERO-01CInefficient ABI Encoding Mechanism
ERO-02CNon-Standard Storage Slot Definition
ERO-03CRepetitive Value Literal
EIS-01CInefficient ABI Encoding Mechanism
EIS-02CNon-Standard Storage Slot Definition
EIS-03CRepetitive Value Literal
ERS-01CInefficient ABI Encoding Mechanism
ERS-02CInefficient mapping Lookups
ERS-03CNon-Standard Storage Slot Definition
ERS-04CRepetitive Value Literal
ERR-01CInefficient ABI Encoding Mechanism
ERR-02CNon-Standard Storage Slot Definition
ERR-03CRepetitive Value Literal
GSE-01CNon-Standard Storage Slot Definition
HAS-01CNon-Standard Storage Slot Definition
HAS-02CRepetitive Value Literal
IVF-01CInefficient Code Structure
IVF-02CNon-Standard Storage Slot Definition
IVF-03CRepetitive Value Literal
IVM-01CInefficient Code Structure
IVM-02CNon-Standard Storage Slot Definition
IVM-03CRepetitive Value Literal
OST-01CRepetitive Value Literal
PSD-01CNon-Standard Storage Slot Definition
PSD-02CRepetitive Invocations of Layout
PSD-03CRepetitive Value Literal
RBL-01CGeneric Typographic Mistake
RBR-01CInefficient Loop Structure
RBR-02CNon-Standard Storage Slot Definition
RBR-03CRepetitive Value Literal
RBD-01CInefficient Loop Structure
RBD-02CNon-Standard Storage Slot Definition
RBD-03CRepetitive Value Literal
SSN-01CPotential Optimization of NFT IDs
SSN-02CRedundant Parenthesis Statement
SSN-03CRepetitive Value Literal
SSI-01CPotential Optimization of NFT IDs
SSI-02CRedundant Parenthesis Statement
SSI-03CRepetitive Value Literal
SPF-01CInefficient mapping Lookups
SPF-02CNon-Standard Storage Slot Definition
SPF-03CRepetitive Value Literal
TIS-01CNon-Standard Storage Slot Definition
TIS-02CRepetitive Value Literal
TRS-01CNon-Standard Storage Slot Definition
TBF-01CIneffectual Usage of Safe Arithmetics
TBF-02CNon-Standard Storage Slot Definition
TBF-03CRepetitive Value Literal
TBL-01CNon-Standard Storage Slot Definition
TBL-02CRepetitive Value Literal
TBC-01CRepetitive Value Literal
WCS-01CInefficient Array Assignment
WCS-02CNon-Standard Storage Slot Definition
WSS-01CInefficient Array Assignment
WSS-02CNon-Standard Storage Slot Definition
WSS-03CRepetitive Value Literal