QA Report #404
Labels
bug
Something isn't working
QA (Quality Assurance)
Assets are not at risk. State handling, function incorrect as to spec, issues with clarity, syntax
valid
QA
constants should be defined rather than using magic numbers
There are several occurrences of literal values with unexplained meaning .Literal values in the codebase without an explained meaning make the code harder to read, understand and maintain, thus hindering the experience of developers, auditors and external contributors alike.
Developers should define a constant variable for every magic value used , giving it a clear and self-explanatory name.
File: Community.sol Line 394
1000
File: Community.sol Line 686
86400
File: Community.sol Line 694
365000
365000;
File: Project.sol Line 907
unnecessary casting
The type of the variable is the same as the type to which the variable is being cast to
File: Project.sol Line 199
The variable
_newTotalLent
is already of type uint256 so no need to convert it againLack of event emission after critical initialize() functions
File: Community.sol Line: 102-119
File: Project.sol Line 94-105
File: DebtToken.sol Line 43-58
File: ProjectFactory.sol Line 45-55
File: Disputes.sol Line 74-81
File: HomeFi.sol Line 92
https://github.com/code-423n4/2022-08-rigor/blob/b17b2a11d04289f9e927c71703b42771dd7b86a4/contracts/HomeFi.sol#L92-L120
Unused named return
Using both named returns and a return statement isn’t necessary in a function.To improve code quality, consider using only one of those.
File: Project.sol Line 716-723
The text was updated successfully, but these errors were encountered: