code-423n4 / 2022-06-canto-findings

0 stars 0 forks source link

QA Report #43

Open code423n4 opened 2 years ago

code423n4 commented 2 years ago
  1. Common practice in Solidity is to prefix internal and private functions with an underscore (e.g. _internalFunction()). Usage of underscore naming was unconventional and inconsistent throughout the codebase. For example, in Comptroller.sol functions prefixed with underscores included:
    • _setPriceOracle - public function
    • _setCloseFactor - external function
    • _addMarketInternal - internal function It is recommended that a consistent naming pattern is used for functions to improve with readability and communicate clearly what the visibility of the function should be.
  2. Parts of the codebase were still a work in progress. Several TODO comments (e.g. 1 and unused variables (e.g. 2) were found throughout the codebase, which made it difficult to establish what was and wasn’t intended functionality.
  3. The following typos were identified:
GalloDaSballo commented 1 year ago

_internalFunction

R

TODO

NC

The following typos were identified:

Both are invalid

canceled is fine arity means amount of inputs in nerd-speak

1 R 1 NC