Omniscia fetchai Audit

Code Style

Code Style

During the manual portion of the audit, we identified 11 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
ACT-01CInformationalYesInefficient Swap
DBR-01CInformationalYesIneffectual Multiplication
ICO-01CInformationalYesInefficient Assignment
ICO-02CInformationalYesInefficient Data Retrieval
ICO-03CInformationalYesRedundant require Check
IMR-01CInformationalNoCode Standardization
LPL-01CInformationalYesDuplication of Code
LPL-02CInformationalYesFunction Mutability Optimization
LPL-03CInformationalYesRedundant msg.sender Check
LPS-01CInformationalYesInefficient Modifier Types
PSB-01CInformationalYesRedundant storage Read