Omniscia Tokemak Network Audit
Code Style
Code Style
During the manual portion of the audit, we identified 17 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:
ID | Severity | Addressed | Title |
---|---|---|---|
ARY-01C | Informational | Yes | Inefficient Hash Specification |
ARY-02C | Informational | Yes | Redundant & Abnormal Assignments |
BCE-01C | Informational | Yes | Inefficient Data Type |
DFN-01C | Informational | Yes | Inefficient Hash Specification |
EPL-01C | Informational | Acknowledged | Unconditional Layer 2 Relay |
EPY-01C | Informational | Yes | Deprecated if-revert Pattern |
MAN-01C | Informational | Yes | Inefficient Hash Specification |
MAN-02C | Informational | Yes | Inefficient length Querying |
POO-01C | Informational | Acknowledged | Unconditional Layer 2 Relay |
RHH-01C | Informational | Yes | Redundant Default Value Assignment |
RMR-01C | Informational | Acknowledged | Redundant Application of Access Control |
SSC-01C | Informational | Yes | Redundant Evaluation |
SCV-01C | Informational | Yes | Redundant Evaluation |
TMP-01C | Informational | Acknowledged | Unconditional Layer 2 Relay |
TVP-01C | Informational | Acknowledged | Unconditional Layer 2 Relay |
VTR-01C | Informational | Yes | Inefficient Hash Specification |
VTR-02C | Informational | Yes | Inefficient Loop Halt |