tx · 6pFs9KvsXyVLXmfK7N3Bau6hWrRcxeq61qXApLprsThV 3MpMuGN8rW9EpPwzETAQz88Pe9TQhSwiriq: -0.02000000 Waves 2023.07.21 15:55 [2675643] smart account 3MpMuGN8rW9EpPwzETAQz88Pe9TQhSwiriq > SELF 0.00000000 Waves
{ "type": 13, "id": "6pFs9KvsXyVLXmfK7N3Bau6hWrRcxeq61qXApLprsThV", "fee": 2000000, "feeAssetId": null, "timestamp": 1689944189016, "version": 2, "chainId": 84, "sender": "3MpMuGN8rW9EpPwzETAQz88Pe9TQhSwiriq", "senderPublicKey": "57SkjQUEwC1ayCqLbXLuzBqifK6B6SR6rfxtGsbAo3zW", "proofs": [ "2XAK9j63ZnAtUajG3GbUMiNYZvZ3kx4skycbkCvH2DbrpBfPVb2whEXUskuDPtE9TDCnRyPGXAiPu7QNMg7gNusf" ], "script": "base64:BgIfCAISAwoBARIAEgMKAQgSAwoBARIDCgEIEgASAwoBCC8ADGNvbnRyYWN0RmlsZQIQbXB0X3N0YWtpbmcucmlkZQADU0VQAgJfXwAGc2NhbGU4AIDC1y8AEkFERFJFU1NfQllURVNfU0laRQAaAA1CTE9DS1NfSU5fREFZAKALAQh0aHJvd0VycgEDbXNnCQACAQkArAICCQCsAgIFDGNvbnRyYWN0RmlsZQICOiAFA21zZwAKa2V5QXNzZXRJZAkAuQkCCQDMCAICAiVzCQDMCAICB2Fzc2V0SWQFA25pbAUDU0VQABNrZXlFbWlzc2lvblBlckJsb2NrCQC5CQIJAMwIAgICJXMJAMwIAgIQZW1pc3Npb25QZXJCbG9jawUDbmlsBQNTRVAAGWtleUVtaXNzaW9uUGVyaW9kSW5CbG9ja3MJALkJAgkAzAgCAgIlcwkAzAgCAhZlbWlzc2lvblBlcmlvZEluQmxvY2tzBQNuaWwFA1NFUAANa2V5U3RhcnRCbG9jawkAuQkCCQDMCAICAiVzCQDMCAICCnN0YXJ0QmxvY2sFA25pbAUDU0VQABBrZXlUb3RhbExwQW1vdW50CQC5CQI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ZQEFEWFsbG93ZWRUeElkT3B0aW9uBQR0eElkBgkBCHRocm93RXJyAQkArAICBQR0eElkAhMgaXMgYWxyZWFkeSBhbGxvd2VkBQNuaWwDCQAAAgUDZXJyBQNlcnIJAQx2b3RlSU5URVJOQUwEBRNjYWxsZXJBZGRyZXNzU3RyaW5nBQlrZXlQcmVmaXgFBlFVT1JVTQUGcmVzdWx0CQACAQIkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuAQJ0eAEGdmVyaWZ5AAQIYnlBZG1pbnMJAAACCAUCdHgCaWQJANkEAQkBC3ZhbHVlT3JFbHNlAgkAnQgCBQR0aGlzCQEOa2V5QWxsb3dlZFR4SWQAAgAEB2J5T3duZXIDCQBnAgkAkAMBCQENZ2V0QWRtaW5zTGlzdAAFBlFVT1JVTQcJAPQDAwgFAnR4CWJvZHlCeXRlcwkAkQMCCAUCdHgGcHJvb2ZzAAAIBQJ0eA9zZW5kZXJQdWJsaWNLZXkDBQhieUFkbWlucwYFB2J5T3duZXKK0ZJV", "height": 2675643, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: Hsg6jYUKLzTPdprb9HQy6se7vceLiAAMjJvCzGbJePSW Next: GNgVpsstBv7bavKTgTETGZYsy6cQaeSpTNXBXTYkAZgf Full:
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "mpt_staking.ride" | |
5 | 5 | ||
6 | 6 | let b = "__" | |
7 | 7 | ||
8 | 8 | let c = 100000000 | |
9 | 9 | ||
10 | 10 | let d = 26 | |
11 | 11 | ||
12 | 12 | let e = 1440 | |
13 | 13 | ||
14 | 14 | func f (g) = throw(((a + ": ") + g)) | |
15 | 15 | ||
16 | 16 | ||
17 | 17 | let h = makeString(["%s", "assetId"], b) | |
18 | 18 | ||
19 | 19 | let i = makeString(["%s", "emissionPerBlock"], b) | |
20 | 20 | ||
21 | 21 | let j = makeString(["%s", "emissionPeriodInBlocks"], b) | |
22 | 22 | ||
23 | 23 | let k = makeString(["%s", "startBlock"], b) | |
24 | 24 | ||
25 | 25 | let l = makeString(["%s", "totalLpAmount"], b) | |
26 | 26 | ||
27 | 27 | let m = makeString(["%s", "totalAssetAmount"], b) | |
28 | 28 | ||
29 | 29 | func n (o) = makeString(["%s%s", "userLpAmount", o], b) | |
30 | 30 | ||
31 | 31 | ||
32 | 32 | func p (o) = makeString(["%s%s", "totalAssetWithdrawn", o], b) | |
33 | 33 | ||
34 | 34 | ||
35 | 35 | func q (o) = makeString(["%s%s", "totalAssetStaked", o], b) | |
36 | 36 | ||
37 | 37 | ||
38 | 38 | let r = valueOrElse(getInteger(this, l), 0) | |
39 | 39 | ||
40 | 40 | let s = valueOrElse(getInteger(this, m), 0) | |
41 | 41 | ||
42 | 42 | let t = valueOrElse(getString(this, h), "WAVES") | |
43 | 43 | ||
44 | 44 | let u = if ((t == "WAVES")) | |
45 | 45 | then unit | |
46 | 46 | else fromBase58String(t) | |
47 | 47 | ||
48 | 48 | let v = valueOrElse(getInteger(this, j), e) | |
49 | 49 | ||
50 | 50 | let w = (valueOrElse(getInteger(this, i), 0) * v) | |
51 | 51 | ||
52 | 52 | let x = fraction(height, 1, v) | |
53 | 53 | ||
54 | 54 | let y = 5 | |
55 | 55 | ||
56 | 56 | let z = 3 | |
57 | 57 | ||
58 | 58 | let A = 32 | |
59 | 59 | ||
60 | 60 | func B (C) = makeString(["%s%s%s", "allowTxId", C], b) | |
61 | 61 | ||
62 | 62 | ||
63 | 63 | func D (E,F) = makeString([E, F], b) | |
64 | 64 | ||
65 | 65 | ||
66 | 66 | func G () = makeString(["%s", "adminAddressList"], b) | |
67 | 67 | ||
68 | 68 | ||
69 | 69 | func H () = makeString(["%s", "txId"], b) | |
70 | 70 | ||
71 | 71 | ||
72 | 72 | func I (E,J) = { | |
73 | 73 | let K = D(E, J) | |
74 | 74 | valueOrElse(getInteger(K), 0) | |
75 | 75 | } | |
76 | 76 | ||
77 | 77 | ||
78 | 78 | func L () = { | |
79 | 79 | let M = getString(this, G()) | |
80 | 80 | if ($isInstanceOf(M, "String")) | |
81 | 81 | then { | |
82 | 82 | let N = M | |
83 | 83 | split(N, b) | |
84 | 84 | } | |
85 | 85 | else nil | |
86 | 86 | } | |
87 | 87 | ||
88 | 88 | ||
89 | 89 | func O (P) = containsElement(L(), P) | |
90 | 90 | ||
91 | 91 | ||
92 | 92 | func Q (R,F) = { | |
93 | 93 | let S = R | |
94 | 94 | let T = S._1 | |
95 | 95 | let E = S._2 | |
96 | 96 | $Tuple2((T :+ D(E, F)), E) | |
97 | 97 | } | |
98 | 98 | ||
99 | 99 | ||
100 | 100 | func U (V) = { | |
101 | 101 | let W = G() | |
102 | 102 | let X = { | |
103 | 103 | let Y = L() | |
104 | 104 | let Z = size(Y) | |
105 | 105 | let aa = $Tuple2(nil, V) | |
106 | 106 | func ab (ac,ad) = if ((ad >= Z)) | |
107 | 107 | then ac | |
108 | 108 | else Q(ac, Y[ad]) | |
109 | 109 | ||
110 | 110 | func ae (ac,ad) = if ((ad >= Z)) | |
111 | 111 | then ac | |
112 | 112 | else throw("List size exceeds 5") | |
113 | 113 | ||
114 | 114 | ae(ab(ab(ab(ab(ab(aa, 0), 1), 2), 3), 4), 5) | |
115 | 115 | } | |
116 | 116 | let T = X._1 | |
117 | 117 | let E = X._2 | |
118 | 118 | T | |
119 | 119 | } | |
120 | 120 | ||
121 | 121 | ||
122 | 122 | func af (T,K) = (T + valueOrElse(getInteger(K), 0)) | |
123 | 123 | ||
124 | 124 | ||
125 | 125 | func ag (E) = { | |
126 | 126 | let ah = U(E) | |
127 | 127 | let Y = ah | |
128 | 128 | let Z = size(Y) | |
129 | 129 | let aa = 0 | |
130 | 130 | func ab (ac,ad) = if ((ad >= Z)) | |
131 | 131 | then ac | |
132 | 132 | else af(ac, Y[ad]) | |
133 | 133 | ||
134 | 134 | func ae (ac,ad) = if ((ad >= Z)) | |
135 | 135 | then ac | |
136 | 136 | else throw("List size exceeds 5") | |
137 | 137 | ||
138 | 138 | ae(ab(ab(ab(ab(ab(aa, 0), 1), 2), 3), 4), 5) | |
139 | 139 | } | |
140 | 140 | ||
141 | 141 | ||
142 | 142 | func ai (T,aj) = (T :+ DeleteEntry(aj)) | |
143 | 143 | ||
144 | 144 | ||
145 | 145 | func ak (E) = { | |
146 | 146 | let ah = U(E) | |
147 | 147 | let Y = ah | |
148 | 148 | let Z = size(Y) | |
149 | 149 | let aa = nil | |
150 | 150 | func ab (ac,ad) = if ((ad >= Z)) | |
151 | 151 | then ac | |
152 | 152 | else ai(ac, Y[ad]) | |
153 | 153 | ||
154 | 154 | func ae (ac,ad) = if ((ad >= Z)) | |
155 | 155 | then ac | |
156 | 156 | else throw("List size exceeds 5") | |
157 | 157 | ||
158 | 158 | ae(ab(ab(ab(ab(ab(aa, 0), 1), 2), 3), 4), 5) | |
159 | 159 | } | |
160 | 160 | ||
161 | 161 | ||
162 | 162 | func al (am,V,an,ao) = { | |
163 | 163 | let K = D(V, am) | |
164 | 164 | let ap = I(V, am) | |
165 | 165 | let aq = if (!(O(am))) | |
166 | 166 | then f((("Address: " + am) + " not in Admin list")) | |
167 | 167 | else if ((ap == 1)) | |
168 | 168 | then f((K + " you already voted")) | |
169 | 169 | else unit | |
170 | 170 | if ((aq == aq)) | |
171 | 171 | then { | |
172 | 172 | let ah = ag(V) | |
173 | 173 | if (((ah + 1) >= an)) | |
174 | 174 | then { | |
175 | 175 | let ar = ak(V) | |
176 | 176 | (ar ++ ao) | |
177 | 177 | } | |
178 | 178 | else [IntegerEntry(K, 1)] | |
179 | 179 | } | |
180 | 180 | else throw("Strict value is not equal to itself.") | |
181 | 181 | } | |
182 | 182 | ||
183 | 183 | ||
184 | 184 | func as () = { | |
185 | 185 | let at = valueOrElse(getInteger(this, k), 0) | |
186 | 186 | let au = fraction(at, 1, v) | |
187 | 187 | let av = (x - au) | |
188 | 188 | max([0, (w * av)]) | |
189 | 189 | } | |
190 | 190 | ||
191 | 191 | ||
192 | 192 | func aw () = { | |
193 | 193 | let at = valueOrElse(getInteger(this, k), 0) | |
194 | 194 | let au = fraction(at, 1, v) | |
195 | 195 | let av = (x - au) | |
196 | 196 | $Tuple5(au, x, av, at, height) | |
197 | 197 | } | |
198 | 198 | ||
199 | 199 | ||
200 | 200 | func ax () = { | |
201 | 201 | let ay = (s + as()) | |
202 | 202 | let az = { | |
203 | 203 | let M = u | |
204 | 204 | if ($isInstanceOf(M, "Unit")) | |
205 | 205 | then { | |
206 | 206 | let aA = M | |
207 | 207 | min([ay, wavesBalance(this).available]) | |
208 | 208 | } | |
209 | 209 | else if ($isInstanceOf(M, "ByteVector")) | |
210 | 210 | then { | |
211 | 211 | let aB = M | |
212 | 212 | min([ay, assetBalance(this, aB)]) | |
213 | 213 | } | |
214 | 214 | else throw("Match error") | |
215 | 215 | } | |
216 | 216 | if ((r == 0)) | |
217 | 217 | then 0 | |
218 | 218 | else az | |
219 | 219 | } | |
220 | 220 | ||
221 | 221 | ||
222 | 222 | func aC () = if ((r != 0)) | |
223 | 223 | then fraction(ax(), c, r) | |
224 | 224 | else (1 * c) | |
225 | 225 | ||
226 | 226 | ||
227 | 227 | func aD (o) = valueOrElse(getInteger(this, n(o)), 0) | |
228 | 228 | ||
229 | 229 | ||
230 | 230 | func aE (o) = { | |
231 | 231 | let aF = aD(o) | |
232 | 232 | let aG = fraction(aF, aC(), c) | |
233 | 233 | if ((aC() > (aG * c))) | |
234 | 234 | then 0 | |
235 | 235 | else aG | |
236 | 236 | } | |
237 | 237 | ||
238 | 238 | ||
239 | 239 | func aH (aI,o) = { | |
240 | 240 | let aJ = [if ((size(aI.payments) == 1)) | |
241 | 241 | then true | |
242 | 242 | else f("should include 1 payment"), if ((aI.payments[0].assetId == u)) | |
243 | 243 | then true | |
244 | 244 | else f(("payment should be in " + t)), if ((aI.payments[0].amount > 0)) | |
245 | 245 | then true | |
246 | 246 | else "payment amount should be greater than 0"] | |
247 | 247 | if ((aJ == aJ)) | |
248 | 248 | then { | |
249 | 249 | let aK = aI.payments[0].amount | |
250 | 250 | let aL = fraction(aK, c, aC()) | |
251 | 251 | let aF = aD(o) | |
252 | 252 | let aM = valueOrElse(getInteger(this, q(o)), 0) | |
253 | 253 | let aN = (r + aL) | |
254 | 254 | let aO = (s + aK) | |
255 | 255 | let aP = (aF + aL) | |
256 | 256 | let aQ = (aM + aK) | |
257 | 257 | let aR = if ((r == 0)) | |
258 | 258 | then [IntegerEntry(k, height)] | |
259 | 259 | else nil | |
260 | 260 | ([IntegerEntry(l, aN), IntegerEntry(m, aO), IntegerEntry(n(o), aP), IntegerEntry(q(o), aQ)] ++ aR) | |
261 | 261 | } | |
262 | 262 | else throw("Strict value is not equal to itself.") | |
263 | 263 | } | |
264 | 264 | ||
265 | 265 | ||
266 | 266 | func aS (aI,aT) = { | |
267 | 267 | let o = toString(aI.caller) | |
268 | 268 | let aF = aD(o) | |
269 | 269 | let aU = [if ((aT > 0)) | |
270 | 270 | then true | |
271 | 271 | else f("LP amount should be more than 0"), if ((aF >= aT)) | |
272 | 272 | then true | |
273 | 273 | else f((("cannot withdraw more than available LP (" + toString(aF)) + ")"))] | |
274 | 274 | if ((aU == aU)) | |
275 | 275 | then { | |
276 | 276 | let aP = (aF - aT) | |
277 | 277 | let aV = fraction(aT, aC(), c) | |
278 | 278 | let aN = (r - aT) | |
279 | 279 | let aO = fraction(aN, aC(), c) | |
280 | 280 | let aW = valueOrElse(getInteger(this, p(o)), 0) | |
281 | 281 | let aX = (aW + aV) | |
282 | 282 | [IntegerEntry(l, aN), IntegerEntry(m, aO), IntegerEntry(n(o), aP), IntegerEntry(p(o), aX), IntegerEntry(k, height), ScriptTransfer(aI.caller, aV, u)] | |
283 | 283 | } | |
284 | 284 | else throw("Strict value is not equal to itself.") | |
285 | 285 | } | |
286 | 286 | ||
287 | 287 | ||
288 | 288 | @Callable(aI) | |
289 | 289 | func setEmissionPerBlock (aY) = { | |
290 | 290 | let aU = [if ((aI.caller == this)) | |
291 | 291 | then true | |
292 | 292 | else f("permission denied")] | |
293 | 293 | if ((aU == aU)) | |
294 | 294 | then [IntegerEntry(m, ax()), IntegerEntry(k, height), IntegerEntry(i, max([0, aY]))] | |
295 | 295 | else throw("Strict value is not equal to itself.") | |
296 | 296 | } | |
297 | 297 | ||
298 | 298 | ||
299 | 299 | ||
300 | 300 | @Callable(aI) | |
301 | 301 | func stake () = aH(aI, toString(aI.caller)) | |
302 | 302 | ||
303 | 303 | ||
304 | 304 | ||
305 | 305 | @Callable(aI) | |
306 | 306 | func stakeFor (o) = { | |
307 | 307 | let aU = [if ((size(fromBase58String(o)) == d)) | |
308 | 308 | then true | |
309 | 309 | else f("address is not valid")] | |
310 | 310 | if ((aU == aU)) | |
311 | 311 | then aH(aI, o) | |
312 | 312 | else throw("Strict value is not equal to itself.") | |
313 | 313 | } | |
314 | 314 | ||
315 | 315 | ||
316 | 316 | ||
317 | 317 | @Callable(aI) | |
318 | 318 | func withdraw (aV) = { | |
319 | 319 | let o = toString(aI.caller) | |
320 | 320 | let aF = aD(o) | |
321 | 321 | let aZ = fraction(aV, c, aC()) | |
322 | 322 | let aG = aE(o) | |
323 | 323 | let aU = [if ((aV > 0)) | |
324 | 324 | then true | |
325 | 325 | else f("withdraw amount should be more than 0"), if ((aG >= aV)) | |
326 | 326 | then true | |
327 | 327 | else f((("cannot withdraw more than available (" + toString(aG)) + ")"))] | |
328 | 328 | if ((aU == aU)) | |
329 | 329 | then aS(aI, aZ) | |
330 | 330 | else throw("Strict value is not equal to itself.") | |
331 | 331 | } | |
332 | 332 | ||
333 | 333 | ||
334 | 334 | ||
335 | 335 | @Callable(aI) | |
336 | 336 | func getUserAssetsREADONLY (o) = { | |
337 | 337 | let aF = aD(o) | |
338 | 338 | let aG = aE(o) | |
339 | 339 | let aM = valueOrElse(getInteger(this, q(o)), 0) | |
340 | 340 | let aW = valueOrElse(getInteger(this, p(o)), 0) | |
341 | 341 | $Tuple2(nil, $Tuple5(aF, aG, aC(), aM, aW)) | |
342 | 342 | } | |
343 | 343 | ||
344 | 344 | ||
345 | 345 | ||
346 | 346 | @Callable(aI) | |
347 | 347 | func getTotalAssetsREADONLY () = $Tuple2(nil, $Tuple3(r, ax(), aC())) | |
348 | 348 | ||
349 | 349 | ||
350 | 350 | ||
351 | 351 | @Callable(aI) | |
352 | 352 | func voteForTxId (C) = { | |
353 | 353 | let am = toBase58String(aI.caller.bytes) | |
354 | 354 | let V = B(C) | |
355 | 355 | let T = [StringEntry(H(), C)] | |
356 | 356 | let ba = getString(this, H()) | |
357 | 357 | let aq = [if ((size(fromBase58String(C)) == A)) | |
358 | 358 | then true | |
359 | 359 | else f((C + " is not valid txId")), if (if ((ba == unit)) | |
360 | 360 | then true | |
361 | 361 | else (value(ba) != C)) | |
362 | 362 | then true | |
363 | 363 | else f((C + " is already allowed"))] | |
364 | 364 | if ((aq == aq)) | |
365 | 365 | then al(am, V, z, T) | |
366 | 366 | else throw("Strict value is not equal to itself.") | |
367 | 367 | } | |
368 | 368 | ||
369 | 369 | ||
370 | 370 | @Verifier(bb) | |
371 | 371 | func bc () = { | |
372 | 372 | let bd = (bb.id == fromBase58String(valueOrElse(getString(this, H()), ""))) | |
373 | 373 | let be = if ((size(L()) >= z)) | |
374 | 374 | then false | |
375 | 375 | else sigVerify(bb.bodyBytes, bb.proofs[0], bb.senderPublicKey) | |
376 | 376 | if (bd) | |
377 | 377 | then true | |
378 | 378 | else be | |
379 | 379 | } | |
380 | 380 |
github/deemru/w8io/169f3d6 39.23 ms ◑