-
Notifications
You must be signed in to change notification settings - Fork 0
/
Liquity
227 lines (227 loc) · 18 KB
/
Liquity
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
<mxfile host="app.diagrams.net" modified="2022-05-25T17:05:17.487Z" agent="5.0 (X11)" etag="gl0tXh_wZtlEgWlOpFri" version="14.8.4" type="github">
<diagram id="6KBx-5OkFGgMyM1ofSF4" name="Page-1">
<mxGraphModel dx="1570" dy="832" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="1169" pageHeight="1654" math="0" shadow="0">
<root>
<mxCell id="0" />
<mxCell id="1" parent="0" />
<mxCell id="eZTXevCA145f2qTCzgzP-6" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0;entryY=0.5;entryDx=0;entryDy=0;" edge="1" parent="1" source="eZTXevCA145f2qTCzgzP-1" target="eZTXevCA145f2qTCzgzP-4">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="eZTXevCA145f2qTCzgzP-1" value="User" style="shape=umlActor;verticalLabelPosition=bottom;verticalAlign=top;html=1;outlineConnect=0;" vertex="1" parent="1">
<mxGeometry x="400" y="190" width="30" height="60" as="geometry" />
</mxCell>
<mxCell id="eZTXevCA145f2qTCzgzP-51" style="edgeStyle=elbowEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0;entryY=0.108;entryDx=0;entryDy=0;entryPerimeter=0;strokeColor=#000000;" edge="1" parent="1" source="eZTXevCA145f2qTCzgzP-4" target="eZTXevCA145f2qTCzgzP-49">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="eZTXevCA145f2qTCzgzP-4" value="" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="1">
<mxGeometry x="530" y="180" width="260" height="80" as="geometry" />
</mxCell>
<mxCell id="eZTXevCA145f2qTCzgzP-7" value="LUSD" style="ellipse;whiteSpace=wrap;html=1;aspect=fixed;" vertex="1" parent="1">
<mxGeometry x="550" y="185" width="70" height="70" as="geometry" />
</mxCell>
<mxCell id="eZTXevCA145f2qTCzgzP-28" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;strokeColor=#000000;" edge="1" parent="1" source="eZTXevCA145f2qTCzgzP-8" target="eZTXevCA145f2qTCzgzP-29">
<mxGeometry relative="1" as="geometry">
<mxPoint x="665" y="330" as="targetPoint" />
</mxGeometry>
</mxCell>
<mxCell id="eZTXevCA145f2qTCzgzP-8" value="ETH" style="ellipse;whiteSpace=wrap;html=1;aspect=fixed;" vertex="1" parent="1">
<mxGeometry x="630" y="185" width="70" height="70" as="geometry" />
</mxCell>
<mxCell id="eZTXevCA145f2qTCzgzP-59" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;strokeColor=#000000;startArrow=none;" edge="1" parent="1" source="eZTXevCA145f2qTCzgzP-60">
<mxGeometry relative="1" as="geometry">
<mxPoint x="200" y="120" as="targetPoint" />
<Array as="points">
<mxPoint x="210" y="120" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="eZTXevCA145f2qTCzgzP-9" value="LQTY" style="ellipse;whiteSpace=wrap;html=1;aspect=fixed;fillColor=#e1d5e7;strokeColor=#9673a6;" vertex="1" parent="1">
<mxGeometry x="710" y="185" width="70" height="70" as="geometry" />
</mxCell>
<mxCell id="eZTXevCA145f2qTCzgzP-36" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;strokeColor=#000000;" edge="1" parent="1" source="eZTXevCA145f2qTCzgzP-10" target="eZTXevCA145f2qTCzgzP-9">
<mxGeometry relative="1" as="geometry">
<mxPoint x="750" y="290" as="targetPoint" />
<Array as="points">
<mxPoint x="340" y="585" />
<mxPoint x="750" y="585" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="eZTXevCA145f2qTCzgzP-10" value="Stability Pool" style="swimlane;" vertex="1" parent="1">
<mxGeometry x="240" y="350" width="200" height="200" as="geometry" />
</mxCell>
<mxCell id="eZTXevCA145f2qTCzgzP-22" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;strokeColor=#000000;" edge="1" parent="1" source="eZTXevCA145f2qTCzgzP-18">
<mxGeometry relative="1" as="geometry">
<mxPoint x="440" y="430" as="targetPoint" />
</mxGeometry>
</mxCell>
<mxCell id="eZTXevCA145f2qTCzgzP-24" style="rounded=0;orthogonalLoop=1;jettySize=auto;html=1;strokeColor=#000000;edgeStyle=orthogonalEdgeStyle;entryX=0.271;entryY=0.957;entryDx=0;entryDy=0;entryPerimeter=0;" edge="1" parent="1" source="eZTXevCA145f2qTCzgzP-18" target="eZTXevCA145f2qTCzgzP-7">
<mxGeometry relative="1" as="geometry">
<mxPoint x="570" y="310" as="targetPoint" />
</mxGeometry>
</mxCell>
<mxCell id="eZTXevCA145f2qTCzgzP-18" value="Deposit/Withdraw" style="text;html=1;strokeColor=#d79b00;fillColor=#ffe6cc;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;rotation=0;" vertex="1" parent="1">
<mxGeometry x="460" y="420" width="110" height="20" as="geometry" />
</mxCell>
<mxCell id="eZTXevCA145f2qTCzgzP-31" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;strokeColor=#000000;" edge="1" parent="1" source="eZTXevCA145f2qTCzgzP-27">
<mxGeometry relative="1" as="geometry">
<mxPoint x="620" y="360" as="targetPoint" />
<Array as="points">
<mxPoint x="620" y="400" />
<mxPoint x="620" y="400" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="eZTXevCA145f2qTCzgzP-27" value="Trove#1" style="swimlane;startSize=23;" vertex="1" parent="1">
<mxGeometry x="615" y="400" width="100" height="150" as="geometry" />
</mxCell>
<mxCell id="eZTXevCA145f2qTCzgzP-39" value="<div>(Min collateral</div><div> ratio of 110%)</div><div><br></div>" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;" vertex="1" parent="eZTXevCA145f2qTCzgzP-27">
<mxGeometry x="5" y="25" width="90" height="50" as="geometry" />
</mxCell>
<mxCell id="eZTXevCA145f2qTCzgzP-30" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.5;entryY=0;entryDx=0;entryDy=0;strokeColor=#000000;" edge="1" parent="1" source="eZTXevCA145f2qTCzgzP-29" target="eZTXevCA145f2qTCzgzP-27">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="eZTXevCA145f2qTCzgzP-29" value="Deposit" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#ffe6cc;strokeColor=#d79b00;" vertex="1" parent="1">
<mxGeometry x="620" y="300" width="90" height="20" as="geometry" />
</mxCell>
<mxCell id="eZTXevCA145f2qTCzgzP-35" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.714;entryY=0.929;entryDx=0;entryDy=0;entryPerimeter=0;strokeColor=#000000;" edge="1" parent="1" source="eZTXevCA145f2qTCzgzP-32" target="eZTXevCA145f2qTCzgzP-7">
<mxGeometry relative="1" as="geometry">
<Array as="points">
<mxPoint x="600" y="310" />
<mxPoint x="600" y="310" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="eZTXevCA145f2qTCzgzP-41" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;strokeColor=#000000;" edge="1" parent="1" source="eZTXevCA145f2qTCzgzP-32">
<mxGeometry relative="1" as="geometry">
<mxPoint x="890" y="430" as="targetPoint" />
</mxGeometry>
</mxCell>
<mxCell id="eZTXevCA145f2qTCzgzP-32" value="Borrow" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#ffe6cc;strokeColor=#d79b00;" vertex="1" parent="1">
<mxGeometry x="580" y="340" width="60" height="20" as="geometry" />
</mxCell>
<mxCell id="eZTXevCA145f2qTCzgzP-89" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0;entryY=0.5;entryDx=0;entryDy=0;fontSize=14;strokeColor=#000000;" edge="1" parent="1" source="eZTXevCA145f2qTCzgzP-37" target="eZTXevCA145f2qTCzgzP-83">
<mxGeometry relative="1" as="geometry">
<Array as="points">
<mxPoint x="525" y="735" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="eZTXevCA145f2qTCzgzP-37" value="LQTY reward" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#ffe6cc;strokeColor=#d79b00;" vertex="1" parent="1">
<mxGeometry x="480" y="570" width="90" height="20" as="geometry" />
</mxCell>
<mxCell id="eZTXevCA145f2qTCzgzP-44" value="<div>Liquidation reserve</div><div>(Currently 200LUSD)<br></div>" style="ellipse;whiteSpace=wrap;html=1;aspect=fixed;fillColor=#f8cecc;strokeColor=#b85450;" vertex="1" parent="1">
<mxGeometry x="850" y="430" width="90" height="90" as="geometry" />
</mxCell>
<mxCell id="eZTXevCA145f2qTCzgzP-45" value="Will be rewarded to bots when liquidation occurs (TCR &lt; 110%)" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#fff2cc;strokeColor=#d6b656;" vertex="1" parent="1">
<mxGeometry x="800" y="520" width="190" height="40" as="geometry" />
</mxCell>
<mxCell id="eZTXevCA145f2qTCzgzP-55" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;strokeColor=#000000;startArrow=none;" edge="1" parent="1" source="eZTXevCA145f2qTCzgzP-56">
<mxGeometry relative="1" as="geometry">
<mxPoint x="770" y="250" as="targetPoint" />
<Array as="points" />
</mxGeometry>
</mxCell>
<mxCell id="eZTXevCA145f2qTCzgzP-49" value="Uniswap LP" style="swimlane;" vertex="1" parent="1">
<mxGeometry x="1000" y="240" width="140" height="120" as="geometry" />
</mxCell>
<mxCell id="eZTXevCA145f2qTCzgzP-50" value="LUSD:ETH Pool" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;" vertex="1" parent="eZTXevCA145f2qTCzgzP-49">
<mxGeometry x="20" y="40" width="100" height="20" as="geometry" />
</mxCell>
<mxCell id="eZTXevCA145f2qTCzgzP-53" value="addLiquidity" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#fff2cc;strokeColor=#d6b656;" vertex="1" parent="1">
<mxGeometry x="820" y="210" width="70" height="20" as="geometry" />
</mxCell>
<mxCell id="eZTXevCA145f2qTCzgzP-57" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;strokeColor=#000000;endArrow=none;" edge="1" parent="1" source="eZTXevCA145f2qTCzgzP-49" target="eZTXevCA145f2qTCzgzP-56">
<mxGeometry relative="1" as="geometry">
<mxPoint x="770" y="250" as="targetPoint" />
<mxPoint x="910" y="270" as="sourcePoint" />
<Array as="points">
<mxPoint x="770" y="270" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="eZTXevCA145f2qTCzgzP-56" value="LQTY reward" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#fff2cc;strokeColor=#d6b656;" vertex="1" parent="1">
<mxGeometry x="810" y="260" width="90" height="20" as="geometry" />
</mxCell>
<mxCell id="eZTXevCA145f2qTCzgzP-61" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;strokeColor=#000000;entryX=0.35;entryY=-0.025;entryDx=0;entryDy=0;entryPerimeter=0;" edge="1" parent="1" source="eZTXevCA145f2qTCzgzP-58" target="eZTXevCA145f2qTCzgzP-4">
<mxGeometry relative="1" as="geometry">
<mxPoint x="620" y="170" as="targetPoint" />
<Array as="points">
<mxPoint x="620" y="160" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="eZTXevCA145f2qTCzgzP-58" value="LQTY Staking Pool" style="swimlane;" vertex="1" parent="1">
<mxGeometry x="30" y="90" width="170" height="180" as="geometry" />
</mxCell>
<mxCell id="eZTXevCA145f2qTCzgzP-65" value="<div>Staker will earn a share from <br></div><div>borrowing/redemption fees</div><div>Proportional to their</div><div> Staking amount<br></div>" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;" vertex="1" parent="eZTXevCA145f2qTCzgzP-58">
<mxGeometry y="50" width="170" height="60" as="geometry" />
</mxCell>
<mxCell id="eZTXevCA145f2qTCzgzP-60" value="Stake" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#fff2cc;strokeColor=#d6b656;" vertex="1" parent="1">
<mxGeometry x="360" y="110" width="65" height="20" as="geometry" />
</mxCell>
<mxCell id="eZTXevCA145f2qTCzgzP-62" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;strokeColor=#000000;endArrow=none;" edge="1" parent="1" source="eZTXevCA145f2qTCzgzP-9" target="eZTXevCA145f2qTCzgzP-60">
<mxGeometry relative="1" as="geometry">
<mxPoint x="210" y="140" as="targetPoint" />
<mxPoint x="745" y="185" as="sourcePoint" />
<Array as="points">
<mxPoint x="745" y="120" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="eZTXevCA145f2qTCzgzP-63" value="ETH/LUSD rewards" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#fff2cc;strokeColor=#d6b656;" vertex="1" parent="1">
<mxGeometry x="270" y="140" width="120" height="30" as="geometry" />
</mxCell>
<mxCell id="eZTXevCA145f2qTCzgzP-68" value="<div>User will gain <br></div><div>Collaterals from liquidated troves</div><div> in exchange for <br></div><div>Burning his LUSD from Pool<br></div>" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;" vertex="1" parent="1">
<mxGeometry x="245" y="410" width="190" height="60" as="geometry" />
</mxCell>
<mxCell id="eZTXevCA145f2qTCzgzP-69" value="Liquity protocol interaction chart" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontStyle=1;fontSize=19;" vertex="1" parent="1">
<mxGeometry x="450" y="30" width="350" height="20" as="geometry" />
</mxCell>
<UserObject label="https://docs.liquity.org/documentation/resources" link="https://docs.liquity.org/documentation/resources" id="eZTXevCA145f2qTCzgzP-70">
<mxCell style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontSize=19;" vertex="1" parent="1">
<mxGeometry x="380" y="50" width="470" height="20" as="geometry" />
</mxCell>
</UserObject>
<mxCell id="eZTXevCA145f2qTCzgzP-74" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.5;entryY=1;entryDx=0;entryDy=0;fontSize=14;strokeColor=#000000;" edge="1" parent="1" source="eZTXevCA145f2qTCzgzP-71" target="eZTXevCA145f2qTCzgzP-58">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="eZTXevCA145f2qTCzgzP-71" value="communityIssuance" style="swimlane;fontSize=14;fontStyle=0" vertex="1" parent="1">
<mxGeometry x="30" y="360" width="170" height="160" as="geometry" />
</mxCell>
<mxCell id="eZTXevCA145f2qTCzgzP-75" value="LQTY issurance fee" style="rounded=0;whiteSpace=wrap;html=1;fontSize=14;fillColor=#fff2cc;strokeColor=#d6b656;" vertex="1" parent="1">
<mxGeometry x="30" y="300" width="160" height="20" as="geometry" />
</mxCell>
<mxCell id="eZTXevCA145f2qTCzgzP-76" value="New LUSD issued" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fontSize=14;" vertex="1" parent="1">
<mxGeometry x="55" y="420" width="130" height="20" as="geometry" />
</mxCell>
<mxCell id="eZTXevCA145f2qTCzgzP-85" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;fontSize=14;strokeColor=#000000;entryX=0.5;entryY=1;entryDx=0;entryDy=0;" edge="1" parent="1" source="eZTXevCA145f2qTCzgzP-78" target="eZTXevCA145f2qTCzgzP-18">
<mxGeometry relative="1" as="geometry">
<mxPoint x="440" y="460" as="targetPoint" />
<Array as="points">
<mxPoint x="775" y="630" />
<mxPoint x="590" y="630" />
<mxPoint x="590" y="460" />
<mxPoint x="515" y="460" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="eZTXevCA145f2qTCzgzP-88" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=1;entryY=0.5;entryDx=0;entryDy=0;fontSize=14;strokeColor=#000000;" edge="1" parent="1" source="eZTXevCA145f2qTCzgzP-78" target="eZTXevCA145f2qTCzgzP-83">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="eZTXevCA145f2qTCzgzP-78" value="Frontend providers" style="shape=umlActor;verticalLabelPosition=bottom;verticalAlign=top;html=1;outlineConnect=0;fontSize=14;" vertex="1" parent="1">
<mxGeometry x="760" y="705" width="30" height="60" as="geometry" />
</mxCell>
<mxCell id="eZTXevCA145f2qTCzgzP-83" value="LQTY" style="ellipse;whiteSpace=wrap;html=1;aspect=fixed;fillColor=#e1d5e7;strokeColor=#9673a6;" vertex="1" parent="1">
<mxGeometry x="630" y="700" width="70" height="70" as="geometry" />
</mxCell>
<mxCell id="eZTXevCA145f2qTCzgzP-86" value="Tag deposits" style="rounded=0;whiteSpace=wrap;html=1;fontSize=14;fillColor=#fff2cc;strokeColor=#d6b656;" vertex="1" parent="1">
<mxGeometry x="720" y="620" width="110" height="30" as="geometry" />
</mxCell>
<mxCell id="eZTXevCA145f2qTCzgzP-90" value="Earn according to Kickback ratio" style="rounded=0;whiteSpace=wrap;html=1;fontSize=14;fillColor=#fff2cc;strokeColor=#d6b656;" vertex="1" parent="1">
<mxGeometry x="440" y="650" width="160" height="30" as="geometry" />
</mxCell>
</root>
</mxGraphModel>
</diagram>
</mxfile>