Omniscia Vector Finance Audit
Code Style
Code Style
During the manual portion of the audit, we identified 16 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 |
---|---|---|---|
BRP-01C | Informational | Yes | Inefficient Usage of Reward Tokens |
BRP-02C | Informational | No | Inefficient Variable Utilization |
BRP-03C | Informational | Yes | Inexistent Error Message |
BRP-04C | Informational | Yes | Variable Mutability Optimization |
LOC-01C | Informational | No | Inexistent Error Messages |
LOC-02C | Informational | Yes | Inexistent Visibility Specifier |
LOC-03C | Informational | Yes | Variable Mutability Optimization |
MSG-01C | Informational | Yes | Redundant Timestamp Offset |
MSG-02C | Informational | Yes | Redundant memory Pointer |
MCV-01C | Informational | Yes | Inexistent Error Message |
OWN-01C | Informational | Yes | Redundant Invocation of Getter Function |
OWN-02C | Informational | Yes | Redundant Local Variable Declaration |
POO-01C | Informational | Yes | Inexistent Visibility Specifier |
POO-02C | Informational | Yes | Variable Mutability Optimization |
PTP-01C | Informational | Yes | Inexistent Error Message |
PTP-02C | Informational | Yes | Variable Mutability Optimization |