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
LMH-01CIneffectual Usage of Safe Arithmetics
LMH-02CRedundant Salt Argument
LMV-01CIneffectual Usage of Safe Arithmetics
LMV-02CInexistent Error Messages
LMV-03CMisleading Minimum Share Notion
LMV-04CRedundant Assignments
LMV-05CRedundant Execution of Full Withdrawal in Initial State
LMV-06CRedundant Parenthesis Statements
LMV-07CRedundant Repetition of Data Point
LMV-08CRedundant Usage of Nested Iterator
LMV-09CRepeated Constant Declarations
LMV-10CUnnecessary TODO Comment
LMV-11CUnresolved TODO Comment