Omniscia Nuklai Audit

Code Style

Code Style

During the manual portion of the audit, we identified 22 optimizations that can be applied to the codebase that will decrease the operational 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
AMV-01CInefficient Contract Import
DFY-01CInefficient Contract Imports
DNF-01CDuplicate Invocation of Getter Function
DNF-02CInefficient mapping Lookups
DNF-03CLoop Iterator Optimization
DMR-01CInefficient Loop Limit Evaluations
DMR-02CLoop Iterator Optimizations
DMR-03CRedundant Function Argument
DMR-04CRepetitive Value Literals
FNF-01CDuplicate Invocation of Getter Functions
FNF-02CIneffectual Usage of Safe Arithmetics
FNF-03CInefficient Loop Limit Evaluation
FNF-04CInefficient Maintenance of Account Snapshots
FNF-05CInefficient mapping Lookups
FNF-06CLoop Iterator Optimizations
GSD-01CIneffectual Usage of Safe Arithmetics
GSD-02CInefficient Loop Limit Evaluation
GSD-03CInexistent Event Indexing
GSD-04CLoop Iterator Optimizations
GSD-05CRepetitive Value Literals
VMR-01CInexistent Event Indexing
VMR-02CLoop Iterator Optimization