-
Notifications
You must be signed in to change notification settings - Fork 25
/
index.html
210 lines (207 loc) · 7.93 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
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
<!DOCTYPE html>
<html lang="en" data-bs-color-scheme>
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="color-scheme" content="light dark" />
<link href="assets/css/bootstrap-blackbox.min.css" rel="stylesheet" />
<link href="assets/css/bootstrap-icons.css" rel="stylesheet" />
<link href="css/main.css" rel="stylesheet" />
<title>TWINDEX stats</title>
</head>
<body>
<nav class="navbar sticky-top navbar-light bg-light">
<div class="container">
<a class="navbar-brand display-1" href="#">TWINDEX stats</a>
<form id="wallet_address_form" class="d-flex">
<input type="search" class="form-control me-2" id="wallet_address" placeholder="Wallet Address" />
<button type="submit" class="btn btn-outline-light me-2">Search</button>
<a id="darkmode-button" class="btn btn-outline-light">
<i class="bi bi-moon"></i>
</a>
</form>
</div>
</nav>
<div class="container py-3">
<div class="row py-3">
<div class="col-lg-12">
<div class="row row-cols-1 row-cols-md-4 g-4">
<div class="col-md-6 col-lg-3">
<div class="card price-card h-100">
<div class="row g-0 h-100">
<div class="col-md-4 d-flex align-content-center justify-content-center card-price-logo-container">
<img
alt="TWIN logo"
src="assets/twin.svg"
/>
</div>
<div class="col-md-8 d-flex text-white twin-bg-gradient">
<div class="card-body d-flex justify-content-center flex-wrap">
<p class="card-text align-self-center price-text" id="twin_price"></p>
</div>
</div>
</div>
</div>
</div>
<div class="col-md-6 col-lg-3">
<div class="card price-card h-100">
<div class="row g-0 h-100">
<div class="col-md-4 d-flex justify-content-center align-content-center card-price-logo-container">
<img alt="DOP logo" src="./assets/dopple.svg" />
</div>
<div class="col-md-8 d-flex text-white dop-bg-gradient">
<div class="card-body d-flex justify-content-center flex-wrap">
<p class="card-text align-self-center price-text" id="dop_price"></p>
</div>
</div>
</div>
</div>
</div>
<div class="col-md-12 col-lg-6">
<div class="card h-100">
<div class="row g-0 h-100">
<div class="col-md-12 d-flex">
<div class="card-body d-flex justify-content-between align-content-center flex-wrap">
<div class="d-flex flex-grow-1 align-items-center flex-column pb-1">
<div class="fs-4" id="locked_twin"></div>
<div class="text-muted">
<img alt="TWIN logo" height="16px" width="16px" src="assets/twin.svg" />
TWIN locked
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="row py-3">
<div class="col-lg-12">
<h2>LP Holdings</h2>
<div class="table-responsive">
<table id="lp_holdings" class="table">
<thead>
<tr>
<th>Pair</th>
<th class="text-end">LP Balance</th>
<th class="text-center">Underlying Assets</th>
<th class="text-center">Pending TWIN</th>
<th class="text-end">Total LP Value</th>
</tr>
</thead>
<tbody>
<tr class="loading">
<td colspan="6" style="text-align: center">
<div class="spinner-border" role="status">
<span class="visually-hidden">Loading...</span>
</div>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<div class="row py-3">
<div class="col-lg-6 col-md-12">
<h2>Mint Positions</h2>
<div class="table-responsive">
<table id="mint_positions" class="table">
<col width="25%" />
<col width="25%" />
<col width="50%" />
<thead>
<tr>
<th>Mint Asset</th>
<th>Collateral Asset</th>
<th class="text-center">
Health
<i
class="bi bi-info-circle"
data-bs-toggle="tooltip"
data-bs-placement="top"
title="Your position could be liquidated if the health reaches 0%"
></i>
</th>
</tr>
</thead>
<tbody>
<tr class="loading">
<td colspan="3" style="text-align: center">
<div class="spinner-border" role="status">
<span class="visually-hidden">Loading...</span>
</div>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="col-lg-6">
<h2>Stock Price</h2>
<div class="table-responsive">
<table id="stock_price" class="table">
<thead>
<tr>
<th>Stock</th>
<th class="text-end">Twindex Price</th>
<th class="text-end">Oracle Price</th>
<th class="text-end">Diff</th>
</tr>
</thead>
<tbody>
<tr class="loading">
<td colspan="4" style="text-align: center">
<div class="spinner-border" role="status">
<span class="visually-hidden">Loading...</span>
</div>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
<footer class="footer bg-light">
<div class="container">
<div class="row">
<div class="col-lg-6"><section class="text-muted footer-content">Made with ❤ by a lazy man.</section></div>
<div class="col-lg-6">
<section class="text-muted footer-content" id="buy_me_coffee">
Buy me coffee via
<a id="buy_me_coffee_address" href="#">0xD741C21BDf702a047718e506faf4237c4Afd2B7F</a>
(Click to copy)
</section>
</div>
</div>
</div>
</footer>
<script
src="assets/js/jquery-3.6.0.min.js"
integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4="
crossorigin="anonymous"
></script>
<script
src="assets/js/ethers.umd.min.js"
integrity="sha256-MpMcxHvgImX4Nypwk+p1BkJKZnbMSzXzIMaT0wJu4Y4="
crossorigin="anonymous"
></script>
<script
src="assets/js/jquery.countdown.min.js"
integrity="sha512-lteuRD+aUENrZPTXWFRPTBcDDxIGWe5uu0apPEn+3ZKYDwDaEErIK9rvR0QzUGmUQ55KFE2RqGTVoZsKctGMVw=="
crossorigin="anonymous"
referrerpolicy="no-referrer"
></script>
<script
src="assets/js/bootstrap.bundle.min.js"
integrity="sha384-gtEjrD/SeCtmISkJkNUaaKMoLD0//ElJ19smozuHV6z3Iehds+3Ulb9Bn9Plx0x4"
crossorigin="anonymous"
></script>
<script src="assets/js/darkmode.min.js"></script>
<script src="dist/index.js"></script>
</body>
</html>