-
Notifications
You must be signed in to change notification settings - Fork 30
/
Copy pathindex.html
103 lines (100 loc) · 4.03 KB
/
index.html
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
<!doctype html>
<html>
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>🌀 Curve.fi :: Compounded</title>
<link rel="stylesheet" href="tvision.css?v19012020" />
<script src="/jquery.min.js"></script>
<script src="/web3.min.js"></script>
<script src="/abis.js?v21012020_2"></script>
<script src="/common.js?v08022020"></script>
<script src="/swap.js?v27012020_8"></script>
</head>
<body>
<div class="top-menu-bar">
<a href="/">Buy and sell</a>
<a href="/deposit.html">Deposit</a>
<a href="/withdraw.html">Withdraw</a>
<a href="/stats.html">Stats</a>
<a href="/faq.html">FAQ</a>
<a href="https://github.com/curvefi/curve-contract/tree/compounded">git@</a>
</div>
<div id="screen">
<div class="blue window">
<h1>🌀 Curve</h1>
</div>
<div class="error window half-width info" id="error-window"></div>
<div class="window white">
<div style="display: table; margin: auto">
<fieldset style="float: left">
<legend>From:</legend>
<ul>
<li>
<input type="text" id="from_currency" name="from_currency">
</li>
<li>
<input type="radio" id="from_cur_0" name="from_cur" value="0">
<label for="from_cur_0">DAI</label>
</li>
<li>
<input type="radio" id="from_cur_1" name="from_cur" value="1">
<label for="from_cur_1">USDC</label>
</li>
</ul>
</fieldset>
<fieldset style="float: left">
<legend>To:</legend>
<ul>
<li>
<input type="text" id="to_currency" name="to_currency" value="0.0" disabled>
</li>
<li>
<input type="radio" id="to_cur_0" name="to_cur" value="0">
<label for="to_cur_0">DAI</label>
</li>
<li>
<input type="radio" id="to_cur_1" name="to_cur" value="1">
<label for="to_cur_1">USDC</label>
</li>
</ul>
</fieldset>
<p class='exchange-rate'>Exchange rate (including fees): <span id="exchange-rate"></span></p>
<ul>
<li>
<input id="inf-approval" type="checkbox" name="inf-approval" checked>
<label for="inf-approval">Infinite approval - trust this contract forever</label>
</li>
</ul>
<p class='trade-buttons'>
<button id="trade">Sell</button>
</p>
</div>
</div>
</div>
<div class="blue window half-width info">
<table>
<tr>
<td>
<h4>Currency reserves:</h4>
<ul id='balances-info'>
<li><b>DAI:</b> <span></span></li>
<li><b>USDC:</b> <span></span></li>
<li><b>DAI+USDC:</b> <span></span></li>
</ul>
<p><b>Fee:</b> <span id='fee-info'></span>%</p>
<p><b>Admin fee:</b> <span id='admin-fee-info'></span>%</p>
</td>
<td id="lp-info-container">
<h4>My share:</h4>
<ul id='lp-info'>
<li><b>DAI:</b> <span></span></li>
<li><b>USDC:</b> <span></span></li>
<li><b>DAI+USDC:</b> <span></span></li>
</ul>
</td>
</tr>
</table>
</div>
</body>
</html>