Flow

Sablier
FoundryDeFi
20,000 USDC
View results
Submission Details
Severity: low
Invalid

logic error in covereddeptof

Summary

Vulnerability Details

https://github.com/Cyfrin/2024-10-sablier/blob/main/src/SablierFlow.sol#L468

the covereddeptof(streamid) dot not cover for dept when the balance is equal to the total dept

in this logic below the balance is supposed to be less than or equal to total dept to be able to cover the dept

if (balance < totalDebt) {
return balance;
}

Impact

this logic error could make recipient not to be able to withdraw up to the expected withdrawable amount

Tools Used

manaul review

Recommendations

if (balance <= totalDebt)

{
return balance;

}

Updates

Lead Judging Commences

inallhonesty Lead Judge 8 months ago
Submission Judgement Published
Invalidated
Reason: Incorrect statement
Assigned finding tags:

[INVALID]`_coveredDebtOf` discrepancy between condition and comment `balance < totalDebt`

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.