Omniscia Native Audit

Code Style

Code Style

During the manual portion of the audit, we identified 40 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
BLB-01COutdated Implementation
CVN-01CInefficient Named Return Variable
CVN-02CInexistent Error Message
CSP-01CRepetitive Value Literal
FMH-01CInexistent Error Messages
MLL-01CLoop Iterator Optimization
MLL-02CRe-Order of Input Arguments
NDC-01CInexistent Error Message
ORE-01CImproper Specialized Encoding Mechanism
ORE-02CInexistent Error Messages
ORE-03CPotential Enhancement of Functionality
PPS-01CRepetitive Value Literals
PVN-01CRedundant Method Implementation
PLO-01CDeprecated Conditional Revert Pattern
PLO-02CIneffectual Conditional Check
PLO-03CInefficient Hash of Literal
PLO-04CInefficient Loop Limit Evaluation
PLO-05CInefficient Memory Pointer
PLO-06CInexistent Error Message
PLO-07CInexplicable Logic Split
PLO-08CLoop Iterator Optimizations
PLO-09CLoose Definition of EIP712 Arguments
PLO-10CRedundant Input Arguments
PLO-11CRepetitive Value Literal
PLO-12CSuboptimal Struct Declaration Styles
PLO-13CVariable Mutability Specifiers (Immutable)
PDR-01CRedundant Parenthesis Statement
PFY-01CDeprecated Conditional Revert Pattern
PFY-02CGeneric Typographic Mistakes
PFY-03CInexistent Error Message
PFY-04CRedundant Parenthesis Statements
RYR-01CLoop Iterator Optimization
RYR-02CNon-Standard Definition of Function Signatures
RYR-03CRedundant Return Statement
RYR-04CRedundantly Convoluted Calls
RRE-01CGeneric Typographic Mistake
RRE-02CInexistent Support of Contract Payer
RRE-03CRedundant Parenthesis Statements
SCT-01COptimization of Check Legibility
UVP-01CRedundant Parenthesis Statements