Skip to content

Commit

Permalink
polish docs
Browse files Browse the repository at this point in the history
  • Loading branch information
smol-ninja committed Oct 23, 2024
1 parent e640ae7 commit 0513c02
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions TECHNICAL-DOC.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ A stream is represented by a struct, which can be found in
The debt is tracked using "snapshot debt" and "snapshot time". At snapshot, the following events are taking place:

1. snapshot debt is incremented by ongoing debt where
$\text{ongoing debt} = rps \times (\text{block timestamp} - \text{snapshot time})$.
$\text{ongoing debt} = rps \cdot (\text{block timestamp} - \text{snapshot time})$.
2. snapshot time is updated to block timestamp.

The recipient can withdraw the streamed amount at any point. However, if there aren't sufficient funds, the recipient
Expand Down Expand Up @@ -458,17 +458,6 @@ delay = t - (wt + uis_i - 1)

where $wt = \text{time at last withdraw}$

### Reverse engineering the delay from the rescaled ongoing debt

We can also reverse engineer the delay from the _rescaled_ ongoing debt:

```math
\begin{aligned}
\text{td} &= od + rps \cdot (t - \text{st}) \\
delay &= t - wt - \frac{R_\text{td}}{rps} - 1 \\
\end{aligned}
```

[^1]:
By more significant digits, we mean that `rps` has non-zero digits right to the `mvt`. For example 1.
`0.000000_011574e18` and 2. `0.100000_011574e18`. (notice the digits after underscore "\_")

0 comments on commit 0513c02

Please sign in to comment.