forked from AronVanAmmers/curve-ui
-
Notifications
You must be signed in to change notification settings - Fork 4
/
index.html
137 lines (131 loc) · 6.18 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
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
<!doctype html>
<html>
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta property="og:title" content="stable.bscswap.com" />
<meta property="og:url" content="https://stable.bscswap.com" />
<meta property="og:type" content="website" />
<meta property="og:description" content="First stablecoin oriented decentralized exchange on Binance Smart Chain" />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:title" content="stable.bscswap.com" />
<meta name="twitter:site" content="@BSCswapProtocol" />
<meta name="twitter:creator" content="@BSCswapProtocol" />
<meta name="twitter:description" content="First stablecoin oriented decentralized exchange on Binance Smart Chain"/>
<meta name="twitter:url" content="https://stable.bscswap.com" />
<title>BSCswap Stable</title>
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
<link rel="mask-icon" href="/safari-pinned-tab.svg" color="#5bbad5">
<link rel="stylesheet" href="tvision.css" />
<script src="/metamask.web3.min.js"></script>
<script src="/jquery.min.js"></script>
<script src="/web3.min.js"></script>
<script src="/web3modal.min.js"></script>
<script src="/bigNumber.min.js"></script>
<script src="/abis.js"></script>
<script src="/common.js"></script>
<script src="/swap.js"></script>
<script src="/init.js"></script>
</head>
<body>
<div class="top-menu-bar">
<label for="hamburger" class='border-menu'></label>
<input type="checkbox" id="hamburger"/>
<a href="/">Home</a>
<a href="https://lfi.loaprotocol.io" target="_blank">Wrap LTokens</a>
<a href="/deposit.html">Deposit & Wrap BAI</a>
<a href="/withdraw.html">Withdraw</a>
<a href="https://bscswap.com" target="_blank">BSCswap</a>
</div>
<div id="screen">
<div class="blue window">
<h1><img src="./logo.png" alt="🌀 Curve" height="100"></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>
<div class='maxbalance'>Max: <span></span> </div>
<ul>
<li>
<input type="text" id="from_currency" name="from_currency" disabled value='0.00'>
</li>
<li>
<input type="radio" id="from_cur_0" name="from_cur" value="0">
<label for="from_cur_0">BUSD</label>
</li>
<li>
<input type="radio" id="from_cur_1" name="from_cur" value="1">
<label for="from_cur_1">USDT</label>
</li>
<li>
<input type="radio" id="from_cur_2" name="from_cur" value="2">
<label for="from_cur_2">DAI</label>
</li>
</ul>
</fieldset>
<fieldset style="float: left">
<legend>To:</legend>
<div class='maxbalance'>Max: <span></span> </div>
<ul>
<li>
<input type="text" id="to_currency" name="to_currency" value="0.00" disabled>
</li>
<li>
<input type="radio" id="to_cur_0" name="to_cur" value="0">
<label for="to_cur_0">BUSD</label>
</li>
<li>
<input type="radio" id="to_cur_1" name="to_cur" value="1">
<label for="to_cur_1">USDT</label>
</li>
<li>
<input type="radio" id="to_cur_2" name="to_cur" value="2">
<label for="to_cur_2">DAI</label>
</li>
</ul>
</fieldset>
<div class='clearfix'></div>
<p class='exchange-rate'>Exchange rate (including fees): <span id="exchange-rate"></span></p>
<div id='max_slippage'><span>Max slippage:</span>
<input id="slippage05" type="radio" name="slippage" value='0.005'>
<label for="slippage05">0.5%</label>
<input id="slippage1" type="radio" name="slippage" checked value='0.01'>
<label for="slippage1">1%</label>
<input id="custom_slippage" type="radio" name="slippage" value='-'>
<label for="custom_slippage">
<input type="text" id="custom_slippage_input" disabled name="custom_slippage_input"> %
</label>
</div>
<p class='trade-buttons'>
<button id="trade">Sell</button>
</p>
</div>
</div>
</div>
<div class="blue window half-width info">
<fieldset id="lp-info-currency">
<legend>Currency reserves</legend>
<ul id='balances-info'>
<li><b>BUSD:</b> <span></span></li>
<li><b>USDT:</b> <span></span></li>
<li><b>DAI:</b> <span></span></li>
<li><b>BUSD+USDT+DAI:</b> <span></span></li>
</ul>
<p><b>Fee:</b> <span id='fee-info'></span>%</p>
</fieldset>
<fieldset id="lp-info-container">
<legend>My share:</legend>
<ul id='lp-info'>
<li><b>BUSD:</b> <span></span></li>
<li><b>USDT:</b> <span></span></li>
<li><b>DAI:</b> <span></span></li>
<li><b>BUSD+USDT+DAI:</b> <span></span></li>
</ul>
</fieldset>
</div>
</body>
</html>