sablier-labs / flow

🍃 Smart contracts of the Sablier Flow protocol.
Other
10 stars 2 forks source link

Address my feedback and other changes #282

Closed andreivladbrg closed 1 month ago

andreivladbrg commented 1 month ago

Changes

Note: i know that _restart function was not updating the sd before, but now using _adjustRatePerSecond it practically does it but in theory it won't as it _ongoingDebt will return 0 and no changes will be made to it, thus no gas implications. I consider better to focus the "snapshot" updates centralized into one place, wdyt?