The SablierFlowBase::isPaused
function checks whether a stream is paused, which is indicated by a ratePerSecond
value of 0. If the stream is paused, it can either be restarted or remain in its paused state. It's important to note that voided streams also have a ratePerSecond
of 0, but these cannot be restarted.
Since this protocol is designed to be integrated with multiple other protocols, relying on this function can lead to significant issues with those integrations, potentially affecting whether certain operations are allowed or denied based on the stream's paused status.
In the scenario where an integration checks a voided
stream using the isPaused
function, the result will be true
. However, if the next line in the integration’s code attempts to restart the stream, it will cause a revert.
Check first if the stream is voided:
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.