Total debt calculation will return incorrect amount when totalDebtScaled is less than 10^(18 - token decimals).
https://github.com/Cyfrin/2024-10-sablier/blob/8a2eac7a916080f2022527408b004578b21c51d0/src/SablierFlow.sol#L510
totalDebtScaled is divided with 10^(18 - token decimals). This returns 0 for slow streams.
_totalDebtOf is used during _withdraw, _coveredDebtOf, _refundableAmountOf, _refund.
It will impact user from withdrawing amount that is available to him.
It will give stream sender the right to refund amount that should not be refunded.
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.