tx · EbsRBQWZa8sJRpSdEuAtvhhzAdcEMshah6YSyeDUYVwo 3Mx3zmXrMcLFCafMuPtXAzR4ZPVeZYb6qLz: -0.02400000 Waves 2023.03.27 18:11 [2508531] smart account 3Mx3zmXrMcLFCafMuPtXAzR4ZPVeZYb6qLz > SELF 0.00000000 Waves
{ "type": 13, "id": "EbsRBQWZa8sJRpSdEuAtvhhzAdcEMshah6YSyeDUYVwo", "fee": 2400000, "feeAssetId": null, "timestamp": 1679929986663, "version": 2, "chainId": 84, "sender": "3Mx3zmXrMcLFCafMuPtXAzR4ZPVeZYb6qLz", "senderPublicKey": "D28XoueZWsMfm8Y5pa6C5ZFuYoWgre2Wm8tzJANJgMnq", "proofs": [ "2j2xzJQvowKs6LZ7DhKsT4H5ri3oR5TjGS4r4Dj8bv54hrEoEqHGdzxw8V2JpiTErPtzLb7Vms9QkurpV6putD36" ], "script": "base64:BgK+IAgCEgMKAQgSAwoBCBIDCgEIEgASABIDCgEIEgQKAggBEgYKBAIBAgISAwoBCBIDCgEIEgUKAwgIBBIGCgQBGAgYEgQKAhgIEgQKAggIEgQKAggIEgMKAQgSBAoCCAgiBlNDQUxFOCIFTVVMVDMiBU1VTFQ4IgdTQ0FMRTE4IgZNVUxUMTgiA1NFUCIOUE9PTFdFSUdIVE1VTFQiCnplcm9CaWdJbnQiCW9uZUJpZ0ludCIHd3JhcEVyciIDbXNnIgh0aHJvd0VyciIJYXNBbnlMaXN0IgN2YWwiByRtYXRjaDAiCnZhbEFueUx5c3QiBWFzSW50IgZ2YWxJbnQiCGFzU3RyaW5nIgZ2YWxTdHIiDGFzQnl0ZVZlY3RvciIGdmFsQmluIg9nZXRTdHJpbmdPckZhaWwiB2FkZHJlc3MiA2tleSIYZ2V0U3RyaW5nQnlBZGRyZXNzT3JGYWlsIgxnZXRJbnRPclplcm8iD2dldEludE9yRGVmYXVsdCIKZGVmYXVsdFZhbCIMZ2V0SW50T3JGYWlsIhlnZXRCaWdJbnRGcm9tU3RyaW5n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JiVwQFAmFDBQJhRQUCY3IAAAJfMQQCY3oJALgCAgUCY2cFAmN5BAJjQQYEAmNCAwkAvwICBQJjegUBaAkA/AcEBQR0aGlzAg9jbGFpbVd4SU5URVJOQUwJAMwIAgUCYUMJAMwIAgUCYUUJAMwIAgUCY0EFA25pbAUDbmlsBQR1bml0AwkAAAIFAmNCBQJjQgQCZEEJAKIIAQkBAmJsAgUCYmgFAmFFBAJkeQUCZEEDCQABAgUCZHkCBFVuaXQJAJQKAgkAzAgCCQELRGVsZXRlRW50cnkBCQECYmUBBQJhQwUDbmlsBwMJAAECBQJkeQIGU3RyaW5nBAJkQgUCZHkJAJQKAgkAzAgCCQELU3RyaW5nRW50cnkCCQECYmUBBQJhQwUCZEIFA25pbAYJAAIBAgtNYXRjaCBlcnJvcgkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgkAAgECC01hdGNoIGVycm9yCQACAQIkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuAmNuAQ5vbk1vZGlmeVdlaWdodAICYXUCYkEDCQECIT0CCAUCY24GY2FsbGVyBQJhWQkBAWwBAhJwZXJtaXNzaW9ucyBkZW5pZWQEAmRDCQECYnoDBQJhdQUCYkEAAAQCYngIBQJkQwJfMQQCYlkIBQJkQwJfMgQCYloIBQJkQwJfMwUCYlkBAmREAQJkRQAEAmRGBAFvCQECY2oAAwkAAQIFAW8CCkJ5dGVWZWN0b3IEAmNwBQFvBQJjcAMJAAECBQFvAgRVbml0CAUCZEQPc2VuZGVyUHVibGljS2V5CQACAQILTWF0Y2ggZXJyb3IJAPQDAwgFAmRECWJvZHlCeXRlcwkAkQMCCAUCZEQGcHJvb2ZzAAAFAmRGXXHy5A==", "height": 2508531, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 6ST3R7oAds1sqwyPD7hgcnwuz3VwoQXYE2fdK8tegr8p Next: Fxy6e2QGkatqZU7QT6sx8HAKTopY12XGXkVVoVtvm2Lm Diff:
Old | New | Differences | |
---|---|---|---|
32 | 32 | let p = o | |
33 | 33 | p | |
34 | 34 | } | |
35 | - | else | |
35 | + | else l("fail to cast into List[Any]") | |
36 | 36 | } | |
37 | 37 | ||
38 | 38 | ||
43 | 43 | let r = o | |
44 | 44 | r | |
45 | 45 | } | |
46 | - | else | |
46 | + | else l("fail to cast into Int") | |
47 | 47 | } | |
48 | 48 | ||
49 | 49 | ||
54 | 54 | let t = o | |
55 | 55 | t | |
56 | 56 | } | |
57 | - | else | |
57 | + | else l("fail to cast into Int") | |
58 | 58 | } | |
59 | 59 | ||
60 | 60 | ||
65 | 65 | let v = o | |
66 | 66 | v | |
67 | 67 | } | |
68 | - | else | |
68 | + | else l("fail to cast into Int") | |
69 | 69 | } | |
70 | 70 | ||
71 | 71 | ||
72 | - | func w (x,y) = valueOrErrorMessage(getString(x, y), (("mandatory this." + y) + " is not defined")) | |
72 | + | func w (x,y) = valueOrErrorMessage(getString(x, y), j((("mandatory this." + y) + " is not defined"))) | |
73 | 73 | ||
74 | 74 | ||
75 | - | func z (x,y) = valueOrErrorMessage(getString(x, y), (((("mandatory " + toString(x)) + ".") + y) + " is not defined")) | |
75 | + | func z (x,y) = valueOrErrorMessage(getString(x, y), j((((("mandatory " + toString(x)) + ".") + y) + " is not defined"))) | |
76 | 76 | ||
77 | 77 | ||
78 | 78 | func A (x,y) = valueOrElse(getInteger(x, y), 0) | |
81 | 81 | func B (x,y,C) = valueOrElse(getInteger(x, y), C) | |
82 | 82 | ||
83 | 83 | ||
84 | - | func D (x,y) = valueOrErrorMessage(getInteger(x, y), (("mandatory this." + y) + " is not defined")) | |
84 | + | func D (x,y) = valueOrErrorMessage(getInteger(x, y), j((("mandatory this." + y) + " is not defined"))) | |
85 | 85 | ||
86 | 86 | ||
87 | 87 | func E (x,y) = value(parseBigInt(valueOrElse(getString(x, y), "0"))) | |
306 | 306 | let br = valueOrElse(getInteger(this, bi(bh)), 0) | |
307 | 307 | let bs = if (!(bm(bh, bk))) | |
308 | 308 | then true | |
309 | - | else | |
309 | + | else l("Node exists") | |
310 | 310 | if ((bs == bs)) | |
311 | 311 | then (([IntegerEntry(bi(bh), (br + 1))] ++ (if ((bn != unit)) | |
312 | 312 | then [StringEntry(bl(bh, bk), value(bn)), StringEntry(bj(bh, value(bn)), bk)] | |
330 | 330 | then [DeleteEntry(bj(bh, bk)), DeleteEntry(bl(bh, value(bo)))] | |
331 | 331 | else if ((bk == valueOrElse(bn, ""))) | |
332 | 332 | then [DeleteEntry(bg(bh))] | |
333 | - | else | |
333 | + | else l(((("invalid node: " + bh) + ".") + bk)))) | |
334 | 334 | } | |
335 | 335 | ||
336 | 336 | ||
344 | 344 | then (bv > h) | |
345 | 345 | else false) | |
346 | 346 | then value(parseBigInt(w(this, by))) | |
347 | - | else | |
347 | + | else l("calcWxPerLpIntegralUserLast: unexpected state") | |
348 | 348 | ||
349 | 349 | ||
350 | 350 | func bz (au,bA,bB) = { | |
427 | 427 | } | |
428 | 428 | ||
429 | 429 | ||
430 | - | let cl = | |
430 | + | let cl = l("Permission denied") | |
431 | 431 | ||
432 | 432 | func cm (cn) = if ((cn.caller == this)) | |
433 | 433 | then true | |
507 | 507 | else unit | |
508 | 508 | if ((cB == cB)) | |
509 | 509 | then if ((aU > bv)) | |
510 | - | then | |
510 | + | then l(((((((("passed amount=" + toString(aU)) + " is greater than available=") + toString(bv)) + ". lpAssetId=") + au) + ". stakedByUserKEY=") + ca)) | |
511 | 511 | else (([IntegerEntry(ca, (bv - aU)), IntegerEntry(bC, (bD - aU)), ScriptTransfer(cx, aU, aC), aV("unstake", at, au, aU, cn.transactionId)] ++ cu) ++ cv) | |
512 | 512 | else throw("Strict value is not equal to itself.") | |
513 | 513 | } | |
557 | 557 | let cI = ck() | |
558 | 558 | let cJ = if (isDefined(cI)) | |
559 | 559 | then true | |
560 | - | else | |
560 | + | else l("No pending manager") | |
561 | 561 | if ((cJ == cJ)) | |
562 | 562 | then { | |
563 | 563 | let cK = if ((cn.callerPublicKey == value(cI))) | |
564 | 564 | then true | |
565 | - | else | |
565 | + | else l("You are not pending manager") | |
566 | 566 | if ((cK == cK)) | |
567 | 567 | then [StringEntry(W(), toBase58String(value(cI))), DeleteEntry(X())] | |
568 | 568 | else throw("Strict value is not equal to itself.") | |
574 | 574 | ||
575 | 575 | @Callable(cn) | |
576 | 576 | func stake () = if ((size(cn.payments) != 1)) | |
577 | - | then | |
577 | + | then l("invalid payment - exact one payment must be attached") | |
578 | 578 | else { | |
579 | 579 | let cL = cn.payments[0] | |
580 | 580 | let aC = value(cL.assetId) | |
581 | 581 | let au = toBase58String(aC) | |
582 | 582 | let aU = cL.amount | |
583 | - | let bA = valueOrErrorMessage(getString(aY, aa(au)), ("unsupported lp asset " + au)) | |
583 | + | let bA = valueOrErrorMessage(getString(aY, aa(au)), j(("unsupported lp asset " + au))) | |
584 | 584 | let cr = addressFromStringValue(bA) | |
585 | 585 | let aE = if ((cn.caller == cr)) | |
586 | 586 | then cn.originCaller | |
592 | 592 | ||
593 | 593 | @Callable(cn) | |
594 | 594 | func stakeFor (at) = if ((size(cn.payments) != 1)) | |
595 | - | then | |
595 | + | then l("invalid payment - exact one payment must be attached") | |
596 | 596 | else { | |
597 | 597 | let cL = cn.payments[0] | |
598 | 598 | let aC = value(cL.assetId) | |
599 | 599 | let au = toBase58String(aC) | |
600 | 600 | let aU = cL.amount | |
601 | - | let bA = valueOrErrorMessage(getString(aY, aa(au)), ("unsupported lp asset " + au)) | |
601 | + | let bA = valueOrErrorMessage(getString(aY, aa(au)), j(("unsupported lp asset " + au))) | |
602 | 602 | let cr = addressFromStringValue(bA) | |
603 | 603 | let aE = valueOrErrorMessage(addressFromString(at), j("invalid user address")) | |
604 | 604 | cq(cn, aC, cr, aE, aU) | |
609 | 609 | @Callable(cn) | |
610 | 610 | func unstake (au,aU) = { | |
611 | 611 | let aC = fromBase58String(au) | |
612 | - | let bA = valueOrErrorMessage(getString(aY, aa(au)), ("unsupported lp asset " + au)) | |
612 | + | let bA = valueOrErrorMessage(getString(aY, aa(au)), j(("unsupported lp asset " + au))) | |
613 | 613 | let cr = addressFromStringValue(bA) | |
614 | 614 | let cM = valueOrElse(getString(cr, Z()), bA) | |
615 | 615 | let cN = toString(cn.caller) | |
627 | 627 | @Callable(cn) | |
628 | 628 | func unstakeINTERNAL (aC,aU,aE,cx) = { | |
629 | 629 | let au = toBase58String(aC) | |
630 | - | let cr = addressFromStringValue(valueOrErrorMessage(getString(aY, aa(au)), ("unsupported lp asset " + au))) | |
630 | + | let cr = addressFromStringValue(valueOrErrorMessage(getString(aY, aa(au)), j(("unsupported lp asset " + au)))) | |
631 | 631 | let cD = if ((cn.caller == cr)) | |
632 | 632 | then true | |
633 | 633 | else cl | |
663 | 663 | let cD = cm(cn) | |
664 | 664 | if ((cD == cD)) | |
665 | 665 | then { | |
666 | - | let aE = valueOrErrorMessage(addressFromString(at), "claimWxINTERNAL: invalid user address") | |
666 | + | let aE = valueOrErrorMessage(addressFromString(at), j("claimWxINTERNAL: invalid user address")) | |
667 | 667 | let bA = z(aY, ad(au)) | |
668 | 668 | let cP = aw(au, at) | |
669 | 669 | let cQ = az(au) | |
680 | 680 | let cz = max([(cg - cy), h]) | |
681 | 681 | if ((h >= cz)) | |
682 | 682 | then if (cA) | |
683 | - | then | |
683 | + | then l("nothing to claim") | |
684 | 684 | else $Tuple2(nil, 0) | |
685 | 685 | else { | |
686 | 686 | let cX = max([q(m(invoke(ba, "claimWxBoost", [au, at], nil))[0]), 0]) | |
847 | 847 | ||
848 | 848 | @Callable(cn) | |
849 | 849 | func onModifyWeight (au,bA) = if ((cn.caller != aY)) | |
850 | - | then | |
850 | + | then l("permissions denied") | |
851 | 851 | else { | |
852 | 852 | let dC = bz(au, bA, 0) | |
853 | 853 | let bx = dC._1 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = 8 | |
5 | 5 | ||
6 | 6 | let b = 1000 | |
7 | 7 | ||
8 | 8 | let c = 100000000 | |
9 | 9 | ||
10 | 10 | let d = 18 | |
11 | 11 | ||
12 | 12 | let e = toBigInt(1000000000000000000) | |
13 | 13 | ||
14 | 14 | let f = "__" | |
15 | 15 | ||
16 | 16 | let g = c | |
17 | 17 | ||
18 | 18 | let h = toBigInt(0) | |
19 | 19 | ||
20 | 20 | let i = toBigInt(1) | |
21 | 21 | ||
22 | 22 | func j (k) = makeString(["staking.ride:", toString(this), k], " ") | |
23 | 23 | ||
24 | 24 | ||
25 | 25 | func l (k) = throw(j(k)) | |
26 | 26 | ||
27 | 27 | ||
28 | 28 | func m (n) = { | |
29 | 29 | let o = n | |
30 | 30 | if ($isInstanceOf(o, "List[Any]")) | |
31 | 31 | then { | |
32 | 32 | let p = o | |
33 | 33 | p | |
34 | 34 | } | |
35 | - | else | |
35 | + | else l("fail to cast into List[Any]") | |
36 | 36 | } | |
37 | 37 | ||
38 | 38 | ||
39 | 39 | func q (n) = { | |
40 | 40 | let o = n | |
41 | 41 | if ($isInstanceOf(o, "Int")) | |
42 | 42 | then { | |
43 | 43 | let r = o | |
44 | 44 | r | |
45 | 45 | } | |
46 | - | else | |
46 | + | else l("fail to cast into Int") | |
47 | 47 | } | |
48 | 48 | ||
49 | 49 | ||
50 | 50 | func s (n) = { | |
51 | 51 | let o = n | |
52 | 52 | if ($isInstanceOf(o, "String")) | |
53 | 53 | then { | |
54 | 54 | let t = o | |
55 | 55 | t | |
56 | 56 | } | |
57 | - | else | |
57 | + | else l("fail to cast into Int") | |
58 | 58 | } | |
59 | 59 | ||
60 | 60 | ||
61 | 61 | func u (n) = { | |
62 | 62 | let o = n | |
63 | 63 | if ($isInstanceOf(o, "ByteVector")) | |
64 | 64 | then { | |
65 | 65 | let v = o | |
66 | 66 | v | |
67 | 67 | } | |
68 | - | else | |
68 | + | else l("fail to cast into Int") | |
69 | 69 | } | |
70 | 70 | ||
71 | 71 | ||
72 | - | func w (x,y) = valueOrErrorMessage(getString(x, y), (("mandatory this." + y) + " is not defined")) | |
72 | + | func w (x,y) = valueOrErrorMessage(getString(x, y), j((("mandatory this." + y) + " is not defined"))) | |
73 | 73 | ||
74 | 74 | ||
75 | - | func z (x,y) = valueOrErrorMessage(getString(x, y), (((("mandatory " + toString(x)) + ".") + y) + " is not defined")) | |
75 | + | func z (x,y) = valueOrErrorMessage(getString(x, y), j((((("mandatory " + toString(x)) + ".") + y) + " is not defined"))) | |
76 | 76 | ||
77 | 77 | ||
78 | 78 | func A (x,y) = valueOrElse(getInteger(x, y), 0) | |
79 | 79 | ||
80 | 80 | ||
81 | 81 | func B (x,y,C) = valueOrElse(getInteger(x, y), C) | |
82 | 82 | ||
83 | 83 | ||
84 | - | func D (x,y) = valueOrErrorMessage(getInteger(x, y), (("mandatory this." + y) + " is not defined")) | |
84 | + | func D (x,y) = valueOrErrorMessage(getInteger(x, y), j((("mandatory this." + y) + " is not defined"))) | |
85 | 85 | ||
86 | 86 | ||
87 | 87 | func E (x,y) = value(parseBigInt(valueOrElse(getString(x, y), "0"))) | |
88 | 88 | ||
89 | 89 | ||
90 | 90 | func F (x,y,C) = { | |
91 | 91 | let o = getString(x, y) | |
92 | 92 | if ($isInstanceOf(o, "String")) | |
93 | 93 | then { | |
94 | 94 | let G = o | |
95 | 95 | value(parseBigInt(G)) | |
96 | 96 | } | |
97 | 97 | else if ($isInstanceOf(o, "Unit")) | |
98 | 98 | then C | |
99 | 99 | else throw("Match error") | |
100 | 100 | } | |
101 | 101 | ||
102 | 102 | ||
103 | 103 | func H (I,J) = fraction(toBigInt(I), e, toBigInt(J)) | |
104 | 104 | ||
105 | 105 | ||
106 | 106 | func K (n,L) = toInt(fraction(n, toBigInt(L), e)) | |
107 | 107 | ||
108 | 108 | ||
109 | 109 | func M () = "%s%s__config__factoryAddress" | |
110 | 110 | ||
111 | 111 | ||
112 | 112 | func N () = "%s__votingEmissionContract" | |
113 | 113 | ||
114 | 114 | ||
115 | 115 | let O = 1 | |
116 | 116 | ||
117 | 117 | let P = 2 | |
118 | 118 | ||
119 | 119 | let Q = 3 | |
120 | 120 | ||
121 | 121 | let R = 4 | |
122 | 122 | ||
123 | 123 | let S = 5 | |
124 | 124 | ||
125 | 125 | let T = 6 | |
126 | 126 | ||
127 | 127 | let U = 7 | |
128 | 128 | ||
129 | 129 | func V () = "%s__factoryConfig" | |
130 | 130 | ||
131 | 131 | ||
132 | 132 | func W () = "%s__managerPublicKey" | |
133 | 133 | ||
134 | 134 | ||
135 | 135 | func X () = "%s__pendingManagerPublicKey" | |
136 | 136 | ||
137 | 137 | ||
138 | 138 | func Y () = "%s__stablePoolAddonAddr" | |
139 | 139 | ||
140 | 140 | ||
141 | 141 | func Z () = "%s__addonAddr" | |
142 | 142 | ||
143 | 143 | ||
144 | 144 | func aa (ab) = makeString(["%s%s%s", ab, "mappings__lpAsset2PoolContract"], f) | |
145 | 145 | ||
146 | 146 | ||
147 | 147 | func ac () = "%s__lpTokensList" | |
148 | 148 | ||
149 | 149 | ||
150 | 150 | func ad (ab) = makeString(["%s%s%s", ab, "mappings__lpAsset2PoolContract"], f) | |
151 | 151 | ||
152 | 152 | ||
153 | 153 | func ae (af) = makeString(["%s%s", "poolWeight", af], f) | |
154 | 154 | ||
155 | 155 | ||
156 | 156 | func ag (ah) = split(valueOrElse(getString(ah, ac()), ""), f) | |
157 | 157 | ||
158 | 158 | ||
159 | 159 | func ai (ah) = split(z(ah, V()), f) | |
160 | 160 | ||
161 | 161 | ||
162 | 162 | func aj (ak) = addressFromStringValue(ak[P]) | |
163 | 163 | ||
164 | 164 | ||
165 | 165 | func al (ak) = addressFromStringValue(ak[S]) | |
166 | 166 | ||
167 | 167 | ||
168 | 168 | func am (ak) = addressFromStringValue(ak[O]) | |
169 | 169 | ||
170 | 170 | ||
171 | 171 | func an () = "%s%s__ratePerBlock__current" | |
172 | 172 | ||
173 | 173 | ||
174 | 174 | func ao () = "%s%s__ratePerBlockMax__current" | |
175 | 175 | ||
176 | 176 | ||
177 | 177 | func ap () = "%s%s__emission__startBlock" | |
178 | 178 | ||
179 | 179 | ||
180 | 180 | func aq () = "%s%s__emission__duration" | |
181 | 181 | ||
182 | 182 | ||
183 | 183 | func ar () = "%s%s__emission__endBlock" | |
184 | 184 | ||
185 | 185 | ||
186 | 186 | func as (at,au) = makeString(["%s%s%s__staked", at, au], f) | |
187 | 187 | ||
188 | 188 | ||
189 | 189 | func av (au) = ("%s%s%s__staked__total__" + au) | |
190 | 190 | ||
191 | 191 | ||
192 | 192 | func aw (au,at) = makeString(["%s%s%s__claimed", at, au], f) | |
193 | 193 | ||
194 | 194 | ||
195 | 195 | func ax (au,at) = makeString(["%s%s%s__claimedMinReward", at, au], f) | |
196 | 196 | ||
197 | 197 | ||
198 | 198 | func ay (au,at) = makeString(["%s%s%s__claimedBoostReward", at, au], f) | |
199 | 199 | ||
200 | 200 | ||
201 | 201 | func az (au) = makeString(["%s%s%s__claimed__total", au], f) | |
202 | 202 | ||
203 | 203 | ||
204 | 204 | func aA (y) = valueOrElse(getInteger(this, y), 0) | |
205 | 205 | ||
206 | 206 | ||
207 | 207 | func aB (aC) = makeString(["%s%s%s", aC, "total", "bal"], f) | |
208 | 208 | ||
209 | 209 | ||
210 | 210 | func aD (aC,aE) = makeString(["%s%s%s", aC, aE, "bal"], f) | |
211 | 211 | ||
212 | 212 | ||
213 | 213 | func aF (aC) = makeString(["%s%s%s", aC, "total", "balINT"], f) | |
214 | 214 | ||
215 | 215 | ||
216 | 216 | func aG (aC,aE) = makeString(["%s%s%s", aC, aE, "balINT"], f) | |
217 | 217 | ||
218 | 218 | ||
219 | 219 | func aH (aC) = makeString(["%s%s%s", aC, "total", "lastUpd"], f) | |
220 | 220 | ||
221 | 221 | ||
222 | 222 | func aI (aC,aE) = makeString(["%s%s%s", aC, aE, "lastUpd"], f) | |
223 | 223 | ||
224 | 224 | ||
225 | 225 | func aJ (aC) = makeString(["%s%s%s%s", aC, "common", "lpInt"], f) | |
226 | 226 | ||
227 | 227 | ||
228 | 228 | func aK (aC) = makeString(["%s%s%s%s", aC, "common", "lpIntH"], f) | |
229 | 229 | ||
230 | 230 | ||
231 | 231 | func aL (aC,aE) = makeString(["%s%s%s%s", aC, aE, "lpInt"], f) | |
232 | 232 | ||
233 | 233 | ||
234 | 234 | func aM (aC,aE) = makeString(["%s%s%s%s", aC, aE, "lpIntH"], f) | |
235 | 235 | ||
236 | 236 | ||
237 | 237 | func aN (aC) = makeString(["%s", aC, "wxPerLp"], f) | |
238 | 238 | ||
239 | 239 | ||
240 | 240 | func aO (aC) = makeString(["%s", aC, "wxPerLpX18"], f) | |
241 | 241 | ||
242 | 242 | ||
243 | 243 | func aP (aC,aE) = makeString(["%s%s%s%s", aC, aE, "uIntL"], f) | |
244 | 244 | ||
245 | 245 | ||
246 | 246 | func aQ (aR,aE,aS) = makeString(["%s%s%s%s__history", aR, aE, aS], f) | |
247 | 247 | ||
248 | 248 | ||
249 | 249 | func aT (aE,aC,aR,aU) = makeString(["%s%s%s%d%d%d", aE, aC, aR, toString(height), toString(lastBlock.timestamp), toString(aU)], f) | |
250 | 250 | ||
251 | 251 | ||
252 | 252 | func aV (aR,aE,aC,aU,aW) = StringEntry(aQ(aR, aE, toBase58String(aW)), aT(aE, aC, aR, aU)) | |
253 | 253 | ||
254 | 254 | ||
255 | 255 | let aX = w(this, M()) | |
256 | 256 | ||
257 | 257 | let aY = addressFromStringValue(aX) | |
258 | 258 | ||
259 | 259 | let ak = ai(aY) | |
260 | 260 | ||
261 | 261 | let aZ = al(ak) | |
262 | 262 | ||
263 | 263 | let ba = aj(ak) | |
264 | 264 | ||
265 | 265 | let bb = { | |
266 | 266 | let bc = invoke(aZ, "getBoostCoeffREADONLY", nil, nil) | |
267 | 267 | if ($isInstanceOf(bc, "Int")) | |
268 | 268 | then bc | |
269 | 269 | else throw(($getType(bc) + " couldn't be cast to Int")) | |
270 | 270 | } | |
271 | 271 | ||
272 | 272 | let bd = valueOrErrorMessage(addressFromString(valueOrErrorMessage(getString(makeString(["%s", "lpStakingPoolsContract"], f)), j("lp_staking_pools contract address is undefined"))), j("invalid lp_staking_pools contract address")) | |
273 | 273 | ||
274 | 274 | func be (aC) = makeString(["%s%s", aC, "nextUser"], f) | |
275 | 275 | ||
276 | 276 | ||
277 | 277 | func bf (aC) = makeString(["users", aC], f) | |
278 | 278 | ||
279 | 279 | ||
280 | 280 | func bg (bh) = makeString(["%s%s%s", bh, "head"], f) | |
281 | 281 | ||
282 | 282 | ||
283 | 283 | func bi (bh) = makeString(["%s%s%s", bh, "size"], f) | |
284 | 284 | ||
285 | 285 | ||
286 | 286 | func bj (bh,bk) = makeString(["%s%s%s%s", bh, bk, "prev"], f) | |
287 | 287 | ||
288 | 288 | ||
289 | 289 | func bl (bh,bk) = makeString(["%s%s%s%s", bh, bk, "next"], f) | |
290 | 290 | ||
291 | 291 | ||
292 | 292 | func bm (bh,bk) = { | |
293 | 293 | let bn = getString(this, bg(bh)) | |
294 | 294 | let bo = getString(this, bj(bh, bk)) | |
295 | 295 | let bp = getString(this, bl(bh, bk)) | |
296 | 296 | if (if ((bk == valueOrElse(bn, ""))) | |
297 | 297 | then true | |
298 | 298 | else (bo != unit)) | |
299 | 299 | then true | |
300 | 300 | else (bp != unit) | |
301 | 301 | } | |
302 | 302 | ||
303 | 303 | ||
304 | 304 | func bq (bh,bk) = { | |
305 | 305 | let bn = getString(this, bg(bh)) | |
306 | 306 | let br = valueOrElse(getInteger(this, bi(bh)), 0) | |
307 | 307 | let bs = if (!(bm(bh, bk))) | |
308 | 308 | then true | |
309 | - | else | |
309 | + | else l("Node exists") | |
310 | 310 | if ((bs == bs)) | |
311 | 311 | then (([IntegerEntry(bi(bh), (br + 1))] ++ (if ((bn != unit)) | |
312 | 312 | then [StringEntry(bl(bh, bk), value(bn)), StringEntry(bj(bh, value(bn)), bk)] | |
313 | 313 | else nil)) ++ [StringEntry(bg(bh), bk)]) | |
314 | 314 | else throw("Strict value is not equal to itself.") | |
315 | 315 | } | |
316 | 316 | ||
317 | 317 | ||
318 | 318 | func bt (bh,bk) = { | |
319 | 319 | let bn = getString(this, bg(bh)) | |
320 | 320 | let br = valueOrElse(getInteger(this, bi(bh)), 0) | |
321 | 321 | let bo = getString(this, bj(bh, bk)) | |
322 | 322 | let bp = getString(this, bl(bh, bk)) | |
323 | 323 | ([IntegerEntry(bi(bh), (br - 1))] ++ (if (if ((bo != unit)) | |
324 | 324 | then (bp != unit) | |
325 | 325 | else false) | |
326 | 326 | then [StringEntry(bl(bh, value(bo)), value(bp)), StringEntry(bj(bh, value(bp)), value(bo)), DeleteEntry(bj(bh, bk)), DeleteEntry(bl(bh, bk))] | |
327 | 327 | else if ((bp != unit)) | |
328 | 328 | then [StringEntry(bg(bh), value(bp)), DeleteEntry(bl(bh, bk)), DeleteEntry(bj(bh, value(bp)))] | |
329 | 329 | else if ((bo != unit)) | |
330 | 330 | then [DeleteEntry(bj(bh, bk)), DeleteEntry(bl(bh, value(bo)))] | |
331 | 331 | else if ((bk == valueOrElse(bn, ""))) | |
332 | 332 | then [DeleteEntry(bg(bh))] | |
333 | - | else | |
333 | + | else l(((("invalid node: " + bh) + ".") + bk)))) | |
334 | 334 | } | |
335 | 335 | ||
336 | 336 | ||
337 | 337 | func bu (bv,bw,bx,by) = if (if ((bw == h)) | |
338 | 338 | then (bv > h) | |
339 | 339 | else false) | |
340 | 340 | then h | |
341 | 341 | else if ((bv == h)) | |
342 | 342 | then bx | |
343 | 343 | else if (if ((bw > h)) | |
344 | 344 | then (bv > h) | |
345 | 345 | else false) | |
346 | 346 | then value(parseBigInt(w(this, by))) | |
347 | - | else | |
347 | + | else l("calcWxPerLpIntegralUserLast: unexpected state") | |
348 | 348 | ||
349 | 349 | ||
350 | 350 | func bz (au,bA,bB) = { | |
351 | 351 | let bC = av(au) | |
352 | 352 | let bD = toBigInt(aA(bC)) | |
353 | 353 | let bE = if ((bD == h)) | |
354 | 354 | then i | |
355 | 355 | else bD | |
356 | 356 | let bF = getIntegerValue(aY, ae(bA)) | |
357 | 357 | let bG = D(aZ, ap()) | |
358 | 358 | let bH = (D(aZ, an()) * b) | |
359 | 359 | let bI = fraction(bH, bF, (g * bb)) | |
360 | 360 | let bJ = aJ(au) | |
361 | 361 | let bK = aK(au) | |
362 | 362 | let bL = aN(au) | |
363 | 363 | let bM = B(this, bK, bG) | |
364 | 364 | let bN = E(this, bJ) | |
365 | 365 | let bO = 0 | |
366 | 366 | let bP = max([(height - bM), 0]) | |
367 | 367 | let bQ = if ((bO != 0)) | |
368 | 368 | then toBigInt(bO) | |
369 | 369 | else fraction(toBigInt(bI), toBigInt(c), bE) | |
370 | 370 | let bR = (bD + toBigInt(bB)) | |
371 | 371 | let bS = if ((bR == h)) | |
372 | 372 | then i | |
373 | 373 | else bR | |
374 | 374 | let bx = (bN + (bQ * toBigInt(bP))) | |
375 | 375 | let bT = (toBigInt(bI) / bS) | |
376 | 376 | let bU = height | |
377 | 377 | let bV = makeString([toString(bx), toString(bP), toString(bQ), toString(bD), toString(bI), toString(bH), toString(bF)], "::") | |
378 | 378 | $Tuple3(bx, [StringEntry(bJ, toString(bx)), IntegerEntry(bK, bU), StringEntry(bL, toString(bT))], bV) | |
379 | 379 | } | |
380 | 380 | ||
381 | 381 | ||
382 | 382 | func bW (au,at,bA,bB) = { | |
383 | 383 | let bX = bz(au, bA, bB) | |
384 | 384 | let bx = bX._1 | |
385 | 385 | let bY = bX._2 | |
386 | 386 | let bZ = bX._3 | |
387 | 387 | let ca = as(at, au) | |
388 | 388 | let bv = aA(ca) | |
389 | 389 | let cb = aL(au, at) | |
390 | 390 | let cc = aM(au, at) | |
391 | 391 | let by = aP(au, at) | |
392 | 392 | let cd = E(this, cb) | |
393 | 393 | let bw = A(this, cc) | |
394 | 394 | let ce = bu(toBigInt(bv), toBigInt(bw), bx, by) | |
395 | 395 | let cf = (c * b) | |
396 | 396 | let cg = max([(cd + fraction((bx - ce), toBigInt(bv), toBigInt(cf))), h]) | |
397 | 397 | let ch = bx | |
398 | 398 | let ci = height | |
399 | 399 | let bV = makeString([toString(cd), toString(ce), toString(bv), bZ, toString(height)], "::") | |
400 | 400 | $Tuple3(cg, (bY ++ [StringEntry(cb, toString(cg)), IntegerEntry(cc, ci), StringEntry(by, toString(ch))]), bV) | |
401 | 401 | } | |
402 | 402 | ||
403 | 403 | ||
404 | 404 | func cj () = { | |
405 | 405 | let o = getString(W()) | |
406 | 406 | if ($isInstanceOf(o, "String")) | |
407 | 407 | then { | |
408 | 408 | let G = o | |
409 | 409 | fromBase58String(G) | |
410 | 410 | } | |
411 | 411 | else if ($isInstanceOf(o, "Unit")) | |
412 | 412 | then unit | |
413 | 413 | else throw("Match error") | |
414 | 414 | } | |
415 | 415 | ||
416 | 416 | ||
417 | 417 | func ck () = { | |
418 | 418 | let o = getString(X()) | |
419 | 419 | if ($isInstanceOf(o, "String")) | |
420 | 420 | then { | |
421 | 421 | let G = o | |
422 | 422 | fromBase58String(G) | |
423 | 423 | } | |
424 | 424 | else if ($isInstanceOf(o, "Unit")) | |
425 | 425 | then unit | |
426 | 426 | else throw("Match error") | |
427 | 427 | } | |
428 | 428 | ||
429 | 429 | ||
430 | - | let cl = | |
430 | + | let cl = l("Permission denied") | |
431 | 431 | ||
432 | 432 | func cm (cn) = if ((cn.caller == this)) | |
433 | 433 | then true | |
434 | 434 | else cl | |
435 | 435 | ||
436 | 436 | ||
437 | 437 | func co (cn) = { | |
438 | 438 | let o = cj() | |
439 | 439 | if ($isInstanceOf(o, "ByteVector")) | |
440 | 440 | then { | |
441 | 441 | let cp = o | |
442 | 442 | if ((cn.callerPublicKey == cp)) | |
443 | 443 | then true | |
444 | 444 | else cl | |
445 | 445 | } | |
446 | 446 | else if ($isInstanceOf(o, "Unit")) | |
447 | 447 | then if ((cn.caller == this)) | |
448 | 448 | then true | |
449 | 449 | else cl | |
450 | 450 | else throw("Match error") | |
451 | 451 | } | |
452 | 452 | ||
453 | 453 | ||
454 | 454 | func cq (cn,aC,cr,aE,aU) = { | |
455 | 455 | let at = toString(aE) | |
456 | 456 | let au = toBase58String(aC) | |
457 | 457 | let bA = toString(cr) | |
458 | 458 | let ca = as(at, au) | |
459 | 459 | let bC = av(au) | |
460 | 460 | let bv = aA(ca) | |
461 | 461 | let cs = if ((bv == 0)) | |
462 | 462 | then invoke(ba, "onStakedVoteUpdate", [au, at, true], nil) | |
463 | 463 | else unit | |
464 | 464 | if ((cs == cs)) | |
465 | 465 | then { | |
466 | 466 | let bD = aA(bC) | |
467 | 467 | let ct = bW(au, at, bA, aU) | |
468 | 468 | let cg = ct._1 | |
469 | 469 | let cu = ct._2 | |
470 | 470 | let bV = ct._3 | |
471 | 471 | let bh = bf(au) | |
472 | 472 | let cv = if (bm(bh, at)) | |
473 | 473 | then nil | |
474 | 474 | else bq(bh, at) | |
475 | 475 | (([IntegerEntry(ca, (bv + aU)), IntegerEntry(bC, (bD + aU)), aV("stake", at, au, aU, cn.transactionId)] ++ cu) ++ cv) | |
476 | 476 | } | |
477 | 477 | else throw("Strict value is not equal to itself.") | |
478 | 478 | } | |
479 | 479 | ||
480 | 480 | ||
481 | 481 | func cw (cn,aC,cr,aE,cx,aU) = { | |
482 | 482 | let at = toString(aE) | |
483 | 483 | let au = toBase58String(aC) | |
484 | 484 | let bA = toString(cr) | |
485 | 485 | let ca = as(at, au) | |
486 | 486 | let bC = av(au) | |
487 | 487 | let bv = aA(ca) | |
488 | 488 | let bD = aA(bC) | |
489 | 489 | let cu = bW(au, at, bA, -(aU))._2 | |
490 | 490 | let bh = bf(au) | |
491 | 491 | let cv = if (if (bm(bh, at)) | |
492 | 492 | then (aU == bv) | |
493 | 493 | else false) | |
494 | 494 | then bt(bh, at) | |
495 | 495 | else nil | |
496 | 496 | let cs = if ((aU == bv)) | |
497 | 497 | then invoke(ba, "onStakedVoteUpdate", [au, at, false], nil) | |
498 | 498 | else unit | |
499 | 499 | if ((cs == cs)) | |
500 | 500 | then { | |
501 | 501 | let cy = E(this, ax(au, at)) | |
502 | 502 | let cg = bW(au, at, bA, 0)._1 | |
503 | 503 | let cz = (cg - cy) | |
504 | 504 | let cA = true | |
505 | 505 | let cB = if ((cz > h)) | |
506 | 506 | then invoke(this, "claimWxINTERNAL", [au, at, cA], nil) | |
507 | 507 | else unit | |
508 | 508 | if ((cB == cB)) | |
509 | 509 | then if ((aU > bv)) | |
510 | - | then | |
510 | + | then l(((((((("passed amount=" + toString(aU)) + " is greater than available=") + toString(bv)) + ". lpAssetId=") + au) + ". stakedByUserKEY=") + ca)) | |
511 | 511 | else (([IntegerEntry(ca, (bv - aU)), IntegerEntry(bC, (bD - aU)), ScriptTransfer(cx, aU, aC), aV("unstake", at, au, aU, cn.transactionId)] ++ cu) ++ cv) | |
512 | 512 | else throw("Strict value is not equal to itself.") | |
513 | 513 | } | |
514 | 514 | else throw("Strict value is not equal to itself.") | |
515 | 515 | } | |
516 | 516 | ||
517 | 517 | ||
518 | 518 | @Callable(cn) | |
519 | 519 | func constructor (cC) = { | |
520 | 520 | let cD = co(cn) | |
521 | 521 | if ((cD == cD)) | |
522 | 522 | then [StringEntry(M(), cC)] | |
523 | 523 | else throw("Strict value is not equal to itself.") | |
524 | 524 | } | |
525 | 525 | ||
526 | 526 | ||
527 | 527 | ||
528 | 528 | @Callable(cn) | |
529 | 529 | func constructorV2 (cE) = { | |
530 | 530 | let cF = [co(cn), if ((addressFromString(cE) != unit)) | |
531 | 531 | then true | |
532 | 532 | else "invalid voting emission contract address"] | |
533 | 533 | if ((cF == cF)) | |
534 | 534 | then [StringEntry(N(), cE)] | |
535 | 535 | else throw("Strict value is not equal to itself.") | |
536 | 536 | } | |
537 | 537 | ||
538 | 538 | ||
539 | 539 | ||
540 | 540 | @Callable(cn) | |
541 | 541 | func setManager (cG) = { | |
542 | 542 | let cD = co(cn) | |
543 | 543 | if ((cD == cD)) | |
544 | 544 | then { | |
545 | 545 | let cH = fromBase58String(cG) | |
546 | 546 | if ((cH == cH)) | |
547 | 547 | then [StringEntry(X(), cG)] | |
548 | 548 | else throw("Strict value is not equal to itself.") | |
549 | 549 | } | |
550 | 550 | else throw("Strict value is not equal to itself.") | |
551 | 551 | } | |
552 | 552 | ||
553 | 553 | ||
554 | 554 | ||
555 | 555 | @Callable(cn) | |
556 | 556 | func confirmManager () = { | |
557 | 557 | let cI = ck() | |
558 | 558 | let cJ = if (isDefined(cI)) | |
559 | 559 | then true | |
560 | - | else | |
560 | + | else l("No pending manager") | |
561 | 561 | if ((cJ == cJ)) | |
562 | 562 | then { | |
563 | 563 | let cK = if ((cn.callerPublicKey == value(cI))) | |
564 | 564 | then true | |
565 | - | else | |
565 | + | else l("You are not pending manager") | |
566 | 566 | if ((cK == cK)) | |
567 | 567 | then [StringEntry(W(), toBase58String(value(cI))), DeleteEntry(X())] | |
568 | 568 | else throw("Strict value is not equal to itself.") | |
569 | 569 | } | |
570 | 570 | else throw("Strict value is not equal to itself.") | |
571 | 571 | } | |
572 | 572 | ||
573 | 573 | ||
574 | 574 | ||
575 | 575 | @Callable(cn) | |
576 | 576 | func stake () = if ((size(cn.payments) != 1)) | |
577 | - | then | |
577 | + | then l("invalid payment - exact one payment must be attached") | |
578 | 578 | else { | |
579 | 579 | let cL = cn.payments[0] | |
580 | 580 | let aC = value(cL.assetId) | |
581 | 581 | let au = toBase58String(aC) | |
582 | 582 | let aU = cL.amount | |
583 | - | let bA = valueOrErrorMessage(getString(aY, aa(au)), ("unsupported lp asset " + au)) | |
583 | + | let bA = valueOrErrorMessage(getString(aY, aa(au)), j(("unsupported lp asset " + au))) | |
584 | 584 | let cr = addressFromStringValue(bA) | |
585 | 585 | let aE = if ((cn.caller == cr)) | |
586 | 586 | then cn.originCaller | |
587 | 587 | else cn.caller | |
588 | 588 | cq(cn, aC, cr, aE, aU) | |
589 | 589 | } | |
590 | 590 | ||
591 | 591 | ||
592 | 592 | ||
593 | 593 | @Callable(cn) | |
594 | 594 | func stakeFor (at) = if ((size(cn.payments) != 1)) | |
595 | - | then | |
595 | + | then l("invalid payment - exact one payment must be attached") | |
596 | 596 | else { | |
597 | 597 | let cL = cn.payments[0] | |
598 | 598 | let aC = value(cL.assetId) | |
599 | 599 | let au = toBase58String(aC) | |
600 | 600 | let aU = cL.amount | |
601 | - | let bA = valueOrErrorMessage(getString(aY, aa(au)), ("unsupported lp asset " + au)) | |
601 | + | let bA = valueOrErrorMessage(getString(aY, aa(au)), j(("unsupported lp asset " + au))) | |
602 | 602 | let cr = addressFromStringValue(bA) | |
603 | 603 | let aE = valueOrErrorMessage(addressFromString(at), j("invalid user address")) | |
604 | 604 | cq(cn, aC, cr, aE, aU) | |
605 | 605 | } | |
606 | 606 | ||
607 | 607 | ||
608 | 608 | ||
609 | 609 | @Callable(cn) | |
610 | 610 | func unstake (au,aU) = { | |
611 | 611 | let aC = fromBase58String(au) | |
612 | - | let bA = valueOrErrorMessage(getString(aY, aa(au)), ("unsupported lp asset " + au)) | |
612 | + | let bA = valueOrErrorMessage(getString(aY, aa(au)), j(("unsupported lp asset " + au))) | |
613 | 613 | let cr = addressFromStringValue(bA) | |
614 | 614 | let cM = valueOrElse(getString(cr, Z()), bA) | |
615 | 615 | let cN = toString(cn.caller) | |
616 | 616 | let aE = if (if ((cN == bA)) | |
617 | 617 | then true | |
618 | 618 | else (cN == cM)) | |
619 | 619 | then cn.originCaller | |
620 | 620 | else cn.caller | |
621 | 621 | let cx = cn.caller | |
622 | 622 | cw(cn, aC, cr, aE, cx, aU) | |
623 | 623 | } | |
624 | 624 | ||
625 | 625 | ||
626 | 626 | ||
627 | 627 | @Callable(cn) | |
628 | 628 | func unstakeINTERNAL (aC,aU,aE,cx) = { | |
629 | 629 | let au = toBase58String(aC) | |
630 | - | let cr = addressFromStringValue(valueOrErrorMessage(getString(aY, aa(au)), ("unsupported lp asset " + au))) | |
630 | + | let cr = addressFromStringValue(valueOrErrorMessage(getString(aY, aa(au)), j(("unsupported lp asset " + au)))) | |
631 | 631 | let cD = if ((cn.caller == cr)) | |
632 | 632 | then true | |
633 | 633 | else cl | |
634 | 634 | if ((cD == cD)) | |
635 | 635 | then cw(cn, aC, cr, Address(aE), Address(cx), aU) | |
636 | 636 | else throw("Strict value is not equal to itself.") | |
637 | 637 | } | |
638 | 638 | ||
639 | 639 | ||
640 | 640 | ||
641 | 641 | @Callable(cn) | |
642 | 642 | func claimWx (au) = { | |
643 | 643 | let at = toString(cn.caller) | |
644 | 644 | let cA = true | |
645 | 645 | let cO = invoke(this, "claimWxINTERNAL", [au, at, cA], nil) | |
646 | 646 | $Tuple2(nil, cO) | |
647 | 647 | } | |
648 | 648 | ||
649 | 649 | ||
650 | 650 | ||
651 | 651 | @Callable(cn) | |
652 | 652 | func claimWxDoNotThrow (au) = { | |
653 | 653 | let at = toString(cn.caller) | |
654 | 654 | let cA = false | |
655 | 655 | let cO = invoke(this, "claimWxINTERNAL", [au, at, cA], nil) | |
656 | 656 | $Tuple2(nil, cO) | |
657 | 657 | } | |
658 | 658 | ||
659 | 659 | ||
660 | 660 | ||
661 | 661 | @Callable(cn) | |
662 | 662 | func claimWxINTERNAL (au,at,cA) = { | |
663 | 663 | let cD = cm(cn) | |
664 | 664 | if ((cD == cD)) | |
665 | 665 | then { | |
666 | - | let aE = valueOrErrorMessage(addressFromString(at), "claimWxINTERNAL: invalid user address") | |
666 | + | let aE = valueOrErrorMessage(addressFromString(at), j("claimWxINTERNAL: invalid user address")) | |
667 | 667 | let bA = z(aY, ad(au)) | |
668 | 668 | let cP = aw(au, at) | |
669 | 669 | let cQ = az(au) | |
670 | 670 | let cR = ax(au, at) | |
671 | 671 | let cS = ay(au, at) | |
672 | 672 | let cT = E(this, cP) | |
673 | 673 | let cy = E(this, cR) | |
674 | 674 | let cU = E(this, cS) | |
675 | 675 | let cV = E(this, cQ) | |
676 | 676 | let cW = bW(au, at, bA, 0) | |
677 | 677 | let cg = cW._1 | |
678 | 678 | let cu = cW._2 | |
679 | 679 | let bV = cW._3 | |
680 | 680 | let cz = max([(cg - cy), h]) | |
681 | 681 | if ((h >= cz)) | |
682 | 682 | then if (cA) | |
683 | - | then | |
683 | + | then l("nothing to claim") | |
684 | 684 | else $Tuple2(nil, 0) | |
685 | 685 | else { | |
686 | 686 | let cX = max([q(m(invoke(ba, "claimWxBoost", [au, at], nil))[0]), 0]) | |
687 | 687 | let cY = cz | |
688 | 688 | let cZ = min([(cY * toBigInt((bb - 1))), toBigInt(cX)]) | |
689 | 689 | let da = (cY + cZ) | |
690 | 690 | let db = u(m(invoke(aZ, "emit", [toInt(cY)], nil))[0]) | |
691 | 691 | let dc = m(invoke(aZ, "emit", [toInt(cZ)], nil)) | |
692 | 692 | if ((dc == dc)) | |
693 | 693 | then { | |
694 | 694 | let dd = ((cT + cY) + cZ) | |
695 | 695 | let de = (cy + cY) | |
696 | 696 | let df = (cU + cZ) | |
697 | 697 | let dg = (cV + cz) | |
698 | 698 | $Tuple2([StringEntry(cP, toString(dd)), StringEntry(cR, toString(de)), StringEntry(cS, toString(df)), StringEntry(cQ, toString(dg)), ScriptTransfer(aE, toInt(cY), db), ScriptTransfer(aE, toInt(cZ), db), aV("claim", at, au, toInt(cz), cn.transactionId)], toInt(da)) | |
699 | 699 | } | |
700 | 700 | else throw("Strict value is not equal to itself.") | |
701 | 701 | } | |
702 | 702 | } | |
703 | 703 | else throw("Strict value is not equal to itself.") | |
704 | 704 | } | |
705 | 705 | ||
706 | 706 | ||
707 | 707 | ||
708 | 708 | @Callable(cn) | |
709 | 709 | func claimWxBulkInternalREADONLY (dh,di,at,dj) = if ((dh == size(di))) | |
710 | 710 | then $Tuple2(nil, dj) | |
711 | 711 | else { | |
712 | 712 | let aC = di[dh] | |
713 | 713 | let dk = split({ | |
714 | 714 | let bc = invoke(this, "claimWxREADONLY", [aC, at], nil) | |
715 | 715 | if ($isInstanceOf(bc, "String")) | |
716 | 716 | then bc | |
717 | 717 | else throw(($getType(bc) + " couldn't be cast to String")) | |
718 | 718 | }, f) | |
719 | 719 | let dl = dk[3] | |
720 | 720 | let dm = dk[4] | |
721 | 721 | let dn = { | |
722 | 722 | let bc = invoke(ba, "getUserVoteFinalizedREADONLY", [aC, at], nil) | |
723 | 723 | if ($isInstanceOf(bc, "Int")) | |
724 | 724 | then bc | |
725 | 725 | else throw(($getType(bc) + " couldn't be cast to Int")) | |
726 | 726 | } | |
727 | 727 | let do = (dj :+ makeString(["%d%d%d", dl, dm, toString(dn)], f)) | |
728 | 728 | let dp = { | |
729 | 729 | let bc = invoke(this, "claimWxBulkInternalREADONLY", [(dh + 1), di, at, do], nil) | |
730 | 730 | if ($isInstanceOf(bc, "List[Any]")) | |
731 | 731 | then bc | |
732 | 732 | else throw(($getType(bc) + " couldn't be cast to List[Any]")) | |
733 | 733 | } | |
734 | 734 | if ((dp == dp)) | |
735 | 735 | then $Tuple2(nil, dp) | |
736 | 736 | else throw("Strict value is not equal to itself.") | |
737 | 737 | } | |
738 | 738 | ||
739 | 739 | ||
740 | 740 | ||
741 | 741 | @Callable(cn) | |
742 | 742 | func claimWxBulkREADONLY (di,at) = { | |
743 | 743 | let do = invoke(this, "claimWxBulkInternalREADONLY", [0, di, at, nil], nil) | |
744 | 744 | $Tuple2(nil, do) | |
745 | 745 | } | |
746 | 746 | ||
747 | 747 | ||
748 | 748 | ||
749 | 749 | @Callable(cn) | |
750 | 750 | func claimWxREADONLY (au,at) = { | |
751 | 751 | let ca = as(at, au) | |
752 | 752 | let bC = av(au) | |
753 | 753 | let cP = aw(au, at) | |
754 | 754 | let cR = ax(au, at) | |
755 | 755 | let bv = aA(ca) | |
756 | 756 | let bD = aA(bC) | |
757 | 757 | let cT = E(this, cP) | |
758 | 758 | let cy = E(this, cR) | |
759 | 759 | let bA = z(aY, ad(au)) | |
760 | 760 | let bF = getIntegerValue(aY, ae(bA)) | |
761 | 761 | let dq = D(aZ, an()) | |
762 | 762 | let bG = D(aZ, ap()) | |
763 | 763 | let dr = if ((bG > height)) | |
764 | 764 | then 0 | |
765 | 765 | else (height - bG) | |
766 | 766 | let ds = fraction((dq * dr), bF, g) | |
767 | 767 | let dt = fraction(ds, bv, bD) | |
768 | 768 | let du = bW(au, at, bA, 0) | |
769 | 769 | let cg = du._1 | |
770 | 770 | let cu = du._2 | |
771 | 771 | let bV = du._3 | |
772 | 772 | let cz = max([(cg - cy), h]) | |
773 | 773 | let dv = m(invoke(ba, "claimWxBoostREADONLY", [au, at], nil)) | |
774 | 774 | let cX = max([q(dv[0]), 0]) | |
775 | 775 | let dw = s(dv[1]) | |
776 | 776 | let cY = cz | |
777 | 777 | let cZ = min([(cY * toBigInt((bb - 1))), toBigInt(cX)]) | |
778 | 778 | let da = (cY + cZ) | |
779 | 779 | $Tuple2(nil, makeString(["%s%s%d%d%d%d%s", au, at, toString(da), toString(cT), toString(cY), toString(cZ), "soon"], f)) | |
780 | 780 | } | |
781 | 781 | ||
782 | 782 | ||
783 | 783 | ||
784 | 784 | @Callable(cn) | |
785 | 785 | func stakedByUserREADONLY (au,at) = { | |
786 | 786 | let bv = valueOrElse(getInteger(as(at, au)), 0) | |
787 | 787 | $Tuple2(nil, bv) | |
788 | 788 | } | |
789 | 789 | ||
790 | 790 | ||
791 | 791 | ||
792 | 792 | @Callable(cn) | |
793 | 793 | func usersListTraversal (aC) = { | |
794 | 794 | let cD = if ((toBase58String(cn.caller.bytes) == valueOrElse(getString(this, N()), ""))) | |
795 | 795 | then true | |
796 | 796 | else co(cn) | |
797 | 797 | if ((cD == cD)) | |
798 | 798 | then { | |
799 | 799 | let bh = bf(aC) | |
800 | 800 | let dx = getString(be(aC)) | |
801 | 801 | let bn = getString(bg(bh)) | |
802 | 802 | let o = dx | |
803 | 803 | if ($isInstanceOf(o, "Unit")) | |
804 | 804 | then { | |
805 | 805 | let dy = bn | |
806 | 806 | if ($isInstanceOf(dy, "Unit")) | |
807 | 807 | then $Tuple2(nil, false) | |
808 | 808 | else if ($isInstanceOf(dy, "String")) | |
809 | 809 | then { | |
810 | 810 | let dz = dy | |
811 | 811 | $Tuple2([StringEntry(be(aC), dz)], true) | |
812 | 812 | } | |
813 | 813 | else throw("Match error") | |
814 | 814 | } | |
815 | 815 | else if ($isInstanceOf(o, "String")) | |
816 | 816 | then { | |
817 | 817 | let aE = o | |
818 | 818 | let cy = E(this, ax(aC, aE)) | |
819 | 819 | let cr = z(aY, ad(aC)) | |
820 | 820 | let cg = bW(aC, aE, cr, 0)._1 | |
821 | 821 | let cz = (cg - cy) | |
822 | 822 | let cA = true | |
823 | 823 | let cB = if ((cz > h)) | |
824 | 824 | then invoke(this, "claimWxINTERNAL", [aC, aE, cA], nil) | |
825 | 825 | else unit | |
826 | 826 | if ((cB == cB)) | |
827 | 827 | then { | |
828 | 828 | let dA = getString(bl(bh, aE)) | |
829 | 829 | let dy = dA | |
830 | 830 | if ($isInstanceOf(dy, "Unit")) | |
831 | 831 | then $Tuple2([DeleteEntry(be(aC))], false) | |
832 | 832 | else if ($isInstanceOf(dy, "String")) | |
833 | 833 | then { | |
834 | 834 | let dB = dy | |
835 | 835 | $Tuple2([StringEntry(be(aC), dB)], true) | |
836 | 836 | } | |
837 | 837 | else throw("Match error") | |
838 | 838 | } | |
839 | 839 | else throw("Strict value is not equal to itself.") | |
840 | 840 | } | |
841 | 841 | else throw("Match error") | |
842 | 842 | } | |
843 | 843 | else throw("Strict value is not equal to itself.") | |
844 | 844 | } | |
845 | 845 | ||
846 | 846 | ||
847 | 847 | ||
848 | 848 | @Callable(cn) | |
849 | 849 | func onModifyWeight (au,bA) = if ((cn.caller != aY)) | |
850 | - | then | |
850 | + | then l("permissions denied") | |
851 | 851 | else { | |
852 | 852 | let dC = bz(au, bA, 0) | |
853 | 853 | let bx = dC._1 | |
854 | 854 | let bY = dC._2 | |
855 | 855 | let bZ = dC._3 | |
856 | 856 | bY | |
857 | 857 | } | |
858 | 858 | ||
859 | 859 | ||
860 | 860 | @Verifier(dD) | |
861 | 861 | func dE () = { | |
862 | 862 | let dF = { | |
863 | 863 | let o = cj() | |
864 | 864 | if ($isInstanceOf(o, "ByteVector")) | |
865 | 865 | then { | |
866 | 866 | let cp = o | |
867 | 867 | cp | |
868 | 868 | } | |
869 | 869 | else if ($isInstanceOf(o, "Unit")) | |
870 | 870 | then dD.senderPublicKey | |
871 | 871 | else throw("Match error") | |
872 | 872 | } | |
873 | 873 | sigVerify(dD.bodyBytes, dD.proofs[0], dF) | |
874 | 874 | } | |
875 | 875 |
github/deemru/w8io/169f3d6 106.32 ms ◑