Omniscia Olympus DAO Audit

Code Style

Code Style

During the manual portion of the audit, we identified 34 optimizations that can be applied to the codebase that will decrease the gas-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
BDY-01CInformationalNoImproper Error Messages
BDY-02CInformationalNoInexistent Error Messages
BDY-03CInformationalNoPotentially Misleading USD Evaluation
BDY-04CInformationalNoRedundant Explicit Zero-Value Assignment
BTR-01CInformationalYesInexistent Variable Visibility Specifiers
ERC-01CInformationalYesVariable Mutability Specifier
ERP-01CInformationalYesImproper Error Name
ERP-02CInformationalYesRedundant Visibility Specifiers
ERP-03CInformationalYesSuboptimal Code Style
FMH-01CInformationalYesOutdated Implementation
GOV-01CInformationalYesInexistent Deletion of Pending Governor
GUA-01CInformationalYesInexistent Deletion of Pending Guardian
MOE-01CInformationalYesRedundant Implementation
OER-01CInformationalYesIncorrect Function Visibility
OTM-01CInformationalYesInexistent Error Messages
OTM-02CInformationalYesMultiple Top-Level Declarations
OTM-03CInformationalNoRedundant & Confusing Comparisons
OWN-01CInformationalYesInexistent Deletion of Pending Owner
SMH-01CInformationalNoInefficient Implementation
SDR-01CInformationalYesInexistent Error Messages
SDR-02CInformationalYesInexistent Variable Visibility Specifiers
SBC-01CInformationalYesInexistent Error Message
SBC-02CInformationalYesInexistent Variable Visibility Specifier
TIM-01CInformationalYesRedundant Implementation
TRE-01CInformationalYesImproper Failure Enforcement
TRE-02CInformationalYesImproper Permitted Execution Flow
TRE-03CInformationalYesInexistent Error Messages
TRE-04CInformationalYesInexistent Variable Visibility Specifier
OHM-01CInformationalYesInexistent Error Messages
OEC-01CInformationalYesDeprecated Representation Style
OEC-02CInformationalYesInefficient Code Structure
OEC-03CInformationalYesInexistent Error Messages
OEC-04CInformationalNoInexistent Variable Visibility Specifiers
OEC-05CInformationalYesRedundant Event Argument