Omniscia Steer Protocol Audit

Code Style

Code Style

During the manual portion of the audit, we identified 24 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
FP3-01COptimization of Conditional Evaluations
FP3-02CRecalculation of Square Root Ratios at Ticks
FP3-03CRepetitive Value Literal
GPN-01CGeneric Typographic Mistake
GPN-02CInefficient Recalculations of Square Root Ratios
GPN-03CRedundant Parenthesis Statements
GPN-04CRedundant Type Casting
GPN-05CUnutilized Constant
GPN-06CVariable Mutability Specifiers (Immutable)
PHR-01CGeneric Typographic Mistakes
PHR-02CIneffectual Usage of Safe Arithmetics
PHR-03CRedundant Evaluation of Conditional
PHR-04CRepetitive Value Literal
PV1-01CDuplicate Validation of Initialization
PV1-02CGeneric Typographic Mistake
PV1-03CInefficient Signature Encodings
PV1-04CInexistent Error Messages
PV1-05CMisleading Function Name
PV1-06CRedundant Distinction of Conditionals
PV1-07CRepeated Constant Declarations
PV1-08CUnresolved TODO Comment
PV1-09CUnused Contract Constants
WTS-01CGeneric Typographic Mistake
WTS-02CVariable Mutability Specifier (Immutable)