QA Report #175
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
Low Risk Findings Overview
Non-critical Findings Overview
QA overview per contract
Low Risk Findings
[L-01] Admin transfer should be a two-step process
If ownership is accidentally transferred to an inactive account all functionalities depending on it will be lost.
1 instance of this issue has been found:
[L-01] HomeFi.sol#L157-L168
[L-02] Strict equality might lead to unexpected revert
Strict equallity might lead to eventual revert and loss of gas for users.
Consider accepting a range above
required
and reimburse the difference.1 instance of this issue has been found:
[L-02] Project.sol#L199-L202
[L-03] Fee-on-transfer token not supported
Transfer amount is currently based on input rather than difference in balance before and after the transfer.
If protocol ever wishes to accept/support fee-on-transfer tokens it should follow the latter.
8 instances of this issue have been found:
[L-03] Community.sol#L474-L475
_communities[_communityID].currency.safeTransferFrom(
[L-03b] Community.sol#L446-L447
[L-03c] Community.sol#L443-L444
[L-03d] Community.sol#L321-L322
_community.currency.safeTransferFrom(
[L-03e] Project.sol#L775-L776
currency.safeTransfer(builder, _amount);
[L-03f] Project.sol#L381-L382
_token.safeTransfer(builder, _leftOutTokens);
[L-03g] Project.sol#L353-L354
currency.safeTransfer(
[L-03h] Project.sol#L206-L207
Non-critical Findings
[N-01] The use of magic numbers is not recommended
Consider setting constant numbers as a
constant
variable for better readability and clarity.4 instances of this issue have been found:
[N-01] Community.sol#L690-L694
[N-01b] Community.sol#L686-L687
[N-01c] Community.sol#L394-L395
[N-01d] Project.sol#L906-L909
[N-02] Critical functions should return a value
Providing a return value improves code clarity and readability.
2 instances of this issue have been found:
[N-02] Project.sol#L219-L264
[N-02b] HomeFi.sol#L210-L232
The text was updated successfully, but these errors were encountered: