tx · DH269kvVhknyaHD8irPkUJFpmN7AL2HoXCJizucjFngr 3MuGfNhF98CNBCfthhoJEo6SYUv7zTgkK4J: -0.01400000 Waves 2022.03.22 12:31 [1974953] smart account 3MuGfNhF98CNBCfthhoJEo6SYUv7zTgkK4J > SELF 0.00000000 Waves
{ "type": 13, "id": "DH269kvVhknyaHD8irPkUJFpmN7AL2HoXCJizucjFngr", "fee": 1400000, "feeAssetId": null, "timestamp": 1647941483651, "version": 1, "sender": "3MuGfNhF98CNBCfthhoJEo6SYUv7zTgkK4J", "senderPublicKey": "4DthuG3xjZV9WtZ34Y66AummdAr67wRzwWsVQL4y2bob", "proofs": [ "4DEUmyL55MQTv9532bPdmiDMQ4p3Lv1qsRExQuoFysgLSa8k5m5nU7xnEg1iP4Xu176i8cCwgUaE52qJdsisBYbZ" ], "script": "base64:AAIFAAAAAAAAACAIAhIHCgUICAEBCBIAEgMKAQESABIAEgMKAQgSAwoBCAAAADEAAAAACXNlcGFyYXRvcgIAAAACX18AAAAABU1VTFQ2AAAAAAAAD0JAAAAAAAVNVUxUOAAAAAAABfXhAAAAAAAGTVVMVFg2CQABNgAAAAEFAAAABU1VTFQ2AAAAAAZNVUxUWDgJAAE2AAAAAQUAAAAFTVVMVDgAAAAAB01VTFRYMTgJAAE2AAAAAQAN4Lazp2QAAAAAAAAKV0FWRVNJRFNUUgIAAAAFV0FWRVMAAAAAB1dBVkVTSUQJAAJZAAAAAQUAAAAKV0FWRVNJRFNUUgEAAAAMa2V5Qm9uZEFzc2V0AAAAAAIAAAANYm9uZF9hc3NldF9pZAEAAAAZa2V5QXVjdGlvbkNvbnRyYWN0QWRkcmVzcwAAAAACAAAAEGF1Y3Rpb25fY29udHJhY3QBAAAAGmtleU5ldXRyaW5vQ29udHJhY3RBZGRyZXNzAAAAAAIAAAAbJXNfX25ldXRyaW5vQ29udHJhY3RBZGRyZXNzAQAAABZrZXlNYXRoQ29udHJhY3RBZGRyZXNzAAAAAAIAAAAQJXNfX21hdGhDb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RhbEFtb3VudAAAAAAAAAAAAAAAAAADCQAAAAAAAAIFAAAADnVzZXJBZGRyZXNzU3RyAgAAAAAJAAUUAAAAAgUAAAADbmlsCQAETAAAAAIAAAAAAAAAAAAJAARMAAAAAgUAAAAMdG90YWxOc2J0QW10CQAETAAAAAIAAAAAAAAAAAAFAAAAA25pbAQAAAALdXNlckFkZHJlc3MJAQAAAA90b0FkZHJlc3NPckZhaWwAAAABBQAAAA51c2VyQWRkcmVzc1N0cgQAAAANJHQwMTgwNjQxODE2OAkBAAAAC3ZhbHVlT3JFbHNlAAAAAgkBAAAAE2dldFVzZXJQYXJhbXNPclVuaXQAAAABBQAAAAt1c2VyQWRkcmVzcwkABRUAAAADBgAAAAAAAAAAAAAAAAAAAAAAAAQAAAAJaXNOZXdVc2VyCAUAAAANJHQwMTgwNjQxODE2OAAAAAJfMQQAAAALdXNlck5zYnRBbXQIBQAAAA0kdDAxODA2NDE4MTY4AAAAAl8yBAAAAAxzdGFraW5nU3RhcnQIBQAAAA0kdDAxODA2NDE4MTY4AAAAAl8zCQAFFAAAAAIFAAAAA25pbAkABEwAAAACBQAAAAt1c2VyTnNidEFtdAkABEwAAAACBQAAAAx0b3RhbE5zYnRBbXQJAARMAAAAAgUAAAAMc3Rha2luZ1N0YXJ0BQAAAANuaWwAAAAA8GNO4w==", "chainId": 84, "height": 1974953, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: EQWgVZuHMZ1EUuDmVr2NRCT7Cqmms6aufdYXKUSsBMSe Next: Fz8XGheAiqPy5iQSzyAZibArWH7mqsxfC91NZ4Xy29vc Diff:
Old | New | Differences | |
---|---|---|---|
267 | 267 | let bw = bv._1 | |
268 | 268 | let bx = bv._2 | |
269 | 269 | let by = bv._3 | |
270 | - | let aA = L(z(), -1) | |
271 | - | ((([ad("stake", p, bd.transactionId, bq, br, bs, bt)] ++ am(p, bs, bt)) ++ bw) :+ IntegerEntry(A(bo), L(z(), -1))) | |
270 | + | ((([ad("stake", p, bd.transactionId, bq, br, bs, bt)] ++ aH(aI, bo, bq)) ++ am(p, bs, bt)) ++ bw) | |
272 | 271 | } | |
273 | 272 | } | |
274 | 273 | } | |
277 | 276 | ||
278 | 277 | ||
279 | 278 | @Callable(bd) | |
280 | - | func unstake (an) = { | |
281 | - | let p = bd.caller | |
282 | - | let bo = toString(p) | |
283 | - | let bz = ap() | |
284 | - | let bA = bz._1 | |
285 | - | let bl = bz._2 | |
286 | - | let bg = bz._3 | |
287 | - | let bh = bz._4 | |
288 | - | let bB = at(p) | |
289 | - | let aI = bB._1 | |
290 | - | let bq = bB._2 | |
291 | - | let bC = bB._3 | |
292 | - | if ((0 >= bq)) | |
293 | - | then throw("Nothing to unstake") | |
294 | - | else if ((an > bq)) | |
295 | - | then throw(((("Requested " + toString(an)) + ", but staked only ") + toString(bq))) | |
296 | - | else { | |
297 | - | let bu = addressFromStringValue(P(l())) | |
298 | - | let bD = U(invoke(bu, "getUnstakeComissionAmountREADONLY", [an, bC, bh], nil)) | |
299 | - | let bE = ae(-(an), if ((an == bq)) | |
300 | - | then -1 | |
301 | - | else 0, if ((an == bq)) | |
302 | - | then -1 | |
303 | - | else 0) | |
304 | - | let bw = bE._1 | |
305 | - | let bx = bE._2 | |
306 | - | let by = bE._3 | |
307 | - | ((([ScriptTransfer(p, (an - bD), bl), ScriptTransfer(Address(bA), bD, bl), ad("unstake", p, bd.transactionId, bq, bC, (bq - an), bC)] ++ aH(false, bo, bq)) ++ am(p, (bq - an), bC)) ++ bw) | |
308 | - | } | |
309 | - | } | |
279 | + | func unstake (an) = if ((size(bd.payments) != 0)) | |
280 | + | then throw("unstake doesn't require any payment") | |
281 | + | else { | |
282 | + | let p = bd.caller | |
283 | + | let bo = toString(p) | |
284 | + | let bz = ap() | |
285 | + | let bA = bz._1 | |
286 | + | let bl = bz._2 | |
287 | + | let bg = bz._3 | |
288 | + | let bh = bz._4 | |
289 | + | let bB = at(p) | |
290 | + | let aI = bB._1 | |
291 | + | let bq = bB._2 | |
292 | + | let bC = bB._3 | |
293 | + | if ((0 >= bq)) | |
294 | + | then throw("Nothing to unstake") | |
295 | + | else if ((an > bq)) | |
296 | + | then throw(((("Requested " + toString(an)) + ", but staked only ") + toString(bq))) | |
297 | + | else { | |
298 | + | let bu = addressFromStringValue(P(l())) | |
299 | + | let bD = U(invoke(bu, "getUnstakeComissionAmountREADONLY", [an, bC, bh], nil)) | |
300 | + | let bE = ae(-(an), if ((an == bq)) | |
301 | + | then -1 | |
302 | + | else 0, if ((an == bq)) | |
303 | + | then -1 | |
304 | + | else 0) | |
305 | + | let bw = bE._1 | |
306 | + | let bx = bE._2 | |
307 | + | let by = bE._3 | |
308 | + | ((([ScriptTransfer(p, (an - bD), bl), ScriptTransfer(Address(bA), bD, bl), ad("unstake", p, bd.transactionId, bq, bC, (bq - an), bC)] ++ aH(false, bo, bq)) ++ am(p, (bq - an), bC)) ++ bw) | |
309 | + | } | |
310 | + | } | |
310 | 311 | ||
311 | 312 | ||
312 | 313 | ||
368 | 369 | func claimRewards () = { | |
369 | 370 | let p = bd.caller | |
370 | 371 | let bo = toString(p) | |
371 | - | let bS = valueOrElse(as(p), $Tuple3(true, 0, 0)) | |
372 | - | let aI = bS._1 | |
373 | - | let aJ = bS._2 | |
374 | - | let bT = bS._3 | |
375 | - | let ay = toBigInt(aJ) | |
376 | - | let aK = A(bo) | |
377 | - | let az = L(aK, -1) | |
378 | - | let aA = L(z(), -1) | |
379 | - | func bU (aM,aN) = { | |
380 | - | let bV = aw(bo, aN, ay, az, aA) | |
381 | - | let aP = bV._1 | |
382 | - | let aQ = bV._2 | |
383 | - | let aR = bV._3 | |
384 | - | let aF = bV._4 | |
385 | - | if ((0 >= aP)) | |
386 | - | then aM | |
387 | - | else ((aM :+ ScriptTransfer(p, aP, S(aN))) :+ IntegerEntry(aF, 0)) | |
388 | - | } | |
372 | + | if ((size(bd.payments) > 0)) | |
373 | + | then throw("payments are not accepted") | |
374 | + | else { | |
375 | + | let bS = valueOrElse(as(p), $Tuple3(true, 0, 0)) | |
376 | + | let aI = bS._1 | |
377 | + | let aJ = bS._2 | |
378 | + | let bT = bS._3 | |
379 | + | let ay = toBigInt(aJ) | |
380 | + | let aK = A(bo) | |
381 | + | let az = L(aK, -1) | |
382 | + | let aA = L(z(), -1) | |
383 | + | func bU (aM,aN) = { | |
384 | + | let bV = aw(bo, aN, ay, az, aA) | |
385 | + | let aP = bV._1 | |
386 | + | let aQ = bV._2 | |
387 | + | let aR = bV._3 | |
388 | + | let aF = bV._4 | |
389 | + | if ((0 >= aP)) | |
390 | + | then aM | |
391 | + | else ((aM :+ ScriptTransfer(p, aP, S(aN))) :+ IntegerEntry(aF, 0)) | |
392 | + | } | |
389 | 393 | ||
390 | - | let bW = { | |
391 | - | let aS = av | |
392 | - | let aT = size(aS) | |
393 | - | let aU = nil | |
394 | - | func aV (aW,aX) = if ((aX >= aT)) | |
395 | - | then aW | |
396 | - | else bU(aW, aS[aX]) | |
394 | + | let bW = { | |
395 | + | let aS = av | |
396 | + | let aT = size(aS) | |
397 | + | let aU = nil | |
398 | + | func aV (aW,aX) = if ((aX >= aT)) | |
399 | + | then aW | |
400 | + | else bU(aW, aS[aX]) | |
397 | 401 | ||
398 | - | func aY (aW,aX) = if ((aX >= aT)) | |
399 | - | then aW | |
400 | - | else throw("List size exceeds 10") | |
402 | + | func aY (aW,aX) = if ((aX >= aT)) | |
403 | + | then aW | |
404 | + | else throw("List size exceeds 10") | |
401 | 405 | ||
402 | - | aY(aV(aV(aV(aV(aV(aV(aV(aV(aV(aV(aU, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
403 | - | } | |
404 | - | if ((0 >= size(bW))) | |
405 | - | then throw("nothing to claim") | |
406 | - | else bW | |
406 | + | aY(aV(aV(aV(aV(aV(aV(aV(aV(aV(aV(aU, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
407 | + | } | |
408 | + | if ((0 >= size(bW))) | |
409 | + | then throw("nothing to claim") | |
410 | + | else (bW :+ IntegerEntry(aK, aA)) | |
411 | + | } | |
407 | 412 | } | |
408 | 413 | ||
409 | 414 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "__" | |
5 | 5 | ||
6 | 6 | let b = 1000000 | |
7 | 7 | ||
8 | 8 | let c = 100000000 | |
9 | 9 | ||
10 | 10 | let d = toBigInt(b) | |
11 | 11 | ||
12 | 12 | let e = toBigInt(c) | |
13 | 13 | ||
14 | 14 | let f = toBigInt(1000000000000000000) | |
15 | 15 | ||
16 | 16 | let g = "WAVES" | |
17 | 17 | ||
18 | 18 | let h = fromBase58String(g) | |
19 | 19 | ||
20 | 20 | func i () = "bond_asset_id" | |
21 | 21 | ||
22 | 22 | ||
23 | 23 | func j () = "auction_contract" | |
24 | 24 | ||
25 | 25 | ||
26 | 26 | func k () = "%s__neutrinoContractAddress" | |
27 | 27 | ||
28 | 28 | ||
29 | 29 | func l () = "%s__mathContract" | |
30 | 30 | ||
31 | 31 | ||
32 | 32 | func m () = "%s__minLockAmount" | |
33 | 33 | ||
34 | 34 | ||
35 | 35 | func n () = "%s__halfLife" | |
36 | 36 | ||
37 | 37 | ||
38 | 38 | func o (p) = makeString(["%s%s%s", "paramByUser", toString(p), "amount"], a) | |
39 | 39 | ||
40 | 40 | ||
41 | 41 | func q (p) = makeString(["%s%s%s", "paramByUser", toString(p), "start"], a) | |
42 | 42 | ||
43 | 43 | ||
44 | 44 | func r (s,p,t) = makeString(["%s%s%s%s", "history", s, toString(p), toBase58String(t)], a) | |
45 | 45 | ||
46 | 46 | ||
47 | 47 | func u () = makeString(["%s%s", "stats", "activeTotalLocked"], a) | |
48 | 48 | ||
49 | 49 | ||
50 | 50 | func v () = makeString(["%s%s", "stats", "locksCount"], a) | |
51 | 51 | ||
52 | 52 | ||
53 | 53 | func w () = makeString(["%s%s", "stats", "activeUsersCount"], a) | |
54 | 54 | ||
55 | 55 | ||
56 | 56 | func x () = "%s__nextPeriod" | |
57 | 57 | ||
58 | 58 | ||
59 | 59 | func y () = "supportedRewardAssets" | |
60 | 60 | ||
61 | 61 | ||
62 | 62 | func z () = makeString(["%s%s%s", "dep", "lastNum"], a) | |
63 | 63 | ||
64 | 64 | ||
65 | 65 | func A (p) = makeString(["%s%s%s", "userRwdFromDepNum", p], a) | |
66 | 66 | ||
67 | 67 | ||
68 | 68 | func B (C,D) = makeString(["%s%d", "rwdPerNsbtSumByDepNum", toString(C), D], a) | |
69 | 69 | ||
70 | 70 | ||
71 | 71 | func E (p,D) = makeString(["%s%s%s", "rwd", p, D], a) | |
72 | 72 | ||
73 | 73 | ||
74 | 74 | func F (D) = makeString(["%s%s", "notDistributed", D], a) | |
75 | 75 | ||
76 | 76 | ||
77 | 77 | func G (H,I) = fraction(toBigInt(H), f, I) | |
78 | 78 | ||
79 | 79 | ||
80 | 80 | func J (K) = valueOrElse(getInteger(this, K), 0) | |
81 | 81 | ||
82 | 82 | ||
83 | 83 | func L (K,M) = valueOrElse(getInteger(this, K), M) | |
84 | 84 | ||
85 | 85 | ||
86 | 86 | func N (K) = valueOrErrorMessage(getInteger(this, K), (("Mandatory this." + K) + " is not defined")) | |
87 | 87 | ||
88 | 88 | ||
89 | 89 | func O (K,M) = valueOrElse(getString(this, K), M) | |
90 | 90 | ||
91 | 91 | ||
92 | 92 | func P (K) = valueOrErrorMessage(getString(this, K), (("Mandatory this." + K) + " is not defined")) | |
93 | 93 | ||
94 | 94 | ||
95 | 95 | func Q (R) = valueOrErrorMessage(addressFromString(R), ("couldn't parse passed addressStr=" + R)) | |
96 | 96 | ||
97 | 97 | ||
98 | 98 | func S (T) = if ((T == g)) | |
99 | 99 | then unit | |
100 | 100 | else fromBase58String(T) | |
101 | 101 | ||
102 | 102 | ||
103 | 103 | func U (V) = { | |
104 | 104 | let W = V | |
105 | 105 | if ($isInstanceOf(W, "Int")) | |
106 | 106 | then { | |
107 | 107 | let X = W | |
108 | 108 | X | |
109 | 109 | } | |
110 | 110 | else throw("fail to cast into Int") | |
111 | 111 | } | |
112 | 112 | ||
113 | 113 | ||
114 | 114 | func Y (Z,aa,ab,ac) = makeString(["%d%d%d%d%d%d", toString(lastBlock.height), toString(lastBlock.timestamp), toString(Z), toString(aa), toString(ab), toString(ac)], a) | |
115 | 115 | ||
116 | 116 | ||
117 | 117 | func ad (s,p,t,Z,aa,ab,ac) = StringEntry(r(s, p, t), Y(Z, aa, ab, ac)) | |
118 | 118 | ||
119 | 119 | ||
120 | 120 | func ae (af,ag,ah) = { | |
121 | 121 | let ai = J(v()) | |
122 | 122 | let aj = J(w()) | |
123 | 123 | let ak = J(u()) | |
124 | 124 | let al = (ak + af) | |
125 | 125 | $Tuple3([IntegerEntry(v(), (ai + ag)), IntegerEntry(w(), (aj + ah)), IntegerEntry(u(), al)], ak, al) | |
126 | 126 | } | |
127 | 127 | ||
128 | 128 | ||
129 | 129 | func am (p,an,ao) = [IntegerEntry(o(p), an), IntegerEntry(q(p), ao)] | |
130 | 130 | ||
131 | 131 | ||
132 | 132 | func ap () = { | |
133 | 133 | let aq = addressFromStringValue(P(k())) | |
134 | 134 | $Tuple4(fromBase58String(getStringValue(aq, j())), fromBase58String(getStringValue(aq, i())), N(m()), N(n())) | |
135 | 135 | } | |
136 | 136 | ||
137 | 137 | ||
138 | 138 | func ar (p) = (L(o(p), 0) > 0) | |
139 | 139 | ||
140 | 140 | ||
141 | 141 | func as (p) = if (ar(p)) | |
142 | 142 | then $Tuple3(false, N(o(p)), N(q(p))) | |
143 | 143 | else unit | |
144 | 144 | ||
145 | 145 | ||
146 | 146 | func at (p) = valueOrErrorMessage(as(p), (("User " + toString(p)) + " is not defined")) | |
147 | 147 | ||
148 | 148 | ||
149 | 149 | let au = O(y(), "") | |
150 | 150 | ||
151 | 151 | let av = split(au, "_") | |
152 | 152 | ||
153 | 153 | func aw (p,ax,ay,az,aA) = { | |
154 | 154 | let aB = B(aA, ax) | |
155 | 155 | let aC = parseBigIntValue(O(B(aA, ax), "0")) | |
156 | 156 | let aD = parseBigIntValue(O(B(az, ax), "0")) | |
157 | 157 | let aE = toInt(fraction((aC - aD), ay, f)) | |
158 | 158 | let aF = E(p, ax) | |
159 | 159 | let aG = L(aF, 0) | |
160 | 160 | $Tuple4((aG + aE), aG, aE, aF) | |
161 | 161 | } | |
162 | 162 | ||
163 | 163 | ||
164 | 164 | func aH (aI,p,aJ) = { | |
165 | 165 | let ay = toBigInt(aJ) | |
166 | 166 | let aK = A(p) | |
167 | 167 | let az = L(aK, -1) | |
168 | 168 | let aA = L(z(), -1) | |
169 | 169 | func aL (aM,aN) = { | |
170 | 170 | let aO = aw(p, aN, ay, az, aA) | |
171 | 171 | let aP = aO._1 | |
172 | 172 | let aQ = aO._2 | |
173 | 173 | let aR = aO._3 | |
174 | 174 | let aF = aO._4 | |
175 | 175 | (aM :+ IntegerEntry(aF, aP)) | |
176 | 176 | } | |
177 | 177 | ||
178 | 178 | if (if ((aA == -1)) | |
179 | 179 | then (az == -1) | |
180 | 180 | else false) | |
181 | 181 | then nil | |
182 | 182 | else if (if ((aA == -1)) | |
183 | 183 | then (az > -1) | |
184 | 184 | else false) | |
185 | 185 | then throw("invalid depositNumLast and depositNumUser state") | |
186 | 186 | else if (if ((aA > -1)) | |
187 | 187 | then (az == -1) | |
188 | 188 | else false) | |
189 | 189 | then if (aI) | |
190 | 190 | then [IntegerEntry(aK, aA)] | |
191 | 191 | else throw("isNewUser must not be false in 5 + 6 cases") | |
192 | 192 | else if (if ((aA > -1)) | |
193 | 193 | then (az > -1) | |
194 | 194 | else false) | |
195 | 195 | then if (aI) | |
196 | 196 | then throw((((("invalid management for isNewUser=" + toString(aI)) + " and depositNumUser=") + toString(az)) + " during full unstake")) | |
197 | 197 | else ({ | |
198 | 198 | let aS = av | |
199 | 199 | let aT = size(aS) | |
200 | 200 | let aU = nil | |
201 | 201 | func aV (aW,aX) = if ((aX >= aT)) | |
202 | 202 | then aW | |
203 | 203 | else aL(aW, aS[aX]) | |
204 | 204 | ||
205 | 205 | func aY (aW,aX) = if ((aX >= aT)) | |
206 | 206 | then aW | |
207 | 207 | else throw("List size exceeds 10") | |
208 | 208 | ||
209 | 209 | aY(aV(aV(aV(aV(aV(aV(aV(aV(aV(aV(aU, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
210 | 210 | } :+ IntegerEntry(aK, aA)) | |
211 | 211 | else throw(((("uncovered condition: depositNumLast=" + toString(aA)) + " depositNumUser=") + toString(az))) | |
212 | 212 | } | |
213 | 213 | ||
214 | 214 | ||
215 | 215 | func aZ (D,ba) = { | |
216 | 216 | let bb = F(D) | |
217 | 217 | let bc = L(bb, 0) | |
218 | 218 | [IntegerEntry(bb, (bc + ba))] | |
219 | 219 | } | |
220 | 220 | ||
221 | 221 | ||
222 | 222 | @Callable(bd) | |
223 | 223 | func constructor (be,bf,bg,bh,bi) = if ((bd.caller != this)) | |
224 | 224 | then throw("Permission denied") | |
225 | 225 | else [StringEntry(k(), be), StringEntry(l(), bf), IntegerEntry(m(), bg), IntegerEntry(n(), bh), StringEntry(y(), bi)] | |
226 | 226 | ||
227 | 227 | ||
228 | 228 | ||
229 | 229 | @Callable(bd) | |
230 | 230 | func stake () = { | |
231 | 231 | let bj = ap() | |
232 | 232 | let bk = bj._1 | |
233 | 233 | let bl = bj._2 | |
234 | 234 | let bg = bj._3 | |
235 | 235 | let bh = bj._4 | |
236 | 236 | if ((size(bd.payments) != 1)) | |
237 | 237 | then throw("Invalid payments size") | |
238 | 238 | else { | |
239 | 239 | let bm = bd.payments[0] | |
240 | 240 | let an = bm.amount | |
241 | 241 | let bn = (("Invalid asset. " + toBase58String(bl)) + " is expected") | |
242 | 242 | let ax = valueOrErrorMessage(bm.assetId, bn) | |
243 | 243 | if ((ax != bl)) | |
244 | 244 | then throw(bn) | |
245 | 245 | else { | |
246 | 246 | let p = bd.caller | |
247 | 247 | let bo = toString(bd.caller) | |
248 | 248 | let bp = valueOrElse(as(p), $Tuple3(true, 0, -1)) | |
249 | 249 | let aI = bp._1 | |
250 | 250 | let bq = bp._2 | |
251 | 251 | let br = bp._3 | |
252 | 252 | let bs = if (aI) | |
253 | 253 | then an | |
254 | 254 | else (an + bq) | |
255 | 255 | let bt = if (aI) | |
256 | 256 | then height | |
257 | 257 | else { | |
258 | 258 | let bu = addressFromStringValue(P(l())) | |
259 | 259 | U(invoke(bu, "mergeStakesREADONLY", [an, height, bq, br, bh], nil)) | |
260 | 260 | } | |
261 | 261 | if ((bg > bs)) | |
262 | 262 | then throw(("Min lock amount is " + toString(bg))) | |
263 | 263 | else { | |
264 | 264 | let bv = ae(an, 1, if (aI) | |
265 | 265 | then 1 | |
266 | 266 | else 0) | |
267 | 267 | let bw = bv._1 | |
268 | 268 | let bx = bv._2 | |
269 | 269 | let by = bv._3 | |
270 | - | let aA = L(z(), -1) | |
271 | - | ((([ad("stake", p, bd.transactionId, bq, br, bs, bt)] ++ am(p, bs, bt)) ++ bw) :+ IntegerEntry(A(bo), L(z(), -1))) | |
270 | + | ((([ad("stake", p, bd.transactionId, bq, br, bs, bt)] ++ aH(aI, bo, bq)) ++ am(p, bs, bt)) ++ bw) | |
272 | 271 | } | |
273 | 272 | } | |
274 | 273 | } | |
275 | 274 | } | |
276 | 275 | ||
277 | 276 | ||
278 | 277 | ||
279 | 278 | @Callable(bd) | |
280 | - | func unstake (an) = { | |
281 | - | let p = bd.caller | |
282 | - | let bo = toString(p) | |
283 | - | let bz = ap() | |
284 | - | let bA = bz._1 | |
285 | - | let bl = bz._2 | |
286 | - | let bg = bz._3 | |
287 | - | let bh = bz._4 | |
288 | - | let bB = at(p) | |
289 | - | let aI = bB._1 | |
290 | - | let bq = bB._2 | |
291 | - | let bC = bB._3 | |
292 | - | if ((0 >= bq)) | |
293 | - | then throw("Nothing to unstake") | |
294 | - | else if ((an > bq)) | |
295 | - | then throw(((("Requested " + toString(an)) + ", but staked only ") + toString(bq))) | |
296 | - | else { | |
297 | - | let bu = addressFromStringValue(P(l())) | |
298 | - | let bD = U(invoke(bu, "getUnstakeComissionAmountREADONLY", [an, bC, bh], nil)) | |
299 | - | let bE = ae(-(an), if ((an == bq)) | |
300 | - | then -1 | |
301 | - | else 0, if ((an == bq)) | |
302 | - | then -1 | |
303 | - | else 0) | |
304 | - | let bw = bE._1 | |
305 | - | let bx = bE._2 | |
306 | - | let by = bE._3 | |
307 | - | ((([ScriptTransfer(p, (an - bD), bl), ScriptTransfer(Address(bA), bD, bl), ad("unstake", p, bd.transactionId, bq, bC, (bq - an), bC)] ++ aH(false, bo, bq)) ++ am(p, (bq - an), bC)) ++ bw) | |
308 | - | } | |
309 | - | } | |
279 | + | func unstake (an) = if ((size(bd.payments) != 0)) | |
280 | + | then throw("unstake doesn't require any payment") | |
281 | + | else { | |
282 | + | let p = bd.caller | |
283 | + | let bo = toString(p) | |
284 | + | let bz = ap() | |
285 | + | let bA = bz._1 | |
286 | + | let bl = bz._2 | |
287 | + | let bg = bz._3 | |
288 | + | let bh = bz._4 | |
289 | + | let bB = at(p) | |
290 | + | let aI = bB._1 | |
291 | + | let bq = bB._2 | |
292 | + | let bC = bB._3 | |
293 | + | if ((0 >= bq)) | |
294 | + | then throw("Nothing to unstake") | |
295 | + | else if ((an > bq)) | |
296 | + | then throw(((("Requested " + toString(an)) + ", but staked only ") + toString(bq))) | |
297 | + | else { | |
298 | + | let bu = addressFromStringValue(P(l())) | |
299 | + | let bD = U(invoke(bu, "getUnstakeComissionAmountREADONLY", [an, bC, bh], nil)) | |
300 | + | let bE = ae(-(an), if ((an == bq)) | |
301 | + | then -1 | |
302 | + | else 0, if ((an == bq)) | |
303 | + | then -1 | |
304 | + | else 0) | |
305 | + | let bw = bE._1 | |
306 | + | let bx = bE._2 | |
307 | + | let by = bE._3 | |
308 | + | ((([ScriptTransfer(p, (an - bD), bl), ScriptTransfer(Address(bA), bD, bl), ad("unstake", p, bd.transactionId, bq, bC, (bq - an), bC)] ++ aH(false, bo, bq)) ++ am(p, (bq - an), bC)) ++ bw) | |
309 | + | } | |
310 | + | } | |
310 | 311 | ||
311 | 312 | ||
312 | 313 | ||
313 | 314 | @Callable(bd) | |
314 | 315 | func deposit () = if ((size(bd.payments) != 1)) | |
315 | 316 | then throw("exact 1 payment is allowed only") | |
316 | 317 | else { | |
317 | 318 | let bF = bd.payments[0] | |
318 | 319 | let an = bF.amount | |
319 | 320 | let bG = valueOrElse(bF.assetId, h) | |
320 | 321 | let bH = toBase58String(bG) | |
321 | 322 | let bI = if ((bG == h)) | |
322 | 323 | then e | |
323 | 324 | else d | |
324 | 325 | let bJ = toBigInt(an) | |
325 | 326 | let bx = L(u(), 0) | |
326 | 327 | let bK = toBigInt(bx) | |
327 | 328 | if ((0 > bx)) | |
328 | 329 | then throw("TODO: case is not supported") | |
329 | 330 | else if ((bx == 0)) | |
330 | 331 | then aZ(bH, an) | |
331 | 332 | else { | |
332 | 333 | let bL = fraction(bJ, f, bK) | |
333 | 334 | let bM = z() | |
334 | 335 | let aA = L(bM, -1) | |
335 | 336 | let bN = (aA + 1) | |
336 | 337 | if (!(contains(au, bH))) | |
337 | 338 | then throw(((au + " doesn't contain ") + bH)) | |
338 | 339 | else { | |
339 | 340 | func bO (aM,bP) = { | |
340 | 341 | let bQ = B(bN, bP) | |
341 | 342 | let bR = O(B(aA, bP), "0") | |
342 | 343 | (aM :+ (if ((bP == bH)) | |
343 | 344 | then StringEntry(bQ, toString((parseBigIntValue(bR) + bL))) | |
344 | 345 | else StringEntry(bQ, bR))) | |
345 | 346 | } | |
346 | 347 | ||
347 | 348 | ({ | |
348 | 349 | let aS = av | |
349 | 350 | let aT = size(aS) | |
350 | 351 | let aU = nil | |
351 | 352 | func aV (aW,aX) = if ((aX >= aT)) | |
352 | 353 | then aW | |
353 | 354 | else bO(aW, aS[aX]) | |
354 | 355 | ||
355 | 356 | func aY (aW,aX) = if ((aX >= aT)) | |
356 | 357 | then aW | |
357 | 358 | else throw("List size exceeds 10") | |
358 | 359 | ||
359 | 360 | aY(aV(aV(aV(aV(aV(aV(aV(aV(aV(aV(aU, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
360 | 361 | } :+ IntegerEntry(bM, bN)) | |
361 | 362 | } | |
362 | 363 | } | |
363 | 364 | } | |
364 | 365 | ||
365 | 366 | ||
366 | 367 | ||
367 | 368 | @Callable(bd) | |
368 | 369 | func claimRewards () = { | |
369 | 370 | let p = bd.caller | |
370 | 371 | let bo = toString(p) | |
371 | - | let bS = valueOrElse(as(p), $Tuple3(true, 0, 0)) | |
372 | - | let aI = bS._1 | |
373 | - | let aJ = bS._2 | |
374 | - | let bT = bS._3 | |
375 | - | let ay = toBigInt(aJ) | |
376 | - | let aK = A(bo) | |
377 | - | let az = L(aK, -1) | |
378 | - | let aA = L(z(), -1) | |
379 | - | func bU (aM,aN) = { | |
380 | - | let bV = aw(bo, aN, ay, az, aA) | |
381 | - | let aP = bV._1 | |
382 | - | let aQ = bV._2 | |
383 | - | let aR = bV._3 | |
384 | - | let aF = bV._4 | |
385 | - | if ((0 >= aP)) | |
386 | - | then aM | |
387 | - | else ((aM :+ ScriptTransfer(p, aP, S(aN))) :+ IntegerEntry(aF, 0)) | |
388 | - | } | |
372 | + | if ((size(bd.payments) > 0)) | |
373 | + | then throw("payments are not accepted") | |
374 | + | else { | |
375 | + | let bS = valueOrElse(as(p), $Tuple3(true, 0, 0)) | |
376 | + | let aI = bS._1 | |
377 | + | let aJ = bS._2 | |
378 | + | let bT = bS._3 | |
379 | + | let ay = toBigInt(aJ) | |
380 | + | let aK = A(bo) | |
381 | + | let az = L(aK, -1) | |
382 | + | let aA = L(z(), -1) | |
383 | + | func bU (aM,aN) = { | |
384 | + | let bV = aw(bo, aN, ay, az, aA) | |
385 | + | let aP = bV._1 | |
386 | + | let aQ = bV._2 | |
387 | + | let aR = bV._3 | |
388 | + | let aF = bV._4 | |
389 | + | if ((0 >= aP)) | |
390 | + | then aM | |
391 | + | else ((aM :+ ScriptTransfer(p, aP, S(aN))) :+ IntegerEntry(aF, 0)) | |
392 | + | } | |
389 | 393 | ||
390 | - | let bW = { | |
391 | - | let aS = av | |
392 | - | let aT = size(aS) | |
393 | - | let aU = nil | |
394 | - | func aV (aW,aX) = if ((aX >= aT)) | |
395 | - | then aW | |
396 | - | else bU(aW, aS[aX]) | |
394 | + | let bW = { | |
395 | + | let aS = av | |
396 | + | let aT = size(aS) | |
397 | + | let aU = nil | |
398 | + | func aV (aW,aX) = if ((aX >= aT)) | |
399 | + | then aW | |
400 | + | else bU(aW, aS[aX]) | |
397 | 401 | ||
398 | - | func aY (aW,aX) = if ((aX >= aT)) | |
399 | - | then aW | |
400 | - | else throw("List size exceeds 10") | |
402 | + | func aY (aW,aX) = if ((aX >= aT)) | |
403 | + | then aW | |
404 | + | else throw("List size exceeds 10") | |
401 | 405 | ||
402 | - | aY(aV(aV(aV(aV(aV(aV(aV(aV(aV(aV(aU, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
403 | - | } | |
404 | - | if ((0 >= size(bW))) | |
405 | - | then throw("nothing to claim") | |
406 | - | else bW | |
406 | + | aY(aV(aV(aV(aV(aV(aV(aV(aV(aV(aV(aU, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
407 | + | } | |
408 | + | if ((0 >= size(bW))) | |
409 | + | then throw("nothing to claim") | |
410 | + | else (bW :+ IntegerEntry(aK, aA)) | |
411 | + | } | |
407 | 412 | } | |
408 | 413 | ||
409 | 414 | ||
410 | 415 | ||
411 | 416 | @Callable(bd) | |
412 | 417 | func unclaimedRewardsREADONLY (bo) = { | |
413 | 418 | func bX (aM,aN) = ((aM + makeString([aN, "0", "0"], ":")) + "_") | |
414 | 419 | ||
415 | 420 | let bY = if ((bo == "")) | |
416 | 421 | then { | |
417 | 422 | let aS = av | |
418 | 423 | let aT = size(aS) | |
419 | 424 | let aU = "" | |
420 | 425 | func aV (aW,aX) = if ((aX >= aT)) | |
421 | 426 | then aW | |
422 | 427 | else bX(aW, aS[aX]) | |
423 | 428 | ||
424 | 429 | func aY (aW,aX) = if ((aX >= aT)) | |
425 | 430 | then aW | |
426 | 431 | else throw("List size exceeds 10") | |
427 | 432 | ||
428 | 433 | aY(aV(aV(aV(aV(aV(aV(aV(aV(aV(aV(aU, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
429 | 434 | } | |
430 | 435 | else { | |
431 | 436 | let p = addressFromStringValue(bo) | |
432 | 437 | let bZ = valueOrElse(as(p), $Tuple3(true, 0, 0)) | |
433 | 438 | let aI = bZ._1 | |
434 | 439 | let aJ = bZ._2 | |
435 | 440 | let bT = bZ._3 | |
436 | 441 | let ay = toBigInt(aJ) | |
437 | 442 | let aK = A(bo) | |
438 | 443 | let az = L(aK, -1) | |
439 | 444 | let aA = L(z(), -1) | |
440 | 445 | func bU (aM,aN) = { | |
441 | 446 | let ca = aw(bo, aN, ay, az, aA) | |
442 | 447 | let aP = ca._1 | |
443 | 448 | let aQ = ca._2 | |
444 | 449 | let aR = ca._3 | |
445 | 450 | let aF = ca._4 | |
446 | 451 | ((aM + makeString([aN, toString(aP), "0"], ":")) + "_") | |
447 | 452 | } | |
448 | 453 | ||
449 | 454 | let aS = av | |
450 | 455 | let aT = size(aS) | |
451 | 456 | let aU = "" | |
452 | 457 | func aV (aW,aX) = if ((aX >= aT)) | |
453 | 458 | then aW | |
454 | 459 | else bU(aW, aS[aX]) | |
455 | 460 | ||
456 | 461 | func aY (aW,aX) = if ((aX >= aT)) | |
457 | 462 | then aW | |
458 | 463 | else throw("List size exceeds 10") | |
459 | 464 | ||
460 | 465 | aY(aV(aV(aV(aV(aV(aV(aV(aV(aV(aV(aU, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
461 | 466 | } | |
462 | 467 | $Tuple2(nil, dropRight(bY, 1)) | |
463 | 468 | } | |
464 | 469 | ||
465 | 470 | ||
466 | 471 | ||
467 | 472 | @Callable(bd) | |
468 | 473 | func nsbtStakingSYSREADONLY (bo) = { | |
469 | 474 | let cb = L(u(), 0) | |
470 | 475 | if ((bo == "")) | |
471 | 476 | then $Tuple2(nil, [0, cb, 0]) | |
472 | 477 | else { | |
473 | 478 | let p = Q(bo) | |
474 | 479 | let cc = valueOrElse(as(p), $Tuple3(true, 0, 0)) | |
475 | 480 | let aI = cc._1 | |
476 | 481 | let cd = cc._2 | |
477 | 482 | let bT = cc._3 | |
478 | 483 | $Tuple2(nil, [cd, cb, bT]) | |
479 | 484 | } | |
480 | 485 | } | |
481 | 486 | ||
482 | 487 |
github/deemru/w8io/169f3d6 66.45 ms ◑