Omniscia Kyo Finance Audit

Code Style

Code Style

During the manual portion of the audit, we identified 26 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
NEN-01CRedundant Explicitly Named Argument
NPM-01CInefficient Initialization of Position
SSC-01CInexistent Conditional Chaining
STS-01CIneffectual Usage of Safe Arithmetics
STS-02CRepetitive Value Literals
SMH-01CRedundant Interim Pointer
SMH-02CRedundant Parenthesis Statement
SMH-03CRedundant Relay of Rewards Owed
TSC-01CIllegible Value Literal Representation
TSE-01CIllegible Value Literal Representation
TSE-02CRedundant Interim Variable
TSS-01CExternal Requirements of Sensitive Functions
TSS-02CInexplicable Variable Type
TSS-03CRedundant Usage of Immutable Variable
UVG-01CIneffectual Usage of Safe Arithmetics
UVG-02CInexistent Revert Statement
UVF-01CInexistent Error Messages
UVF-02CRepetitive Value Literal
UVP-01CIneffectual Usage of Safe Arithmetics
UVP-02CInefficient Conditional Trigger
UVP-03CInefficient Evaluations of Both Input Tokens
UVP-04CInefficient Structure Pointer Type
UVP-05CRedundant Casting Sequence
UVP-06CRepetitive Value Literal
UVP-07CUnconditional Increment of Fee Growth Global
VRE-01CRedundant Contract Import