https://github.com/Cyfrin/2024-10-sablier/blob/main/src/SablierFlow.sol#L57C5-L104C6
SablierFlow::depletionTimeOf
seeks to calculate the time at which total debt exceeds stream balance as can be seen from the comment from the code above and the amount which was used to represents total debt is snapshotDebtScaled
. snapshotDebtScaled
however might not accurately reflect the amount of actual total debt at the given time the function is called given that as the amount of debt is measured with RPS and the snapshotDebtScaled
value might be stale.
The function returns a wrong value.
Manual Review
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.