https://github.com/Cyfrin/2024-10-sablier/blob/main/src/interfaces/ISablierFlow.sol#L118C5-L123C1
https://github.com/Cyfrin/2024-10-sablier/blob/main/src/SablierFlow.sol#L87C8-L90C88
As can be seen from the above the intention is to calculate the time by which the total debt exceeds stream balance.
However, the code calculates the time by which the stream balance exceeds total debt and even furthers return zero when total debt exceeds stream balance.
The point here is that the calculation based on the natspec should be based on when total debt exceeds balance, and not when balance > total debt.
No severe impact as it is a view function which was not used anywhere within the protocol but however the function provides misleading information.
Depends on intention. Correct natspec or correct code.
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.