Omniscia Steer Protocol Audit

Code Style

Code Style

During the manual portion of the audit, we identified 13 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
BPM-01CCode Repetition
BPM-02CGeneric Typographic Mistakes
BPM-03CIllegible Usage of Special-Purpose Flag Concept
BPM-04CIneffectual Usage of Safe Arithmetics
BPM-05CInefficient Disbursement of Fees
BPM-06CInexistent Error Messages
BPM-07CRedundant Data Point Propagation
BPM-08CRedundant Flag Re-Evaluation
BPM-09CRedundant Parenthesis Statements
BPM-10CRepetitive Value Literals
BPM-11CSimplification of Condition
BPM-12CUnused Function Implementation
BPM-13CUnutilized Constant Declaration