Sablier

Sablier
DeFiFoundry
53,440 USDC
View results
Submission Details
Severity: low
Invalid

SablierV2Lockup.sol - Redundant Check in `_statusOf`

Description: The _statusOf function checks if the stream is isDepleted or wasCanceled before checking the startTime and endTime. These checks are redundant because if the stream is isDepleted or wasCanceled, the status will be DEPLETED or CANCELED respectively, regardless of the startTime and endTime.

Impact: The redundant checks add unnecessary gas cost to every call to statusOf.

Updates

Lead Judging Commences

inallhonesty Lead Judge about 1 year ago
Submission Judgement Published
Invalidated
Reason: Lack of quality

Support

FAQs

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