You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The unstreamed storage variable is redundant and the system can already track everything without this storage variable.
Note that this variable is never read and only written to.
(The system essentially tracks deposit_balance * deposit_duration for each user and pays out the fair share compared to the total cumulative balance times duration once at the end.)
Removing this variable saves a lot of gas as every updateStreamInternal call has to do fewer computations.
The text was updated successfully, but these errors were encountered:
Handle
cmichel
Vulnerability details
The
unstreamed
storage variable is redundant and the system can already track everything without this storage variable.Note that this variable is never read and only written to.
(The system essentially tracks
deposit_balance * deposit_duration
for each user and pays out the fair share compared to the total cumulative balance times duration once at the end.)Removing this variable saves a lot of gas as every
updateStreamInternal
call has to do fewer computations.The text was updated successfully, but these errors were encountered: