Remove "isPaused" thingy #417
Labels
effort: low
Easy or tiny task that takes less than a day.
priority: 3
Nice-to-have. Willing to ship without this.
type: refactor
Change that neither fixes a bug nor adds a feature.
work: clear
Sense-categorize-respond. The relationship between cause and effect is clear.
The
isPaused
isn't helpful. It's outright confusing. This is the current implementation:flow/src/abstracts/SablierFlowBase.sol
Lines 166 to 168 in 3e76d36
This
getterthingy basically provides an alternative definition for what 'paused' means in SablierFlow.'Paused' doesn't mean just one of the two enum statuses
PAUSED_SOLVENT
orPAUSED_SOLVENT
— it also means the state of the RPS being zero.That means that
isPaused
can return zero even when the stream's status isVOIDED
.There's really no need for this thingy. It's a very thin abstraction that does more harm than good by existing. It also complicates our invariants a lot.
The text was updated successfully, but these errors were encountered: