Test: it("should checkSufficientBalances and return false"
unclear outcome on expect
#9
Closed
1 of 3 tasks
Severity: potentially unexpected returned value in
getBalanceDelta
or miswording in test suiteContext: it seems that the test would like to signal that actually there is sufficient balances in the injector to cover the actual period. But it is checking for being negative or equal to zero, by the Natspec comments seems that negative value signals that there is an actual deficit. Is this behaviour desired?
Recommendation: to ensure that
getBalanceDelta
is returning the expected values we will advise to cover 3 scenarios in the suite:Also, it seems worth to give a reconsideration on wording in the Natspec comments or the test suite description, as while reviewing intention was not 100% clear.
Review stage
Balancer Maxis:
Onchainification Labs:
The text was updated successfully, but these errors were encountered: