Omniscia Pirex Audit

Code Style

Code Style

During the manual portion of the audit, we identified 7 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
ERS-01CInefficient mapping Lookups
ERS-02CVariable Read Optimization
PCV-01CIllegible Numeric Value Representation
PCV-02CInefficient Storage Value Reads
PCV-03CSuboptimal Numeric Representation
PCC-01CInexplicable if-if Structure
PCC-02CRedundant Return Statements