Omniscia Echidna Finance Audit

Code Style

Code Style

During the manual portion of the audit, we identified 27 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
BOO-01CInformationalYesDeprecated if-revert Pattern
BOO-02CInformationalYesInefficient Data Location Specifier
BOO-03CInformationalYesInefficient Execution Guard
BOO-04CInformationalYesInefficient Execution of Incentive Distribution
BOO-05CInformationalYesInexistent Error Message
BOO-06CInformationalYesInexistent Visibility Specifiers
BOO-07CInformationalYesVariable Mutability Specifiers
EPS-01CInformationalYesInexistent Mutability Specifiers
EPT-01CInformationalYesInexistent Error Message
ETN-01CInformationalYesConvoluted Initial Cap Representation
ETN-02CInformationalYesInexistent Error Messages
ETN-03CInformationalYesVariable Mutability Specifiers
MDR-01CInformationalYesInexistent Error Message
MDR-02CInformationalYesRedundant Contract Variable
MDR-03CInformationalYesVariable Mutability Specifiers
PPY-01CInformationalYesInefficient Upgradeable Storage Layout
PPY-02CInformationalYesInexistent Error Messages
PPY-03CInformationalYesRedundant Input Argument Declaration
PFY-01CInformationalYesImproperly Attributed Code
PDR-01CInformationalYesFunction Typo
PDR-02CInformationalYesInexistent Error Messages
PDR-03CInformationalYesInexistent Visibility Specifiers
PDR-04CInformationalYesVariable Mutability Specifiers
RFY-01CInformationalYesInexistent Error Messages
RFY-02CInformationalYesInexistent Visibility Specifier
RFY-03CInformationalNoVariable Mutability Specifiers
VER-01CInformationalYesVariable Mutability Specifiers