QA Report #345
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
porjectFactory.sol
L78 functioncreateProject
is under the EXTERNAL VIEWS commentary while not beeing a view function.HomeFi.sol
functionisProjectExist
naming is not correct english.doesProjectExist
is bettergetTask
in the contractProject
does not take the same argument name as indicated in the interfaceIProject
, it isid
instead of_taskId
.Community.sol
L686, consider using1 days
instead of86400
.Tasks.sol
L16 the mappingalerts
should be of typemapping(Lifecycle => bool)
. Some other parts of the code would need to be modified (remove conversions touint256
).createProject
L210: everyone is free to create a project with any given hash, even the hash of an already existing project. This does not cause direct issue inside the protocol, but could be the source of some troubles if other protocols base their trust on the hash of the project. Possible fix: create a mapping (hash => bool) to avoid collisons.Project
, the functionprojectCost
can run out of gas if there are too many tasks. It would block the functionslendToProject
andtoggleLendingNeeded
, that are important functions. Suggested fix: update the project cost in a storage variable each time a task is added of updated._reduceDebt
will revert. But, because the lender is gaining interests at each block, it will be very difficult for the builder to give exacly the amount owed, so the debt can be endless. Seggested fix: accept giving more value that owed, and let the function cap the amout by itslef.The text was updated successfully, but these errors were encountered: