According to the documentation, "If the stream balance is less than or equal to the total debt, return the stream balance." However, the case of equality between balance and total debt was not implemented.
Here is the vulnerable function:
As seen above, the implementation should have been balance <= totalDebt
but that was not the case.
In short, the protocol intent was not properly implemented here.
The impact is that debt will not be properly tracked -> a user in this case won't pay correct debt -> bad debt for the protocol.
Manual review.
Introduce assignment and less than.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.