tx · AoR2fqfJtmJwG43qQ7D4iC8JXfDatwQvre3TSj8qg4F2 3MvR8ZD65rVQ7ho1LuZFMNmqnQs38SjFzvz: -0.01800000 Waves 2024.07.04 10:25 [3178971] smart account 3MvR8ZD65rVQ7ho1LuZFMNmqnQs38SjFzvz > SELF 0.00000000 Waves
{ "type": 13, "id": "AoR2fqfJtmJwG43qQ7D4iC8JXfDatwQvre3TSj8qg4F2", "fee": 1800000, "feeAssetId": null, "timestamp": 1720077981804, "version": 2, "chainId": 84, "sender": "3MvR8ZD65rVQ7ho1LuZFMNmqnQs38SjFzvz", "senderPublicKey": "EEqjCemrPmbE6rVdu2pgq2hcW4J8ecASNHy7TMnfYmuZ", "proofs": [ "3i7ZoxJJ8nVPupv2mLvfXVSorbM94hdDJM97vSvL3tKk4LG66wzZfDYsqa7H7tRGjUSZfFkHVhmwrsQtYUt5kt2B" ], "script": "base64:BwJCCAISBgoEAQgICBIAEgMKAQgSBQoDAQgIEgMKAQESBQoDCAgIEgMKAQgSBAoCCAgSAwoBCBIAEgASAwoBCBIDCgEIRQAJU0VQQVJBVE9SAgJfXwAMS0VZX01VTFRJU0lHAghNVUxUSVNJRwAKS0VZX1NUQVRVUwIGU1RBVFVTAAhLRVlfSU5JVAIESU5JVAAKS0VZX1BBVVNFRAIGUEFVU0VEAApLRVlfUEFVU0VSAgZQQVVTRVIACUtFWV9DSEFJTgIFQ0hBSU4AFEtFWV9HQVRFV0FZX0NPTlRSQUNUAhBHQVRFV0FZX0NPTlRSQUNUABNLRVlfU1dBVkVTX0NPTlRSQUNUAg9TV0FWRVNfQ09OVFJBQ1QAEEtFWV9TV0FWRVNfQVNTRVQCBUFTU0VUAAxLRVlfUkVTRVJWRVMCCFJFU0VSVkVTABJLRVlfU1RBS0lOR19BU1NFVFMCDlNUQUtJTkdfQVNTRVRTABRLRVlfU1RBS0lOR19DT05UUkFDVAIQU1RBS0lOR19DT05UUkFDVAAMRlVOQ19ERVBPU0lUAgdkZXBvc2l0ABdGV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cwAACAUCdHgPc2VuZGVyUHVibGljS2V5cgk9Ng==", "height": 3178971, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: none Full:
Old | New | Differences | |
---|---|---|---|
1 | - | # no script | |
1 | + | {-# STDLIB_VERSION 7 #-} | |
2 | + | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | + | {-# CONTENT_TYPE DAPP #-} | |
4 | + | let a = "__" | |
5 | + | ||
6 | + | let b = "MULTISIG" | |
7 | + | ||
8 | + | let c = "STATUS" | |
9 | + | ||
10 | + | let d = "INIT" | |
11 | + | ||
12 | + | let e = "PAUSED" | |
13 | + | ||
14 | + | let f = "PAUSER" | |
15 | + | ||
16 | + | let g = "CHAIN" | |
17 | + | ||
18 | + | let h = "GATEWAY_CONTRACT" | |
19 | + | ||
20 | + | let i = "SWAVES_CONTRACT" | |
21 | + | ||
22 | + | let j = "ASSET" | |
23 | + | ||
24 | + | let k = "RESERVES" | |
25 | + | ||
26 | + | let l = "STAKING_ASSETS" | |
27 | + | ||
28 | + | let m = "STAKING_CONTRACT" | |
29 | + | ||
30 | + | let n = "deposit" | |
31 | + | ||
32 | + | let o = "requestWithdrawal" | |
33 | + | ||
34 | + | let p = "executeWithdrawal" | |
35 | + | ||
36 | + | let q = "getRate" | |
37 | + | ||
38 | + | let r = "withdraw" | |
39 | + | ||
40 | + | let s = "stake" | |
41 | + | ||
42 | + | let t = "unstake" | |
43 | + | ||
44 | + | let u = "claimAll" | |
45 | + | ||
46 | + | let v = "depositStakingReward" | |
47 | + | ||
48 | + | let w = "WAVES" | |
49 | + | ||
50 | + | let x = 8 | |
51 | + | ||
52 | + | let y = 8 | |
53 | + | ||
54 | + | let z = 9223372036854775807 | |
55 | + | ||
56 | + | let A = toBigInt(0) | |
57 | + | ||
58 | + | let B = toBigInt(1) | |
59 | + | ||
60 | + | let C = toBigInt(1000000000000) | |
61 | + | ||
62 | + | func D (E,F) = { | |
63 | + | let G = addressFromString(E) | |
64 | + | if ($isInstanceOf(G, "Address")) | |
65 | + | then { | |
66 | + | let H = G | |
67 | + | true | |
68 | + | } | |
69 | + | else throw(F) | |
70 | + | } | |
71 | + | ||
72 | + | ||
73 | + | func I (J,F) = if ((J == w)) | |
74 | + | then true | |
75 | + | else { | |
76 | + | let G = assetInfo(fromBase58String(J)) | |
77 | + | if ($isInstanceOf(G, "Asset")) | |
78 | + | then { | |
79 | + | let H = G | |
80 | + | true | |
81 | + | } | |
82 | + | else throw(F) | |
83 | + | } | |
84 | + | ||
85 | + | ||
86 | + | func K (L,M,N,F) = if (if ((M > L)) | |
87 | + | then true | |
88 | + | else (L > N)) | |
89 | + | then throw(F) | |
90 | + | else true | |
91 | + | ||
92 | + | ||
93 | + | func O (L,M,F) = if ((M > L)) | |
94 | + | then throw(F) | |
95 | + | else true | |
96 | + | ||
97 | + | ||
98 | + | func P (L,F) = if (if ((0 >= size(L))) | |
99 | + | then true | |
100 | + | else contains(L, a)) | |
101 | + | then throw(F) | |
102 | + | else true | |
103 | + | ||
104 | + | ||
105 | + | func Q (R,S,F) = if ((size(R) != S)) | |
106 | + | then throw(F) | |
107 | + | else true | |
108 | + | ||
109 | + | ||
110 | + | func T (U) = { | |
111 | + | let G = U | |
112 | + | if ($isInstanceOf(G, "ByteVector")) | |
113 | + | then { | |
114 | + | let H = G | |
115 | + | toBase58String(H) | |
116 | + | } | |
117 | + | else w | |
118 | + | } | |
119 | + | ||
120 | + | ||
121 | + | func V (U) = if ((U == w)) | |
122 | + | then unit | |
123 | + | else fromBase58String(U) | |
124 | + | ||
125 | + | ||
126 | + | func W (J) = if ((J == w)) | |
127 | + | then x | |
128 | + | else { | |
129 | + | let G = assetInfo(fromBase58String(J)) | |
130 | + | if ($isInstanceOf(G, "Asset")) | |
131 | + | then { | |
132 | + | let H = G | |
133 | + | H.decimals | |
134 | + | } | |
135 | + | else throw(("_getDecimals: no asset=" + J)) | |
136 | + | } | |
137 | + | ||
138 | + | ||
139 | + | func X (Y,Z,aa) = if ((Z >= aa)) | |
140 | + | then (Y / pow(10, 0, (Z - aa), 0, 0, DOWN)) | |
141 | + | else (Y * pow(10, 0, (aa - Z), 0, 0, DOWN)) | |
142 | + | ||
143 | + | ||
144 | + | func ab () = { | |
145 | + | let G = getBoolean(d) | |
146 | + | if ($isInstanceOf(G, "Boolean")) | |
147 | + | then { | |
148 | + | let H = G | |
149 | + | H | |
150 | + | } | |
151 | + | else false | |
152 | + | } | |
153 | + | ||
154 | + | ||
155 | + | func ac (ad) = [BooleanEntry(d, ad)] | |
156 | + | ||
157 | + | ||
158 | + | func ae () = { | |
159 | + | let G = getBoolean(e) | |
160 | + | if ($isInstanceOf(G, "Boolean")) | |
161 | + | then { | |
162 | + | let H = G | |
163 | + | H | |
164 | + | } | |
165 | + | else false | |
166 | + | } | |
167 | + | ||
168 | + | ||
169 | + | func af (ag) = [BooleanEntry(e, ag)] | |
170 | + | ||
171 | + | ||
172 | + | func ah () = { | |
173 | + | let G = getString(f) | |
174 | + | if ($isInstanceOf(G, "String")) | |
175 | + | then { | |
176 | + | let H = G | |
177 | + | addressFromStringValue(H) | |
178 | + | } | |
179 | + | else Address(base58'') | |
180 | + | } | |
181 | + | ||
182 | + | ||
183 | + | func ai (aj) = [StringEntry(f, toString(aj))] | |
184 | + | ||
185 | + | ||
186 | + | func ak () = { | |
187 | + | let G = getString(b) | |
188 | + | if ($isInstanceOf(G, "String")) | |
189 | + | then { | |
190 | + | let H = G | |
191 | + | addressFromStringValue(H) | |
192 | + | } | |
193 | + | else Address(base58'') | |
194 | + | } | |
195 | + | ||
196 | + | ||
197 | + | func al (am) = [StringEntry(b, toString(am))] | |
198 | + | ||
199 | + | ||
200 | + | func an () = { | |
201 | + | let G = getInteger(g) | |
202 | + | if ($isInstanceOf(G, "Int")) | |
203 | + | then { | |
204 | + | let H = G | |
205 | + | H | |
206 | + | } | |
207 | + | else 0 | |
208 | + | } | |
209 | + | ||
210 | + | ||
211 | + | func ao (ap) = [IntegerEntry(g, ap)] | |
212 | + | ||
213 | + | ||
214 | + | func aq () = { | |
215 | + | let G = getString(h) | |
216 | + | if ($isInstanceOf(G, "String")) | |
217 | + | then { | |
218 | + | let H = G | |
219 | + | addressFromStringValue(H) | |
220 | + | } | |
221 | + | else Address(base58'') | |
222 | + | } | |
223 | + | ||
224 | + | ||
225 | + | func ar (as) = [StringEntry(h, toString(as))] | |
226 | + | ||
227 | + | ||
228 | + | func at () = { | |
229 | + | let G = getString(i) | |
230 | + | if ($isInstanceOf(G, "String")) | |
231 | + | then { | |
232 | + | let H = G | |
233 | + | addressFromStringValue(H) | |
234 | + | } | |
235 | + | else Address(base58'') | |
236 | + | } | |
237 | + | ||
238 | + | ||
239 | + | func au (av) = [StringEntry(i, toString(av))] | |
240 | + | ||
241 | + | ||
242 | + | func aw (ax) = { | |
243 | + | let G = getString(ax, j) | |
244 | + | if ($isInstanceOf(G, "String")) | |
245 | + | then { | |
246 | + | let H = G | |
247 | + | fromBase58String(H) | |
248 | + | } | |
249 | + | else throw("_loadSWavesAsset: revert") | |
250 | + | } | |
251 | + | ||
252 | + | ||
253 | + | func ay (U) = { | |
254 | + | let G = getInteger(makeString([k, U], a)) | |
255 | + | if ($isInstanceOf(G, "Int")) | |
256 | + | then { | |
257 | + | let H = G | |
258 | + | H | |
259 | + | } | |
260 | + | else 0 | |
261 | + | } | |
262 | + | ||
263 | + | ||
264 | + | func az (U,aA) = [IntegerEntry(makeString([k, U], a), aA)] | |
265 | + | ||
266 | + | ||
267 | + | func aB () = { | |
268 | + | let G = getString(l) | |
269 | + | if ($isInstanceOf(G, "String")) | |
270 | + | then { | |
271 | + | let H = G | |
272 | + | if ((size(H) > 0)) | |
273 | + | then split_51C(H, a) | |
274 | + | else nil | |
275 | + | } | |
276 | + | else nil | |
277 | + | } | |
278 | + | ||
279 | + | ||
280 | + | func aC (aD) = [StringEntry(l, makeString(aD, a))] | |
281 | + | ||
282 | + | ||
283 | + | func aE (U) = { | |
284 | + | let G = getString(makeString([m, U], a)) | |
285 | + | if ($isInstanceOf(G, "String")) | |
286 | + | then { | |
287 | + | let H = G | |
288 | + | addressFromStringValue(H) | |
289 | + | } | |
290 | + | else Address(base58'') | |
291 | + | } | |
292 | + | ||
293 | + | ||
294 | + | func aF (U,ax) = [StringEntry(makeString([m, U], a), toString(ax))] | |
295 | + | ||
296 | + | ||
297 | + | func aG (aH) = if ((aH != this)) | |
298 | + | then throw("_onlyThisContract: revert") | |
299 | + | else true | |
300 | + | ||
301 | + | ||
302 | + | func aI () = if ((ak() == Address(base58''))) | |
303 | + | then throw("_whenMultisigSet: revert") | |
304 | + | else true | |
305 | + | ||
306 | + | ||
307 | + | func aJ () = if (ab()) | |
308 | + | then throw("_whenNotInitialized: revert") | |
309 | + | else true | |
310 | + | ||
311 | + | ||
312 | + | func aK () = if (!(ab())) | |
313 | + | then throw("_whenInitialized: revert") | |
314 | + | else true | |
315 | + | ||
316 | + | ||
317 | + | func aL () = if (ae()) | |
318 | + | then throw("_whenNotPaused: revert") | |
319 | + | else true | |
320 | + | ||
321 | + | ||
322 | + | func aM () = if (!(ae())) | |
323 | + | then throw("_whenPaused: revert") | |
324 | + | else true | |
325 | + | ||
326 | + | ||
327 | + | func aN (aH) = if ((aH != ah())) | |
328 | + | then throw("_onlyPauser: revert") | |
329 | + | else true | |
330 | + | ||
331 | + | ||
332 | + | func aO (aP,F) = if ((aq() != aP)) | |
333 | + | then throw(F) | |
334 | + | else true | |
335 | + | ||
336 | + | ||
337 | + | func aQ (aR,aS,U,Y) = { | |
338 | + | let aT = W(U) | |
339 | + | let aU = X(Y, aT, y) | |
340 | + | let aV = K(aU, 1, z, "_deposit: invalid payment amount") | |
341 | + | if ((aV == aV)) | |
342 | + | then { | |
343 | + | let aW = invoke(aq(), n, [toString(this), aR, aS, toString(an()), U, toString(aU)], nil) | |
344 | + | if ((aW == aW)) | |
345 | + | then { | |
346 | + | let aX = aB() | |
347 | + | let aY = if ((U == w)) | |
348 | + | then invoke(at(), n, nil, [AttachedPayment(unit, Y)]) | |
349 | + | else if (containsElement(aX, U)) | |
350 | + | then invoke(aE(U), s, nil, [AttachedPayment(V(U), Y)]) | |
351 | + | else unit | |
352 | + | if ((aY == aY)) | |
353 | + | then az(U, (ay(U) + aU)) | |
354 | + | else throw("Strict value is not equal to itself.") | |
355 | + | } | |
356 | + | else throw("Strict value is not equal to itself.") | |
357 | + | } | |
358 | + | else throw("Strict value is not equal to itself.") | |
359 | + | } | |
360 | + | ||
361 | + | ||
362 | + | @Callable(aZ) | |
363 | + | func init (ap,aj,as,av) = { | |
364 | + | let aV = if (if (if (if (if (if (aG(aZ.caller)) | |
365 | + | then aJ() | |
366 | + | else false) | |
367 | + | then aI() | |
368 | + | else false) | |
369 | + | then K(ap, 0, z, "init: invalid chainId") | |
370 | + | else false) | |
371 | + | then D(aj, "init: invalid pauser") | |
372 | + | else false) | |
373 | + | then D(as, "init: invalid gatewayContract") | |
374 | + | else false) | |
375 | + | then D(av, "init: invalid sWavesContract") | |
376 | + | else false | |
377 | + | if ((aV == aV)) | |
378 | + | then $Tuple2(((((ac(true) ++ ao(ap)) ++ ai(addressFromStringValue(aj))) ++ ar(addressFromStringValue(as))) ++ au(addressFromStringValue(av))), unit) | |
379 | + | else throw("Strict value is not equal to itself.") | |
380 | + | } | |
381 | + | ||
382 | + | ||
383 | + | ||
384 | + | @Callable(aZ) | |
385 | + | func deposit () = { | |
386 | + | let aV = if (if (if (aK()) | |
387 | + | then aL() | |
388 | + | else false) | |
389 | + | then Q(aZ.payments, 1, "deposit: no payment") | |
390 | + | else false) | |
391 | + | then K(aZ.payments[0].amount, 0, z, "deposit: negative payment") | |
392 | + | else false | |
393 | + | if ((aV == aV)) | |
394 | + | then $Tuple2(aQ(toString(aZ.caller), toString(aZ.caller), T(aZ.payments[0].assetId), aZ.payments[0].amount), unit) | |
395 | + | else throw("Strict value is not equal to itself.") | |
396 | + | } | |
397 | + | ||
398 | + | ||
399 | + | ||
400 | + | @Callable(aZ) | |
401 | + | func depositTo (aS) = { | |
402 | + | let aV = if (if (if (if (aK()) | |
403 | + | then aL() | |
404 | + | else false) | |
405 | + | then Q(aZ.payments, 1, "depositTo: no payment") | |
406 | + | else false) | |
407 | + | then K(aZ.payments[0].amount, 0, z, "depositTo: negative payment") | |
408 | + | else false) | |
409 | + | then P(aS, "depositTo: invalid to") | |
410 | + | else false | |
411 | + | if ((aV == aV)) | |
412 | + | then $Tuple2(aQ(toString(aZ.caller), aS, T(aZ.payments[0].assetId), aZ.payments[0].amount), unit) | |
413 | + | else throw("Strict value is not equal to itself.") | |
414 | + | } | |
415 | + | ||
416 | + | ||
417 | + | ||
418 | + | @Callable(aZ) | |
419 | + | func requestWithdrawal (ba,U,Y) = { | |
420 | + | let aU = valueOrErrorMessage(parseBigInt(Y), "requestWithdrawal: amount not int") | |
421 | + | let aV = if (if (if (aK()) | |
422 | + | then K(ba, 0, z, "requestWithdrawal: invalid toChainId") | |
423 | + | else false) | |
424 | + | then P(U, "requestWithdrawal: invalid asset") | |
425 | + | else false) | |
426 | + | then O(aU, B, "requestWithdrawal: negative amount") | |
427 | + | else false | |
428 | + | if ((aV == aV)) | |
429 | + | then { | |
430 | + | let aP = toString(aZ.caller) | |
431 | + | let bb = { | |
432 | + | let G = invoke(aq(), o, [toString(this), aP, aP, toString(an()), toString(ba), U, Y], nil) | |
433 | + | if ($isInstanceOf(G, "Int")) | |
434 | + | then { | |
435 | + | let H = G | |
436 | + | H | |
437 | + | } | |
438 | + | else throw("requestWithdrawal: call reverted from gw") | |
439 | + | } | |
440 | + | if ((bb == bb)) | |
441 | + | then $Tuple2(nil, bb) | |
442 | + | else throw("Strict value is not equal to itself.") | |
443 | + | } | |
444 | + | else throw("Strict value is not equal to itself.") | |
445 | + | } | |
446 | + | ||
447 | + | ||
448 | + | ||
449 | + | @Callable(aZ) | |
450 | + | func executeWithdrawal (bc) = { | |
451 | + | let aV = if (aK()) | |
452 | + | then K(bc, 0, z, "executeWithdrawal: invalid requestId") | |
453 | + | else false | |
454 | + | if ((aV == aV)) | |
455 | + | then { | |
456 | + | let aW = reentrantInvoke(aq(), p, [toString(this), toString(an()), toString(bc)], nil) | |
457 | + | if ((aW == aW)) | |
458 | + | then $Tuple2(nil, unit) | |
459 | + | else throw("Strict value is not equal to itself.") | |
460 | + | } | |
461 | + | else throw("Strict value is not equal to itself.") | |
462 | + | } | |
463 | + | ||
464 | + | ||
465 | + | ||
466 | + | @Callable(aZ) | |
467 | + | func withdraw (aS,U,Y) = { | |
468 | + | let aU = valueOrErrorMessage(parseInt(Y), "withdraw: amount not int") | |
469 | + | let aV = if (if (if (if (aK()) | |
470 | + | then aO(aZ.caller, "withdraw: invalid gateway") | |
471 | + | else false) | |
472 | + | then D(aS, "withdraw: invalid address") | |
473 | + | else false) | |
474 | + | then I(U, "withdraw: invalid asset") | |
475 | + | else false) | |
476 | + | then K(aU, 0, z, "withdraw: negative amount") | |
477 | + | else false | |
478 | + | if ((aV == aV)) | |
479 | + | then { | |
480 | + | let aT = W(U) | |
481 | + | let bd = X(aU, y, aT) | |
482 | + | let be = (ay(U) - aU) | |
483 | + | let bf = if (K(bd, 1, z, "withdraw: invalid amount")) | |
484 | + | then K(be, 0, z, "withdraw: negative newReserves") | |
485 | + | else false | |
486 | + | if ((bf == bf)) | |
487 | + | then { | |
488 | + | let aX = aB() | |
489 | + | let bg = if ((U == w)) | |
490 | + | then { | |
491 | + | let bh = at() | |
492 | + | let bi = aw(bh) | |
493 | + | let bj = invoke(bh, q, nil, nil) | |
494 | + | let bk = { | |
495 | + | let G = bj | |
496 | + | if ($isInstanceOf(G, "String")) | |
497 | + | then { | |
498 | + | let H = G | |
499 | + | parseBigIntValue(H) | |
500 | + | } | |
501 | + | else throw("withdraw: sWaves getRate() revert") | |
502 | + | } | |
503 | + | let bl = toInt(fraction(toBigInt(bd), C, bk, CEILING)) | |
504 | + | invoke(bh, r, nil, [AttachedPayment(bi, bl)]) | |
505 | + | } | |
506 | + | else if (containsElement(aX, U)) | |
507 | + | then invoke(aE(U), t, [bd], nil) | |
508 | + | else unit | |
509 | + | if ((bg == bg)) | |
510 | + | then $Tuple2(([ScriptTransfer(addressFromStringValue(aS), bd, V(U))] ++ az(U, be)), unit) | |
511 | + | else throw("Strict value is not equal to itself.") | |
512 | + | } | |
513 | + | else throw("Strict value is not equal to itself.") | |
514 | + | } | |
515 | + | else throw("Strict value is not equal to itself.") | |
516 | + | } | |
517 | + | ||
518 | + | ||
519 | + | ||
520 | + | @Callable(aZ) | |
521 | + | func depositStakingReward (U) = { | |
522 | + | let aV = if (aK()) | |
523 | + | then I(U, "depositStakingReward: invalid asset") | |
524 | + | else false | |
525 | + | if ((aV == aV)) | |
526 | + | then { | |
527 | + | let aX = aB() | |
528 | + | let bm = if ((U == w)) | |
529 | + | then { | |
530 | + | let bh = at() | |
531 | + | let bi = aw(bh) | |
532 | + | let bj = invoke(bh, q, nil, nil) | |
533 | + | let bk = { | |
534 | + | let G = bj | |
535 | + | if ($isInstanceOf(G, "String")) | |
536 | + | then { | |
537 | + | let H = G | |
538 | + | parseBigIntValue(H) | |
539 | + | } | |
540 | + | else throw("depositStakingReward: sWaves getRate() revert") | |
541 | + | } | |
542 | + | let bn = assetBalance(this, bi) | |
543 | + | toInt(fraction(toBigInt(bn), bk, C, DOWN)) | |
544 | + | } | |
545 | + | else if (containsElement(aX, U)) | |
546 | + | then { | |
547 | + | let bj = invoke(aE(U), u, [toString(this)], nil) | |
548 | + | if ((bj == bj)) | |
549 | + | then assetBalance(this, fromBase58String(U)) | |
550 | + | else throw("Strict value is not equal to itself.") | |
551 | + | } | |
552 | + | else throw("depositStakingReward: no staking for asset") | |
553 | + | let aT = W(U) | |
554 | + | let bo = X(bm, aT, y) | |
555 | + | let bp = (bo - ay(U)) | |
556 | + | let bf = K(bp, 1, z, "depositStakingReward: no reward") | |
557 | + | if ((bf == bf)) | |
558 | + | then { | |
559 | + | let aW = invoke(aq(), v, [toString(this), toString(an()), U, toString(bp)], nil) | |
560 | + | if ((aW == aW)) | |
561 | + | then $Tuple2(az(U, bo), unit) | |
562 | + | else throw("Strict value is not equal to itself.") | |
563 | + | } | |
564 | + | else throw("Strict value is not equal to itself.") | |
565 | + | } | |
566 | + | else throw("Strict value is not equal to itself.") | |
567 | + | } | |
568 | + | ||
569 | + | ||
570 | + | ||
571 | + | @Callable(aZ) | |
572 | + | func addStakingAsset (U,ax) = { | |
573 | + | let aV = if (if (aG(aZ.caller)) | |
574 | + | then I(U, "addStakingAsset: invalid asset") | |
575 | + | else false) | |
576 | + | then D(ax, "addStakingAsset: invalid contract") | |
577 | + | else false | |
578 | + | if ((aV == aV)) | |
579 | + | then { | |
580 | + | let bq = aB() | |
581 | + | let bf = if (containsElement(bq, U)) | |
582 | + | then throw("addStakingAsset: duplicate asset") | |
583 | + | else unit | |
584 | + | if ((bf == bf)) | |
585 | + | then $Tuple2((aC((bq :+ U)) ++ aF(U, addressFromStringValue(ax))), unit) | |
586 | + | else throw("Strict value is not equal to itself.") | |
587 | + | } | |
588 | + | else throw("Strict value is not equal to itself.") | |
589 | + | } | |
590 | + | ||
591 | + | ||
592 | + | ||
593 | + | @Callable(aZ) | |
594 | + | func rmStakingAsset (U) = { | |
595 | + | let aV = if (aG(aZ.caller)) | |
596 | + | then I(U, "rmStakingAsset: invalid asset") | |
597 | + | else false | |
598 | + | if ((aV == aV)) | |
599 | + | then { | |
600 | + | let bq = aB() | |
601 | + | let bf = if (!(containsElement(bq, U))) | |
602 | + | then throw("rmStakingAsset: no asset") | |
603 | + | else unit | |
604 | + | if ((bf == bf)) | |
605 | + | then { | |
606 | + | let br = value(indexOf(bq, U)) | |
607 | + | $Tuple2(aC(removeByIndex(bq, br)), unit) | |
608 | + | } | |
609 | + | else throw("Strict value is not equal to itself.") | |
610 | + | } | |
611 | + | else throw("Strict value is not equal to itself.") | |
612 | + | } | |
613 | + | ||
614 | + | ||
615 | + | ||
616 | + | @Callable(aZ) | |
617 | + | func pause () = { | |
618 | + | let aV = if (if (aN(aZ.caller)) | |
619 | + | then aK() | |
620 | + | else false) | |
621 | + | then aL() | |
622 | + | else false | |
623 | + | if ((aV == aV)) | |
624 | + | then $Tuple2(af(true), unit) | |
625 | + | else throw("Strict value is not equal to itself.") | |
626 | + | } | |
627 | + | ||
628 | + | ||
629 | + | ||
630 | + | @Callable(aZ) | |
631 | + | func unpause () = { | |
632 | + | let aV = if (if (aN(aZ.caller)) | |
633 | + | then aK() | |
634 | + | else false) | |
635 | + | then aM() | |
636 | + | else false | |
637 | + | if ((aV == aV)) | |
638 | + | then $Tuple2(af(false), unit) | |
639 | + | else throw("Strict value is not equal to itself.") | |
640 | + | } | |
641 | + | ||
642 | + | ||
643 | + | ||
644 | + | @Callable(aZ) | |
645 | + | func updatePauser (aj) = { | |
646 | + | let aV = if (if (aG(aZ.caller)) | |
647 | + | then aK() | |
648 | + | else false) | |
649 | + | then D(aj, "updatePauser: invalid pauser") | |
650 | + | else false | |
651 | + | if ((aV == aV)) | |
652 | + | then $Tuple2(ai(addressFromStringValue(aj)), unit) | |
653 | + | else throw("Strict value is not equal to itself.") | |
654 | + | } | |
655 | + | ||
656 | + | ||
657 | + | ||
658 | + | @Callable(aZ) | |
659 | + | func setMultisig (am) = { | |
660 | + | let aV = if (aG(aZ.caller)) | |
661 | + | then D(am, "setMultisig: invalid multisig") | |
662 | + | else false | |
663 | + | if ((aV == aV)) | |
664 | + | then $Tuple2(al(addressFromStringValue(am)), unit) | |
665 | + | else throw("Strict value is not equal to itself.") | |
666 | + | } | |
667 | + | ||
668 | + | ||
669 | + | @Verifier(bs) | |
670 | + | func bt () = { | |
671 | + | let G = getString(b) | |
672 | + | if ($isInstanceOf(G, "String")) | |
673 | + | then { | |
674 | + | let bu = G | |
675 | + | valueOrElse(getBoolean(addressFromStringValue(bu), makeString([c, toString(this), toBase58String(bs.id)], a)), false) | |
676 | + | } | |
677 | + | else sigVerify(bs.bodyBytes, bs.proofs[0], bs.senderPublicKey) | |
678 | + | } | |
679 | + |
github/deemru/w8io/169f3d6 28.65 ms ◑