The SablierFlow::pause()
function currently updates the snapshotTime
in SablierFlow::_adjustRatePerSecond()
. According to ISablierFlow::pause()
doc, the snapshotTime
should not be updated when the SablierFlow::pause()
is called. In SablierFlow::_adjustRatePerSecond()
, setting snapshotTime to the current timestamp when newRatePerSecond is zero introduces unnecessary gas costs.
Gas Inefficiency
Update the SablierFlow::_adjustRatePerSecond()
function as follows:
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.