-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
45 lines (32 loc) · 1.52 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
<!DOCTYPE html>
<html lang="en">
<head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Impermanent Loss Calculator</title>
<link href="./favicon.png" rel="icon" type="image/png" />
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.2/dist/css/bootstrap.min.css" rel="stylesheet" />
<link href="./style.css" rel="stylesheet" />
</head>
<body><!-- partial:index.partial.html -->
<p></p>
<div class="plcalculate">
<h3>DeFi Impermanent Loss Calculator</h3>
<p>This calculator is based on Uniswap's <a href="https://docs.uniswap.org/protocol/V2/concepts/protocol-overview/how-uniswap-works#:~:text=Uniswap%20is%20an%20automated%20liquidity,%2C%20censorship%20resistance%2C%20and%20security.">constant product formula.</a><br />
It does not account for fees and lp rewards for expected value.<br />
<br />
</p>
<h3>Initial price</h3>
<p>Token A : <input class="intial__price__a" placeholder="$" type="number" /></p>
<p>Token B : <input class="intial__price__b" placeholder="$" type="number" /></p>
<h3>Final price</h3>
<p>Token A : <input class="final__price__a" placeholder="$" type="number" /></p>
<p>Token B : <input class="final__price__b" placeholder="$" type="number" /></p>
<button class="btn btn-primary" onclick="Calculate()" type="button">Calculate</button><br />
<h4 class="impermanent__loss"></h4>
<h5 class="expected__value"></h5>
<h6 class="expected"></h6>
<h2 class="nothing"></h2>
</div>
<!-- partial --><script src="./script.js"></script>
</body>
</html>