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