Omniscia Avant Protocol Audit

Code Style

Code Style

During the manual portion of the audit, we identified 18 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
AUS-01CGeneric Typographic Mistake
AUS-02CInefficient Ownership Transfer
AUS-03CNon-Standard Order of Arguments
AUM-01CInefficient Event Emissions
AUM-02CInefficient Remainder Transfer
AUM-03CInefficient Split of Logic
AUM-04CInefficient mapping Lookups
AUM-05CNon-Standard Modifier Structure
AUM-06CNon-Standard Negation of Conditional
AUM-07CPotentially Improper Role Assignment
AUM-08CRedundant Condition
AUM-09CRedundant Duplication of Code
AUM-10CRedundant Parenthesis Statement
SAA-01CInefficient Duplicate Read of Variable
SAA-02CInefficient Initial Ownership
SAU-01CRedundant Parenthesis Statement
SAS-01CInefficient Event Emittance
SAS-02CInefficient mapping Lookups