Omniscia KlimaDAO Audit

Code Style

Code Style

During the manual portion of the audit, we identified 24 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
CON-01CInformationalNoRedundant constructor Implementation
AEK-01CInformationalNoInexistent Visibility Specifiers
EKL-01CInformationalNoInexistent Error Messages
KCS-01CInformationalNoInexistent Error Messages
KCS-02CInformationalNoRedundant SafeMath Utilization
KID-01CInformationalNoInefficient Hash Specification
KID-02CInformationalNoRedundant Visibility Specifiers
KID-03CInformationalNoRedundant constructor Implementation
KLB-01CInformationalNoInexistent Error Messages
KLP-01CInformationalNoInexistent Opportunistic Transfer
KLP-02CInformationalNoVariable Mutability Specifiers
KSD-01CInformationalNoInexistent Error Messages
KS2-01CInformationalNoInexistent Error Messages
KTN-01CInformationalNoFunction Name Typo
KTN-02CInformationalNoImproper Visibility Specifier
KTN-03CInformationalNoInefficient Hash Specification
KTY-01CInformationalNoVariable Mutability Specifiers
PKT-01CInformationalNoRedundant constructor Implementation
PKU-01CInformationalNoRedundant constructor Implementation
SHR-01CInformationalNoInexistent Error Messages
SWP-01CInformationalNoInexistent Error Messages
KT2-01CInformationalNoInexistent Error Messages
KLI-01CInformationalNoInexistent Error Messages
KLI-02CInformationalNoRedundant Usage of decimals