-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathindex-en.html
More file actions
211 lines (204 loc) · 10.3 KB
/
index-en.html
File metadata and controls
211 lines (204 loc) · 10.3 KB
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
211
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>XLMPOOL the stellar inflation pool</title>
<link href="https://fonts.googleapis.com/css?family=Lato:400,400i|PT+Serif:700" rel="stylesheet">
<link rel="stylesheet" href="css/style.css">
<script type="text/javascript">
var language = navigator.language || navigator.browserLanguage;
console.log(language.indexOf('en'))
if (language.indexOf('zh') > -1) {
document.location.href = 'index.html';
}
</script>
</head>
<body class="is-boxed has-animations">
<div class="body-wrap boxed-container">
<header class="site-header">
<div class="container">
<div class="site-header-inner">
<div class="brand header-brand">
<h1 class="m-0">
<a href="/">
<img width="32" height="32" src='images/rocket-180x180.png' style="display: inherit;">
XLMPOOL
</a>
</h1>
</div>
<!-- <ul class="header-links list-reset m-0">
<li>
<a href="#">中文</a>
</li>
<li>
<a class="button button-sm button-shadow" href="#">English</a>
</li>
</ul> -->
</div>
</div>
</header>
<main>
<section class="hero text-light text-center">
<div class="container-sm">
<div class="hero-inner">
<h1 class="hero-title h2-mobile mt-0 is-revealing">Vote to get inflation lumens</h1>
<p class="hero-paragraph is-revealing">INFLATION DESTINATION</p>
<p class="hero-paragraph is-revealing" style="font-size: 0.7em;">
GA3FUYFOPWZ25YXTCA73RK2UGONHCO27OHQRSGV3VCE67UEPEFEDCOPA</p>
<p class="hero-cta is-revealing">
<a class="button button-secondary button-shadow" id="joinbutton" href="#join">Join</a></p>
<div class="hero-media">
<img src='images/stellar.jpg'>
</div>
</div>
</div>
</section>
<section class="features-extended section">
<div class="container">
<div class="features-extended-inner section-inner has-top-divider">
<div class="features-extended-header text-center">
<div class="container-sm">
<h2 class="section-title mt-0">FAQ</h2>
<p class="section-paragraph">Why should you do this?
<hr>
The Stellar Network has an inflation mechanism and every week new lumens are created
and distributed.
Vote to XLMpool in order to receive your share of the new inflation lumens that are
distributed weekly!
</p>
</div>
</div>
<div id='join'>
<div class="feature-extended">
<div class="feature-extended-image is-revealing">
<img src="images/foxlet.png" width="480" height="360">
</div>
<div class="feature-extended-body">
<h3 class="mt-0"><a href="sdc-en.html">Use Stellar desktop client to set</a></h3>
</div>
</div>
<div class="feature-extended">
<div class="feature-extended-image is-revealing">
<img src="images/ledger.png" width="480" height="360">
</div>
<div class="feature-extended-body">
<h3 class="mt-0"><a href="http://www.xlmnews.com/?p=112">Use Ledger nano s to
set</a></h3>
</div>
</div>
<div class="feature-extended">
<div class="feature-extended-image is-revealing">
<img src="images/firefly.png" width="480" height="360">
</div>
<div class="feature-extended-body">
<h3 class="mt-0"><a href="firefly-en.html">Use Firefly mobie wallet to set</a></h3>
</div>
</div>
<div class="feature-extended">
<div class="feature-extended-image is-revealing">
<img src="images/stellar_logo.svg" width="480" height="360">
</div>
<div class="feature-extended-body">
<h3 class="mt-0"><a href="ofw-en.html">Use stellar official site to set</a></h3>
</div>
</div>
<div class="feature-extended text-center">
<div class="container-sm">
<p>There is no risk to all of the above operations , and lumens is always in your
wallet.</p>
<p>
We will allocate inflation lumens to your wallet address every week.</p>
<p >
10% of the inflation lumens will be charged to maintain following
website.<hr>
<a href="//xlmpool.com">xlmpool.com</a> |
<a href="//xlmnews.com">xlmnews.com</a> |
<a href="//xlmwallet.com">xlmwallet.com</a> |
<a href="//lumenswallet.com">lumenswallet.com</a> |
<a href="//stellarxlm.com">stellarxlm.com</a>
<hr>
Thanks for support!</p>
</div>
<p></p>
</div>
</div>
</div>
</div>
</section>
</main>
<footer class="site-footer">
<div class="container">
<div class="site-footer-inner">
<div class="brand footer-brand">
<a href="#">
<img src="images/rocket-180x180.png" width="32" height="32">
</a>
</div>
<ul class="footer-social-links list-reset">
<li>
<a href="https://keybase.io/jeswiel">
<span class="screen-reader-text">Keybase</span>
<img src="images/keybase.png" width="16" height="16">
</a>
</li>
</ul>
<div class="footer-copyright">© XLMPOOL all rights reserved</div>
</div>
</div>
</footer>
</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/stellar-sdk/0.8.0/stellar-sdk.js"></script>
<script src="https://cdn.jsdelivr.net/npm/fireflywallet-api/dist/fireflywallet.min.js"></script>
<script>
const FFWProxy = new FireFlyWallet();
const inflationDest = 'GA3FUYFOPWZ25YXTCA73RK2UGONHCO27OHQRSGV3VCE67UEPEFEDCOPA';
const server = new StellarSdk.Server('https://horizon.stellar.org');
StellarSdk.Network.usePublicNetwork();
let address = ''
let destination = "";
let sequence = 0;
let joined = false;
let j = document.querySelector("#joinbutton");
FFWProxy.ready()
.then(() => {
j.removeAttribute('href')
address = FFWProxy.accountID;
return server.loadAccount(address);
})
.then((account) => {
destination = account.inflation_destination;
sequence = account.sequence;
if (destination === inflationDest) {
j.text = "Joined";
joined = true;
} else {
j.onclick = function () {
if (joined) return;
let account = new StellarSdk.StellarBase.Account(address, sequence);
let transaction = new StellarSdk.StellarBase.TransactionBuilder(account, {
fee: StellarSdk.StellarBase.BASE_FEE
}).addOperation(StellarSdk.StellarBase.Operation.setOptions({
inflationDest: inflationDest
})).build();
let xdr = transaction.toEnvelope().toXDR('base64');
FFWProxy.signXDR(xdr, "sign XDR")
.then(data => {
j.text = "Joining";
let tx = new StellarSdk.Transaction(data);
return server.submitTransaction(tx);
})
.then(() => {
j.text = "Joined";
joined = true;
})
}
}
})
.catch(err => {
console.error(err)
})
</script>
</body>
</html>