QA Report #107
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
sponsor confirmed
Sponsor agrees this is a problem and intends to fix it (OK to use w/ "disagree with severity")
[L1] Add check against parameters
_amount
and_shares
:Assessed risk: 1/10
Urgency: N/A
Codebase frequency: 2
[L1 - Impact]:
The
amount
that the user deposits is not checked against being!=0
. It’s a good practice to check arbitrary inputs against being null. Although the transaction would revert anyhow(due to arithmetic error of division/0
) you should consider adding a check against it. The same goes with parameter_shares
in thewithdraw()
function.[L1 - References]:
InsuranceFund.sol lines 62 and 39
[L1 - Mitigation]:
Adding
require
statements would prevent such operations.The text was updated successfully, but these errors were encountered: