Omniscia Kanpeki Finance Audit

Code Style

Code Style

During the manual portion of the audit, we identified 15 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
BMR-01CInformationalYesDuplicate ERC20 Transfer
BMR-02CInformationalYesOut of Date Documentation
BMR-03CInformationalNoRedundant Visibility Specifiers
CAS-01CInformationalYesPre-Calculated Key Lookups
CRY-01CInformationalYesPre-Calculated Key Lookups
CRY-02CInformationalYesRedundant Duplicate Mapping Lookups
DMR-01CInformationalNoRedundant Visibility Specifier
ORA-01CInformationalYesImproper Failure Execution
ORA-02CInformationalYesPotential Value Misconception
ORA-03CInformationalYesRedundant Code Duplication
PAU-01CInformationalNoRedundant constructor Implementation
RMR-01CInformationalNoRedundant Visibility Specifier
SMR-01CInformationalNoRedundant Visibility Specifier
TOK-01CInformationalNoRedundant Visibility Specifier
TRY-01CInformationalYesRedundant Duplicate Lookup