Some invariants
\[\Sigma_u({\tt art_{iu}}) = {\tt Art_i}\]
\[\Sigma_u({\tt ink_{iu}}) = {\tt Ink_i}\]
\[\Sigma_u({\tt dai_u}) = {\tt debt}\]
\[\Sigma_u({\tt sin_u}) = {\tt vice}\]
CDP debt + system debt = total dai supply [the fundamental equation of dai].
\[\Sigma_{i}({\tt rate_i} \cdot \Sigma_{u}({\tt art_{iu}})) + \Sigma_{u}({\tt sin_{u}})= \Sigma_u({\tt dai_u})\]
or, in other words
\[\Sigma_{i}({\tt rate_i} \cdot {\tt Art_{i}}) + \tt vice = \tt debt\]
The following equation holds "morally"; nothing really stops people from sending collateral to the adapter without receiving a corresponding Gem balance. But the equation holds if we understand balanceOf
to measure the collateral that has been sent to the adapter through the join
function.
Unlocked collateral + locked collateral = all collateral
The balance of the Gem adapter contract = free collateral + locked collateral units * the price. For every ilk, i, have:
\[{\tt take}\cdot\Sigma_{u}({\tt ink_{iu}}) + 10^{27}\cdot\Sigma_{u}({\tt gem_{iu}}) = 10^{27} \cdot \tt balanceOf(\tt GemJoin_i) \]
All of the above can be proved by induction and case analysis on the methods in Vat
.
\[{\tt take}\cdot\Sigma_{u}({\tt ink_{iu}}) + \cdot\Sigma_{u}({\tt gem_{iu}}) = \tt balanceOf(\tt GemJoin_i) \]
or
or
By clicking below, you agree to our terms of service.
New to HackMD? Sign up
Syntax | Example | Reference | |
---|---|---|---|
# Header | Header | 基本排版 | |
- Unordered List |
|
||
1. Ordered List |
|
||
- [ ] Todo List |
|
||
> Blockquote | Blockquote |
||
**Bold font** | Bold font | ||
*Italics font* | Italics font | ||
~~Strikethrough~~ | |||
19^th^ | 19th | ||
H~2~O | H2O | ||
++Inserted text++ | Inserted text | ||
==Marked text== | Marked text | ||
[link text](https:// "title") | Link | ||
 | Image | ||
`Code` | Code |
在筆記中貼入程式碼 | |
```javascript var i = 0; ``` |
|
||
:smile: | ![]() |
Emoji list | |
{%youtube youtube_id %} | Externals | ||
$L^aT_eX$ | LaTeX | ||
:::info This is a alert area. ::: |
This is a alert area. |
On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?
Please give us some advice and help us improve HackMD.
Do you want to remove this version name and description?
Syncing