Flow

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

Incorrect Natspec

Vulnerability Details

The natspec in _restart()says that the stram should not be paused.

function _restart(uint256 streamId, UD21x18 ratePerSecond) internal {
> // Check: the stream is not paused.
if (_streams[streamId].ratePerSecond.unwrap() != 0) {
revert Errors.SablierFlow_StreamNotPaused(streamId);
}
...

However according to technical docs & the code inside the function states that the _restart function should be paused.

Impact

No impact as the code is working as intended. Just might confuse users who are reading the code.

Tools Used

Manual Review

Recommendations

Correct the natspec saying that "the stream should be paused".

Updates

Lead Judging Commences

inallhonesty Lead Judge
11 months ago
inallhonesty Lead Judge 10 months ago
Submission Judgement Published
Invalidated
Reason: Incorrect statement

Support

FAQs

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