Omniscia Tangible Audit

Code Style

Code Style

During the manual portion of the audit, we identified 48 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
CFV-01COptimization of Currency & Country Alpha Codes
EEG-01CInefficient mapping Lookups
EEG-02CSub-Optimal Inverse Route Management
FMS-01CGeneric Typographic Mistake
FV2-01CIneffectual Usage of Safe Arithmetics
FV2-02CInefficient mapping Lookups
FV2-03CLoop Iterator Optimization
FV2-04CRedundant Conditional Evaluation
FV2-05CRedundant Parenthesis Statements
FV2-06CSub-Optimal Fetching of Price
FV2-07CUnreachable Code
GOT-01CGeneric Typographic Mistake
GOT-02CInefficient mapping Lookups
GOT-03CLoop Iterator Optimization
GOT-04CRedundant Parenthesis Statements
GOT-05CRedundant Ternary Operator
MV2-01CInefficient Repetitive Invocations of Getter Function
MV2-02CInefficient mapping Lookups
MV2-03CRedundant Parenthesis Statements
MV2-04CSuboptimal Struct Declaration Style
OST-01CInefficient Array Shifts
OST-02CInefficient mapping Lookups
OST-03CInexistent Error Message
OST-04CRedundant Parenthesis Statement
OST-05CSuboptimal Struct Declaration Styles
PCR-01CIneffectual Usage of Safe Arithmetics
ROV-01CInefficient Fetching of First Entry
ROV-02CRedundant Ternary Operator
RMR-01CRedundant Separation of Declaration & Assignment
RMR-02CUnreachable Code
RMD-01CRedundant Interface Member Instantiation
RND-01CMultiple Redundant Invocations of Getter Function
SFD-01CRedundant Parenthesis Statements
TNF-01CInefficient Array Shifts
TNF-02CInefficient Index Sequence
TNF-03CInefficient Loop Limit Evaluation
TNF-04CInefficient mapping Lookups
TNF-05CInexistent Error Message
TNG-01CGeneric Typographic Mistakes
TNG-02CRedundant Code Duplication
TNT-01CInefficient Array Shift
TNT-02CInefficient Conditional Clauses
TNT-03CInefficient mapping Lookups
TNT-04CRedundant Parenthesis Statement
TRH-01CVariable Mutability Specifiers (Immutable)
UUO-01CGeneric Typographic Mistake
UUO-02CInefficient Usage of Storage Variable
UUO-03CRepetitive Value Literal