Omniscia Tokemak Network 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
APH-01CInformationalYesData Location Optimization
DRD-01CInformationalYesData Location Optimization
DRD-02CInformationalYesIneffectual Statement
DRD-03CInformationalYesRedundant Assignment
DRD-04CInformationalYesVariable Mutability Specifiers
EPL-01CInformationalYesRedundant Nested Minimum
MAN-01CInformationalYesRedundant Access Control
MAN-02CInformationalYesRelocation of Sanitization
POO-01CInformationalYesRedundant Assignment
POO-02CInformationalYesRedundant Nested Minimum
STA-01CInformationalYesIllegible Declaration Style
STA-02CInformationalNoMisused Delete Statement
STA-03CInformationalNoRedundant Assignment
STA-04CInformationalYesRedundant System Implementation
STA-05CInformationalYesSimplification of Statements