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:AAIFAAAAAAAAACAIAhIHCgUICAEBCBIAEgMKAQESABIAEgMKAQgSAwoBCAAAADEAAAAACXNlcGFyYXRvcgIAAAACX18AAAAABU1VTFQ2AAAAAAAAD0JAAAAAAAVNVUxUOAAAAAAABfXhAAAAAAAGTVVMVFg2CQABNgAAAAEFAAAABU1VTFQ2AAAAAAZNVUxUWDgJAAE2AAAAAQUAAAAFTVVMVDgAAAAAB01VTFRYMTgJAAE2AAAAAQAN4Lazp2QAAAAAAAAKV0FWRVNJRFNUUgIAAAAFV0FWRVMAAAAAB1dBVkVTSUQJAAJZAAAAAQUAAAAKV0FWRVNJRFNUUgEAAAAMa2V5Qm9uZEFzc2V0AAAAAAIAAAANYm9uZF9hc3NldF9pZAEAAAAZa2V5QXVjdGlvbkNvbnRyYWN0QWRkcmVzcwAAAAACAAAAEGF1Y3Rpb25fY29udHJhY3QBAAAAGmtleU5ldXRyaW5vQ29udHJhY3RBZGRyZXNzAAAAAAIAAAAbJXNfX25ldXRyaW5vQ29udHJhY3RBZGRyZXNzAQAAABZrZXlNYXRoQ29udHJhY3RBZGRyZXNzAAAAAAIAAAAQJXNfX21hdGhD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3RhbEFtb3VudAAAAAAAAAAAAAAAAAADCQAAAAAAAAIFAAAADnVzZXJBZGRyZXNzU3RyAgAAAAAJAAUUAAAAAgUAAAADbmlsCQAETAAAAAIAAAAAAAAAAAAJAARMAAAAAgUAAAAMdG90YWxOc2J0QW10CQAETAAAAAIAAAAAAAAAAAAFAAAAA25pbAQAAAALdXNlckFkZHJlc3MJAQAAAA90b0FkZHJlc3NPckZhaWwAAAABBQAAAA51c2VyQWRkcmVzc1N0cgQAAAANJHQwMTgwNjQxODE2OAkBAAAAC3ZhbHVlT3JFbHNlAAAAAgkBAAAAE2dldFVzZXJQYXJhbXNPclVuaXQAAAABBQAAAAt1c2VyQWRkcmVzcwkABRUAAAADBgAAAAAAAAAAAAAAAAAAAAAAAAQAAAAJaXNOZXdVc2VyCAUAAAANJHQwMTgwNjQxODE2OAAAAAJfMQQAAAALdXNlck5zYnRBbXQIBQAAAA0kdDAxODA2NDE4MTY4AAAAAl8yBAAAAAxzdGFraW5nU3RhcnQIBQAAAA0kdDAxODA2NDE4MTY4AAAAAl8zCQAFFAAAAAIFAAAAA25pbAkABEwAAAACBQAAAAt1c2VyTnNidEFtdAkABEwAAAACBQAAAAx0b3RhbE5zYnRBbXQJAARMAAAAAgUAAAAMc3Rha2luZ1N0YXJ0BQAAAANuaWwAAAAA8GNO4w==", "chainId": 84, "height": 1974953, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: EQWgVZuHMZ1EUuDmVr2NRCT7Cqmms6aufdYXKUSsBMSe Next: Fz8XGheAiqPy5iQSzyAZibArWH7mqsxfC91NZ4Xy29vc Diff:
OldNewDifferences
267267 let bw = bv._1
268268 let bx = bv._2
269269 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)
272271 }
273272 }
274273 }
277276
278277
279278 @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+ }
310311
311312
312313
368369 func claimRewards () = {
369370 let p = bd.caller
370371 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+ }
389393
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])
397401
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")
401405
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+ }
407412 }
408413
409414
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = "__"
55
66 let b = 1000000
77
88 let c = 100000000
99
1010 let d = toBigInt(b)
1111
1212 let e = toBigInt(c)
1313
1414 let f = toBigInt(1000000000000000000)
1515
1616 let g = "WAVES"
1717
1818 let h = fromBase58String(g)
1919
2020 func i () = "bond_asset_id"
2121
2222
2323 func j () = "auction_contract"
2424
2525
2626 func k () = "%s__neutrinoContractAddress"
2727
2828
2929 func l () = "%s__mathContract"
3030
3131
3232 func m () = "%s__minLockAmount"
3333
3434
3535 func n () = "%s__halfLife"
3636
3737
3838 func o (p) = makeString(["%s%s%s", "paramByUser", toString(p), "amount"], a)
3939
4040
4141 func q (p) = makeString(["%s%s%s", "paramByUser", toString(p), "start"], a)
4242
4343
4444 func r (s,p,t) = makeString(["%s%s%s%s", "history", s, toString(p), toBase58String(t)], a)
4545
4646
4747 func u () = makeString(["%s%s", "stats", "activeTotalLocked"], a)
4848
4949
5050 func v () = makeString(["%s%s", "stats", "locksCount"], a)
5151
5252
5353 func w () = makeString(["%s%s", "stats", "activeUsersCount"], a)
5454
5555
5656 func x () = "%s__nextPeriod"
5757
5858
5959 func y () = "supportedRewardAssets"
6060
6161
6262 func z () = makeString(["%s%s%s", "dep", "lastNum"], a)
6363
6464
6565 func A (p) = makeString(["%s%s%s", "userRwdFromDepNum", p], a)
6666
6767
6868 func B (C,D) = makeString(["%s%d", "rwdPerNsbtSumByDepNum", toString(C), D], a)
6969
7070
7171 func E (p,D) = makeString(["%s%s%s", "rwd", p, D], a)
7272
7373
7474 func F (D) = makeString(["%s%s", "notDistributed", D], a)
7575
7676
7777 func G (H,I) = fraction(toBigInt(H), f, I)
7878
7979
8080 func J (K) = valueOrElse(getInteger(this, K), 0)
8181
8282
8383 func L (K,M) = valueOrElse(getInteger(this, K), M)
8484
8585
8686 func N (K) = valueOrErrorMessage(getInteger(this, K), (("Mandatory this." + K) + " is not defined"))
8787
8888
8989 func O (K,M) = valueOrElse(getString(this, K), M)
9090
9191
9292 func P (K) = valueOrErrorMessage(getString(this, K), (("Mandatory this." + K) + " is not defined"))
9393
9494
9595 func Q (R) = valueOrErrorMessage(addressFromString(R), ("couldn't parse passed addressStr=" + R))
9696
9797
9898 func S (T) = if ((T == g))
9999 then unit
100100 else fromBase58String(T)
101101
102102
103103 func U (V) = {
104104 let W = V
105105 if ($isInstanceOf(W, "Int"))
106106 then {
107107 let X = W
108108 X
109109 }
110110 else throw("fail to cast into Int")
111111 }
112112
113113
114114 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)
115115
116116
117117 func ad (s,p,t,Z,aa,ab,ac) = StringEntry(r(s, p, t), Y(Z, aa, ab, ac))
118118
119119
120120 func ae (af,ag,ah) = {
121121 let ai = J(v())
122122 let aj = J(w())
123123 let ak = J(u())
124124 let al = (ak + af)
125125 $Tuple3([IntegerEntry(v(), (ai + ag)), IntegerEntry(w(), (aj + ah)), IntegerEntry(u(), al)], ak, al)
126126 }
127127
128128
129129 func am (p,an,ao) = [IntegerEntry(o(p), an), IntegerEntry(q(p), ao)]
130130
131131
132132 func ap () = {
133133 let aq = addressFromStringValue(P(k()))
134134 $Tuple4(fromBase58String(getStringValue(aq, j())), fromBase58String(getStringValue(aq, i())), N(m()), N(n()))
135135 }
136136
137137
138138 func ar (p) = (L(o(p), 0) > 0)
139139
140140
141141 func as (p) = if (ar(p))
142142 then $Tuple3(false, N(o(p)), N(q(p)))
143143 else unit
144144
145145
146146 func at (p) = valueOrErrorMessage(as(p), (("User " + toString(p)) + " is not defined"))
147147
148148
149149 let au = O(y(), "")
150150
151151 let av = split(au, "_")
152152
153153 func aw (p,ax,ay,az,aA) = {
154154 let aB = B(aA, ax)
155155 let aC = parseBigIntValue(O(B(aA, ax), "0"))
156156 let aD = parseBigIntValue(O(B(az, ax), "0"))
157157 let aE = toInt(fraction((aC - aD), ay, f))
158158 let aF = E(p, ax)
159159 let aG = L(aF, 0)
160160 $Tuple4((aG + aE), aG, aE, aF)
161161 }
162162
163163
164164 func aH (aI,p,aJ) = {
165165 let ay = toBigInt(aJ)
166166 let aK = A(p)
167167 let az = L(aK, -1)
168168 let aA = L(z(), -1)
169169 func aL (aM,aN) = {
170170 let aO = aw(p, aN, ay, az, aA)
171171 let aP = aO._1
172172 let aQ = aO._2
173173 let aR = aO._3
174174 let aF = aO._4
175175 (aM :+ IntegerEntry(aF, aP))
176176 }
177177
178178 if (if ((aA == -1))
179179 then (az == -1)
180180 else false)
181181 then nil
182182 else if (if ((aA == -1))
183183 then (az > -1)
184184 else false)
185185 then throw("invalid depositNumLast and depositNumUser state")
186186 else if (if ((aA > -1))
187187 then (az == -1)
188188 else false)
189189 then if (aI)
190190 then [IntegerEntry(aK, aA)]
191191 else throw("isNewUser must not be false in 5 + 6 cases")
192192 else if (if ((aA > -1))
193193 then (az > -1)
194194 else false)
195195 then if (aI)
196196 then throw((((("invalid management for isNewUser=" + toString(aI)) + " and depositNumUser=") + toString(az)) + " during full unstake"))
197197 else ({
198198 let aS = av
199199 let aT = size(aS)
200200 let aU = nil
201201 func aV (aW,aX) = if ((aX >= aT))
202202 then aW
203203 else aL(aW, aS[aX])
204204
205205 func aY (aW,aX) = if ((aX >= aT))
206206 then aW
207207 else throw("List size exceeds 10")
208208
209209 aY(aV(aV(aV(aV(aV(aV(aV(aV(aV(aV(aU, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
210210 } :+ IntegerEntry(aK, aA))
211211 else throw(((("uncovered condition: depositNumLast=" + toString(aA)) + " depositNumUser=") + toString(az)))
212212 }
213213
214214
215215 func aZ (D,ba) = {
216216 let bb = F(D)
217217 let bc = L(bb, 0)
218218 [IntegerEntry(bb, (bc + ba))]
219219 }
220220
221221
222222 @Callable(bd)
223223 func constructor (be,bf,bg,bh,bi) = if ((bd.caller != this))
224224 then throw("Permission denied")
225225 else [StringEntry(k(), be), StringEntry(l(), bf), IntegerEntry(m(), bg), IntegerEntry(n(), bh), StringEntry(y(), bi)]
226226
227227
228228
229229 @Callable(bd)
230230 func stake () = {
231231 let bj = ap()
232232 let bk = bj._1
233233 let bl = bj._2
234234 let bg = bj._3
235235 let bh = bj._4
236236 if ((size(bd.payments) != 1))
237237 then throw("Invalid payments size")
238238 else {
239239 let bm = bd.payments[0]
240240 let an = bm.amount
241241 let bn = (("Invalid asset. " + toBase58String(bl)) + " is expected")
242242 let ax = valueOrErrorMessage(bm.assetId, bn)
243243 if ((ax != bl))
244244 then throw(bn)
245245 else {
246246 let p = bd.caller
247247 let bo = toString(bd.caller)
248248 let bp = valueOrElse(as(p), $Tuple3(true, 0, -1))
249249 let aI = bp._1
250250 let bq = bp._2
251251 let br = bp._3
252252 let bs = if (aI)
253253 then an
254254 else (an + bq)
255255 let bt = if (aI)
256256 then height
257257 else {
258258 let bu = addressFromStringValue(P(l()))
259259 U(invoke(bu, "mergeStakesREADONLY", [an, height, bq, br, bh], nil))
260260 }
261261 if ((bg > bs))
262262 then throw(("Min lock amount is " + toString(bg)))
263263 else {
264264 let bv = ae(an, 1, if (aI)
265265 then 1
266266 else 0)
267267 let bw = bv._1
268268 let bx = bv._2
269269 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)
272271 }
273272 }
274273 }
275274 }
276275
277276
278277
279278 @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+ }
310311
311312
312313
313314 @Callable(bd)
314315 func deposit () = if ((size(bd.payments) != 1))
315316 then throw("exact 1 payment is allowed only")
316317 else {
317318 let bF = bd.payments[0]
318319 let an = bF.amount
319320 let bG = valueOrElse(bF.assetId, h)
320321 let bH = toBase58String(bG)
321322 let bI = if ((bG == h))
322323 then e
323324 else d
324325 let bJ = toBigInt(an)
325326 let bx = L(u(), 0)
326327 let bK = toBigInt(bx)
327328 if ((0 > bx))
328329 then throw("TODO: case is not supported")
329330 else if ((bx == 0))
330331 then aZ(bH, an)
331332 else {
332333 let bL = fraction(bJ, f, bK)
333334 let bM = z()
334335 let aA = L(bM, -1)
335336 let bN = (aA + 1)
336337 if (!(contains(au, bH)))
337338 then throw(((au + " doesn't contain ") + bH))
338339 else {
339340 func bO (aM,bP) = {
340341 let bQ = B(bN, bP)
341342 let bR = O(B(aA, bP), "0")
342343 (aM :+ (if ((bP == bH))
343344 then StringEntry(bQ, toString((parseBigIntValue(bR) + bL)))
344345 else StringEntry(bQ, bR)))
345346 }
346347
347348 ({
348349 let aS = av
349350 let aT = size(aS)
350351 let aU = nil
351352 func aV (aW,aX) = if ((aX >= aT))
352353 then aW
353354 else bO(aW, aS[aX])
354355
355356 func aY (aW,aX) = if ((aX >= aT))
356357 then aW
357358 else throw("List size exceeds 10")
358359
359360 aY(aV(aV(aV(aV(aV(aV(aV(aV(aV(aV(aU, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
360361 } :+ IntegerEntry(bM, bN))
361362 }
362363 }
363364 }
364365
365366
366367
367368 @Callable(bd)
368369 func claimRewards () = {
369370 let p = bd.caller
370371 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+ }
389393
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])
397401
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")
401405
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+ }
407412 }
408413
409414
410415
411416 @Callable(bd)
412417 func unclaimedRewardsREADONLY (bo) = {
413418 func bX (aM,aN) = ((aM + makeString([aN, "0", "0"], ":")) + "_")
414419
415420 let bY = if ((bo == ""))
416421 then {
417422 let aS = av
418423 let aT = size(aS)
419424 let aU = ""
420425 func aV (aW,aX) = if ((aX >= aT))
421426 then aW
422427 else bX(aW, aS[aX])
423428
424429 func aY (aW,aX) = if ((aX >= aT))
425430 then aW
426431 else throw("List size exceeds 10")
427432
428433 aY(aV(aV(aV(aV(aV(aV(aV(aV(aV(aV(aU, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
429434 }
430435 else {
431436 let p = addressFromStringValue(bo)
432437 let bZ = valueOrElse(as(p), $Tuple3(true, 0, 0))
433438 let aI = bZ._1
434439 let aJ = bZ._2
435440 let bT = bZ._3
436441 let ay = toBigInt(aJ)
437442 let aK = A(bo)
438443 let az = L(aK, -1)
439444 let aA = L(z(), -1)
440445 func bU (aM,aN) = {
441446 let ca = aw(bo, aN, ay, az, aA)
442447 let aP = ca._1
443448 let aQ = ca._2
444449 let aR = ca._3
445450 let aF = ca._4
446451 ((aM + makeString([aN, toString(aP), "0"], ":")) + "_")
447452 }
448453
449454 let aS = av
450455 let aT = size(aS)
451456 let aU = ""
452457 func aV (aW,aX) = if ((aX >= aT))
453458 then aW
454459 else bU(aW, aS[aX])
455460
456461 func aY (aW,aX) = if ((aX >= aT))
457462 then aW
458463 else throw("List size exceeds 10")
459464
460465 aY(aV(aV(aV(aV(aV(aV(aV(aV(aV(aV(aU, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
461466 }
462467 $Tuple2(nil, dropRight(bY, 1))
463468 }
464469
465470
466471
467472 @Callable(bd)
468473 func nsbtStakingSYSREADONLY (bo) = {
469474 let cb = L(u(), 0)
470475 if ((bo == ""))
471476 then $Tuple2(nil, [0, cb, 0])
472477 else {
473478 let p = Q(bo)
474479 let cc = valueOrElse(as(p), $Tuple3(true, 0, 0))
475480 let aI = cc._1
476481 let cd = cc._2
477482 let bT = cc._3
478483 $Tuple2(nil, [cd, cb, bT])
479484 }
480485 }
481486
482487

github/deemru/w8io/169f3d6 
66.45 ms