Omniscia Astrolab DAO Audit

Code Style

Code Style

During the manual portion of the audit, we identified 53 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
A62-01CInefficient mapping Lookups
A62-02CRedundant Duplication of Code
A62-03CRedundant Parenthesis Statements
A62-04CRepetitive Value Literal
AAT-01CGeneric Typographic Mistakes
AAT-02CImproper Declaration of Abstract Function
AAC-01CInefficient Usage of Utility Functions
AAC-02CRedundant Input Argument
AAC-03CRedundant Local Variable
AAG-01CRepetitive Value Literal
AAS-01CIneffectual Usage of Safe Arithmetics
AAS-02CInefficient Iteration of Search Loops
AAS-03CInefficient Iterator Type
AAS-04CInexistent Error Messages
AAS-05CLoop Iterator Optimizations
AME-01CGeneric Typographic Mistakes
AME-02CInexistent Error Message
AME-03CRedundant Parenthesis Statements
AMS-01CGeneric Typographic Mistakes
AMS-02CIneffectual Usage of Safe Arithmetics
AMS-03CInexistent Error Messages
AMS-04CRedundant Parenthesis Statements
APY-01CInefficient Generation of Selector
ARE-01CImproper Declarations of Abstract Functions
ARE-02CInefficient Erasure of Request
ARE-03CInefficient mapping Lookups
ARE-04CInexistent Error Messages
ARA-01COptimization of Data Structure
ASS-01CIneffectual Usage of Safe Arithmetics
ASS-02CInefficient Loop Limit Evaluations
ASS-03CInexistent Error Message
ASS-04CLoop Iterator Optimization
ASS-05CRedundant Deletion Operation
CUS-01CIneffectual Usage of Safe Arithmetics
CUS-02CRepetitive Value Literal
PUS-01CIneffectual Usage of Safe Arithmetics
PUS-02CRepetitive Value Literal
SV5-01CGeneric Typographic Mistake
SV5-02CImproper Declarations of Abstract Functions
SV5-03CIneffectual Usage of Safe Arithmetics
SV5-04CInefficient Iterator Type
SV5-05CLoop Iterator Optimizations
SV5-06CRedundant Application of Access Control
SV5-07CRedundant Parenthesis Statement
SVT-01CGeneric Typographic Mistakes
SVA-01CInefficient Iterator Type
SVA-02CLoop Iterator Optimizations
SVC-01CGeneric Typographic Mistake
SVC-02CLoop Iterator Optimization
SVC-03CRepetitive Value Literal
SVP-01CGeneric Typographic Mistake
SVP-02CLoop Iterator Optimizations
SVP-03CRepetitive Value Literal