-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathblueprint.drawio
141 lines (141 loc) · 12.1 KB
/
blueprint.drawio
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
<mxfile host="65bd71144e">
<diagram id="R8gnnh2jvgyQ8COo8uPq" name="Page-1">
<mxGraphModel dx="109" dy="65" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="850" pageHeight="1100" math="0" shadow="0">
<root>
<mxCell id="0"/>
<mxCell id="1" parent="0"/>
<mxCell id="20" style="edgeStyle=none;html=1;entryX=1;entryY=0.25;entryDx=0;entryDy=0;exitX=0.33;exitY=1.027;exitDx=0;exitDy=0;exitPerimeter=0;" parent="1" source="2" target="18" edge="1">
<mxGeometry relative="1" as="geometry">
<Array as="points">
<mxPoint x="403" y="500"/>
</Array>
</mxGeometry>
</mxCell>
<mxCell id="25" style="edgeStyle=none;html=1;startArrow=none;" parent="1" source="29" target="24" edge="1">
<mxGeometry relative="1" as="geometry"/>
</mxCell>
<mxCell id="2" value="Vault<br>(bond price feature)<br>initial bond price is $1 before trading<br>performance fee is 10%" style="rounded=0;whiteSpace=wrap;html=1;" parent="1" vertex="1">
<mxGeometry x="330" y="340" width="220" height="100" as="geometry"/>
</mxCell>
<mxCell id="6" value="First depositor" style="rounded=0;whiteSpace=wrap;html=1;" parent="1" vertex="1">
<mxGeometry x="30" y="370" width="100" height="40" as="geometry"/>
</mxCell>
<mxCell id="7" value="" style="endArrow=classic;html=1;entryX=0;entryY=0.5;entryDx=0;entryDy=0;exitX=1;exitY=0.5;exitDx=0;exitDy=0;" parent="1" source="6" target="2" edge="1">
<mxGeometry width="50" height="50" relative="1" as="geometry">
<mxPoint x="140" y="390" as="sourcePoint"/>
<mxPoint x="320" y="390" as="targetPoint"/>
</mxGeometry>
</mxCell>
<mxCell id="8" value="<div style=""><b style="background-color: initial;">initialize vault</b></div><div style=""><span style="background-color: initial;">with more than $10</span></div><div style=""><span style="background-color: initial;">choose strategy</span></div>become leader" style="text;html=1;align=right;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" parent="1" vertex="1">
<mxGeometry x="140" y="315" width="130" height="70" as="geometry"/>
</mxCell>
<mxCell id="13" style="edgeStyle=none;html=1;entryX=1.005;entryY=0.185;entryDx=0;entryDy=0;entryPerimeter=0;exitX=-0.007;exitY=0.387;exitDx=0;exitDy=0;exitPerimeter=0;" parent="1" source="12" target="2" edge="1">
<mxGeometry relative="1" as="geometry">
<mxPoint x="530" y="360" as="targetPoint"/>
</mxGeometry>
</mxCell>
<mxCell id="12" value="User" style="whiteSpace=wrap;html=1;" parent="1" vertex="1">
<mxGeometry x="720" y="340" width="100" height="50" as="geometry"/>
</mxCell>
<mxCell id="14" value="<div style="text-align: right;"><span style="background-color: initial;">deposit any amout</span></div><div style="text-align: right;"><span style="background-color: initial;">converted to bond amount</span></div><div style="text-align: right;"><span style="background-color: initial;">has 5 days lock period</span></div>" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" parent="1" vertex="1">
<mxGeometry x="540" y="290" width="160" height="60" as="geometry"/>
</mxCell>
<mxCell id="15" value="" style="edgeStyle=none;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.996;exitY=0.402;exitDx=0;exitDy=0;exitPerimeter=0;" parent="1" source="2" edge="1">
<mxGeometry width="100" relative="1" as="geometry">
<mxPoint x="530" y="380" as="sourcePoint"/>
<mxPoint x="720" y="380" as="targetPoint"/>
<Array as="points"/>
</mxGeometry>
</mxCell>
<mxCell id="16" value="withdraw his fund<br>only after lock period" style="text;html=1;align=right;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" parent="1" vertex="1">
<mxGeometry x="550" y="380" width="130" height="40" as="geometry"/>
</mxCell>
<mxCell id="17" value="" style="shape=flexArrow;endArrow=classic;html=1;endWidth=35.69444444444444;endSize=12.941666666666666;width=40.833333333333336;" parent="1" edge="1">
<mxGeometry width="50" height="50" relative="1" as="geometry">
<mxPoint x="79.58" y="420" as="sourcePoint"/>
<mxPoint x="80" y="470" as="targetPoint"/>
<Array as="points"/>
</mxGeometry>
</mxCell>
<mxCell id="18" value="Leader<br><br>(must hold more than 1% of the vault's TVL)" style="whiteSpace=wrap;html=1;" parent="1" vertex="1">
<mxGeometry x="12.5" y="480" width="135" height="80" as="geometry"/>
</mxCell>
<mxCell id="21" value="<b>withdraw</b><br>performance is also transferred" style="text;html=1;align=right;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" parent="1" vertex="1">
<mxGeometry x="170" y="460" width="190" height="40" as="geometry"/>
</mxCell>
<mxCell id="22" value="" style="edgeStyle=none;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.663;entryY=1.01;entryDx=0;entryDy=0;entryPerimeter=0;" parent="1" target="2" edge="1">
<mxGeometry width="100" relative="1" as="geometry">
<mxPoint x="147.5" y="530" as="sourcePoint"/>
<mxPoint x="247.5" y="530" as="targetPoint"/>
<Array as="points">
<mxPoint x="476" y="530"/>
</Array>
</mxGeometry>
</mxCell>
<mxCell id="23" value="pause trading<br>close whole position<br>terminate vault" style="text;html=1;align=right;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" parent="1" vertex="1">
<mxGeometry x="200" y="530" width="130" height="60" as="geometry"/>
</mxCell>
<mxCell id="24" value="Raydium" style="ellipse;shape=cloud;whiteSpace=wrap;html=1;" parent="1" vertex="1">
<mxGeometry x="380" y="140" width="120" height="80" as="geometry"/>
</mxCell>
<mxCell id="26" value="trade" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" parent="1" vertex="1">
<mxGeometry x="390" y="220" width="50" height="30" as="geometry"/>
</mxCell>
<mxCell id="27" value="" style="edgeStyle=none;orthogonalLoop=1;jettySize=auto;html=1;shape=flexArrow;rounded=1;startSize=8;endSize=8;" parent="1" edge="1">
<mxGeometry width="100" relative="1" as="geometry">
<mxPoint x="280" y="280" as="sourcePoint"/>
<mxPoint x="430" y="280" as="targetPoint"/>
<Array as="points"/>
</mxGeometry>
</mxCell>
<mxCell id="28" value="trading signal" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" parent="1" vertex="1">
<mxGeometry x="290" y="240" width="90" height="30" as="geometry"/>
</mxCell>
<mxCell id="30" value="" style="edgeStyle=none;html=1;endArrow=none;" parent="1" source="2" target="29" edge="1">
<mxGeometry relative="1" as="geometry">
<mxPoint x="440" y="340" as="sourcePoint"/>
<mxPoint x="440" y="220" as="targetPoint"/>
</mxGeometry>
</mxCell>
<mxCell id="29" value="" style="shape=waypoint;sketch=0;size=6;pointerEvents=1;points=[];fillColor=none;resizable=0;rotatable=0;perimeter=centerPerimeter;snapToPoint=1;" parent="1" vertex="1">
<mxGeometry x="430" y="270" width="20" height="20" as="geometry"/>
</mxCell>
<mxCell id="31" value="User" style="whiteSpace=wrap;html=1;" parent="1" vertex="1">
<mxGeometry x="720" y="410" width="100" height="50" as="geometry"/>
</mxCell>
<mxCell id="32" value="" style="shape=waypoint;sketch=0;size=6;pointerEvents=1;points=[];fillColor=none;resizable=0;rotatable=0;perimeter=centerPerimeter;snapToPoint=1;" parent="1" vertex="1">
<mxGeometry x="760" y="470" width="20" height="20" as="geometry"/>
</mxCell>
<mxCell id="33" value="" style="shape=waypoint;sketch=0;size=6;pointerEvents=1;points=[];fillColor=none;resizable=0;rotatable=0;perimeter=centerPerimeter;snapToPoint=1;" parent="1" vertex="1">
<mxGeometry x="760" y="490" width="20" height="20" as="geometry"/>
</mxCell>
<mxCell id="34" value="" style="shape=waypoint;sketch=0;size=6;pointerEvents=1;points=[];fillColor=none;resizable=0;rotatable=0;perimeter=centerPerimeter;snapToPoint=1;" parent="1" vertex="1">
<mxGeometry x="760" y="510" width="20" height="20" as="geometry"/>
</mxCell>
<mxCell id="35" value="" style="edgeStyle=none;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.779;exitY=0.877;exitDx=0;exitDy=0;exitPerimeter=0;entryX=0.648;entryY=-0.032;entryDx=0;entryDy=0;entryPerimeter=0;" parent="1" source="24" target="2" edge="1">
<mxGeometry width="100" relative="1" as="geometry">
<mxPoint x="470" y="230" as="sourcePoint"/>
<mxPoint x="473" y="330" as="targetPoint"/>
<Array as="points"/>
</mxGeometry>
</mxCell>
<mxCell id="36" value="profit increases<br>bond price" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" parent="1" vertex="1">
<mxGeometry x="470" y="270" width="100" height="40" as="geometry"/>
</mxCell>
<mxCell id="37" value="Backend wallet" style="whiteSpace=wrap;html=1;" vertex="1" parent="1">
<mxGeometry x="620" y="210" width="110" height="50" as="geometry"/>
</mxCell>
<mxCell id="38" value="" style="edgeStyle=none;orthogonalLoop=1;jettySize=auto;html=1;entryX=0;entryY=0.6;entryDx=0;entryDy=0;entryPerimeter=0;" edge="1" parent="1" target="37">
<mxGeometry width="100" relative="1" as="geometry">
<mxPoint x="480" y="240" as="sourcePoint"/>
<mxPoint x="560" y="240" as="targetPoint"/>
<Array as="points"/>
</mxGeometry>
</mxCell>
<mxCell id="40" value="10% of profit" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" vertex="1" parent="1">
<mxGeometry x="500" y="210" width="90" height="30" as="geometry"/>
</mxCell>
</root>
</mxGraphModel>
</diagram>
</mxfile>