When should debt
reset to zero?
#64
Closed
smol-ninja
started this conversation in
General
Replies: 1 comment
-
Its duplicate of #86 Should we carry forward the debt after the stream has been paused?. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In the current design, the following functions reset the debt to zero by updating
lastTimeUpdate
toblock.timestamp
through_updateTime()
function:adjustRatePerSecond
restartStream
Problems with this approach:
cancel
the stream as he does not want to continue to accumulate debt anymore. But after one month, he then decides torestart
it. Now this will reset the debt.rps
but doesn't have funds to pay the debt.The following function does not reset the debt:
cancel
Future functions that would reset the debt:
void
payDebtAndCancelStream
It brings up a very interesting question: what functions should be allowed to reset the debt value to 0 if accumulated over a period of time?
Related discussions:
Beta Was this translation helpful? Give feedback.
All reactions