tx · FLVoJqYFBv9jiEJ5tTWUyfzzjfMgLfpX9oJGdzsxSPAD 3N5yarEiTQccnnuerogYT3BxM5Zc5bRgDZy: -0.03200000 Waves 2023.03.28 07:50 [2509346] smart account 3N5yarEiTQccnnuerogYT3BxM5Zc5bRgDZy > SELF 0.00000000 Waves
{ "type": 13, "id": "FLVoJqYFBv9jiEJ5tTWUyfzzjfMgLfpX9oJGdzsxSPAD", "fee": 3200000, "feeAssetId": null, "timestamp": 1679979007030, "version": 2, "chainId": 84, "sender": "3N5yarEiTQccnnuerogYT3BxM5Zc5bRgDZy", "senderPublicKey": "FK9j3YFWVChXKESTn33fMZz1JseCNMMqHhfB7smxJo4e", "proofs": [ "3fRsEjc3NTw2brD1J2k74UPqPnSGybnFRK8LRv3chkwbhTaHRavU8qQzTLMsk53yLN5DWjzrC5sZRpBqxUXV5gSA" ], "script": "base64:BgIvCAISBQoDAQgIEgASABIDCgEBEgASABIAEgMKAQgSAwoBCBIECgIIARIDCgEBEgBqAAlzZXBhcmF0b3ICAl9fAANTRVACAl9fAAVNVUxUNgDAhD0ABU1VTFQ4AIDC1y8ABk1VTFRYNgkAtgIBBQVNVUxUNgAGTVVMVFg4CQC2AgEFBU1VTFQ4AAdNVUxUWDE4CQC2AgEAgICQu7rWrfANAApXQVZFU0lEU1RSAgVXQVZFUwAHV0FWRVNJRAkA2QQBBQpXQVZFU0lEU1RSAAlEQVlNSUxMSVMAgLiZKQANREVGQVVMVFBFUklPRAkAaAIAoAsADgAZSWR4Q29udHJvbENmZ05ldXRyaW5vRGFwcAABABhJZHhDb250cm9sQ2ZnQXVjdGlvbkRhcHAAAgAUSWR4Q29udHJvbENmZ1JwZERhcHAAAwAVSWR4Q29udHJvbENmZ01hdGhEYXBwAAQAHElkeENvbnRyb2xDZmdMaXF1aWRhdGlvbkRhcHAABQAVSWR4Q29udHJvbENmZ1Jlc3REYXBwAAYAHUlkeENvbnRyb2xDZmdOb2RlUmVnaXN0cnlEYXBwAAcAHElkeENvb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ARBrZXlNaW5Mb2NrQW1vdW50AAQgc3VyZlZvdGluZ1Bvd2VyUmVzdHJpY3RpdmVQZXJpb2QFDURFRkFVTFRQRVJJT0QEG2JyVG9TdGFydFN1cmZUcmFuc2Zvcm1hdGlvbgCwmEYJAJQKAgUDbmlsCQDMCAIFCm1pbkxvY2tBbXQJAMwIAgkAaAIFEmduc2J0RnJvbVN1cmZDb2VmZgUFTVVMVDYJAMwIAgUgc3VyZlZvdGluZ1Bvd2VyUmVzdHJpY3RpdmVQZXJpb2QJAMwIAgUbYnJUb1N0YXJ0U3VyZlRyYW5zZm9ybWF0aW9uBQNuaWwA91nanQ==", "height": 2509346, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 4ux4K8gvKEFmfVZM2xizmVXtrD35gqaR6jJqsgNqwzX2 Next: C8gsepRXBqWsZ5eXKAhQtsymAfNhN4Gq38ubzxoGZtRV Diff:
Old | New | Differences | |
---|---|---|---|
284 | 284 | ||
285 | 285 | let bL = (bK + "__0__0__0__0__0__0__0__0__0__0__0__0__0__0__0__0__0__0") | |
286 | 286 | ||
287 | - | func bM (bN,U,bO) = { | |
288 | - | let bu = toBigInt(bO) | |
289 | - | let bP = ai(U) | |
290 | - | let bv = aC(bP, -1) | |
287 | + | func bM (bN) = { | |
288 | + | let bO = (size(bN) - 1) | |
289 | + | func bP (bQ,I) = if ((bO > I)) | |
290 | + | then bQ | |
291 | + | else (bQ :+ "0") | |
292 | + | ||
293 | + | let bR = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17] | |
294 | + | let bS = size(bR) | |
295 | + | let bT = bN | |
296 | + | func bU (bV,bW) = if ((bW >= bS)) | |
297 | + | then bV | |
298 | + | else bP(bV, bR[bW]) | |
299 | + | ||
300 | + | func bX (bV,bW) = if ((bW >= bS)) | |
301 | + | then bV | |
302 | + | else throw("List size exceeds 18") | |
303 | + | ||
304 | + | bX(bU(bU(bU(bU(bU(bU(bU(bU(bU(bU(bU(bU(bU(bU(bU(bU(bU(bU(bT, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18) | |
305 | + | } | |
306 | + | ||
307 | + | ||
308 | + | func bY (bN) = { | |
309 | + | let bO = (size(split_4C(bN, b)) - 1) | |
310 | + | func bZ (bQ,I) = if ((bO > I)) | |
311 | + | then bQ | |
312 | + | else (bQ + "__0") | |
313 | + | ||
314 | + | let bR = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17] | |
315 | + | let bS = size(bR) | |
316 | + | let bT = bN | |
317 | + | func bU (bV,bW) = if ((bW >= bS)) | |
318 | + | then bV | |
319 | + | else bZ(bV, bR[bW]) | |
320 | + | ||
321 | + | func bX (bV,bW) = if ((bW >= bS)) | |
322 | + | then bV | |
323 | + | else throw("List size exceeds 18") | |
324 | + | ||
325 | + | bX(bU(bU(bU(bU(bU(bU(bU(bU(bU(bU(bU(bU(bU(bU(bU(bU(bU(bU(bT, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18) | |
326 | + | } | |
327 | + | ||
328 | + | ||
329 | + | func ca (cb,U,cc) = { | |
330 | + | let bu = toBigInt(cc) | |
331 | + | let cd = ai(U) | |
332 | + | let bv = aC(cd, -1) | |
291 | 333 | let bw = aC(ah(), -1) | |
292 | - | func | |
293 | - | let | |
294 | - | let | |
295 | - | let | |
296 | - | let | |
297 | - | let bB = | |
298 | - | ( | |
334 | + | func ce (cf,cg) = { | |
335 | + | let ch = bs(U, cg, bu, bv, bw) | |
336 | + | let ci = ch._1 | |
337 | + | let cj = ch._2 | |
338 | + | let ck = ch._3 | |
339 | + | let bB = ch._4 | |
340 | + | (cf :+ IntegerEntry(bB, ci)) | |
299 | 341 | } | |
300 | 342 | ||
301 | 343 | if (if ((bw == -1)) | |
309 | 351 | else if (if ((bw > -1)) | |
310 | 352 | then (bv >= -1) | |
311 | 353 | else false) | |
312 | - | then if ( | |
313 | - | then [IntegerEntry( | |
354 | + | then if (cb) | |
355 | + | then [IntegerEntry(cd, bw)] | |
314 | 356 | else ({ | |
315 | - | let | |
316 | - | let | |
317 | - | let | |
318 | - | func | |
319 | - | then | |
320 | - | else | |
357 | + | let bR = br | |
358 | + | let bS = size(bR) | |
359 | + | let bT = nil | |
360 | + | func bU (bV,bW) = if ((bW >= bS)) | |
361 | + | then bV | |
362 | + | else ce(bV, bR[bW]) | |
321 | 363 | ||
322 | - | func | |
323 | - | then | |
364 | + | func bX (bV,bW) = if ((bW >= bS)) | |
365 | + | then bV | |
324 | 366 | else throw("List size exceeds 9") | |
325 | 367 | ||
326 | - | | |
327 | - | } :+ IntegerEntry( | |
368 | + | bX(bU(bU(bU(bU(bU(bU(bU(bU(bU(bT, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9) | |
369 | + | } :+ IntegerEntry(cd, bw)) | |
328 | 370 | else throw(((("uncovered condition: depositNumLast=" + toString(bw)) + " depositNumUser=") + toString(bv))) | |
329 | 371 | } | |
330 | 372 | ||
331 | 373 | ||
332 | - | func | |
333 | - | let | |
334 | - | let | |
335 | - | IntegerEntry( | |
374 | + | func cl (al,cm) = { | |
375 | + | let cn = ao(al) | |
376 | + | let co = aC(cn, 0) | |
377 | + | IntegerEntry(cn, (co + cm)) | |
336 | 378 | } | |
337 | 379 | ||
338 | 380 | ||
339 | - | func | |
381 | + | func cp (cq) = (cq / O) | |
340 | 382 | ||
341 | 383 | ||
342 | - | func | |
343 | - | let | |
344 | - | let | |
345 | - | let | |
346 | - | let | |
347 | - | let | |
348 | - | then | |
349 | - | else ( | |
350 | - | let | |
351 | - | let | |
352 | - | let | |
353 | - | then ( | |
354 | - | else if (( | |
355 | - | then ( | |
356 | - | else | |
357 | - | $Tuple5( | |
384 | + | func cr (U,cs,ct,cu) = { | |
385 | + | let cv = valueOrElse(bo(U), $Tuple3(true, 0, 0)) | |
386 | + | let cb = cv._1 | |
387 | + | let cc = cv._2 | |
388 | + | let cw = cv._3 | |
389 | + | let cx = if (cb) | |
390 | + | then cs | |
391 | + | else (cs + cc) | |
392 | + | let cy = aC(ap(), k) | |
393 | + | let cz = (height / cy) | |
394 | + | let cA = if ((cu > 0)) | |
395 | + | then (cz + 2) | |
396 | + | else if ((ct > 0)) | |
397 | + | then (cz + 1) | |
398 | + | else cz | |
399 | + | $Tuple5(cb, cc, cw, cx, (cA * cy)) | |
358 | 400 | } | |
359 | 401 | ||
360 | 402 | ||
361 | - | func | |
362 | - | let | |
363 | - | if (( | |
403 | + | func cB () = { | |
404 | + | let cz = (height / aC(ap(), k)) | |
405 | + | if ((cz > aB(aq()))) | |
364 | 406 | then { | |
365 | - | let | |
366 | - | [IntegerEntry(as(), ( | |
407 | + | let cC = valueOrElse(getInteger(as()), aB(aa())) | |
408 | + | [IntegerEntry(as(), (cC + aB(at()))), IntegerEntry(at(), aB(au())), IntegerEntry(au(), 0), IntegerEntry(aq(), cz)] | |
367 | 409 | } | |
368 | 410 | else nil | |
369 | 411 | } | |
370 | 412 | ||
371 | 413 | ||
372 | - | func | |
414 | + | func cD (cE,cs) = if ((0 > cs)) | |
373 | 415 | then throw("amountToAdd should be >= 0") | |
374 | 416 | else { | |
375 | - | let | |
376 | - | let | |
377 | - | let | |
378 | - | let | |
379 | - | let | |
380 | - | let | |
417 | + | let cy = aC(ap(), k) | |
418 | + | let cz = (height / cy) | |
419 | + | let cC = valueOrElse(getInteger(as()), aB(aa())) | |
420 | + | let cF = aB(at()) | |
421 | + | let cG = aB(au()) | |
422 | + | let cH = if ((cE == "")) | |
381 | 423 | then 0 | |
382 | - | else valueOrElse(getInteger(av( | |
383 | - | let | |
384 | - | let | |
385 | - | let | |
386 | - | then $Tuple7(( | |
387 | - | else $Tuple7( | |
388 | - | let | |
389 | - | then $Tuple4([IntegerEntry(as(), ( | |
390 | - | else $Tuple4(nil, | |
391 | - | let | |
392 | - | let | |
393 | - | $Tuple7((((( | |
424 | + | else valueOrElse(getInteger(av(cE)), aB(T(addressFromStringValue(cE)))) | |
425 | + | let ct = aB(aw(cE)) | |
426 | + | let cu = aB(ax(cE)) | |
427 | + | let cI = if ((cz > aB(ar(cE)))) | |
428 | + | then $Tuple7((cC + ct), (cF + (cu - ct)), (cG - cu), (cH + ct), cu, 0, [IntegerEntry(ar(cE), cz)]) | |
429 | + | else $Tuple7(cC, cF, cG, cH, ct, cu, nil) | |
430 | + | let cJ = if ((cz > aB(aq()))) | |
431 | + | then $Tuple4([IntegerEntry(as(), (cI._1 + cI._2)), IntegerEntry(at(), cI._3), IntegerEntry(au(), 0), IntegerEntry(aq(), cz)], (cI._1 + cI._2), cI._3, 0) | |
432 | + | else $Tuple4(nil, cC, cF, cG) | |
433 | + | let cK = fraction(cs, (height % cy), cy) | |
434 | + | let cL = (cs - cK) | |
435 | + | $Tuple7(((((cJ._1 :+ IntegerEntry(av(cE), cI._4)) :+ IntegerEntry(aw(cE), (cI._5 + cL))) :+ IntegerEntry(ax(cE), (cI._6 + cK))) ++ cI._7), cJ._2, cJ._3, cJ._4, cI._4, (cI._5 + cL), (cI._6 + cK)) | |
394 | 436 | } | |
395 | 437 | ||
396 | 438 | ||
397 | - | let | |
439 | + | let cM = 0 | |
398 | 440 | ||
399 | - | let | |
441 | + | let cN = 1 | |
400 | 442 | ||
401 | - | func | |
402 | - | then [( | |
403 | - | else [0, ( | |
443 | + | func cO (cP,cQ) = if ((cQ >= cP)) | |
444 | + | then [(cQ - cP), 0] | |
445 | + | else [0, (cP - cQ)] | |
404 | 446 | ||
405 | 447 | ||
406 | - | func | |
448 | + | func cR (cE,cS) = if ((0 >= cS)) | |
407 | 449 | then throw("amountToRemove should be > 0") | |
408 | 450 | else { | |
409 | - | let | |
410 | - | let | |
411 | - | let | |
412 | - | let | |
413 | - | let | |
414 | - | let | |
451 | + | let cy = aC(ap(), k) | |
452 | + | let cz = (height / cy) | |
453 | + | let cC = valueOrElse(getInteger(as()), aB(aa())) | |
454 | + | let cF = aB(at()) | |
455 | + | let cG = aB(au()) | |
456 | + | let cH = if ((cE == "")) | |
415 | 457 | then 0 | |
416 | - | else valueOrElse(getInteger(av( | |
417 | - | let | |
418 | - | let | |
419 | - | let | |
420 | - | let | |
421 | - | let | |
422 | - | if (( | |
458 | + | else valueOrElse(getInteger(av(cE)), aB(T(addressFromStringValue(cE)))) | |
459 | + | let ct = aB(aw(cE)) | |
460 | + | let cu = aB(ax(cE)) | |
461 | + | let cT = cO(cH, cS) | |
462 | + | let cU = cO(ct, cT[cM]) | |
463 | + | let cV = cO(cu, cU[cM]) | |
464 | + | if ((cV[cM] != 0)) | |
423 | 465 | then throw("Should not happen") | |
424 | 466 | else { | |
425 | - | let | |
426 | - | then $Tuple7(( | |
427 | - | else $Tuple7( | |
428 | - | let | |
429 | - | then $Tuple4([IntegerEntry(as(), ( | |
430 | - | else $Tuple4(nil, | |
431 | - | $Tuple7((((( | |
467 | + | let cI = if ((cz > aB(ar(cE)))) | |
468 | + | then $Tuple7((cC + cU[cN]), (cF + (cV[cN] - cU[cN])), (cG - cV[cN]), (cT[cN] + cU[cN]), cV[cN], 0, [IntegerEntry(ar(cE), cz)]) | |
469 | + | else $Tuple7(cC, cF, cG, cT[cN], cU[cN], cV[cN], nil) | |
470 | + | let cJ = if ((cz > aB(aq()))) | |
471 | + | then $Tuple4([IntegerEntry(as(), (cI._1 + cI._2)), IntegerEntry(at(), cI._3), IntegerEntry(au(), 0), IntegerEntry(aq(), cz)], (cI._1 + cI._2), cI._3, 0) | |
472 | + | else $Tuple4(nil, cC, cF, cG) | |
473 | + | $Tuple7(((((cJ._1 :+ IntegerEntry(av(cE), cI._4)) :+ IntegerEntry(aw(cE), cI._5)) :+ IntegerEntry(ax(cE), cI._6)) ++ cI._7), cJ._2, cJ._3, cJ._4, cI._4, cI._5, cI._6) | |
432 | 474 | } | |
433 | 475 | } | |
434 | 476 | ||
435 | 477 | ||
436 | - | func | |
437 | - | let | |
438 | - | let | |
439 | - | let | |
440 | - | if ((size( | |
478 | + | func cW (U,cX) = { | |
479 | + | let cY = bm() | |
480 | + | let cZ = cY._1 | |
481 | + | let da = cY._2 | |
482 | + | if ((size(cX.payments) != 1)) | |
441 | 483 | then throw("Invalid payments size") | |
442 | 484 | else { | |
443 | - | let | |
444 | - | let bk = | |
445 | - | let | |
446 | - | let bt = valueOrErrorMessage( | |
447 | - | if ((bt != | |
448 | - | then throw( | |
485 | + | let db = cX.payments[0] | |
486 | + | let bk = db.amount | |
487 | + | let dc = (("Invalid asset. " + toBase58String(cZ)) + " is expected") | |
488 | + | let bt = valueOrErrorMessage(db.assetId, dc) | |
489 | + | if ((bt != cZ)) | |
490 | + | then throw(dc) | |
449 | 491 | else { | |
450 | - | let | |
451 | - | let | |
452 | - | let | |
453 | - | let | |
454 | - | let | |
455 | - | let | |
456 | - | let | |
457 | - | let | |
458 | - | if (( | |
459 | - | then throw(("Min lock amount is " + toString( | |
492 | + | let cE = toString(U) | |
493 | + | let dd = cD(cE, bk) | |
494 | + | let de = cr(U, bk, dd._6, dd._7) | |
495 | + | let cb = de._1 | |
496 | + | let cc = de._2 | |
497 | + | let cw = de._3 | |
498 | + | let cx = de._4 | |
499 | + | let df = de._5 | |
500 | + | if ((da > cx)) | |
501 | + | then throw(("Min lock amount is " + toString(da))) | |
460 | 502 | else { | |
461 | - | let | |
503 | + | let dg = bb(bk, 1, if (cb) | |
462 | 504 | then 1 | |
463 | 505 | else 0) | |
464 | - | let | |
465 | - | let | |
466 | - | let | |
467 | - | (((([aZ("stake", U, | |
506 | + | let dh = dg._1 | |
507 | + | let di = dg._2 | |
508 | + | let dj = dg._3 | |
509 | + | (((([aZ("stake", U, cX.transactionId, cc, cw, cx, df)] ++ ca(cb, cE, cc)) ++ bj(U, cx, df)) ++ dh) ++ dd._1) | |
468 | 510 | } | |
469 | 511 | } | |
470 | 512 | } | |
471 | 513 | } | |
472 | 514 | ||
473 | 515 | ||
474 | - | func | |
475 | - | let | |
476 | - | if ((size( | |
516 | + | func dk (U,cX) = { | |
517 | + | let cE = toString(U) | |
518 | + | if ((size(cX.payments) > 0)) | |
477 | 519 | then throw("payments are not accepted") | |
478 | 520 | else { | |
479 | - | let | |
480 | - | let | |
481 | - | let | |
482 | - | let | |
483 | - | let bu = toBigInt( | |
484 | - | let | |
485 | - | let bv = aC( | |
521 | + | let dl = valueOrElse(bo(U), $Tuple3(true, 0, 0)) | |
522 | + | let cb = dl._1 | |
523 | + | let cc = dl._2 | |
524 | + | let dm = dl._3 | |
525 | + | let bu = toBigInt(cc) | |
526 | + | let cd = ai(cE) | |
527 | + | let bv = aC(cd, -1) | |
486 | 528 | let bw = aC(ah(), -1) | |
487 | - | func | |
488 | - | let | |
489 | - | let | |
490 | - | let | |
491 | - | let | |
492 | - | let bB = | |
493 | - | let | |
494 | - | let | |
495 | - | let | |
496 | - | let | |
497 | - | let | |
498 | - | let | |
499 | - | if ((0 >= | |
500 | - | then $Tuple2( | |
501 | - | else $Tuple2(((( | |
529 | + | func dn (cf,cg) = { | |
530 | + | let do = bs(cE, cg, bu, bv, bw) | |
531 | + | let ci = do._1 | |
532 | + | let cj = do._2 | |
533 | + | let ck = do._3 | |
534 | + | let bB = do._4 | |
535 | + | let dp = an(cE, cg) | |
536 | + | let dq = cf | |
537 | + | let dr = dq._1 | |
538 | + | let ds = dq._2 | |
539 | + | let dt = makeString([cg, toString(ci)], ":") | |
540 | + | let du = makeString([ds, dt], "_") | |
541 | + | if ((0 >= ci)) | |
542 | + | then $Tuple2(dr, du) | |
543 | + | else $Tuple2((((dr :+ ScriptTransfer(U, ci, aI(cg))) :+ IntegerEntry(dp, (valueOrElse(getInteger(dp), 0) + ci))) :+ IntegerEntry(bB, 0)), du) | |
502 | 544 | } | |
503 | 545 | ||
504 | - | let | |
505 | - | let | |
506 | - | let | |
507 | - | let | |
508 | - | func | |
509 | - | then | |
510 | - | else | |
546 | + | let dv = { | |
547 | + | let bR = br | |
548 | + | let bS = size(bR) | |
549 | + | let bT = $Tuple2(nil, "") | |
550 | + | func bU (bV,bW) = if ((bW >= bS)) | |
551 | + | then bV | |
552 | + | else dn(bV, bR[bW]) | |
511 | 553 | ||
512 | - | func | |
513 | - | then | |
554 | + | func bX (bV,bW) = if ((bW >= bS)) | |
555 | + | then bV | |
514 | 556 | else throw("List size exceeds 9") | |
515 | 557 | ||
516 | - | | |
558 | + | bX(bU(bU(bU(bU(bU(bU(bU(bU(bU(bT, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9) | |
517 | 559 | } | |
518 | - | let | |
519 | - | let | |
520 | - | if ((0 >= size( | |
560 | + | let dw = dv._1 | |
561 | + | let dx = dv._2 | |
562 | + | if ((0 >= size(dw))) | |
521 | 563 | then $Tuple2(nil, 0) | |
522 | - | else $Tuple2((( | |
564 | + | else $Tuple2(((dw :+ IntegerEntry(cd, bw)) :+ ba(U, cX.transactionId, drop(dx, 1))), size(dw)) | |
523 | 565 | } | |
524 | 566 | } | |
525 | 567 | ||
526 | 568 | ||
527 | - | @Callable( | |
528 | - | func constructorV1 ( | |
569 | + | @Callable(cX) | |
570 | + | func constructorV1 (da,dy,cZ) = if ((cX.caller != this)) | |
529 | 571 | then throw("Permission denied") | |
530 | - | else [IntegerEntry(R(), | |
572 | + | else [IntegerEntry(R(), da), StringEntry(ag(), dy), StringEntry(S(), cZ)] | |
531 | 573 | ||
532 | 574 | ||
533 | 575 | ||
534 | - | @Callable( | |
535 | - | func stake () = | |
576 | + | @Callable(cX) | |
577 | + | func stake () = cW(cX.caller, cX) | |
536 | 578 | ||
537 | 579 | ||
538 | 580 | ||
539 | - | @Callable( | |
540 | - | func stakeByOriginCaller () = | |
581 | + | @Callable(cX) | |
582 | + | func stakeByOriginCaller () = cW(cX.originCaller, cX) | |
541 | 583 | ||
542 | 584 | ||
543 | 585 | ||
544 | - | @Callable( | |
545 | - | func unstake (bk) = if ((size( | |
586 | + | @Callable(cX) | |
587 | + | func unstake (bk) = if ((size(cX.payments) != 0)) | |
546 | 588 | then throw("unstake doesn't require any payment") | |
547 | 589 | else { | |
548 | - | let U = | |
549 | - | let | |
550 | - | let | |
551 | - | let | |
552 | - | let | |
553 | - | let | |
554 | - | let | |
555 | - | let | |
556 | - | let | |
557 | - | let | |
558 | - | let | |
559 | - | let | |
560 | - | if (( | |
561 | - | then throw((("You have already made a swap operation. Wait " + toString((height + | |
562 | - | else if ((0 >= | |
590 | + | let U = cX.caller | |
591 | + | let cE = toString(U) | |
592 | + | let dz = bm() | |
593 | + | let cZ = dz._1 | |
594 | + | let da = dz._2 | |
595 | + | let dA = bp(U) | |
596 | + | let cb = dA._1 | |
597 | + | let cc = dA._2 | |
598 | + | let cw = dA._3 | |
599 | + | let dB = aO(reentrantInvoke(L, "swapParamsByUserSYSREADONLY", [cE, 0], nil)) | |
600 | + | let dC = dB._2 | |
601 | + | let dD = dB._3 | |
602 | + | if ((dC > 0)) | |
603 | + | then throw((("You have already made a swap operation. Wait " + toString((height + dD))) + " height to unstake")) | |
604 | + | else if ((0 >= cc)) | |
563 | 605 | then throw("Nothing to unstake") | |
564 | - | else if ((bk > | |
565 | - | then throw(((("Requested " + toString(bk)) + ", but staked only ") + toString( | |
606 | + | else if ((bk > cc)) | |
607 | + | then throw(((("Requested " + toString(bk)) + ", but staked only ") + toString(cc))) | |
566 | 608 | else { | |
567 | - | let | |
568 | - | let | |
609 | + | let cx = (cc - bk) | |
610 | + | let dE = bb(-(bk), if ((bk == cc)) | |
569 | 611 | then -1 | |
570 | - | else 0, if ((bk == | |
612 | + | else 0, if ((bk == cc)) | |
571 | 613 | then -1 | |
572 | 614 | else 0) | |
573 | - | let | |
574 | - | let | |
575 | - | let | |
576 | - | (((([ScriptTransfer(U, bk, | |
615 | + | let dh = dE._1 | |
616 | + | let di = dE._2 | |
617 | + | let dj = dE._3 | |
618 | + | (((([ScriptTransfer(U, bk, cZ), aZ("unstake", U, cX.transactionId, cc, cw, cx, cw)] ++ ca(false, cE, cc)) ++ bj(U, cx, cw)) ++ dh) ++ cR(cE, bk)._1) | |
577 | 619 | } | |
578 | 620 | } | |
579 | 621 | ||
580 | 622 | ||
581 | 623 | ||
582 | - | @Callable( | |
624 | + | @Callable(cX) | |
583 | 625 | func deposit () = { | |
584 | - | let | |
585 | - | if ((0 > | |
626 | + | let di = aC(aa(), 0) | |
627 | + | if ((0 > di)) | |
586 | 628 | then throw("TODO: case is not supported") | |
587 | 629 | else { | |
588 | - | let dy = ah() | |
589 | - | let bw = aC(dy, -1) | |
590 | - | let dz = (bw + 1) | |
591 | - | let dA = af() | |
592 | - | let dB = ad(bD(lastBlock.timestamp)) | |
593 | - | let dC = split(valueOrElse(getString(dA), bL), b) | |
594 | - | let dD = split(valueOrElse(getString(dB), bL), b) | |
595 | - | func dE (dF,dG) = { | |
596 | - | let bk = dG.amount | |
597 | - | let dH = toBase58String(valueOrElse(dG.assetId, i)) | |
598 | - | if (!(contains(bq, dH))) | |
599 | - | then throw(((bq + " doesn't contain ") + dH)) | |
600 | - | else if ((db == 0)) | |
601 | - | then $Tuple4((dF._1 :+ ce(dH, bk)), (dF._2 :+ dH), (dF._3 :+ toBigInt(0)), (dF._4 :+ bk)) | |
630 | + | let dF = ah() | |
631 | + | let bw = aC(dF, -1) | |
632 | + | let dG = (bw + 1) | |
633 | + | let dH = af() | |
634 | + | let dI = ad(bD(lastBlock.timestamp)) | |
635 | + | let dJ = bM(split(valueOrElse(getString(dH), bL), b)) | |
636 | + | func dK (bQ,dL) = { | |
637 | + | let bk = dL.amount | |
638 | + | let dM = toBase58String(valueOrElse(dL.assetId, i)) | |
639 | + | if (!(contains(bq, dM))) | |
640 | + | then throw(((bq + " doesn't contain ") + dM)) | |
641 | + | else if ((di == 0)) | |
642 | + | then $Tuple4((bQ._1 :+ cl(dM, bk)), (bQ._2 :+ dM), (bQ._3 :+ toBigInt(0)), (bQ._4 :+ bk)) | |
602 | 643 | else { | |
603 | - | let | |
604 | - | $Tuple4( | |
644 | + | let dN = fraction(toBigInt(bk), g, toBigInt(di)) | |
645 | + | $Tuple4(bQ._1, (bQ._2 :+ dM), (bQ._3 :+ dN), (bQ._4 :+ bk)) | |
605 | 646 | } | |
606 | 647 | } | |
607 | 648 | ||
608 | - | let | |
609 | - | let | |
610 | - | let | |
611 | - | let | |
612 | - | func | |
613 | - | then | |
614 | - | else | |
649 | + | let dO = { | |
650 | + | let bR = cX.payments | |
651 | + | let bS = size(bR) | |
652 | + | let bT = $Tuple4(nil, nil, nil, nil) | |
653 | + | func bU (bV,bW) = if ((bW >= bS)) | |
654 | + | then bV | |
655 | + | else dK(bV, bR[bW]) | |
615 | 656 | ||
616 | - | func | |
617 | - | then | |
657 | + | func bX (bV,bW) = if ((bW >= bS)) | |
658 | + | then bV | |
618 | 659 | else throw("List size exceeds 10") | |
619 | 660 | ||
620 | - | | |
661 | + | bX(bU(bU(bU(bU(bU(bU(bU(bU(bU(bU(bT, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
621 | 662 | } | |
622 | - | func | |
623 | - | let | |
624 | - | let | |
625 | - | let I = indexOf( | |
626 | - | let | |
663 | + | func dP (cf,dQ) = { | |
664 | + | let dR = cf._3 | |
665 | + | let dS = aF(aj(bw, dQ), "0") | |
666 | + | let I = indexOf(dO._2, dQ) | |
667 | + | let dT = if (isDefined(I)) | |
627 | 668 | then { | |
628 | - | let | |
629 | - | let | |
630 | - | $ | |
669 | + | let dU = value(I) | |
670 | + | let dV = dO._4[dU] | |
671 | + | $Tuple2(toString((parseBigIntValue(dS) + dO._3[dU])), toString((parseIntValue(dJ[(dR + 1)]) + dV))) | |
631 | 672 | } | |
632 | - | else $ | |
633 | - | $ | |
673 | + | else $Tuple2(dS, dJ[(dR + 1)]) | |
674 | + | $Tuple3((cf._1 :+ StringEntry(aj(dG, dQ), dT._1)), ((cf._2 + b) + dT._2), (dR + 1)) | |
634 | 675 | } | |
635 | 676 | ||
636 | - | let | |
637 | - | let | |
638 | - | let | |
639 | - | let | |
640 | - | func | |
641 | - | then | |
642 | - | else | |
677 | + | let dW = { | |
678 | + | let bR = br | |
679 | + | let bS = size(bR) | |
680 | + | let bT = $Tuple3(nil, bK, 0) | |
681 | + | func dX (bV,bW) = if ((bW >= bS)) | |
682 | + | then bV | |
683 | + | else dP(bV, bR[bW]) | |
643 | 684 | ||
644 | - | func | |
645 | - | then | |
685 | + | func dY (bV,bW) = if ((bW >= bS)) | |
686 | + | then bV | |
646 | 687 | else throw("List size exceeds 9") | |
647 | 688 | ||
648 | - | | |
689 | + | dY(dX(dX(dX(dX(dX(dX(dX(dX(dX(bT, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9) | |
649 | 690 | } | |
650 | - | $Tuple2((((((dJ._1 ++ dR._1) ++ cu()) :+ IntegerEntry(dy, dz)) :+ StringEntry(dA, dR._2)) :+ StringEntry(dB, dR._3)), dz) | |
691 | + | let cJ = bY(dW._2) | |
692 | + | $Tuple2((((((dO._1 ++ dW._1) ++ cB()) :+ IntegerEntry(dF, dG)) :+ StringEntry(dH, cJ)) :+ StringEntry(dI, cJ)), dG) | |
651 | 693 | } | |
652 | 694 | } | |
653 | 695 | ||
654 | 696 | ||
655 | 697 | ||
656 | - | @Callable( | |
657 | - | func claimRewards () = | |
698 | + | @Callable(cX) | |
699 | + | func claimRewards () = dk(cX.caller, cX) | |
658 | 700 | ||
659 | 701 | ||
660 | 702 | ||
661 | - | @Callable( | |
662 | - | func claimRewardsByOriginCaller () = | |
703 | + | @Callable(cX) | |
704 | + | func claimRewardsByOriginCaller () = dk(cX.originCaller, cX) | |
663 | 705 | ||
664 | 706 | ||
665 | 707 | ||
666 | - | @Callable( | |
667 | - | func unclaimedRewardsREADONLY ( | |
668 | - | func | |
708 | + | @Callable(cX) | |
709 | + | func unclaimedRewardsREADONLY (cE) = { | |
710 | + | func dZ (cf,cg) = ((cf + makeString([cg, "0", "0"], ":")) + "_") | |
669 | 711 | ||
670 | - | let | |
712 | + | let ea = if ((cE == "")) | |
671 | 713 | then { | |
672 | - | let | |
673 | - | let | |
674 | - | let | |
675 | - | func | |
676 | - | then | |
677 | - | else | |
714 | + | let bR = br | |
715 | + | let bS = size(bR) | |
716 | + | let bT = "" | |
717 | + | func bU (bV,bW) = if ((bW >= bS)) | |
718 | + | then bV | |
719 | + | else dZ(bV, bR[bW]) | |
678 | 720 | ||
679 | - | func | |
680 | - | then | |
721 | + | func bX (bV,bW) = if ((bW >= bS)) | |
722 | + | then bV | |
681 | 723 | else throw("List size exceeds 9") | |
682 | 724 | ||
683 | - | | |
725 | + | bX(bU(bU(bU(bU(bU(bU(bU(bU(bU(bT, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9) | |
684 | 726 | } | |
685 | 727 | else { | |
686 | - | let U = addressFromStringValue( | |
687 | - | let | |
688 | - | let | |
689 | - | let | |
690 | - | let | |
691 | - | let bu = toBigInt( | |
692 | - | let | |
693 | - | let bv = aC( | |
728 | + | let U = addressFromStringValue(cE) | |
729 | + | let eb = valueOrElse(bo(U), $Tuple3(true, 0, 0)) | |
730 | + | let cb = eb._1 | |
731 | + | let cc = eb._2 | |
732 | + | let dm = eb._3 | |
733 | + | let bu = toBigInt(cc) | |
734 | + | let cd = ai(cE) | |
735 | + | let bv = aC(cd, -1) | |
694 | 736 | let bw = aC(ah(), -1) | |
695 | - | func | |
696 | - | let | |
697 | - | let | |
698 | - | let | |
699 | - | let | |
700 | - | let bB = | |
701 | - | let | |
702 | - | (( | |
737 | + | func dn (cf,cg) = { | |
738 | + | let ec = bs(cE, cg, bu, bv, bw) | |
739 | + | let ci = ec._1 | |
740 | + | let cj = ec._2 | |
741 | + | let ck = ec._3 | |
742 | + | let bB = ec._4 | |
743 | + | let ed = valueOrElse(getInteger(an(cE, cg)), 0) | |
744 | + | ((cf + makeString([cg, toString(ci), toString(ed)], ":")) + "_") | |
703 | 745 | } | |
704 | 746 | ||
705 | - | let | |
706 | - | let | |
707 | - | let | |
708 | - | func | |
709 | - | then | |
710 | - | else | |
747 | + | let bR = br | |
748 | + | let bS = size(bR) | |
749 | + | let bT = "" | |
750 | + | func bU (bV,bW) = if ((bW >= bS)) | |
751 | + | then bV | |
752 | + | else dn(bV, bR[bW]) | |
711 | 753 | ||
712 | - | func | |
713 | - | then | |
754 | + | func bX (bV,bW) = if ((bW >= bS)) | |
755 | + | then bV | |
714 | 756 | else throw("List size exceeds 9") | |
715 | 757 | ||
716 | - | | |
758 | + | bX(bU(bU(bU(bU(bU(bU(bU(bU(bU(bT, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9) | |
717 | 759 | } | |
718 | - | $Tuple2(nil, dropRight( | |
760 | + | $Tuple2(nil, dropRight(ea, 1)) | |
719 | 761 | } | |
720 | 762 | ||
721 | 763 | ||
722 | 764 | ||
723 | - | @Callable( | |
724 | - | func updateVotingPower ( | |
765 | + | @Callable(cX) | |
766 | + | func updateVotingPower (cE) = if (!(isDefined(addressFromString(cE)))) | |
725 | 767 | then throw("Invalid user address") | |
726 | 768 | else { | |
727 | - | let | |
728 | - | $Tuple2( | |
769 | + | let dd = cD(cE, 0) | |
770 | + | $Tuple2(dd._1, [cp(dd._2), cp(dd._3), cp(dd._4), cp(dd._5), cp(dd._6), cp(dd._7)]) | |
729 | 771 | } | |
730 | 772 | ||
731 | 773 | ||
732 | 774 | ||
733 | - | @Callable( | |
734 | - | func surfStakingSYSREADONLY ( | |
735 | - | let | |
736 | - | let | |
737 | - | let | |
738 | - | then | |
739 | - | else | |
740 | - | if (( | |
741 | - | then $Tuple2(nil, [0, | |
775 | + | @Callable(cX) | |
776 | + | func surfStakingSYSREADONLY (ee,ef) = { | |
777 | + | let eg = aC(aa(), 0) | |
778 | + | let eh = cp(eg) | |
779 | + | let dd = if ((ef >= 0)) | |
780 | + | then cD(ee, ef) | |
781 | + | else cR(ee, -(ef)) | |
782 | + | if ((ee == "")) | |
783 | + | then $Tuple2(nil, [0, eg, 0, eh, height, height, cp(dd._2), cp(dd._3), cp(dd._4), cp(dd._5), cp(dd._6), cp(dd._7)]) | |
742 | 784 | else { | |
743 | - | let U = aG( | |
744 | - | let | |
745 | - | let | |
746 | - | let | |
747 | - | let | |
748 | - | let | |
749 | - | let | |
750 | - | let | |
751 | - | $Tuple2(nil, [ | |
785 | + | let U = aG(ee) | |
786 | + | let de = cr(U, ef, dd._6, dd._7) | |
787 | + | let cc = de._2 | |
788 | + | let cw = de._3 | |
789 | + | let cx = de._4 | |
790 | + | let df = de._5 | |
791 | + | let ei = cc | |
792 | + | let ej = cp(ei) | |
793 | + | $Tuple2(nil, [ei, eg, ej, eh, cw, df, cp(dd._2), cp(dd._3), cp(dd._4), cp(dd._5), cp(dd._6), cp(dd._7)]) | |
752 | 794 | } | |
753 | 795 | } | |
754 | 796 | ||
755 | 797 | ||
756 | 798 | ||
757 | - | @Callable( | |
758 | - | func gnsbtFromSurfSYSREADONLY ( | |
799 | + | @Callable(cX) | |
800 | + | func gnsbtFromSurfSYSREADONLY (cq) = $Tuple2(nil, cp(cq)) | |
759 | 801 | ||
760 | 802 | ||
761 | 803 | ||
762 | - | @Callable( | |
804 | + | @Callable(cX) | |
763 | 805 | func configSYSREADONLY () = { | |
764 | - | let | |
765 | - | let | |
766 | - | let | |
767 | - | $Tuple2(nil, [ | |
806 | + | let ek = getIntegerValue(R()) | |
807 | + | let el = k | |
808 | + | let em = 1150000 | |
809 | + | $Tuple2(nil, [ek, (O * c), el, em]) | |
768 | 810 | } | |
769 | 811 | ||
770 | 812 |
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 = 86400000 | |
23 | 23 | ||
24 | 24 | let k = (1440 * 14) | |
25 | 25 | ||
26 | 26 | let l = 1 | |
27 | 27 | ||
28 | 28 | let m = 2 | |
29 | 29 | ||
30 | 30 | let n = 3 | |
31 | 31 | ||
32 | 32 | let o = 4 | |
33 | 33 | ||
34 | 34 | let p = 5 | |
35 | 35 | ||
36 | 36 | let q = 6 | |
37 | 37 | ||
38 | 38 | let r = 7 | |
39 | 39 | ||
40 | 40 | let s = 8 | |
41 | 41 | ||
42 | 42 | let t = 9 | |
43 | 43 | ||
44 | 44 | let u = 10 | |
45 | 45 | ||
46 | 46 | let v = 11 | |
47 | 47 | ||
48 | 48 | let w = 12 | |
49 | 49 | ||
50 | 50 | let x = 13 | |
51 | 51 | ||
52 | 52 | func y (z,A) = valueOrErrorMessage(getString(z, A), (((("mandatory " + toString(z)) + ".") + A) + " is not defined")) | |
53 | 53 | ||
54 | 54 | ||
55 | 55 | func B () = "%s%s__config__controlAddress" | |
56 | 56 | ||
57 | 57 | ||
58 | 58 | func C () = "%s__controlConfig" | |
59 | 59 | ||
60 | 60 | ||
61 | 61 | func D () = "%s%s__cfg__gnsbtFromSurfCoeff" | |
62 | 62 | ||
63 | 63 | ||
64 | 64 | func E (F) = split_4C(y(F, C()), b) | |
65 | 65 | ||
66 | 66 | ||
67 | 67 | func G (H,I) = valueOrErrorMessage(addressFromString(H[I]), ("Control cfg doesn't contain address at index " + toString(I))) | |
68 | 68 | ||
69 | 69 | ||
70 | 70 | let J = addressFromStringValue(valueOrElse(getString(this, B()), "3N4NS7d4Jo9a6F14LiFUKKYVdUkkf2eP4Zx")) | |
71 | 71 | ||
72 | 72 | let H = E(J) | |
73 | 73 | ||
74 | 74 | let K = G(H, o) | |
75 | 75 | ||
76 | 76 | let L = G(H, l) | |
77 | 77 | ||
78 | 78 | let M = G(H, m) | |
79 | 79 | ||
80 | 80 | let N = G(H, x) | |
81 | 81 | ||
82 | 82 | let O = valueOrElse(getInteger(this, D()), 300) | |
83 | 83 | ||
84 | 84 | func P () = "bond_asset_id" | |
85 | 85 | ||
86 | 86 | ||
87 | 87 | func Q () = "auction_contract" | |
88 | 88 | ||
89 | 89 | ||
90 | 90 | func R () = "%s__minLockAmount" | |
91 | 91 | ||
92 | 92 | ||
93 | 93 | func S () = "%s__stakedAssetId" | |
94 | 94 | ||
95 | 95 | ||
96 | 96 | func T (U) = makeString(["%s%s%s", "paramByUser", toString(U), "amount"], a) | |
97 | 97 | ||
98 | 98 | ||
99 | 99 | func V (U) = makeString(["%s%s%s", "paramByUser", toString(U), "start"], a) | |
100 | 100 | ||
101 | 101 | ||
102 | 102 | func W (U) = makeString(["%s%s%s", "paramByUser", toString(U), "vpEffectiveHeight"], a) | |
103 | 103 | ||
104 | 104 | ||
105 | 105 | func X (Y,U,Z) = makeString(["%s%s%s%s", "history", Y, toString(U), toBase58String(Z)], a) | |
106 | 106 | ||
107 | 107 | ||
108 | 108 | func aa () = makeString(["%s%s", "stats", "activeTotalLocked"], a) | |
109 | 109 | ||
110 | 110 | ||
111 | 111 | func ab () = makeString(["%s%s", "stats", "locksCount"], a) | |
112 | 112 | ||
113 | 113 | ||
114 | 114 | func ac () = makeString(["%s%s", "stats", "activeUsersCount"], a) | |
115 | 115 | ||
116 | 116 | ||
117 | 117 | func ad (ae) = makeString(["%s%s%d", "stats", "depositAmtByDay", toString(ae)], a) | |
118 | 118 | ||
119 | 119 | ||
120 | 120 | func af () = makeString(["%s%s%d", "stats", "depositAmtTotals"], a) | |
121 | 121 | ||
122 | 122 | ||
123 | 123 | func ag () = "supportedRewardAssets" | |
124 | 124 | ||
125 | 125 | ||
126 | 126 | func ah () = makeString(["%s%s%s", "dep", "lastNum"], a) | |
127 | 127 | ||
128 | 128 | ||
129 | 129 | func ai (U) = makeString(["%s%s%s", "userRwdFromDepNum", U], a) | |
130 | 130 | ||
131 | 131 | ||
132 | 132 | func aj (ak,al) = makeString(["%s%d", "rwdPerNsbtSumByDepNum", toString(ak), al], a) | |
133 | 133 | ||
134 | 134 | ||
135 | 135 | func am (U,al) = makeString(["%s%s%s", "rwd", U, al], a) | |
136 | 136 | ||
137 | 137 | ||
138 | 138 | func an (U,al) = makeString(["%s%s%s", "clm", U, al], a) | |
139 | 139 | ||
140 | 140 | ||
141 | 141 | func ao (al) = makeString(["%s%s", "notDistributed", al], a) | |
142 | 142 | ||
143 | 143 | ||
144 | 144 | func ap () = makeString(["%s%s", "vp", "periodDuration"], a) | |
145 | 145 | ||
146 | 146 | ||
147 | 147 | func aq () = makeString(["%s%s", "vp", "lastTotalsPeriodProcessed"], a) | |
148 | 148 | ||
149 | 149 | ||
150 | 150 | func ar (U) = makeString(["%s%s%s", "vp", "lastUserPeriodProcessed", U], a) | |
151 | 151 | ||
152 | 152 | ||
153 | 153 | func as () = makeString(["%s%s", "vp", "totalMature"], a) | |
154 | 154 | ||
155 | 155 | ||
156 | 156 | func at () = makeString(["%s%s", "vp", "totalTeen"], a) | |
157 | 157 | ||
158 | 158 | ||
159 | 159 | func au () = makeString(["%s%s", "vp", "totalKid"], a) | |
160 | 160 | ||
161 | 161 | ||
162 | 162 | func av (U) = makeString(["%s%s%s", "vp", "userMature", U], a) | |
163 | 163 | ||
164 | 164 | ||
165 | 165 | func aw (U) = makeString(["%s%s%s", "vp", "userTeen", U], a) | |
166 | 166 | ||
167 | 167 | ||
168 | 168 | func ax (U) = makeString(["%s%s%s", "vp", "userKid", U], a) | |
169 | 169 | ||
170 | 170 | ||
171 | 171 | func ay (az,aA) = fraction(toBigInt(az), g, aA) | |
172 | 172 | ||
173 | 173 | ||
174 | 174 | func aB (A) = valueOrElse(getInteger(this, A), 0) | |
175 | 175 | ||
176 | 176 | ||
177 | 177 | func aC (A,aD) = valueOrElse(getInteger(this, A), aD) | |
178 | 178 | ||
179 | 179 | ||
180 | 180 | func aE (A) = valueOrErrorMessage(getInteger(this, A), (("Mandatory this." + A) + " is not defined")) | |
181 | 181 | ||
182 | 182 | ||
183 | 183 | func aF (A,aD) = valueOrElse(getString(this, A), aD) | |
184 | 184 | ||
185 | 185 | ||
186 | 186 | func aG (aH) = valueOrErrorMessage(addressFromString(aH), ("couldn't parse passed addressStr=" + aH)) | |
187 | 187 | ||
188 | 188 | ||
189 | 189 | func aI (aJ) = if ((aJ == h)) | |
190 | 190 | then unit | |
191 | 191 | else fromBase58String(aJ) | |
192 | 192 | ||
193 | 193 | ||
194 | 194 | func aK (aL) = { | |
195 | 195 | let aM = aL | |
196 | 196 | if ($isInstanceOf(aM, "Int")) | |
197 | 197 | then { | |
198 | 198 | let aN = aM | |
199 | 199 | aN | |
200 | 200 | } | |
201 | 201 | else throw("fail to cast into Int") | |
202 | 202 | } | |
203 | 203 | ||
204 | 204 | ||
205 | 205 | func aO (aP) = { | |
206 | 206 | let aM = aP | |
207 | 207 | if ($isInstanceOf(aM, "(Int, Int, Int, Int, Int, Int, Int)")) | |
208 | 208 | then { | |
209 | 209 | let aQ = aM | |
210 | 210 | aQ | |
211 | 211 | } | |
212 | 212 | else throw("fail to cast into Int") | |
213 | 213 | } | |
214 | 214 | ||
215 | 215 | ||
216 | 216 | func aR (aS,aT,aU,aV) = makeString(["%d%d%d%d%d%d", toString(lastBlock.height), toString(lastBlock.timestamp), toString(aS), toString(aT), toString(aU), toString(aV)], a) | |
217 | 217 | ||
218 | 218 | ||
219 | 219 | func aW (aX,aY) = makeString(["%s%d%d%s", aX, toString(lastBlock.height), toString(lastBlock.timestamp), aY], a) | |
220 | 220 | ||
221 | 221 | ||
222 | 222 | func aZ (Y,U,Z,aS,aT,aU,aV) = StringEntry(X(Y, U, Z), aR(aS, aT, aU, aV)) | |
223 | 223 | ||
224 | 224 | ||
225 | 225 | func ba (U,Z,aY) = StringEntry(X("claim", U, Z), aW(toString(U), aY)) | |
226 | 226 | ||
227 | 227 | ||
228 | 228 | func bb (bc,bd,be) = { | |
229 | 229 | let bf = aB(ab()) | |
230 | 230 | let bg = aB(ac()) | |
231 | 231 | let bh = aB(aa()) | |
232 | 232 | let bi = (bh + bc) | |
233 | 233 | $Tuple3([IntegerEntry(ab(), (bf + bd)), IntegerEntry(ac(), (bg + be)), IntegerEntry(aa(), bi)], bh, bi) | |
234 | 234 | } | |
235 | 235 | ||
236 | 236 | ||
237 | 237 | func bj (U,bk,bl) = [IntegerEntry(T(U), bk), IntegerEntry(V(U), bl)] | |
238 | 238 | ||
239 | 239 | ||
240 | 240 | func bm () = $Tuple2(fromBase58String(y(this, S())), aE(R())) | |
241 | 241 | ||
242 | 242 | ||
243 | 243 | func bn (U) = (aC(T(U), 0) > 0) | |
244 | 244 | ||
245 | 245 | ||
246 | 246 | func bo (U) = if (bn(U)) | |
247 | 247 | then $Tuple3(false, aE(T(U)), aE(V(U))) | |
248 | 248 | else unit | |
249 | 249 | ||
250 | 250 | ||
251 | 251 | func bp (U) = valueOrErrorMessage(bo(U), (("User " + toString(U)) + " is not defined")) | |
252 | 252 | ||
253 | 253 | ||
254 | 254 | let bq = aF(ag(), "") | |
255 | 255 | ||
256 | 256 | let br = split(bq, "_") | |
257 | 257 | ||
258 | 258 | func bs (U,bt,bu,bv,bw) = { | |
259 | 259 | let bx = aj(bw, bt) | |
260 | 260 | let by = parseBigIntValue(aF(aj(bw, bt), "0")) | |
261 | 261 | let bz = parseBigIntValue(aF(aj(bv, bt), "0")) | |
262 | 262 | let bA = toInt(fraction((by - bz), bu, g)) | |
263 | 263 | let bB = am(U, bt) | |
264 | 264 | let bC = aC(bB, 0) | |
265 | 265 | $Tuple4((bC + bA), bC, bA, bB) | |
266 | 266 | } | |
267 | 267 | ||
268 | 268 | ||
269 | 269 | func bD (ae) = ((ae / j) * j) | |
270 | 270 | ||
271 | 271 | ||
272 | 272 | func bE (bF,bG,bH) = { | |
273 | 273 | let bI = valueOrErrorMessage(indexOf(bF, bG), ((("there is no substring " + bG) + " in ") + bF)) | |
274 | 274 | if ((bI == 0)) | |
275 | 275 | then 0 | |
276 | 276 | else { | |
277 | 277 | let bJ = take(bF, bI) | |
278 | 278 | (size(split(bJ, bH)) - 1) | |
279 | 279 | } | |
280 | 280 | } | |
281 | 281 | ||
282 | 282 | ||
283 | 283 | let bK = "%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d" | |
284 | 284 | ||
285 | 285 | let bL = (bK + "__0__0__0__0__0__0__0__0__0__0__0__0__0__0__0__0__0__0") | |
286 | 286 | ||
287 | - | func bM (bN,U,bO) = { | |
288 | - | let bu = toBigInt(bO) | |
289 | - | let bP = ai(U) | |
290 | - | let bv = aC(bP, -1) | |
287 | + | func bM (bN) = { | |
288 | + | let bO = (size(bN) - 1) | |
289 | + | func bP (bQ,I) = if ((bO > I)) | |
290 | + | then bQ | |
291 | + | else (bQ :+ "0") | |
292 | + | ||
293 | + | let bR = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17] | |
294 | + | let bS = size(bR) | |
295 | + | let bT = bN | |
296 | + | func bU (bV,bW) = if ((bW >= bS)) | |
297 | + | then bV | |
298 | + | else bP(bV, bR[bW]) | |
299 | + | ||
300 | + | func bX (bV,bW) = if ((bW >= bS)) | |
301 | + | then bV | |
302 | + | else throw("List size exceeds 18") | |
303 | + | ||
304 | + | bX(bU(bU(bU(bU(bU(bU(bU(bU(bU(bU(bU(bU(bU(bU(bU(bU(bU(bU(bT, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18) | |
305 | + | } | |
306 | + | ||
307 | + | ||
308 | + | func bY (bN) = { | |
309 | + | let bO = (size(split_4C(bN, b)) - 1) | |
310 | + | func bZ (bQ,I) = if ((bO > I)) | |
311 | + | then bQ | |
312 | + | else (bQ + "__0") | |
313 | + | ||
314 | + | let bR = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17] | |
315 | + | let bS = size(bR) | |
316 | + | let bT = bN | |
317 | + | func bU (bV,bW) = if ((bW >= bS)) | |
318 | + | then bV | |
319 | + | else bZ(bV, bR[bW]) | |
320 | + | ||
321 | + | func bX (bV,bW) = if ((bW >= bS)) | |
322 | + | then bV | |
323 | + | else throw("List size exceeds 18") | |
324 | + | ||
325 | + | bX(bU(bU(bU(bU(bU(bU(bU(bU(bU(bU(bU(bU(bU(bU(bU(bU(bU(bU(bT, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18) | |
326 | + | } | |
327 | + | ||
328 | + | ||
329 | + | func ca (cb,U,cc) = { | |
330 | + | let bu = toBigInt(cc) | |
331 | + | let cd = ai(U) | |
332 | + | let bv = aC(cd, -1) | |
291 | 333 | let bw = aC(ah(), -1) | |
292 | - | func | |
293 | - | let | |
294 | - | let | |
295 | - | let | |
296 | - | let | |
297 | - | let bB = | |
298 | - | ( | |
334 | + | func ce (cf,cg) = { | |
335 | + | let ch = bs(U, cg, bu, bv, bw) | |
336 | + | let ci = ch._1 | |
337 | + | let cj = ch._2 | |
338 | + | let ck = ch._3 | |
339 | + | let bB = ch._4 | |
340 | + | (cf :+ IntegerEntry(bB, ci)) | |
299 | 341 | } | |
300 | 342 | ||
301 | 343 | if (if ((bw == -1)) | |
302 | 344 | then (bv == -1) | |
303 | 345 | else false) | |
304 | 346 | then nil | |
305 | 347 | else if (if ((bw == -1)) | |
306 | 348 | then (bv > -1) | |
307 | 349 | else false) | |
308 | 350 | then throw("invalid depositNumLast and depositNumUser state") | |
309 | 351 | else if (if ((bw > -1)) | |
310 | 352 | then (bv >= -1) | |
311 | 353 | else false) | |
312 | - | then if ( | |
313 | - | then [IntegerEntry( | |
354 | + | then if (cb) | |
355 | + | then [IntegerEntry(cd, bw)] | |
314 | 356 | else ({ | |
315 | - | let | |
316 | - | let | |
317 | - | let | |
318 | - | func | |
319 | - | then | |
320 | - | else | |
357 | + | let bR = br | |
358 | + | let bS = size(bR) | |
359 | + | let bT = nil | |
360 | + | func bU (bV,bW) = if ((bW >= bS)) | |
361 | + | then bV | |
362 | + | else ce(bV, bR[bW]) | |
321 | 363 | ||
322 | - | func | |
323 | - | then | |
364 | + | func bX (bV,bW) = if ((bW >= bS)) | |
365 | + | then bV | |
324 | 366 | else throw("List size exceeds 9") | |
325 | 367 | ||
326 | - | | |
327 | - | } :+ IntegerEntry( | |
368 | + | bX(bU(bU(bU(bU(bU(bU(bU(bU(bU(bT, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9) | |
369 | + | } :+ IntegerEntry(cd, bw)) | |
328 | 370 | else throw(((("uncovered condition: depositNumLast=" + toString(bw)) + " depositNumUser=") + toString(bv))) | |
329 | 371 | } | |
330 | 372 | ||
331 | 373 | ||
332 | - | func | |
333 | - | let | |
334 | - | let | |
335 | - | IntegerEntry( | |
374 | + | func cl (al,cm) = { | |
375 | + | let cn = ao(al) | |
376 | + | let co = aC(cn, 0) | |
377 | + | IntegerEntry(cn, (co + cm)) | |
336 | 378 | } | |
337 | 379 | ||
338 | 380 | ||
339 | - | func | |
381 | + | func cp (cq) = (cq / O) | |
340 | 382 | ||
341 | 383 | ||
342 | - | func | |
343 | - | let | |
344 | - | let | |
345 | - | let | |
346 | - | let | |
347 | - | let | |
348 | - | then | |
349 | - | else ( | |
350 | - | let | |
351 | - | let | |
352 | - | let | |
353 | - | then ( | |
354 | - | else if (( | |
355 | - | then ( | |
356 | - | else | |
357 | - | $Tuple5( | |
384 | + | func cr (U,cs,ct,cu) = { | |
385 | + | let cv = valueOrElse(bo(U), $Tuple3(true, 0, 0)) | |
386 | + | let cb = cv._1 | |
387 | + | let cc = cv._2 | |
388 | + | let cw = cv._3 | |
389 | + | let cx = if (cb) | |
390 | + | then cs | |
391 | + | else (cs + cc) | |
392 | + | let cy = aC(ap(), k) | |
393 | + | let cz = (height / cy) | |
394 | + | let cA = if ((cu > 0)) | |
395 | + | then (cz + 2) | |
396 | + | else if ((ct > 0)) | |
397 | + | then (cz + 1) | |
398 | + | else cz | |
399 | + | $Tuple5(cb, cc, cw, cx, (cA * cy)) | |
358 | 400 | } | |
359 | 401 | ||
360 | 402 | ||
361 | - | func | |
362 | - | let | |
363 | - | if (( | |
403 | + | func cB () = { | |
404 | + | let cz = (height / aC(ap(), k)) | |
405 | + | if ((cz > aB(aq()))) | |
364 | 406 | then { | |
365 | - | let | |
366 | - | [IntegerEntry(as(), ( | |
407 | + | let cC = valueOrElse(getInteger(as()), aB(aa())) | |
408 | + | [IntegerEntry(as(), (cC + aB(at()))), IntegerEntry(at(), aB(au())), IntegerEntry(au(), 0), IntegerEntry(aq(), cz)] | |
367 | 409 | } | |
368 | 410 | else nil | |
369 | 411 | } | |
370 | 412 | ||
371 | 413 | ||
372 | - | func | |
414 | + | func cD (cE,cs) = if ((0 > cs)) | |
373 | 415 | then throw("amountToAdd should be >= 0") | |
374 | 416 | else { | |
375 | - | let | |
376 | - | let | |
377 | - | let | |
378 | - | let | |
379 | - | let | |
380 | - | let | |
417 | + | let cy = aC(ap(), k) | |
418 | + | let cz = (height / cy) | |
419 | + | let cC = valueOrElse(getInteger(as()), aB(aa())) | |
420 | + | let cF = aB(at()) | |
421 | + | let cG = aB(au()) | |
422 | + | let cH = if ((cE == "")) | |
381 | 423 | then 0 | |
382 | - | else valueOrElse(getInteger(av( | |
383 | - | let | |
384 | - | let | |
385 | - | let | |
386 | - | then $Tuple7(( | |
387 | - | else $Tuple7( | |
388 | - | let | |
389 | - | then $Tuple4([IntegerEntry(as(), ( | |
390 | - | else $Tuple4(nil, | |
391 | - | let | |
392 | - | let | |
393 | - | $Tuple7((((( | |
424 | + | else valueOrElse(getInteger(av(cE)), aB(T(addressFromStringValue(cE)))) | |
425 | + | let ct = aB(aw(cE)) | |
426 | + | let cu = aB(ax(cE)) | |
427 | + | let cI = if ((cz > aB(ar(cE)))) | |
428 | + | then $Tuple7((cC + ct), (cF + (cu - ct)), (cG - cu), (cH + ct), cu, 0, [IntegerEntry(ar(cE), cz)]) | |
429 | + | else $Tuple7(cC, cF, cG, cH, ct, cu, nil) | |
430 | + | let cJ = if ((cz > aB(aq()))) | |
431 | + | then $Tuple4([IntegerEntry(as(), (cI._1 + cI._2)), IntegerEntry(at(), cI._3), IntegerEntry(au(), 0), IntegerEntry(aq(), cz)], (cI._1 + cI._2), cI._3, 0) | |
432 | + | else $Tuple4(nil, cC, cF, cG) | |
433 | + | let cK = fraction(cs, (height % cy), cy) | |
434 | + | let cL = (cs - cK) | |
435 | + | $Tuple7(((((cJ._1 :+ IntegerEntry(av(cE), cI._4)) :+ IntegerEntry(aw(cE), (cI._5 + cL))) :+ IntegerEntry(ax(cE), (cI._6 + cK))) ++ cI._7), cJ._2, cJ._3, cJ._4, cI._4, (cI._5 + cL), (cI._6 + cK)) | |
394 | 436 | } | |
395 | 437 | ||
396 | 438 | ||
397 | - | let | |
439 | + | let cM = 0 | |
398 | 440 | ||
399 | - | let | |
441 | + | let cN = 1 | |
400 | 442 | ||
401 | - | func | |
402 | - | then [( | |
403 | - | else [0, ( | |
443 | + | func cO (cP,cQ) = if ((cQ >= cP)) | |
444 | + | then [(cQ - cP), 0] | |
445 | + | else [0, (cP - cQ)] | |
404 | 446 | ||
405 | 447 | ||
406 | - | func | |
448 | + | func cR (cE,cS) = if ((0 >= cS)) | |
407 | 449 | then throw("amountToRemove should be > 0") | |
408 | 450 | else { | |
409 | - | let | |
410 | - | let | |
411 | - | let | |
412 | - | let | |
413 | - | let | |
414 | - | let | |
451 | + | let cy = aC(ap(), k) | |
452 | + | let cz = (height / cy) | |
453 | + | let cC = valueOrElse(getInteger(as()), aB(aa())) | |
454 | + | let cF = aB(at()) | |
455 | + | let cG = aB(au()) | |
456 | + | let cH = if ((cE == "")) | |
415 | 457 | then 0 | |
416 | - | else valueOrElse(getInteger(av( | |
417 | - | let | |
418 | - | let | |
419 | - | let | |
420 | - | let | |
421 | - | let | |
422 | - | if (( | |
458 | + | else valueOrElse(getInteger(av(cE)), aB(T(addressFromStringValue(cE)))) | |
459 | + | let ct = aB(aw(cE)) | |
460 | + | let cu = aB(ax(cE)) | |
461 | + | let cT = cO(cH, cS) | |
462 | + | let cU = cO(ct, cT[cM]) | |
463 | + | let cV = cO(cu, cU[cM]) | |
464 | + | if ((cV[cM] != 0)) | |
423 | 465 | then throw("Should not happen") | |
424 | 466 | else { | |
425 | - | let | |
426 | - | then $Tuple7(( | |
427 | - | else $Tuple7( | |
428 | - | let | |
429 | - | then $Tuple4([IntegerEntry(as(), ( | |
430 | - | else $Tuple4(nil, | |
431 | - | $Tuple7((((( | |
467 | + | let cI = if ((cz > aB(ar(cE)))) | |
468 | + | then $Tuple7((cC + cU[cN]), (cF + (cV[cN] - cU[cN])), (cG - cV[cN]), (cT[cN] + cU[cN]), cV[cN], 0, [IntegerEntry(ar(cE), cz)]) | |
469 | + | else $Tuple7(cC, cF, cG, cT[cN], cU[cN], cV[cN], nil) | |
470 | + | let cJ = if ((cz > aB(aq()))) | |
471 | + | then $Tuple4([IntegerEntry(as(), (cI._1 + cI._2)), IntegerEntry(at(), cI._3), IntegerEntry(au(), 0), IntegerEntry(aq(), cz)], (cI._1 + cI._2), cI._3, 0) | |
472 | + | else $Tuple4(nil, cC, cF, cG) | |
473 | + | $Tuple7(((((cJ._1 :+ IntegerEntry(av(cE), cI._4)) :+ IntegerEntry(aw(cE), cI._5)) :+ IntegerEntry(ax(cE), cI._6)) ++ cI._7), cJ._2, cJ._3, cJ._4, cI._4, cI._5, cI._6) | |
432 | 474 | } | |
433 | 475 | } | |
434 | 476 | ||
435 | 477 | ||
436 | - | func | |
437 | - | let | |
438 | - | let | |
439 | - | let | |
440 | - | if ((size( | |
478 | + | func cW (U,cX) = { | |
479 | + | let cY = bm() | |
480 | + | let cZ = cY._1 | |
481 | + | let da = cY._2 | |
482 | + | if ((size(cX.payments) != 1)) | |
441 | 483 | then throw("Invalid payments size") | |
442 | 484 | else { | |
443 | - | let | |
444 | - | let bk = | |
445 | - | let | |
446 | - | let bt = valueOrErrorMessage( | |
447 | - | if ((bt != | |
448 | - | then throw( | |
485 | + | let db = cX.payments[0] | |
486 | + | let bk = db.amount | |
487 | + | let dc = (("Invalid asset. " + toBase58String(cZ)) + " is expected") | |
488 | + | let bt = valueOrErrorMessage(db.assetId, dc) | |
489 | + | if ((bt != cZ)) | |
490 | + | then throw(dc) | |
449 | 491 | else { | |
450 | - | let | |
451 | - | let | |
452 | - | let | |
453 | - | let | |
454 | - | let | |
455 | - | let | |
456 | - | let | |
457 | - | let | |
458 | - | if (( | |
459 | - | then throw(("Min lock amount is " + toString( | |
492 | + | let cE = toString(U) | |
493 | + | let dd = cD(cE, bk) | |
494 | + | let de = cr(U, bk, dd._6, dd._7) | |
495 | + | let cb = de._1 | |
496 | + | let cc = de._2 | |
497 | + | let cw = de._3 | |
498 | + | let cx = de._4 | |
499 | + | let df = de._5 | |
500 | + | if ((da > cx)) | |
501 | + | then throw(("Min lock amount is " + toString(da))) | |
460 | 502 | else { | |
461 | - | let | |
503 | + | let dg = bb(bk, 1, if (cb) | |
462 | 504 | then 1 | |
463 | 505 | else 0) | |
464 | - | let | |
465 | - | let | |
466 | - | let | |
467 | - | (((([aZ("stake", U, | |
506 | + | let dh = dg._1 | |
507 | + | let di = dg._2 | |
508 | + | let dj = dg._3 | |
509 | + | (((([aZ("stake", U, cX.transactionId, cc, cw, cx, df)] ++ ca(cb, cE, cc)) ++ bj(U, cx, df)) ++ dh) ++ dd._1) | |
468 | 510 | } | |
469 | 511 | } | |
470 | 512 | } | |
471 | 513 | } | |
472 | 514 | ||
473 | 515 | ||
474 | - | func | |
475 | - | let | |
476 | - | if ((size( | |
516 | + | func dk (U,cX) = { | |
517 | + | let cE = toString(U) | |
518 | + | if ((size(cX.payments) > 0)) | |
477 | 519 | then throw("payments are not accepted") | |
478 | 520 | else { | |
479 | - | let | |
480 | - | let | |
481 | - | let | |
482 | - | let | |
483 | - | let bu = toBigInt( | |
484 | - | let | |
485 | - | let bv = aC( | |
521 | + | let dl = valueOrElse(bo(U), $Tuple3(true, 0, 0)) | |
522 | + | let cb = dl._1 | |
523 | + | let cc = dl._2 | |
524 | + | let dm = dl._3 | |
525 | + | let bu = toBigInt(cc) | |
526 | + | let cd = ai(cE) | |
527 | + | let bv = aC(cd, -1) | |
486 | 528 | let bw = aC(ah(), -1) | |
487 | - | func | |
488 | - | let | |
489 | - | let | |
490 | - | let | |
491 | - | let | |
492 | - | let bB = | |
493 | - | let | |
494 | - | let | |
495 | - | let | |
496 | - | let | |
497 | - | let | |
498 | - | let | |
499 | - | if ((0 >= | |
500 | - | then $Tuple2( | |
501 | - | else $Tuple2(((( | |
529 | + | func dn (cf,cg) = { | |
530 | + | let do = bs(cE, cg, bu, bv, bw) | |
531 | + | let ci = do._1 | |
532 | + | let cj = do._2 | |
533 | + | let ck = do._3 | |
534 | + | let bB = do._4 | |
535 | + | let dp = an(cE, cg) | |
536 | + | let dq = cf | |
537 | + | let dr = dq._1 | |
538 | + | let ds = dq._2 | |
539 | + | let dt = makeString([cg, toString(ci)], ":") | |
540 | + | let du = makeString([ds, dt], "_") | |
541 | + | if ((0 >= ci)) | |
542 | + | then $Tuple2(dr, du) | |
543 | + | else $Tuple2((((dr :+ ScriptTransfer(U, ci, aI(cg))) :+ IntegerEntry(dp, (valueOrElse(getInteger(dp), 0) + ci))) :+ IntegerEntry(bB, 0)), du) | |
502 | 544 | } | |
503 | 545 | ||
504 | - | let | |
505 | - | let | |
506 | - | let | |
507 | - | let | |
508 | - | func | |
509 | - | then | |
510 | - | else | |
546 | + | let dv = { | |
547 | + | let bR = br | |
548 | + | let bS = size(bR) | |
549 | + | let bT = $Tuple2(nil, "") | |
550 | + | func bU (bV,bW) = if ((bW >= bS)) | |
551 | + | then bV | |
552 | + | else dn(bV, bR[bW]) | |
511 | 553 | ||
512 | - | func | |
513 | - | then | |
554 | + | func bX (bV,bW) = if ((bW >= bS)) | |
555 | + | then bV | |
514 | 556 | else throw("List size exceeds 9") | |
515 | 557 | ||
516 | - | | |
558 | + | bX(bU(bU(bU(bU(bU(bU(bU(bU(bU(bT, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9) | |
517 | 559 | } | |
518 | - | let | |
519 | - | let | |
520 | - | if ((0 >= size( | |
560 | + | let dw = dv._1 | |
561 | + | let dx = dv._2 | |
562 | + | if ((0 >= size(dw))) | |
521 | 563 | then $Tuple2(nil, 0) | |
522 | - | else $Tuple2((( | |
564 | + | else $Tuple2(((dw :+ IntegerEntry(cd, bw)) :+ ba(U, cX.transactionId, drop(dx, 1))), size(dw)) | |
523 | 565 | } | |
524 | 566 | } | |
525 | 567 | ||
526 | 568 | ||
527 | - | @Callable( | |
528 | - | func constructorV1 ( | |
569 | + | @Callable(cX) | |
570 | + | func constructorV1 (da,dy,cZ) = if ((cX.caller != this)) | |
529 | 571 | then throw("Permission denied") | |
530 | - | else [IntegerEntry(R(), | |
572 | + | else [IntegerEntry(R(), da), StringEntry(ag(), dy), StringEntry(S(), cZ)] | |
531 | 573 | ||
532 | 574 | ||
533 | 575 | ||
534 | - | @Callable( | |
535 | - | func stake () = | |
576 | + | @Callable(cX) | |
577 | + | func stake () = cW(cX.caller, cX) | |
536 | 578 | ||
537 | 579 | ||
538 | 580 | ||
539 | - | @Callable( | |
540 | - | func stakeByOriginCaller () = | |
581 | + | @Callable(cX) | |
582 | + | func stakeByOriginCaller () = cW(cX.originCaller, cX) | |
541 | 583 | ||
542 | 584 | ||
543 | 585 | ||
544 | - | @Callable( | |
545 | - | func unstake (bk) = if ((size( | |
586 | + | @Callable(cX) | |
587 | + | func unstake (bk) = if ((size(cX.payments) != 0)) | |
546 | 588 | then throw("unstake doesn't require any payment") | |
547 | 589 | else { | |
548 | - | let U = | |
549 | - | let | |
550 | - | let | |
551 | - | let | |
552 | - | let | |
553 | - | let | |
554 | - | let | |
555 | - | let | |
556 | - | let | |
557 | - | let | |
558 | - | let | |
559 | - | let | |
560 | - | if (( | |
561 | - | then throw((("You have already made a swap operation. Wait " + toString((height + | |
562 | - | else if ((0 >= | |
590 | + | let U = cX.caller | |
591 | + | let cE = toString(U) | |
592 | + | let dz = bm() | |
593 | + | let cZ = dz._1 | |
594 | + | let da = dz._2 | |
595 | + | let dA = bp(U) | |
596 | + | let cb = dA._1 | |
597 | + | let cc = dA._2 | |
598 | + | let cw = dA._3 | |
599 | + | let dB = aO(reentrantInvoke(L, "swapParamsByUserSYSREADONLY", [cE, 0], nil)) | |
600 | + | let dC = dB._2 | |
601 | + | let dD = dB._3 | |
602 | + | if ((dC > 0)) | |
603 | + | then throw((("You have already made a swap operation. Wait " + toString((height + dD))) + " height to unstake")) | |
604 | + | else if ((0 >= cc)) | |
563 | 605 | then throw("Nothing to unstake") | |
564 | - | else if ((bk > | |
565 | - | then throw(((("Requested " + toString(bk)) + ", but staked only ") + toString( | |
606 | + | else if ((bk > cc)) | |
607 | + | then throw(((("Requested " + toString(bk)) + ", but staked only ") + toString(cc))) | |
566 | 608 | else { | |
567 | - | let | |
568 | - | let | |
609 | + | let cx = (cc - bk) | |
610 | + | let dE = bb(-(bk), if ((bk == cc)) | |
569 | 611 | then -1 | |
570 | - | else 0, if ((bk == | |
612 | + | else 0, if ((bk == cc)) | |
571 | 613 | then -1 | |
572 | 614 | else 0) | |
573 | - | let | |
574 | - | let | |
575 | - | let | |
576 | - | (((([ScriptTransfer(U, bk, | |
615 | + | let dh = dE._1 | |
616 | + | let di = dE._2 | |
617 | + | let dj = dE._3 | |
618 | + | (((([ScriptTransfer(U, bk, cZ), aZ("unstake", U, cX.transactionId, cc, cw, cx, cw)] ++ ca(false, cE, cc)) ++ bj(U, cx, cw)) ++ dh) ++ cR(cE, bk)._1) | |
577 | 619 | } | |
578 | 620 | } | |
579 | 621 | ||
580 | 622 | ||
581 | 623 | ||
582 | - | @Callable( | |
624 | + | @Callable(cX) | |
583 | 625 | func deposit () = { | |
584 | - | let | |
585 | - | if ((0 > | |
626 | + | let di = aC(aa(), 0) | |
627 | + | if ((0 > di)) | |
586 | 628 | then throw("TODO: case is not supported") | |
587 | 629 | else { | |
588 | - | let dy = ah() | |
589 | - | let bw = aC(dy, -1) | |
590 | - | let dz = (bw + 1) | |
591 | - | let dA = af() | |
592 | - | let dB = ad(bD(lastBlock.timestamp)) | |
593 | - | let dC = split(valueOrElse(getString(dA), bL), b) | |
594 | - | let dD = split(valueOrElse(getString(dB), bL), b) | |
595 | - | func dE (dF,dG) = { | |
596 | - | let bk = dG.amount | |
597 | - | let dH = toBase58String(valueOrElse(dG.assetId, i)) | |
598 | - | if (!(contains(bq, dH))) | |
599 | - | then throw(((bq + " doesn't contain ") + dH)) | |
600 | - | else if ((db == 0)) | |
601 | - | then $Tuple4((dF._1 :+ ce(dH, bk)), (dF._2 :+ dH), (dF._3 :+ toBigInt(0)), (dF._4 :+ bk)) | |
630 | + | let dF = ah() | |
631 | + | let bw = aC(dF, -1) | |
632 | + | let dG = (bw + 1) | |
633 | + | let dH = af() | |
634 | + | let dI = ad(bD(lastBlock.timestamp)) | |
635 | + | let dJ = bM(split(valueOrElse(getString(dH), bL), b)) | |
636 | + | func dK (bQ,dL) = { | |
637 | + | let bk = dL.amount | |
638 | + | let dM = toBase58String(valueOrElse(dL.assetId, i)) | |
639 | + | if (!(contains(bq, dM))) | |
640 | + | then throw(((bq + " doesn't contain ") + dM)) | |
641 | + | else if ((di == 0)) | |
642 | + | then $Tuple4((bQ._1 :+ cl(dM, bk)), (bQ._2 :+ dM), (bQ._3 :+ toBigInt(0)), (bQ._4 :+ bk)) | |
602 | 643 | else { | |
603 | - | let | |
604 | - | $Tuple4( | |
644 | + | let dN = fraction(toBigInt(bk), g, toBigInt(di)) | |
645 | + | $Tuple4(bQ._1, (bQ._2 :+ dM), (bQ._3 :+ dN), (bQ._4 :+ bk)) | |
605 | 646 | } | |
606 | 647 | } | |
607 | 648 | ||
608 | - | let | |
609 | - | let | |
610 | - | let | |
611 | - | let | |
612 | - | func | |
613 | - | then | |
614 | - | else | |
649 | + | let dO = { | |
650 | + | let bR = cX.payments | |
651 | + | let bS = size(bR) | |
652 | + | let bT = $Tuple4(nil, nil, nil, nil) | |
653 | + | func bU (bV,bW) = if ((bW >= bS)) | |
654 | + | then bV | |
655 | + | else dK(bV, bR[bW]) | |
615 | 656 | ||
616 | - | func | |
617 | - | then | |
657 | + | func bX (bV,bW) = if ((bW >= bS)) | |
658 | + | then bV | |
618 | 659 | else throw("List size exceeds 10") | |
619 | 660 | ||
620 | - | | |
661 | + | bX(bU(bU(bU(bU(bU(bU(bU(bU(bU(bU(bT, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
621 | 662 | } | |
622 | - | func | |
623 | - | let | |
624 | - | let | |
625 | - | let I = indexOf( | |
626 | - | let | |
663 | + | func dP (cf,dQ) = { | |
664 | + | let dR = cf._3 | |
665 | + | let dS = aF(aj(bw, dQ), "0") | |
666 | + | let I = indexOf(dO._2, dQ) | |
667 | + | let dT = if (isDefined(I)) | |
627 | 668 | then { | |
628 | - | let | |
629 | - | let | |
630 | - | $ | |
669 | + | let dU = value(I) | |
670 | + | let dV = dO._4[dU] | |
671 | + | $Tuple2(toString((parseBigIntValue(dS) + dO._3[dU])), toString((parseIntValue(dJ[(dR + 1)]) + dV))) | |
631 | 672 | } | |
632 | - | else $ | |
633 | - | $ | |
673 | + | else $Tuple2(dS, dJ[(dR + 1)]) | |
674 | + | $Tuple3((cf._1 :+ StringEntry(aj(dG, dQ), dT._1)), ((cf._2 + b) + dT._2), (dR + 1)) | |
634 | 675 | } | |
635 | 676 | ||
636 | - | let | |
637 | - | let | |
638 | - | let | |
639 | - | let | |
640 | - | func | |
641 | - | then | |
642 | - | else | |
677 | + | let dW = { | |
678 | + | let bR = br | |
679 | + | let bS = size(bR) | |
680 | + | let bT = $Tuple3(nil, bK, 0) | |
681 | + | func dX (bV,bW) = if ((bW >= bS)) | |
682 | + | then bV | |
683 | + | else dP(bV, bR[bW]) | |
643 | 684 | ||
644 | - | func | |
645 | - | then | |
685 | + | func dY (bV,bW) = if ((bW >= bS)) | |
686 | + | then bV | |
646 | 687 | else throw("List size exceeds 9") | |
647 | 688 | ||
648 | - | | |
689 | + | dY(dX(dX(dX(dX(dX(dX(dX(dX(dX(bT, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9) | |
649 | 690 | } | |
650 | - | $Tuple2((((((dJ._1 ++ dR._1) ++ cu()) :+ IntegerEntry(dy, dz)) :+ StringEntry(dA, dR._2)) :+ StringEntry(dB, dR._3)), dz) | |
691 | + | let cJ = bY(dW._2) | |
692 | + | $Tuple2((((((dO._1 ++ dW._1) ++ cB()) :+ IntegerEntry(dF, dG)) :+ StringEntry(dH, cJ)) :+ StringEntry(dI, cJ)), dG) | |
651 | 693 | } | |
652 | 694 | } | |
653 | 695 | ||
654 | 696 | ||
655 | 697 | ||
656 | - | @Callable( | |
657 | - | func claimRewards () = | |
698 | + | @Callable(cX) | |
699 | + | func claimRewards () = dk(cX.caller, cX) | |
658 | 700 | ||
659 | 701 | ||
660 | 702 | ||
661 | - | @Callable( | |
662 | - | func claimRewardsByOriginCaller () = | |
703 | + | @Callable(cX) | |
704 | + | func claimRewardsByOriginCaller () = dk(cX.originCaller, cX) | |
663 | 705 | ||
664 | 706 | ||
665 | 707 | ||
666 | - | @Callable( | |
667 | - | func unclaimedRewardsREADONLY ( | |
668 | - | func | |
708 | + | @Callable(cX) | |
709 | + | func unclaimedRewardsREADONLY (cE) = { | |
710 | + | func dZ (cf,cg) = ((cf + makeString([cg, "0", "0"], ":")) + "_") | |
669 | 711 | ||
670 | - | let | |
712 | + | let ea = if ((cE == "")) | |
671 | 713 | then { | |
672 | - | let | |
673 | - | let | |
674 | - | let | |
675 | - | func | |
676 | - | then | |
677 | - | else | |
714 | + | let bR = br | |
715 | + | let bS = size(bR) | |
716 | + | let bT = "" | |
717 | + | func bU (bV,bW) = if ((bW >= bS)) | |
718 | + | then bV | |
719 | + | else dZ(bV, bR[bW]) | |
678 | 720 | ||
679 | - | func | |
680 | - | then | |
721 | + | func bX (bV,bW) = if ((bW >= bS)) | |
722 | + | then bV | |
681 | 723 | else throw("List size exceeds 9") | |
682 | 724 | ||
683 | - | | |
725 | + | bX(bU(bU(bU(bU(bU(bU(bU(bU(bU(bT, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9) | |
684 | 726 | } | |
685 | 727 | else { | |
686 | - | let U = addressFromStringValue( | |
687 | - | let | |
688 | - | let | |
689 | - | let | |
690 | - | let | |
691 | - | let bu = toBigInt( | |
692 | - | let | |
693 | - | let bv = aC( | |
728 | + | let U = addressFromStringValue(cE) | |
729 | + | let eb = valueOrElse(bo(U), $Tuple3(true, 0, 0)) | |
730 | + | let cb = eb._1 | |
731 | + | let cc = eb._2 | |
732 | + | let dm = eb._3 | |
733 | + | let bu = toBigInt(cc) | |
734 | + | let cd = ai(cE) | |
735 | + | let bv = aC(cd, -1) | |
694 | 736 | let bw = aC(ah(), -1) | |
695 | - | func | |
696 | - | let | |
697 | - | let | |
698 | - | let | |
699 | - | let | |
700 | - | let bB = | |
701 | - | let | |
702 | - | (( | |
737 | + | func dn (cf,cg) = { | |
738 | + | let ec = bs(cE, cg, bu, bv, bw) | |
739 | + | let ci = ec._1 | |
740 | + | let cj = ec._2 | |
741 | + | let ck = ec._3 | |
742 | + | let bB = ec._4 | |
743 | + | let ed = valueOrElse(getInteger(an(cE, cg)), 0) | |
744 | + | ((cf + makeString([cg, toString(ci), toString(ed)], ":")) + "_") | |
703 | 745 | } | |
704 | 746 | ||
705 | - | let | |
706 | - | let | |
707 | - | let | |
708 | - | func | |
709 | - | then | |
710 | - | else | |
747 | + | let bR = br | |
748 | + | let bS = size(bR) | |
749 | + | let bT = "" | |
750 | + | func bU (bV,bW) = if ((bW >= bS)) | |
751 | + | then bV | |
752 | + | else dn(bV, bR[bW]) | |
711 | 753 | ||
712 | - | func | |
713 | - | then | |
754 | + | func bX (bV,bW) = if ((bW >= bS)) | |
755 | + | then bV | |
714 | 756 | else throw("List size exceeds 9") | |
715 | 757 | ||
716 | - | | |
758 | + | bX(bU(bU(bU(bU(bU(bU(bU(bU(bU(bT, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9) | |
717 | 759 | } | |
718 | - | $Tuple2(nil, dropRight( | |
760 | + | $Tuple2(nil, dropRight(ea, 1)) | |
719 | 761 | } | |
720 | 762 | ||
721 | 763 | ||
722 | 764 | ||
723 | - | @Callable( | |
724 | - | func updateVotingPower ( | |
765 | + | @Callable(cX) | |
766 | + | func updateVotingPower (cE) = if (!(isDefined(addressFromString(cE)))) | |
725 | 767 | then throw("Invalid user address") | |
726 | 768 | else { | |
727 | - | let | |
728 | - | $Tuple2( | |
769 | + | let dd = cD(cE, 0) | |
770 | + | $Tuple2(dd._1, [cp(dd._2), cp(dd._3), cp(dd._4), cp(dd._5), cp(dd._6), cp(dd._7)]) | |
729 | 771 | } | |
730 | 772 | ||
731 | 773 | ||
732 | 774 | ||
733 | - | @Callable( | |
734 | - | func surfStakingSYSREADONLY ( | |
735 | - | let | |
736 | - | let | |
737 | - | let | |
738 | - | then | |
739 | - | else | |
740 | - | if (( | |
741 | - | then $Tuple2(nil, [0, | |
775 | + | @Callable(cX) | |
776 | + | func surfStakingSYSREADONLY (ee,ef) = { | |
777 | + | let eg = aC(aa(), 0) | |
778 | + | let eh = cp(eg) | |
779 | + | let dd = if ((ef >= 0)) | |
780 | + | then cD(ee, ef) | |
781 | + | else cR(ee, -(ef)) | |
782 | + | if ((ee == "")) | |
783 | + | then $Tuple2(nil, [0, eg, 0, eh, height, height, cp(dd._2), cp(dd._3), cp(dd._4), cp(dd._5), cp(dd._6), cp(dd._7)]) | |
742 | 784 | else { | |
743 | - | let U = aG( | |
744 | - | let | |
745 | - | let | |
746 | - | let | |
747 | - | let | |
748 | - | let | |
749 | - | let | |
750 | - | let | |
751 | - | $Tuple2(nil, [ | |
785 | + | let U = aG(ee) | |
786 | + | let de = cr(U, ef, dd._6, dd._7) | |
787 | + | let cc = de._2 | |
788 | + | let cw = de._3 | |
789 | + | let cx = de._4 | |
790 | + | let df = de._5 | |
791 | + | let ei = cc | |
792 | + | let ej = cp(ei) | |
793 | + | $Tuple2(nil, [ei, eg, ej, eh, cw, df, cp(dd._2), cp(dd._3), cp(dd._4), cp(dd._5), cp(dd._6), cp(dd._7)]) | |
752 | 794 | } | |
753 | 795 | } | |
754 | 796 | ||
755 | 797 | ||
756 | 798 | ||
757 | - | @Callable( | |
758 | - | func gnsbtFromSurfSYSREADONLY ( | |
799 | + | @Callable(cX) | |
800 | + | func gnsbtFromSurfSYSREADONLY (cq) = $Tuple2(nil, cp(cq)) | |
759 | 801 | ||
760 | 802 | ||
761 | 803 | ||
762 | - | @Callable( | |
804 | + | @Callable(cX) | |
763 | 805 | func configSYSREADONLY () = { | |
764 | - | let | |
765 | - | let | |
766 | - | let | |
767 | - | $Tuple2(nil, [ | |
806 | + | let ek = getIntegerValue(R()) | |
807 | + | let el = k | |
808 | + | let em = 1150000 | |
809 | + | $Tuple2(nil, [ek, (O * c), el, em]) | |
768 | 810 | } | |
769 | 811 | ||
770 | 812 |
github/deemru/w8io/169f3d6 263.81 ms ◑