tx · K6qhCjDGRdUw15DWpLt1CAdsCyZ9FuT3uGvnq6L7S8m 3N4yYqBkTUq1mDdHhvAd3St7spCbm84DytS: -0.02400000 Waves 2023.12.07 11:15 [2875986] smart account 3N4yYqBkTUq1mDdHhvAd3St7spCbm84DytS > SELF 0.00000000 Waves
{ "type": 13, "id": "K6qhCjDGRdUw15DWpLt1CAdsCyZ9FuT3uGvnq6L7S8m", "fee": 2400000, "feeAssetId": null, "timestamp": 1701936971872, "version": 1, "sender": "3N4yYqBkTUq1mDdHhvAd3St7spCbm84DytS", "senderPublicKey": "8h7G4haeVwXKNHXNHsWkC1miUp5CQtk3WmpBKazQPxRh", "proofs": [ "3MbRWeQeEwVTHJBzWHM8vSiCWyZ7n5X6gPgvvBwpJeGqd9uj7vhBMoxDpLpije8XVZajhEXMaptF64ojRtwMEriM" ], "script": "base64:BgI6CAISAwoBARIDCgEBEgASAwoBCBIDCgEBEgMKAQgSAwoBCBIECgIICBIECgIYERIDCgEIEgASAwoBCEEADGNvbnRyYWN0RmlsZQIRbDJtcF9zdGFraW5nLnJpZGUAA1NFUAICX18ABnNjYWxlOACAwtcvAAdzY2FsZTE4AICAkLu61q3wDQANc2NhbGUxOEJpZ0ludAkAtgIBBQdzY2FsZTE4ABJBRERSRVNTX0JZVEVTX1NJWkUAGgANQkxPQ0tTX0lOX0RBWQCgCwEIdGhyb3dFcnIBA21zZwkAAgEJAKwCAgkArAICBQxjb250cmFjdEZpbGUCAjogBQNtc2cACmtleUFzc2V0SWQJALkJAgkAzAgCAgIlcwkAzAgCAgdhc3NldElkBQNuaWwFA1NFUAATa2V5RW1pc3Npb25QZXJCbG9jawkAuQkCCQDMCAICAiVzCQDMCAICEGVtaXNzaW9uUGVyQmxvY2sFA25pbAUDU0VQABlrZXlFbWlzc2lvblBlcmlvZEluQmxvY2tzCQC5CQIJAMwIAgICJXMJAMwIAgIWZW1pc3Npb25QZXJpb2RJbkJsb2NrcwUDbmlsBQNTRVAADWtleVN0YXJ0Qmxv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QFEVRYSURfQllURVNfTEVOR1RIBgkBCHRocm93RXJyAQkArAICBQR0eElkAhIgaXMgbm90IHZhbGlkIHR4SWQJAMwIAgMDCQAAAgURYWxsb3dlZFR4SWRPcHRpb24FBHVuaXQGCQECIT0CCQEFdmFsdWUBBRFhbGxvd2VkVHhJZE9wdGlvbgUEdHhJZAYJAQh0aHJvd0VycgEJAKwCAgUEdHhJZAITIGlzIGFscmVhZHkgYWxsb3dlZAUDbmlsAwkAAAIFA2VycgUDZXJyCQEMdm90ZUlOVEVSTkFMBAUTY2FsbGVyQWRkcmVzc1N0cmluZwUJa2V5UHJlZml4BQZRVU9SVU0FBnJlc3VsdAkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgECdHgBBnZlcmlmeQAECGJ5QWRtaW5zCQAAAggFAnR4AmlkCQDZBAEJAQt2YWx1ZU9yRWxzZQIJAJ0IAgUEdGhpcwkBDmtleUFsbG93ZWRUeElkAAIABAdieU93bmVyAwkAZwIJAJADAQkBDWdldEFkbWluc0xpc3QABQZRVU9SVU0HCQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwAACAUCdHgPc2VuZGVyUHVibGljS2V5AwUIYnlBZG1pbnMGBQdieU93bmVyaeyP6Q==", "chainId": 84, "height": 2875986, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: C535cxDyehEmG37nqYHoKcV4GDUjkKMxvz6SPyNuZYeX Next: 2TfAUi8mKJujJz9uxrxqcGeDcoLgnWZwsb9HkwwkmmxQ Diff:
Old | New | Differences | |
---|---|---|---|
459 | 459 | ||
460 | 460 | @Callable(bl) | |
461 | 461 | func airdrop (bJ,bK) = { | |
462 | - | func bL (bM,bN) = (bM + bN) | |
462 | + | func bL (bM,bN) = if ((0 > bN)) | |
463 | + | then h("negative amount value in amountList") | |
464 | + | else (bM + bN) | |
463 | 465 | ||
464 | 466 | let bO = { | |
465 | 467 | let ak = bK | |
493 | 495 | let af = bQ._1 | |
494 | 496 | let bR = bQ._2 | |
495 | 497 | let bS = bQ._3 | |
496 | - | let bT = bd(be) | |
497 | - | let bU = s(bJ[bR]) | |
498 | - | let bV = valueOrElse(getInteger(this, bU), 0) | |
499 | - | $Tuple3((af :+ IntegerEntry(bU, (bV + bT))), (bR + 1), (bS + bT)) | |
498 | + | let bT = bQ._4 | |
499 | + | let bU = bJ[bR] | |
500 | + | let ab = { | |
501 | + | let Y = addressFromString(bU) | |
502 | + | if ($isInstanceOf(Y, "Address")) | |
503 | + | then { | |
504 | + | let bV = Y | |
505 | + | bV | |
506 | + | } | |
507 | + | else h("invalid address in addressList") | |
508 | + | } | |
509 | + | let bW = [if (!(containsElement(bT, ab))) | |
510 | + | then true | |
511 | + | else h("duplicate address is addressList")] | |
512 | + | if ((bW == bW)) | |
513 | + | then { | |
514 | + | let bX = bd(be) | |
515 | + | let bY = s(bU) | |
516 | + | let bZ = valueOrElse(getInteger(this, bY), 0) | |
517 | + | $Tuple4((af :+ IntegerEntry(bY, (bZ + bX))), (bR + 1), (bS + bX), (bT :+ ab)) | |
518 | + | } | |
519 | + | else throw("Strict value is not equal to itself.") | |
500 | 520 | } | |
501 | 521 | ||
502 | - | let | |
522 | + | let ca = { | |
503 | 523 | let ak = bK | |
504 | 524 | let al = size(ak) | |
505 | - | let am = $ | |
506 | - | func | |
525 | + | let am = $Tuple4(nil, 0, 0, nil) | |
526 | + | func cb (ao,ap) = if ((ap >= al)) | |
507 | 527 | then ao | |
508 | 528 | else bP(ao, ak[ap]) | |
509 | 529 | ||
510 | - | func | |
530 | + | func cc (ao,ap) = if ((ap >= al)) | |
511 | 531 | then ao | |
512 | 532 | else throw("List size exceeds 90") | |
513 | 533 | ||
514 | - | | |
534 | + | cc(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(am, 0), 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) | |
515 | 535 | } | |
516 | - | let bZ = bW._1 | |
517 | - | let ca = bW._2 | |
518 | - | let cb = bW._3 | |
519 | - | let cc = bb((E + cb)) | |
520 | - | ([IntegerEntry(p, (F + cb)), IntegerEntry(n, (E + cb)), IntegerEntry(o, cc), IntegerEntry(m, height)] ++ bZ) | |
536 | + | let cd = ca._1 | |
537 | + | let ce = ca._2 | |
538 | + | let cf = ca._3 | |
539 | + | let cg = ca._4 | |
540 | + | let ch = bb((E + cf)) | |
541 | + | ([IntegerEntry(p, (F + cf)), IntegerEntry(n, (E + cf)), IntegerEntry(o, ch), IntegerEntry(m, height)] ++ cd) | |
521 | 542 | } | |
522 | 543 | else throw("Strict value is not equal to itself.") | |
523 | 544 | } | |
527 | 548 | @Callable(bl) | |
528 | 549 | func getUserAssetsREADONLY (r) = { | |
529 | 550 | let bi = bf(r) | |
530 | - | let | |
531 | - | let | |
551 | + | let ci = bg(r) | |
552 | + | let cj = bb(ci) | |
532 | 553 | let bG = bh(r) | |
533 | 554 | let bp = valueOrElse(getInteger(this, w(r)), 0) | |
534 | 555 | let by = valueOrElse(getInteger(this, v(r)), 0) | |
535 | - | let | |
536 | - | let | |
537 | - | let | |
538 | - | $Tuple2(nil, $Tuple10(bi, bG, aT(), bp, by, | |
556 | + | let ck = aV(r) | |
557 | + | let cl = ck._1 | |
558 | + | let cm = ck._2 | |
559 | + | $Tuple2(nil, $Tuple10(bi, bG, aT(), bp, by, ci, cj, cl, cm, aU())) | |
539 | 560 | } | |
540 | 561 | ||
541 | 562 | ||
550 | 571 | let ay = toBase58String(bl.caller.bytes) | |
551 | 572 | let ah = O(z) | |
552 | 573 | let af = [StringEntry(T(), z)] | |
553 | - | let | |
574 | + | let cn = getString(this, T()) | |
554 | 575 | let aC = [if ((size(fromBase58String(z)) == N)) | |
555 | 576 | then true | |
556 | - | else h((z + " is not valid txId")), if (if (( | |
577 | + | else h((z + " is not valid txId")), if (if ((cn == unit)) | |
557 | 578 | then true | |
558 | - | else (value( | |
579 | + | else (value(cn) != z)) | |
559 | 580 | then true | |
560 | 581 | else h((z + " is already allowed"))] | |
561 | 582 | if ((aC == aC)) | |
564 | 585 | } | |
565 | 586 | ||
566 | 587 | ||
567 | - | @Verifier( | |
568 | - | func | |
569 | - | let | |
570 | - | let | |
588 | + | @Verifier(co) | |
589 | + | func cp () = { | |
590 | + | let cq = (co.id == fromBase58String(valueOrElse(getString(this, T()), ""))) | |
591 | + | let cr = if ((size(X()) >= M)) | |
571 | 592 | then false | |
572 | - | else sigVerify( | |
573 | - | if ( | |
593 | + | else sigVerify(co.bodyBytes, co.proofs[0], co.senderPublicKey) | |
594 | + | if (cq) | |
574 | 595 | then true | |
575 | - | else | |
596 | + | else cr | |
576 | 597 | } | |
577 | 598 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "l2mp_staking.ride" | |
5 | 5 | ||
6 | 6 | let b = "__" | |
7 | 7 | ||
8 | 8 | let c = 100000000 | |
9 | 9 | ||
10 | 10 | let d = 1000000000000000000 | |
11 | 11 | ||
12 | 12 | let e = toBigInt(d) | |
13 | 13 | ||
14 | 14 | let f = 26 | |
15 | 15 | ||
16 | 16 | let g = 1440 | |
17 | 17 | ||
18 | 18 | func h (i) = throw(((a + ": ") + i)) | |
19 | 19 | ||
20 | 20 | ||
21 | 21 | let j = makeString(["%s", "assetId"], b) | |
22 | 22 | ||
23 | 23 | let k = makeString(["%s", "emissionPerBlock"], b) | |
24 | 24 | ||
25 | 25 | let l = makeString(["%s", "emissionPeriodInBlocks"], b) | |
26 | 26 | ||
27 | 27 | let m = makeString(["%s", "startBlock"], b) | |
28 | 28 | ||
29 | 29 | let n = makeString(["%s", "totalLpAmount"], b) | |
30 | 30 | ||
31 | 31 | let o = makeString(["%s", "totalAssetAmount"], b) | |
32 | 32 | ||
33 | 33 | let p = makeString(["%s", "totalLockedLpAmount"], b) | |
34 | 34 | ||
35 | 35 | func q (r) = makeString(["%s%s", "userLpAmount", r], b) | |
36 | 36 | ||
37 | 37 | ||
38 | 38 | func s (r) = makeString(["%s%s", "userLockedLpAmount", r], b) | |
39 | 39 | ||
40 | 40 | ||
41 | 41 | func t (r) = makeString(["%s%s", "userStakingNodes", r], b) | |
42 | 42 | ||
43 | 43 | ||
44 | 44 | func u (r) = makeString(["%s%s", "userStakingNodesShares", r], b) | |
45 | 45 | ||
46 | 46 | ||
47 | 47 | func v (r) = makeString(["%s%s", "totalAssetWithdrawn", r], b) | |
48 | 48 | ||
49 | 49 | ||
50 | 50 | func w (r) = makeString(["%s%s", "totalAssetStaked", r], b) | |
51 | 51 | ||
52 | 52 | ||
53 | 53 | func x (y,r,z) = makeString(["%s%s%s", y, r, toBase58String(z)], b) | |
54 | 54 | ||
55 | 55 | ||
56 | 56 | func A (B,C,D,E) = makeString(["%d%d%d%d", toString(B), toString(C), toString(D), toString(E)], b) | |
57 | 57 | ||
58 | 58 | ||
59 | 59 | let E = valueOrElse(getInteger(this, n), 0) | |
60 | 60 | ||
61 | 61 | let D = valueOrElse(getInteger(this, o), 0) | |
62 | 62 | ||
63 | 63 | let F = valueOrElse(getInteger(this, p), 0) | |
64 | 64 | ||
65 | 65 | let G = valueOrElse(getString(this, j), "WAVES") | |
66 | 66 | ||
67 | 67 | let H = if ((G == "WAVES")) | |
68 | 68 | then unit | |
69 | 69 | else fromBase58String(G) | |
70 | 70 | ||
71 | 71 | let I = valueOrElse(getInteger(this, l), g) | |
72 | 72 | ||
73 | 73 | let J = valueOrElse(getInteger(this, k), 0) | |
74 | 74 | ||
75 | 75 | let K = (J * I) | |
76 | 76 | ||
77 | 77 | let L = 5 | |
78 | 78 | ||
79 | 79 | let M = 3 | |
80 | 80 | ||
81 | 81 | let N = 32 | |
82 | 82 | ||
83 | 83 | func O (z) = makeString(["%s%s%s", "allowTxId", z], b) | |
84 | 84 | ||
85 | 85 | ||
86 | 86 | func P (Q,R) = makeString([Q, R], b) | |
87 | 87 | ||
88 | 88 | ||
89 | 89 | func S () = makeString(["%s", "adminAddressList"], b) | |
90 | 90 | ||
91 | 91 | ||
92 | 92 | func T () = makeString(["%s", "txId"], b) | |
93 | 93 | ||
94 | 94 | ||
95 | 95 | func U (Q,V) = { | |
96 | 96 | let W = P(Q, V) | |
97 | 97 | valueOrElse(getInteger(W), 0) | |
98 | 98 | } | |
99 | 99 | ||
100 | 100 | ||
101 | 101 | func X () = { | |
102 | 102 | let Y = getString(this, S()) | |
103 | 103 | if ($isInstanceOf(Y, "String")) | |
104 | 104 | then { | |
105 | 105 | let Z = Y | |
106 | 106 | split(Z, b) | |
107 | 107 | } | |
108 | 108 | else nil | |
109 | 109 | } | |
110 | 110 | ||
111 | 111 | ||
112 | 112 | func aa (ab) = containsElement(X(), ab) | |
113 | 113 | ||
114 | 114 | ||
115 | 115 | func ac (ad,R) = { | |
116 | 116 | let ae = ad | |
117 | 117 | let af = ae._1 | |
118 | 118 | let Q = ae._2 | |
119 | 119 | $Tuple2((af :+ P(Q, R)), Q) | |
120 | 120 | } | |
121 | 121 | ||
122 | 122 | ||
123 | 123 | func ag (ah) = { | |
124 | 124 | let ai = S() | |
125 | 125 | let aj = { | |
126 | 126 | let ak = X() | |
127 | 127 | let al = size(ak) | |
128 | 128 | let am = $Tuple2(nil, ah) | |
129 | 129 | func an (ao,ap) = if ((ap >= al)) | |
130 | 130 | then ao | |
131 | 131 | else ac(ao, ak[ap]) | |
132 | 132 | ||
133 | 133 | func aq (ao,ap) = if ((ap >= al)) | |
134 | 134 | then ao | |
135 | 135 | else throw("List size exceeds 5") | |
136 | 136 | ||
137 | 137 | aq(an(an(an(an(an(am, 0), 1), 2), 3), 4), 5) | |
138 | 138 | } | |
139 | 139 | let af = aj._1 | |
140 | 140 | let Q = aj._2 | |
141 | 141 | af | |
142 | 142 | } | |
143 | 143 | ||
144 | 144 | ||
145 | 145 | func ar (af,W) = (af + valueOrElse(getInteger(W), 0)) | |
146 | 146 | ||
147 | 147 | ||
148 | 148 | func as (Q) = { | |
149 | 149 | let at = ag(Q) | |
150 | 150 | let ak = at | |
151 | 151 | let al = size(ak) | |
152 | 152 | let am = 0 | |
153 | 153 | func an (ao,ap) = if ((ap >= al)) | |
154 | 154 | then ao | |
155 | 155 | else ar(ao, ak[ap]) | |
156 | 156 | ||
157 | 157 | func aq (ao,ap) = if ((ap >= al)) | |
158 | 158 | then ao | |
159 | 159 | else throw("List size exceeds 5") | |
160 | 160 | ||
161 | 161 | aq(an(an(an(an(an(am, 0), 1), 2), 3), 4), 5) | |
162 | 162 | } | |
163 | 163 | ||
164 | 164 | ||
165 | 165 | func au (af,av) = (af :+ DeleteEntry(av)) | |
166 | 166 | ||
167 | 167 | ||
168 | 168 | func aw (Q) = { | |
169 | 169 | let at = ag(Q) | |
170 | 170 | let ak = at | |
171 | 171 | let al = size(ak) | |
172 | 172 | let am = nil | |
173 | 173 | func an (ao,ap) = if ((ap >= al)) | |
174 | 174 | then ao | |
175 | 175 | else au(ao, ak[ap]) | |
176 | 176 | ||
177 | 177 | func aq (ao,ap) = if ((ap >= al)) | |
178 | 178 | then ao | |
179 | 179 | else throw("List size exceeds 5") | |
180 | 180 | ||
181 | 181 | aq(an(an(an(an(an(am, 0), 1), 2), 3), 4), 5) | |
182 | 182 | } | |
183 | 183 | ||
184 | 184 | ||
185 | 185 | func ax (ay,ah,az,aA) = { | |
186 | 186 | let W = P(ah, ay) | |
187 | 187 | let aB = U(ah, ay) | |
188 | 188 | let aC = if (!(aa(ay))) | |
189 | 189 | then h((("Address: " + ay) + " not in Admin list")) | |
190 | 190 | else if ((aB == 1)) | |
191 | 191 | then h((W + " you already voted")) | |
192 | 192 | else unit | |
193 | 193 | if ((aC == aC)) | |
194 | 194 | then { | |
195 | 195 | let at = as(ah) | |
196 | 196 | if (((at + 1) >= az)) | |
197 | 197 | then { | |
198 | 198 | let aD = aw(ah) | |
199 | 199 | (aD ++ aA) | |
200 | 200 | } | |
201 | 201 | else [IntegerEntry(W, 1)] | |
202 | 202 | } | |
203 | 203 | else throw("Strict value is not equal to itself.") | |
204 | 204 | } | |
205 | 205 | ||
206 | 206 | ||
207 | 207 | func aE (aF,aG) = (aF :+ parseIntValue(aG)) | |
208 | 208 | ||
209 | 209 | ||
210 | 210 | func aH (aI) = { | |
211 | 211 | let aJ = valueOrElse(getInteger(this, m), height) | |
212 | 212 | let aK = fraction(aJ, 1, I) | |
213 | 213 | let aL = ((aI / I) - aK) | |
214 | 214 | max([0, (K * aL)]) | |
215 | 215 | } | |
216 | 216 | ||
217 | 217 | ||
218 | 218 | func aM () = aH(height) | |
219 | 219 | ||
220 | 220 | ||
221 | 221 | func aN () = { | |
222 | 222 | let Y = H | |
223 | 223 | if ($isInstanceOf(Y, "Unit")) | |
224 | 224 | then { | |
225 | 225 | let aO = Y | |
226 | 226 | wavesBalance(this).available | |
227 | 227 | } | |
228 | 228 | else if ($isInstanceOf(Y, "ByteVector")) | |
229 | 229 | then { | |
230 | 230 | let aP = Y | |
231 | 231 | assetBalance(this, aP) | |
232 | 232 | } | |
233 | 233 | else throw("Match error") | |
234 | 234 | } | |
235 | 235 | ||
236 | 236 | ||
237 | 237 | func aQ () = { | |
238 | 238 | let aR = (D + aM()) | |
239 | 239 | let aS = min([aR, aN()]) | |
240 | 240 | if ((E == 0)) | |
241 | 241 | then 0 | |
242 | 242 | else aS | |
243 | 243 | } | |
244 | 244 | ||
245 | 245 | ||
246 | 246 | func aT () = if ((E != 0)) | |
247 | 247 | then fraction(toBigInt(aQ()), e, toBigInt(E)) | |
248 | 248 | else e | |
249 | 249 | ||
250 | 250 | ||
251 | 251 | func aU () = if ((J == 0)) | |
252 | 252 | then 0 | |
253 | 253 | else fraction((aN() - aQ()), 1, J) | |
254 | 254 | ||
255 | 255 | ||
256 | 256 | func aV (r) = { | |
257 | 257 | let aW = valueOrElse(getString(this, t(r)), "") | |
258 | 258 | let aX = valueOrElse(getString(this, u(r)), "") | |
259 | 259 | let aY = if ((aW == "")) | |
260 | 260 | then nil | |
261 | 261 | else split(aW, b) | |
262 | 262 | let aZ = if ((aX == "")) | |
263 | 263 | then nil | |
264 | 264 | else split(aX, b) | |
265 | 265 | let ba = { | |
266 | 266 | let ak = aZ | |
267 | 267 | let al = size(ak) | |
268 | 268 | let am = nil | |
269 | 269 | func an (ao,ap) = if ((ap >= al)) | |
270 | 270 | then ao | |
271 | 271 | else aE(ao, ak[ap]) | |
272 | 272 | ||
273 | 273 | func aq (ao,ap) = if ((ap >= al)) | |
274 | 274 | then ao | |
275 | 275 | else throw("List size exceeds 20") | |
276 | 276 | ||
277 | 277 | aq(an(an(an(an(an(an(an(an(an(an(an(an(an(an(an(an(an(an(an(an(am, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20) | |
278 | 278 | } | |
279 | 279 | $Tuple2(aY, ba) | |
280 | 280 | } | |
281 | 281 | ||
282 | 282 | ||
283 | 283 | func bb (bc) = max([0, toInt(fraction(toBigInt(bc), aT(), e))]) | |
284 | 284 | ||
285 | 285 | ||
286 | 286 | func bd (be) = max([0, toInt(fraction(toBigInt(be), e, aT()))]) | |
287 | 287 | ||
288 | 288 | ||
289 | 289 | func bf (r) = valueOrElse(getInteger(this, q(r)), 0) | |
290 | 290 | ||
291 | 291 | ||
292 | 292 | func bg (r) = valueOrElse(getInteger(this, s(r)), 0) | |
293 | 293 | ||
294 | 294 | ||
295 | 295 | func bh (r) = { | |
296 | 296 | let bi = bf(r) | |
297 | 297 | bb(bi) | |
298 | 298 | } | |
299 | 299 | ||
300 | 300 | ||
301 | 301 | func bj (r) = [DeleteEntry(t(r)), DeleteEntry(u(r))] | |
302 | 302 | ||
303 | 303 | ||
304 | 304 | func bk (bl,r) = { | |
305 | 305 | let bm = [if ((size(bl.payments) == 1)) | |
306 | 306 | then true | |
307 | 307 | else h("should include 1 payment"), if ((bl.payments[0].assetId == H)) | |
308 | 308 | then true | |
309 | 309 | else h(("payment should be in " + G)), if ((bl.payments[0].amount > 0)) | |
310 | 310 | then true | |
311 | 311 | else "payment amount should be greater than 0", if ((size(fromBase58String(r)) == f)) | |
312 | 312 | then true | |
313 | 313 | else h("user address is not valid")] | |
314 | 314 | if ((bm == bm)) | |
315 | 315 | then { | |
316 | 316 | let bn = bl.payments[0].amount | |
317 | 317 | let bo = bd(bn) | |
318 | 318 | let bi = bf(r) | |
319 | 319 | let bp = valueOrElse(getInteger(this, w(r)), 0) | |
320 | 320 | let bq = (E + bo) | |
321 | 321 | let br = bb(bq) | |
322 | 322 | let bs = (bi + bo) | |
323 | 323 | let bt = (bp + bn) | |
324 | 324 | [StringEntry(x("stake", r, bl.transactionId), A(aM(), aT(), E, D)), IntegerEntry(n, bq), IntegerEntry(o, br), IntegerEntry(q(r), bs), IntegerEntry(w(r), bt), IntegerEntry(m, height)] | |
325 | 325 | } | |
326 | 326 | else throw("Strict value is not equal to itself.") | |
327 | 327 | } | |
328 | 328 | ||
329 | 329 | ||
330 | 330 | func bu (bl,bv) = { | |
331 | 331 | let r = toString(bl.caller) | |
332 | 332 | let bi = bf(r) | |
333 | 333 | let bw = [if ((bv > 0)) | |
334 | 334 | then true | |
335 | 335 | else h("LP amount should be more than 0"), if ((bi >= bv)) | |
336 | 336 | then true | |
337 | 337 | else h((("cannot withdraw more than available LP (" + toString(bi)) + ")"))] | |
338 | 338 | if ((bw == bw)) | |
339 | 339 | then { | |
340 | 340 | let bs = (bi - bv) | |
341 | 341 | let bx = bb(bv) | |
342 | 342 | let bq = (E - bv) | |
343 | 343 | let br = bb(bq) | |
344 | 344 | let by = valueOrElse(getInteger(this, v(r)), 0) | |
345 | 345 | let bz = (by + bx) | |
346 | 346 | let bA = if ((bs == 0)) | |
347 | 347 | then bj(r) | |
348 | 348 | else nil | |
349 | 349 | ([StringEntry(x("withdraw", r, bl.transactionId), A(aM(), aT(), E, D)), IntegerEntry(n, bq), IntegerEntry(o, br), IntegerEntry(q(r), bs), IntegerEntry(v(r), bz), IntegerEntry(m, height), ScriptTransfer(bl.caller, bx, H)] ++ bA) | |
350 | 350 | } | |
351 | 351 | else throw("Strict value is not equal to itself.") | |
352 | 352 | } | |
353 | 353 | ||
354 | 354 | ||
355 | 355 | func bB (r,bC,bD) = { | |
356 | 356 | let bw = [if ((size(fromBase58String(r)) == f)) | |
357 | 357 | then true | |
358 | 358 | else h("user address is not valid"), if ((size(fromBase58String(bC)) == f)) | |
359 | 359 | then true | |
360 | 360 | else h("node address is not valid")] | |
361 | 361 | if ((bw == bw)) | |
362 | 362 | then [StringEntry(t(r), bC), StringEntry(u(r), toString(bD))] | |
363 | 363 | else throw("Strict value is not equal to itself.") | |
364 | 364 | } | |
365 | 365 | ||
366 | 366 | ||
367 | 367 | @Callable(bl) | |
368 | 368 | func setEmissionPerBlock (J) = { | |
369 | 369 | let bw = [if ((bl.caller == this)) | |
370 | 370 | then true | |
371 | 371 | else h("permission denied")] | |
372 | 372 | if ((bw == bw)) | |
373 | 373 | then [IntegerEntry(o, aQ()), IntegerEntry(m, height), IntegerEntry(k, max([0, J]))] | |
374 | 374 | else throw("Strict value is not equal to itself.") | |
375 | 375 | } | |
376 | 376 | ||
377 | 377 | ||
378 | 378 | ||
379 | 379 | @Callable(bl) | |
380 | 380 | func setEmissionPeriodInBlocks (bE) = { | |
381 | 381 | let bw = [if ((bE > 0)) | |
382 | 382 | then true | |
383 | 383 | else h("emission period should be greater than 0"), if ((bl.caller == this)) | |
384 | 384 | then true | |
385 | 385 | else h("permission denied")] | |
386 | 386 | if ((bw == bw)) | |
387 | 387 | then [IntegerEntry(o, aQ()), IntegerEntry(m, height), IntegerEntry(l, bE)] | |
388 | 388 | else throw("Strict value is not equal to itself.") | |
389 | 389 | } | |
390 | 390 | ||
391 | 391 | ||
392 | 392 | ||
393 | 393 | @Callable(bl) | |
394 | 394 | func stake () = { | |
395 | 395 | let r = toString(bl.caller) | |
396 | 396 | bk(bl, r) | |
397 | 397 | } | |
398 | 398 | ||
399 | 399 | ||
400 | 400 | ||
401 | 401 | @Callable(bl) | |
402 | 402 | func stakeFor (r) = bk(bl, r) | |
403 | 403 | ||
404 | 404 | ||
405 | 405 | ||
406 | 406 | @Callable(bl) | |
407 | 407 | func withdraw (bx) = { | |
408 | 408 | let r = toString(bl.caller) | |
409 | 409 | let bi = bf(r) | |
410 | 410 | let bF = bd(bx) | |
411 | 411 | let bG = bh(r) | |
412 | 412 | let bH = toInt(fraction(aT(), toBigInt(1), e, CEILING)) | |
413 | 413 | let bw = [if ((bx > 0)) | |
414 | 414 | then true | |
415 | 415 | else h("withdraw amount should be more than 0"), if ((bG >= bx)) | |
416 | 416 | then true | |
417 | 417 | else h((("cannot withdraw more than available (" + toString(bG)) + ")")), if ((bx >= bH)) | |
418 | 418 | then true | |
419 | 419 | else h((("withdraw amount is too small. Min: (" + toString(bH)) + ")"))] | |
420 | 420 | if ((bw == bw)) | |
421 | 421 | then bu(bl, min([bi, (bF + 1)])) | |
422 | 422 | else throw("Strict value is not equal to itself.") | |
423 | 423 | } | |
424 | 424 | ||
425 | 425 | ||
426 | 426 | ||
427 | 427 | @Callable(bl) | |
428 | 428 | func setStakingNode (bC) = { | |
429 | 429 | let r = toString(bl.caller) | |
430 | 430 | bB(r, bC, 100) | |
431 | 431 | } | |
432 | 432 | ||
433 | 433 | ||
434 | 434 | ||
435 | 435 | @Callable(bl) | |
436 | 436 | func stakeAndSetStakingNode (bC) = { | |
437 | 437 | let r = toString(bl.caller) | |
438 | 438 | (bk(bl, r) ++ bB(r, bC, 100)) | |
439 | 439 | } | |
440 | 440 | ||
441 | 441 | ||
442 | 442 | ||
443 | 443 | @Callable(bl) | |
444 | 444 | func stakeForSwapHELPER (r,bC) = { | |
445 | 445 | let bw = [if ((toString(bl.originCaller) == r)) | |
446 | 446 | then true | |
447 | 447 | else h("i.originCaller should be equal to userAddress")] | |
448 | 448 | if ((bw == bw)) | |
449 | 449 | then { | |
450 | 450 | let bI = if ((bC == "")) | |
451 | 451 | then nil | |
452 | 452 | else bB(r, bC, 100) | |
453 | 453 | (bk(bl, r) ++ bI) | |
454 | 454 | } | |
455 | 455 | else throw("Strict value is not equal to itself.") | |
456 | 456 | } | |
457 | 457 | ||
458 | 458 | ||
459 | 459 | ||
460 | 460 | @Callable(bl) | |
461 | 461 | func airdrop (bJ,bK) = { | |
462 | - | func bL (bM,bN) = (bM + bN) | |
462 | + | func bL (bM,bN) = if ((0 > bN)) | |
463 | + | then h("negative amount value in amountList") | |
464 | + | else (bM + bN) | |
463 | 465 | ||
464 | 466 | let bO = { | |
465 | 467 | let ak = bK | |
466 | 468 | let al = size(ak) | |
467 | 469 | let am = 0 | |
468 | 470 | func an (ao,ap) = if ((ap >= al)) | |
469 | 471 | then ao | |
470 | 472 | else bL(ao, ak[ap]) | |
471 | 473 | ||
472 | 474 | func aq (ao,ap) = if ((ap >= al)) | |
473 | 475 | then ao | |
474 | 476 | else throw("List size exceeds 90") | |
475 | 477 | ||
476 | 478 | aq(an(an(an(an(an(an(an(an(an(an(an(an(an(an(an(an(an(an(an(an(an(an(an(an(an(an(an(an(an(an(an(an(an(an(an(an(an(an(an(an(an(an(an(an(an(an(an(an(an(an(an(an(an(an(an(an(an(an(an(an(an(an(an(an(an(an(an(an(an(an(an(an(an(an(an(an(an(an(an(an(an(an(an(an(an(an(an(an(an(an(am, 0), 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) | |
477 | 479 | } | |
478 | 480 | let bw = [if ((size(bl.payments) == 1)) | |
479 | 481 | then true | |
480 | 482 | else h("should include 1 payment"), if ((bl.payments[0].assetId == H)) | |
481 | 483 | then true | |
482 | 484 | else h(("payment should be in " + G)), if ((bl.payments[0].amount > 0)) | |
483 | 485 | then true | |
484 | 486 | else "payment amount should be greater than 0", if ((size(bJ) == size(bK))) | |
485 | 487 | then true | |
486 | 488 | else h("addressList should be same size as amountList"), if ((bl.payments[0].amount >= bO)) | |
487 | 489 | then true | |
488 | 490 | else h("payment amount is less than sum of amountList")] | |
489 | 491 | if ((bw == bw)) | |
490 | 492 | then { | |
491 | 493 | func bP (bM,be) = { | |
492 | 494 | let bQ = bM | |
493 | 495 | let af = bQ._1 | |
494 | 496 | let bR = bQ._2 | |
495 | 497 | let bS = bQ._3 | |
496 | - | let bT = bd(be) | |
497 | - | let bU = s(bJ[bR]) | |
498 | - | let bV = valueOrElse(getInteger(this, bU), 0) | |
499 | - | $Tuple3((af :+ IntegerEntry(bU, (bV + bT))), (bR + 1), (bS + bT)) | |
498 | + | let bT = bQ._4 | |
499 | + | let bU = bJ[bR] | |
500 | + | let ab = { | |
501 | + | let Y = addressFromString(bU) | |
502 | + | if ($isInstanceOf(Y, "Address")) | |
503 | + | then { | |
504 | + | let bV = Y | |
505 | + | bV | |
506 | + | } | |
507 | + | else h("invalid address in addressList") | |
508 | + | } | |
509 | + | let bW = [if (!(containsElement(bT, ab))) | |
510 | + | then true | |
511 | + | else h("duplicate address is addressList")] | |
512 | + | if ((bW == bW)) | |
513 | + | then { | |
514 | + | let bX = bd(be) | |
515 | + | let bY = s(bU) | |
516 | + | let bZ = valueOrElse(getInteger(this, bY), 0) | |
517 | + | $Tuple4((af :+ IntegerEntry(bY, (bZ + bX))), (bR + 1), (bS + bX), (bT :+ ab)) | |
518 | + | } | |
519 | + | else throw("Strict value is not equal to itself.") | |
500 | 520 | } | |
501 | 521 | ||
502 | - | let | |
522 | + | let ca = { | |
503 | 523 | let ak = bK | |
504 | 524 | let al = size(ak) | |
505 | - | let am = $ | |
506 | - | func | |
525 | + | let am = $Tuple4(nil, 0, 0, nil) | |
526 | + | func cb (ao,ap) = if ((ap >= al)) | |
507 | 527 | then ao | |
508 | 528 | else bP(ao, ak[ap]) | |
509 | 529 | ||
510 | - | func | |
530 | + | func cc (ao,ap) = if ((ap >= al)) | |
511 | 531 | then ao | |
512 | 532 | else throw("List size exceeds 90") | |
513 | 533 | ||
514 | - | | |
534 | + | cc(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(am, 0), 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) | |
515 | 535 | } | |
516 | - | let bZ = bW._1 | |
517 | - | let ca = bW._2 | |
518 | - | let cb = bW._3 | |
519 | - | let cc = bb((E + cb)) | |
520 | - | ([IntegerEntry(p, (F + cb)), IntegerEntry(n, (E + cb)), IntegerEntry(o, cc), IntegerEntry(m, height)] ++ bZ) | |
536 | + | let cd = ca._1 | |
537 | + | let ce = ca._2 | |
538 | + | let cf = ca._3 | |
539 | + | let cg = ca._4 | |
540 | + | let ch = bb((E + cf)) | |
541 | + | ([IntegerEntry(p, (F + cf)), IntegerEntry(n, (E + cf)), IntegerEntry(o, ch), IntegerEntry(m, height)] ++ cd) | |
521 | 542 | } | |
522 | 543 | else throw("Strict value is not equal to itself.") | |
523 | 544 | } | |
524 | 545 | ||
525 | 546 | ||
526 | 547 | ||
527 | 548 | @Callable(bl) | |
528 | 549 | func getUserAssetsREADONLY (r) = { | |
529 | 550 | let bi = bf(r) | |
530 | - | let | |
531 | - | let | |
551 | + | let ci = bg(r) | |
552 | + | let cj = bb(ci) | |
532 | 553 | let bG = bh(r) | |
533 | 554 | let bp = valueOrElse(getInteger(this, w(r)), 0) | |
534 | 555 | let by = valueOrElse(getInteger(this, v(r)), 0) | |
535 | - | let | |
536 | - | let | |
537 | - | let | |
538 | - | $Tuple2(nil, $Tuple10(bi, bG, aT(), bp, by, | |
556 | + | let ck = aV(r) | |
557 | + | let cl = ck._1 | |
558 | + | let cm = ck._2 | |
559 | + | $Tuple2(nil, $Tuple10(bi, bG, aT(), bp, by, ci, cj, cl, cm, aU())) | |
539 | 560 | } | |
540 | 561 | ||
541 | 562 | ||
542 | 563 | ||
543 | 564 | @Callable(bl) | |
544 | 565 | func getTotalAssetsREADONLY () = $Tuple2(nil, $Tuple6(E, aQ(), aT(), F, bb(F), aU())) | |
545 | 566 | ||
546 | 567 | ||
547 | 568 | ||
548 | 569 | @Callable(bl) | |
549 | 570 | func voteForTxId (z) = { | |
550 | 571 | let ay = toBase58String(bl.caller.bytes) | |
551 | 572 | let ah = O(z) | |
552 | 573 | let af = [StringEntry(T(), z)] | |
553 | - | let | |
574 | + | let cn = getString(this, T()) | |
554 | 575 | let aC = [if ((size(fromBase58String(z)) == N)) | |
555 | 576 | then true | |
556 | - | else h((z + " is not valid txId")), if (if (( | |
577 | + | else h((z + " is not valid txId")), if (if ((cn == unit)) | |
557 | 578 | then true | |
558 | - | else (value( | |
579 | + | else (value(cn) != z)) | |
559 | 580 | then true | |
560 | 581 | else h((z + " is already allowed"))] | |
561 | 582 | if ((aC == aC)) | |
562 | 583 | then ax(ay, ah, M, af) | |
563 | 584 | else throw("Strict value is not equal to itself.") | |
564 | 585 | } | |
565 | 586 | ||
566 | 587 | ||
567 | - | @Verifier( | |
568 | - | func | |
569 | - | let | |
570 | - | let | |
588 | + | @Verifier(co) | |
589 | + | func cp () = { | |
590 | + | let cq = (co.id == fromBase58String(valueOrElse(getString(this, T()), ""))) | |
591 | + | let cr = if ((size(X()) >= M)) | |
571 | 592 | then false | |
572 | - | else sigVerify( | |
573 | - | if ( | |
593 | + | else sigVerify(co.bodyBytes, co.proofs[0], co.senderPublicKey) | |
594 | + | if (cq) | |
574 | 595 | then true | |
575 | - | else | |
596 | + | else cr | |
576 | 597 | } | |
577 | 598 |
github/deemru/w8io/169f3d6 148.68 ms ◑