tx · 7p38ousfrmmnwAANUTtjcJDT1pbtJwYKiFWETf2a6zDx 3Myn55vLkduxbX3ZXfiDCZhaQsLxYp1kmCy: -0.02800000 Waves 2023.03.15 16:40 [2491209] smart account 3Myn55vLkduxbX3ZXfiDCZhaQsLxYp1kmCy > SELF 0.00000000 Waves
{ "type": 13, "id": "7p38ousfrmmnwAANUTtjcJDT1pbtJwYKiFWETf2a6zDx", "fee": 2800000, "feeAssetId": null, "timestamp": 1678887687902, "version": 2, "chainId": 84, "sender": "3Myn55vLkduxbX3ZXfiDCZhaQsLxYp1kmCy", "senderPublicKey": "9W33iCCNfmFxUbiC6XZcH5x7f6xfwC7Jb3BoExT5q2PV", "proofs": [ "4KdAZedcP78nnQKKjA34NLoHENX6HPj2a2KT3pWynQD2FpXMNaFMHDN4kntpBJbV1zxA4a293tv9JNPd8bsg26eR" ], "script": "base64:BgLoLwgCEggKBggIAQEBCBIFCgMBCAISAwoBARIDCgEBEgQKAggIEgQKAggIEgMKAQgSAwoBCBIDCgEIEgQKAggBEgASABIFCgMICAQSAwoBCBIDCgEIEgQKAggIEgQKAggIEgMKAQgSACIDU0VQIgZTQ0FMRTgiBU1VTFQ4Ig5QT09MV0VJR0hUTVVMVCIHd3JhcEVyciIDbXNnIgh0aHJvd0VyciIEc3RyZiIHYWRkcmVzcyIDa2V5IgNpb3oiA2lvZCIKZGVmYXVsdFZhbCIDaW9mIgNhYnMiA3ZhbCIDYWFsIgckbWF0Y2gwIgp2YWxBbnlMeXN0IgJhaSIGdmFsSW50IhtrZXlSZWZlcnJhbHNDb250cmFjdEFkZHJlc3MiHnJlZmVycmFsc0NvbnRyYWN0QWRkcmVzc09yRmFpbCIWa2V5UmVmZXJyYWxQcm9ncmFtTmFtZSIacmVmZXJyYWxQcm9ncmFtTmFtZURlZmF1bHQiE3JlZmVycmFsUHJvZ3JhbU5hbWUiEWtleUZhY3RvcnlBZGRyZXNzIhhJZHhGYWN0b3J5Q2ZnU3Rha2luZ0RhcHAiGUlk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AEFAmZyBgkAAgECEk5vIHBlbmRpbmcgbWFuYWdlcgMJAAACBQJmcwUCZnMEAmZ0AwkAAAIIBQJhSQ9jYWxsZXJQdWJsaWNLZXkJAQV2YWx1ZQEFAmZyBgkAAgECG1lvdSBhcmUgbm90IHBlbmRpbmcgbWFuYWdlcgMJAAACBQJmdAUCZnQJAMwIAgkBC1N0cmluZ0VudHJ5AgkBAmFmAAkA2AQBCQEFdmFsdWUBBQJmcgkAzAgCCQELRGVsZXRlRW50cnkBCQECYWcABQNuaWwJAAIBAiRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4JAAIBAiRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4BAmZ1AQJmdgAEAmZ3BAFyCQECYUUAAwkAAQIFAXICCkJ5dGVWZWN0b3IEAmFLBQFyBQJhSwMJAAECBQFyAgRVbml0CAUCZnUPc2VuZGVyUHVibGljS2V5CQACAQILTWF0Y2ggZXJyb3IJAPQDAwgFAmZ1CWJvZHlCeXRlcwkAkQMCCAUCZnUGcHJvb2ZzAAAFAmZ37VCd4g==", "height": 2491209, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 12yZeEmQxn2mM5zoUaNVe8BfiAjibCYzyHGrNZ8FWXyb Next: EXepq5tPQBPsLGktxabqgPovbZJs74uzHgp2aNk3eDX4 Diff:
Old | New | Differences | |
---|---|---|---|
534 | 534 | } | |
535 | 535 | ||
536 | 536 | ||
537 | - | func dt (bJ | |
538 | - | let | |
539 | - | let dc = | |
540 | - | let dd = | |
537 | + | func dt (bJ) = { | |
538 | + | let du = da() | |
539 | + | let dc = du._1 | |
540 | + | let dd = du._2 | |
541 | 541 | let ds = dp(bJ) | |
542 | - | let dw = (ds + du) | |
543 | - | let dx = bK(bJ, dc) | |
544 | - | let dy = valueOrElse(getInteger(this, dx), 0) | |
545 | - | let dz = bL(bJ, dc) | |
546 | - | let dA = valueOrElse(getInteger(this, dz), dd) | |
547 | - | let dB = (height - dA) | |
548 | - | let dC = ((dB * ds) + dy) | |
549 | - | $Tuple2([IntegerEntry(bI(bJ, dc), dw), IntegerEntry(dz, height), IntegerEntry(dx, dC)], dC) | |
542 | + | let dv = valueOrElse(getInteger(this, bK(bJ, dc)), 0) | |
543 | + | let dw = valueOrElse(getInteger(this, bL(bJ, dc)), dd) | |
544 | + | let dx = (height - dw) | |
545 | + | let dy = ((dx * ds) + dv) | |
546 | + | dy | |
550 | 547 | } | |
551 | 548 | ||
552 | 549 | ||
553 | - | func dD (bJ,bR,dE) = { | |
554 | - | let dF = da() | |
555 | - | let dc = dF._1 | |
556 | - | let dd = dF._2 | |
550 | + | func dz (bJ,dA) = { | |
551 | + | let dB = da() | |
552 | + | let dc = dB._1 | |
553 | + | let dd = dB._2 | |
554 | + | let ds = dp(bJ) | |
555 | + | let dC = (ds + dA) | |
556 | + | let dy = dt(bJ) | |
557 | + | [IntegerEntry(bI(bJ, dc), dC), IntegerEntry(bL(bJ, dc), height), IntegerEntry(bK(bJ, dc), dy)] | |
558 | + | } | |
559 | + | ||
560 | + | ||
561 | + | func dD (bJ,bR) = { | |
562 | + | let dE = da() | |
563 | + | let dc = dE._1 | |
564 | + | let dd = dE._2 | |
557 | 565 | let aS = addressFromStringValue(bR) | |
558 | - | let df = 4 | |
559 | - | let dg = 5 | |
560 | - | let dh = { | |
561 | - | let ca = invoke(bS, "getPoolConfigByLpAssetIdREADONLY", [bJ], nil) | |
562 | - | if ($isInstanceOf(ca, "List[Any]")) | |
563 | - | then ca | |
564 | - | else throw(($getType(ca) + " couldn't be cast to List[Any]")) | |
565 | - | } | |
566 | - | let bD = { | |
567 | - | let ca = dh[df] | |
568 | - | if ($isInstanceOf(ca, "String")) | |
569 | - | then ca | |
570 | - | else throw(($getType(ca) + " couldn't be cast to String")) | |
571 | - | } | |
572 | - | let bE = { | |
573 | - | let ca = dh[dg] | |
574 | - | if ($isInstanceOf(ca, "String")) | |
575 | - | then ca | |
576 | - | else throw(($getType(ca) + " couldn't be cast to String")) | |
577 | - | } | |
578 | - | let dm = valueOrElse(getInteger(bY, bC(bD, bE, aS, dc)), 0) | |
579 | - | let dG = if ((dm == 0)) | |
566 | + | let dF = dn(bJ, bR) | |
567 | + | let dG = valueOrElse(getInteger(this, bN(bJ, aS, dc)), 0) | |
568 | + | let dH = valueOrElse(getInteger(this, bO(bJ, aS, dc)), dd) | |
569 | + | let dI = (height - dH) | |
570 | + | let dJ = ((dI * dF) + dG) | |
571 | + | dJ | |
572 | + | } | |
573 | + | ||
574 | + | ||
575 | + | func dK (bJ,bR,dL) = { | |
576 | + | let dM = da() | |
577 | + | let dc = dM._1 | |
578 | + | let dd = dM._2 | |
579 | + | let aS = addressFromStringValue(bR) | |
580 | + | let dN = di(bJ, bR) | |
581 | + | let dO = if ((dN == 0)) | |
580 | 582 | then nil | |
581 | 583 | else { | |
582 | - | let du = if (dE) | |
583 | - | then dm | |
584 | - | else -(dm) | |
585 | - | let dH = dt(bJ, du) | |
586 | - | let dI = dH._1 | |
587 | - | let dC = dH._2 | |
588 | - | let dJ = if (dE) | |
589 | - | then 0 | |
590 | - | else dm | |
591 | - | let dK = bN(bJ, aS, dc) | |
592 | - | let dL = valueOrElse(getInteger(this, dK), 0) | |
593 | - | let dM = bO(bJ, aS, dc) | |
594 | - | let dN = valueOrElse(getInteger(this, dM), dd) | |
595 | - | let dO = (height - dN) | |
596 | - | let dP = ((dO * dJ) + dL) | |
597 | - | let dQ = [IntegerEntry(dM, height), IntegerEntry(dK, dP)] | |
598 | - | (dI ++ dQ) | |
584 | + | let dA = if (dL) | |
585 | + | then dN | |
586 | + | else -(dN) | |
587 | + | let dP = dz(bJ, dA) | |
588 | + | let dJ = dD(bJ, bR) | |
589 | + | let dQ = [IntegerEntry(bO(bJ, aS, dc), height), IntegerEntry(bN(bJ, aS, dc), dJ)] | |
590 | + | (dP ++ dQ) | |
599 | 591 | } | |
600 | - | | |
592 | + | dO | |
601 | 593 | } | |
602 | 594 | ||
603 | 595 | ||
606 | 598 | let dc = dS._1 | |
607 | 599 | let dd = dS._2 | |
608 | 600 | let aS = addressFromStringValue(bR) | |
609 | - | let | |
601 | + | let dF = dn(bJ, bR) | |
610 | 602 | let ds = dp(bJ) | |
611 | - | let | |
612 | - | let | |
613 | - | let | |
614 | - | let | |
615 | - | let | |
616 | - | let | |
617 | - | let | |
618 | - | let | |
619 | - | let | |
620 | - | let | |
621 | - | let | |
622 | - | let | |
623 | - | let | |
624 | - | let | |
625 | - | $Tuple3([IntegerEntry( | |
603 | + | let dG = valueOrElse(getInteger(this, bN(bJ, aS, dc)), 0) | |
604 | + | let dv = valueOrElse(getInteger(this, bK(bJ, dc)), 0) | |
605 | + | let dH = valueOrElse(getInteger(this, bO(bJ, aS, dc)), dd) | |
606 | + | let dw = valueOrElse(getInteger(this, bL(bJ, dc)), dd) | |
607 | + | let dT = bP(bJ, aS, dc) | |
608 | + | let dU = valueOrElse(getInteger(this, dT), 0) | |
609 | + | let dV = bM(bJ, aS, dc) | |
610 | + | let dW = valueOrElse(getInteger(this, dV), 0) | |
611 | + | let dI = (height - dH) | |
612 | + | let dx = (height - dw) | |
613 | + | let dJ = ((dI * dF) + dG) | |
614 | + | let dy = ((dx * ds) + dv) | |
615 | + | let dX = (dJ - dU) | |
616 | + | let dY = (dy - dW) | |
617 | + | $Tuple3([IntegerEntry(dT, dJ), IntegerEntry(dV, dy)], dX, dY) | |
626 | 618 | } | |
627 | 619 | ||
628 | 620 | ||
629 | - | func | |
630 | - | let | |
631 | - | let | |
632 | - | let | |
633 | - | let | |
634 | - | let cH = if ((height > | |
635 | - | then | |
621 | + | func dZ () = { | |
622 | + | let ea = n(bT, ah()) | |
623 | + | let eb = getInteger(bT, ak()) | |
624 | + | let ec = getInteger(this, al()) | |
625 | + | let ed = n(bT, an()) | |
626 | + | let cH = if ((height > ed)) | |
627 | + | then ed | |
636 | 628 | else height | |
637 | - | let | |
638 | - | let r = | |
629 | + | let ee = { | |
630 | + | let r = eb | |
639 | 631 | if ($isInstanceOf(r, "Int")) | |
640 | 632 | then { | |
641 | - | let | |
642 | - | max([(cH - | |
633 | + | let ef = r | |
634 | + | max([(cH - ef), 0]) | |
643 | 635 | } | |
644 | 636 | else if ($isInstanceOf(r, "Unit")) | |
645 | 637 | then 0 | |
646 | 638 | else throw("Match error") | |
647 | 639 | } | |
648 | - | let | |
649 | - | let | |
650 | - | let | |
651 | - | $Tuple2([IntegerEntry(al(), | |
640 | + | let eg = ((ea * (bZ - 1)) / bZ) | |
641 | + | let eh = valueOrElse(ec, 0) | |
642 | + | let ei = ((eg * ee) + eh) | |
643 | + | $Tuple2([IntegerEntry(al(), ei), IntegerEntry(ak(), height)], ei) | |
652 | 644 | } | |
653 | 645 | ||
654 | 646 | ||
655 | - | func | |
656 | - | let | |
657 | - | if (( | |
647 | + | func ej (bJ,bR,ek) = { | |
648 | + | let el = getString(this, aR(bR)) | |
649 | + | if ((el == unit)) | |
658 | 650 | then $Tuple3(0, nil, "userRecord::is::empty") | |
659 | 651 | else { | |
660 | - | let | |
661 | - | let | |
662 | - | let | |
663 | - | let | |
652 | + | let em = split(value(el), a) | |
653 | + | let en = em[aL] | |
654 | + | let eo = "empty" | |
655 | + | let ep = if ((bJ != eo)) | |
664 | 656 | then { | |
665 | - | let | |
666 | - | getIntegerValue(bS, R( | |
657 | + | let eq = valueOrErrorMessage(getString(bS, N(bJ)), ("unsupported lp asset " + bJ)) | |
658 | + | getIntegerValue(bS, R(eq)) | |
667 | 659 | } | |
668 | - | else if ( | |
660 | + | else if (ek) | |
669 | 661 | then 0 | |
670 | 662 | else throw(("not readonly mode: unsupported lp asset " + bJ)) | |
671 | - | let | |
672 | - | let | |
673 | - | let | |
674 | - | let | |
675 | - | let | |
676 | - | if ((0 > | |
663 | + | let er = bu(en, bJ) | |
664 | + | let es = bt(en) | |
665 | + | let et = valueOrElse(getInteger(this, er), k(this, es)) | |
666 | + | let ei = dZ()._2 | |
667 | + | let eu = (ei - et) | |
668 | + | if ((0 > eu)) | |
677 | 669 | then throw("wrong calculations") | |
678 | 670 | else { | |
679 | - | let | |
680 | - | let | |
681 | - | let | |
682 | - | let | |
683 | - | let | |
684 | - | let | |
671 | + | let ev = dR(bJ, bR) | |
672 | + | let ew = ev._1 | |
673 | + | let ex = ev._2 | |
674 | + | let ey = ev._3 | |
675 | + | let ez = fraction(eu, ep, d) | |
676 | + | let eA = if ((ey == 0)) | |
685 | 677 | then 0 | |
686 | - | else fraction(ex, | |
687 | - | let | |
688 | - | let | |
689 | - | $Tuple3( | |
678 | + | else fraction(ez, ex, ey) | |
679 | + | let eB = ([IntegerEntry(er, ei)] ++ ew) | |
680 | + | let eC = makeString([toString(et), toString(eu), toString(ep), toString(ex), toString(ey)], ":") | |
681 | + | $Tuple3(eA, eB, eC) | |
690 | 682 | } | |
691 | 683 | } | |
692 | 684 | } | |
693 | 685 | ||
694 | 686 | ||
695 | - | func | |
696 | - | let | |
697 | - | let | |
698 | - | let az = fromBase58String( | |
699 | - | let aA = parseIntValue( | |
700 | - | let aB = parseIntValue( | |
701 | - | let aC = parseIntValue( | |
687 | + | func eD (aI,aY) = { | |
688 | + | let eE = aw() | |
689 | + | let eF = eE[aq] | |
690 | + | let az = fromBase58String(eF) | |
691 | + | let aA = parseIntValue(eE[ar]) | |
692 | + | let aB = parseIntValue(eE[as]) | |
693 | + | let aC = parseIntValue(eE[at]) | |
702 | 694 | if ((size(aI.payments) != 1)) | |
703 | 695 | then throw("invalid payment - exact one payment must be attached") | |
704 | 696 | else { | |
705 | 697 | let cT = aI.payments[0] | |
706 | - | let | |
698 | + | let eG = cT.amount | |
707 | 699 | if ((az != value(cT.assetId))) | |
708 | - | then throw((("invalid asset is in payment - " + | |
700 | + | then throw((("invalid asset is in payment - " + eF) + " is expected")) | |
709 | 701 | else { | |
710 | - | let | |
702 | + | let eH = be() | |
711 | 703 | let bR = toString(aI.caller) | |
712 | - | let | |
713 | - | let | |
704 | + | let eI = isDefined(getString(bf(bR))) | |
705 | + | let en = if (eI) | |
714 | 706 | then value(getString(bf(bR))) | |
715 | - | else toString(n(this, | |
716 | - | let aV = parseIntValue( | |
707 | + | else toString(n(this, eH)) | |
708 | + | let aV = parseIntValue(en) | |
717 | 709 | let cm = height | |
718 | - | let cL = bi( | |
719 | - | let cM = bj( | |
720 | - | let cK = bh( | |
721 | - | if (if ((aA > | |
710 | + | let cL = bi(en) | |
711 | + | let cM = bj(en) | |
712 | + | let cK = bh(en) | |
713 | + | if (if ((aA > eG)) | |
722 | 714 | then (aI.caller != bW) | |
723 | 715 | else false) | |
724 | 716 | then throw(("amount is less then minLockAmount=" + toString(aA))) | |
726 | 718 | then throw(("passed duration is less then minLockDuration=" + toString(aB))) | |
727 | 719 | else if ((aY > aC)) | |
728 | 720 | then throw(("passed duration is greater then maxLockDuration=" + toString(aC))) | |
729 | - | else if (if ( | |
721 | + | else if (if (eI) | |
730 | 722 | then ((n(this, cL) + n(this, cM)) >= cm) | |
731 | 723 | else false) | |
732 | 724 | then throw("there is an active lock - consider to use increaseLock") | |
733 | 725 | else if ((k(this, cK) > 0)) | |
734 | 726 | then throw(("there are locked WXs - consider to use increaseLock " + cK)) | |
735 | 727 | else { | |
736 | - | let | |
737 | - | let | |
738 | - | let | |
739 | - | let cn = t( | |
740 | - | let co = t( | |
741 | - | let bn = toString(t( | |
728 | + | let eJ = fraction(aY, c, aC) | |
729 | + | let eK = fraction(eG, eJ, c) | |
730 | + | let eL = q(invoke(ax, "calcGwxParamsREADONLY", [eK, cm, aY], nil)) | |
731 | + | let cn = t(eL[0]) | |
732 | + | let co = t(eL[1]) | |
733 | + | let bn = toString(t(eL[2])) | |
742 | 734 | let cg = cb(false) | |
743 | - | let | |
744 | - | let | |
745 | - | let | |
735 | + | let es = bt(en) | |
736 | + | let ei = dZ()._2 | |
737 | + | let eM = if (eI) | |
746 | 738 | then nil | |
747 | - | else [IntegerEntry( | |
748 | - | $Tuple2((((( | |
739 | + | else [IntegerEntry(eH, (aV + 1)), StringEntry(bf(bR), en), StringEntry(bg(en), bR)] | |
740 | + | $Tuple2(((((eM ++ cJ(bR, en, eG, cm, aY, cn, co, bn)) ++ cr(eG, aY, 1, if (eI) | |
749 | 741 | then 0 | |
750 | - | else 1)) :+ cj("lock", bR, | |
742 | + | else 1)) :+ cj("lock", bR, eG, cm, aY, cn, co, aI)) ++ [IntegerEntry(es, ei), IntegerEntry(bA(), (cg + eK))]), eK) | |
751 | 743 | } | |
752 | 744 | } | |
753 | 745 | } | |
755 | 747 | ||
756 | 748 | ||
757 | 749 | @Callable(aI) | |
758 | - | func constructor ( | |
759 | - | let | |
760 | - | if (( | |
761 | - | then ([IntegerEntry(be(), 0), StringEntry(av(), aD( | |
750 | + | func constructor (eN,eO,aA,eP,eQ,ax) = { | |
751 | + | let eR = aH(aI) | |
752 | + | if ((eR == eR)) | |
753 | + | then ([IntegerEntry(be(), 0), StringEntry(av(), aD(eO, aA, eP, eQ, ax)), StringEntry(A(), eN)] ++ cr(0, 0, 0, 0)) | |
762 | 754 | else throw("Strict value is not equal to itself.") | |
763 | 755 | } | |
764 | 756 | ||
765 | 757 | ||
766 | 758 | ||
767 | 759 | @Callable(aI) | |
768 | - | func lockRef (aY, | |
769 | - | let | |
770 | - | let | |
771 | - | let | |
772 | - | let | |
773 | - | let | |
760 | + | func lockRef (aY,eS,eT) = { | |
761 | + | let eU = eD(aI, aY) | |
762 | + | let eV = eU._1 | |
763 | + | let eK = eU._2 | |
764 | + | let eW = toString(aI.caller) | |
765 | + | let eX = if (if ((eS == "")) | |
774 | 766 | then true | |
775 | - | else ( | |
767 | + | else (eT == base58'')) | |
776 | 768 | then unit | |
777 | - | else invoke(w, "createPair", [z, | |
778 | - | if (( | |
769 | + | else invoke(w, "createPair", [z, eS, eW, eT], nil) | |
770 | + | if ((eX == eX)) | |
779 | 771 | then { | |
780 | - | let | |
781 | - | if (( | |
782 | - | then $Tuple2( | |
772 | + | let eY = invoke(ax, "updateReferralActivity", [toString(aI.caller), eK], nil) | |
773 | + | if ((eY == eY)) | |
774 | + | then $Tuple2(eV, unit) | |
783 | 775 | else throw("Strict value is not equal to itself.") | |
784 | 776 | } | |
785 | 777 | else throw("Strict value is not equal to itself.") | |
789 | 781 | ||
790 | 782 | @Callable(aI) | |
791 | 783 | func lock (aY) = { | |
792 | - | let | |
793 | - | let | |
794 | - | let | |
795 | - | let | |
796 | - | if (( | |
797 | - | then $Tuple2( | |
784 | + | let eZ = eD(aI, aY) | |
785 | + | let eV = eZ._1 | |
786 | + | let eK = eZ._2 | |
787 | + | let eY = invoke(ax, "updateReferralActivity", [toString(aI.caller), eK], nil) | |
788 | + | if ((eY == eY)) | |
789 | + | then $Tuple2(eV, unit) | |
798 | 790 | else throw("Strict value is not equal to itself.") | |
799 | 791 | } | |
800 | 792 | ||
801 | 793 | ||
802 | 794 | ||
803 | 795 | @Callable(aI) | |
804 | - | func increaseLock ( | |
805 | - | let | |
806 | - | let | |
807 | - | let az = fromBase58String( | |
808 | - | let aB = parseIntValue( | |
809 | - | let aC = parseIntValue( | |
810 | - | let | |
796 | + | func increaseLock (fa) = { | |
797 | + | let eE = aw() | |
798 | + | let eF = eE[aq] | |
799 | + | let az = fromBase58String(eF) | |
800 | + | let aB = parseIntValue(eE[as]) | |
801 | + | let aC = parseIntValue(eE[at]) | |
802 | + | let eG = cR(aI, az) | |
811 | 803 | let bR = toString(aI.caller) | |
812 | - | let | |
813 | - | let | |
814 | - | let | |
815 | - | let cm = parseIntValue( | |
816 | - | let | |
817 | - | let | |
818 | - | let | |
819 | - | let | |
820 | - | let | |
821 | - | if ((0 > | |
804 | + | let em = aT(bR) | |
805 | + | let en = em[aL] | |
806 | + | let fb = parseIntValue(em[aM]) | |
807 | + | let cm = parseIntValue(em[aN]) | |
808 | + | let fc = parseIntValue(em[aO]) | |
809 | + | let fd = (cm + fc) | |
810 | + | let fe = max([(fd - height), 0]) | |
811 | + | let ff = (fb + eG) | |
812 | + | let fg = (fe + fa) | |
813 | + | if ((0 > fa)) | |
822 | 814 | then throw("duration is less then zero") | |
823 | - | else if ((aB > | |
815 | + | else if ((aB > fg)) | |
824 | 816 | then throw(("lockDurationNew is less then minLockDuration=" + toString(aB))) | |
825 | - | else if (( | |
817 | + | else if ((fg > aC)) | |
826 | 818 | then throw(("deltaDuration + existedLockDuration is greater then maxLockDuration=" + toString(aC))) | |
827 | 819 | else { | |
828 | - | let | |
829 | - | let | |
830 | - | let | |
831 | - | if (( | |
820 | + | let eJ = fraction(fg, c, aC) | |
821 | + | let eK = fraction(ff, eJ, c) | |
822 | + | let eY = invoke(ax, "updateReferralActivity", [toString(aI.caller), eK], nil) | |
823 | + | if ((eY == eY)) | |
832 | 824 | then { | |
833 | - | let | |
834 | - | let | |
835 | - | let cn = t( | |
836 | - | let co = t( | |
837 | - | let bn = toString(t( | |
838 | - | let | |
839 | - | let | |
840 | - | if ((0 > | |
841 | - | then throw(("gwxDiff is less then 0: " + toString( | |
825 | + | let fh = height | |
826 | + | let eL = q(invoke(ax, "calcGwxParamsREADONLY", [eK, fh, fg], nil)) | |
827 | + | let cn = t(eL[0]) | |
828 | + | let co = t(eL[1]) | |
829 | + | let bn = toString(t(eL[2])) | |
830 | + | let fi = cZ(bR) | |
831 | + | let fj = (eK - fi) | |
832 | + | if ((0 > fj)) | |
833 | + | then throw(("gwxDiff is less then 0: " + toString(fj))) | |
842 | 834 | else { | |
843 | 835 | let cg = cb(false) | |
844 | - | let | |
845 | - | (((cJ(bR, | |
836 | + | let fk = cb(true) | |
837 | + | (((cJ(bR, en, ff, fh, fg, cn, co, bn) ++ cr(eG, fa, 0, 0)) :+ cj("lock", bR, eG, cm, fg, cn, co, aI)) ++ [IntegerEntry(bA(), (cg + fj))]) | |
846 | 838 | } | |
847 | 839 | } | |
848 | 840 | else throw("Strict value is not equal to itself.") | |
855 | 847 | func claimWxBoost (bJ,bR) = if ((bU != aI.caller)) | |
856 | 848 | then throw("permissions denied") | |
857 | 849 | else { | |
858 | - | let | |
859 | - | let | |
860 | - | let | |
861 | - | let | |
862 | - | $Tuple2( | |
850 | + | let fl = ej(bJ, bR, false) | |
851 | + | let fm = fl._1 | |
852 | + | let eB = fl._2 | |
853 | + | let eC = fl._3 | |
854 | + | $Tuple2(eB, [fm]) | |
863 | 855 | } | |
864 | 856 | ||
865 | 857 | ||
866 | 858 | ||
867 | 859 | @Callable(aI) | |
868 | 860 | func claimWxBoostREADONLY (bJ,bR) = { | |
869 | - | let | |
870 | - | let | |
871 | - | let | |
872 | - | let | |
873 | - | $Tuple2(nil, [ | |
861 | + | let fn = ej(bJ, bR, true) | |
862 | + | let fm = fn._1 | |
863 | + | let eB = fn._2 | |
864 | + | let eC = fn._3 | |
865 | + | $Tuple2(nil, [fm, eC]) | |
874 | 866 | } | |
875 | 867 | ||
876 | 868 | ||
877 | 869 | ||
878 | 870 | @Callable(aI) | |
879 | 871 | func unlock (aS) = { | |
880 | - | let | |
881 | - | let | |
882 | - | let | |
883 | - | let cm = parseIntValue( | |
884 | - | let | |
885 | - | let | |
886 | - | let | |
887 | - | let az = fromBase58String( | |
888 | - | if (( | |
889 | - | then throw((("wait " + toString( | |
890 | - | else if ((0 >= | |
872 | + | let em = aT(aS) | |
873 | + | let en = em[aL] | |
874 | + | let fb = parseIntValue(em[aM]) | |
875 | + | let cm = parseIntValue(em[aN]) | |
876 | + | let fc = parseIntValue(em[aO]) | |
877 | + | let fd = (cm + fc) | |
878 | + | let eE = aw() | |
879 | + | let az = fromBase58String(eE[aq]) | |
880 | + | if ((fd >= height)) | |
881 | + | then throw((("wait " + toString(fd)) + " to unlock")) | |
882 | + | else if ((0 >= fb)) | |
891 | 883 | then throw("nothing to unlock") | |
892 | 884 | else { | |
893 | 885 | let bn = valueOrElse(getInteger(ax, ao()), 0) | |
894 | - | (((cJ(aS, | |
886 | + | (((cJ(aS, en, 0, cm, fc, 0, 0, toString(bn)) ++ cr(-(fb), 0, 0, -1)) :+ cj("unlock", aS, fb, cm, fc, 0, 0, aI)) :+ ScriptTransfer(addressFromStringValue(aS), fb, az)) | |
895 | 887 | } | |
896 | 888 | } | |
897 | 889 | ||
907 | 899 | ||
908 | 900 | @Callable(aI) | |
909 | 901 | func userMaxDurationREADONLY (bR) = { | |
910 | - | let | |
911 | - | let aC = parseIntValue( | |
912 | - | let | |
913 | - | if (( | |
902 | + | let eE = aw() | |
903 | + | let aC = parseIntValue(eE[at]) | |
904 | + | let el = getString(this, aR(bR)) | |
905 | + | if ((el == unit)) | |
914 | 906 | then $Tuple2(nil, $Tuple2("lock", aC)) | |
915 | 907 | else { | |
916 | - | let | |
917 | - | let cm = parseIntValue( | |
918 | - | let | |
919 | - | let | |
920 | - | let | |
921 | - | let | |
922 | - | $Tuple2(nil, $Tuple2("increaseLock", | |
908 | + | let em = split(value(el), a) | |
909 | + | let cm = parseIntValue(em[aN]) | |
910 | + | let fc = parseIntValue(em[aO]) | |
911 | + | let fd = (cm + fc) | |
912 | + | let fe = max([(fd - height), 0]) | |
913 | + | let fo = (aC - fe) | |
914 | + | $Tuple2(nil, $Tuple2("increaseLock", fo)) | |
923 | 915 | } | |
924 | 916 | } | |
925 | 917 | ||
940 | 932 | ||
941 | 933 | @Callable(aI) | |
942 | 934 | func onBoostEmissionUpdate () = { | |
943 | - | let | |
935 | + | let eR = if ((aI.caller == bT)) | |
944 | 936 | then true | |
945 | 937 | else aH(aI) | |
946 | - | if (( | |
947 | - | then | |
938 | + | if ((eR == eR)) | |
939 | + | then dZ() | |
948 | 940 | else throw("Strict value is not equal to itself.") | |
949 | 941 | } | |
950 | 942 | ||
951 | 943 | ||
952 | 944 | ||
953 | 945 | @Callable(aI) | |
954 | - | func onStakedVoteUpdate (bJ,bR, | |
955 | - | let | |
946 | + | func onStakedVoteUpdate (bJ,bR,dL) = { | |
947 | + | let eR = if ((aI.caller == bU)) | |
956 | 948 | then true | |
957 | 949 | else aH(aI) | |
958 | - | if (( | |
950 | + | if ((eR == eR)) | |
959 | 951 | then { | |
960 | - | let | |
961 | - | $Tuple2( | |
952 | + | let dO = dK(bJ, bR, dL) | |
953 | + | $Tuple2(dO, unit) | |
962 | 954 | } | |
963 | 955 | else throw("Strict value is not equal to itself.") | |
964 | 956 | } | |
971 | 963 | ||
972 | 964 | ||
973 | 965 | @Callable(aI) | |
966 | + | func getVotingResultStakedIntegralREADONLY (bJ) = $Tuple2(nil, dt(bJ)) | |
967 | + | ||
968 | + | ||
969 | + | ||
970 | + | @Callable(aI) | |
974 | 971 | func getUserVoteFinalizedREADONLY (bJ,bR) = $Tuple2(nil, di(bJ, bR)) | |
975 | 972 | ||
976 | 973 | ||
977 | 974 | ||
978 | 975 | @Callable(aI) | |
979 | - | func setManager (fn) = { | |
980 | - | let eP = aH(aI) | |
981 | - | if ((eP == eP)) | |
976 | + | func getUserVoteStakedIntegralREADONLY (bJ,bR) = $Tuple2(nil, dD(bJ, bR)) | |
977 | + | ||
978 | + | ||
979 | + | ||
980 | + | @Callable(aI) | |
981 | + | func setManager (fp) = { | |
982 | + | let eR = aH(aI) | |
983 | + | if ((eR == eR)) | |
982 | 984 | then { | |
983 | - | let | |
984 | - | if (( | |
985 | - | then [StringEntry(ag(), | |
985 | + | let fq = fromBase58String(fp) | |
986 | + | if ((fq == fq)) | |
987 | + | then [StringEntry(ag(), fp)] | |
986 | 988 | else throw("Strict value is not equal to itself.") | |
987 | 989 | } | |
988 | 990 | else throw("Strict value is not equal to itself.") | |
992 | 994 | ||
993 | 995 | @Callable(aI) | |
994 | 996 | func confirmManager () = { | |
995 | - | let | |
996 | - | let | |
997 | + | let fr = aG() | |
998 | + | let fs = if (isDefined(fr)) | |
997 | 999 | then true | |
998 | 1000 | else throw("No pending manager") | |
999 | - | if (( | |
1001 | + | if ((fs == fs)) | |
1000 | 1002 | then { | |
1001 | - | let | |
1003 | + | let ft = if ((aI.callerPublicKey == value(fr))) | |
1002 | 1004 | then true | |
1003 | 1005 | else throw("You are not pending manager") | |
1004 | - | if (( | |
1005 | - | then [StringEntry(af(), toBase58String(value( | |
1006 | + | if ((ft == ft)) | |
1007 | + | then [StringEntry(af(), toBase58String(value(fr))), DeleteEntry(ag())] | |
1006 | 1008 | else throw("Strict value is not equal to itself.") | |
1007 | 1009 | } | |
1008 | 1010 | else throw("Strict value is not equal to itself.") | |
1009 | 1011 | } | |
1010 | 1012 | ||
1011 | 1013 | ||
1012 | - | @Verifier( | |
1013 | - | func | |
1014 | - | let | |
1014 | + | @Verifier(fu) | |
1015 | + | func fv () = { | |
1016 | + | let fw = { | |
1015 | 1017 | let r = aE() | |
1016 | 1018 | if ($isInstanceOf(r, "ByteVector")) | |
1017 | 1019 | then { | |
1019 | 1021 | aK | |
1020 | 1022 | } | |
1021 | 1023 | else if ($isInstanceOf(r, "Unit")) | |
1022 | - | then | |
1024 | + | then fu.senderPublicKey | |
1023 | 1025 | else throw("Match error") | |
1024 | 1026 | } | |
1025 | - | sigVerify( | |
1027 | + | sigVerify(fu.bodyBytes, fu.proofs[0], fw) | |
1026 | 1028 | } | |
1027 | 1029 |
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 = 8 | |
7 | 7 | ||
8 | 8 | let c = 100000000 | |
9 | 9 | ||
10 | 10 | let d = c | |
11 | 11 | ||
12 | 12 | func e (f) = makeString(["boosting.ride:", f], " ") | |
13 | 13 | ||
14 | 14 | ||
15 | 15 | func g (f) = throw(e(f)) | |
16 | 16 | ||
17 | 17 | ||
18 | 18 | func h (i,j) = valueOrErrorMessage(getString(i, j), (("mandatory this." + j) + " is not defined")) | |
19 | 19 | ||
20 | 20 | ||
21 | 21 | func k (i,j) = valueOrElse(getInteger(i, j), 0) | |
22 | 22 | ||
23 | 23 | ||
24 | 24 | func l (i,j,m) = valueOrElse(getInteger(i, j), m) | |
25 | 25 | ||
26 | 26 | ||
27 | 27 | func n (i,j) = valueOrErrorMessage(getInteger(i, j), (("mandatory this." + j) + " is not defined")) | |
28 | 28 | ||
29 | 29 | ||
30 | 30 | func o (p) = if ((0 > p)) | |
31 | 31 | then -(p) | |
32 | 32 | else p | |
33 | 33 | ||
34 | 34 | ||
35 | 35 | func q (p) = { | |
36 | 36 | let r = p | |
37 | 37 | if ($isInstanceOf(r, "List[Any]")) | |
38 | 38 | then { | |
39 | 39 | let s = r | |
40 | 40 | s | |
41 | 41 | } | |
42 | 42 | else throw("fail to cast into List[Any]") | |
43 | 43 | } | |
44 | 44 | ||
45 | 45 | ||
46 | 46 | func t (p) = { | |
47 | 47 | let r = p | |
48 | 48 | if ($isInstanceOf(r, "Int")) | |
49 | 49 | then { | |
50 | 50 | let u = r | |
51 | 51 | u | |
52 | 52 | } | |
53 | 53 | else throw("fail to cast into Int") | |
54 | 54 | } | |
55 | 55 | ||
56 | 56 | ||
57 | 57 | func v () = makeString(["%s%s", "config", "referralsContractAddress"], a) | |
58 | 58 | ||
59 | 59 | ||
60 | 60 | let w = addressFromStringValue(h(this, v())) | |
61 | 61 | ||
62 | 62 | let x = makeString(["%s%s", "referral", "programName"], a) | |
63 | 63 | ||
64 | 64 | let y = "wxlock" | |
65 | 65 | ||
66 | 66 | let z = valueOrElse(getString(this, x), y) | |
67 | 67 | ||
68 | 68 | func A () = "%s%s__config__factoryAddress" | |
69 | 69 | ||
70 | 70 | ||
71 | 71 | let B = 1 | |
72 | 72 | ||
73 | 73 | let C = 2 | |
74 | 74 | ||
75 | 75 | let D = 3 | |
76 | 76 | ||
77 | 77 | let E = 4 | |
78 | 78 | ||
79 | 79 | let F = 5 | |
80 | 80 | ||
81 | 81 | let G = 6 | |
82 | 82 | ||
83 | 83 | let H = 7 | |
84 | 84 | ||
85 | 85 | let I = 8 | |
86 | 86 | ||
87 | 87 | let J = 9 | |
88 | 88 | ||
89 | 89 | let K = 10 | |
90 | 90 | ||
91 | 91 | let L = 11 | |
92 | 92 | ||
93 | 93 | func M () = "%s__factoryConfig" | |
94 | 94 | ||
95 | 95 | ||
96 | 96 | func N (O) = makeString(["%s%s%s", O, "mappings__lpAsset2PoolContract"], a) | |
97 | 97 | ||
98 | 98 | ||
99 | 99 | func P () = "%s__lpTokensList" | |
100 | 100 | ||
101 | 101 | ||
102 | 102 | func Q (O) = makeString(["%s%s%s", O, "mappings__lpAsset2PoolContract"], a) | |
103 | 103 | ||
104 | 104 | ||
105 | 105 | func R (S) = makeString(["%s%s", "poolWeight", S], a) | |
106 | 106 | ||
107 | 107 | ||
108 | 108 | func T (U,V) = ((("%s%s__poolWeight__" + U) + "__") + toString(V)) | |
109 | 109 | ||
110 | 110 | ||
111 | 111 | func W () = addressFromStringValue(h(this, A())) | |
112 | 112 | ||
113 | 113 | ||
114 | 114 | func X () = split(valueOrElse(getString(W(), P()), ""), a) | |
115 | 115 | ||
116 | 116 | ||
117 | 117 | func Y (Z) = split(h(Z, M()), a) | |
118 | 118 | ||
119 | 119 | ||
120 | 120 | func aa (ab) = addressFromStringValue(ab[C]) | |
121 | 121 | ||
122 | 122 | ||
123 | 123 | func ac (ab) = addressFromStringValue(ab[F]) | |
124 | 124 | ||
125 | 125 | ||
126 | 126 | func ad (ab) = addressFromStringValue(ab[B]) | |
127 | 127 | ||
128 | 128 | ||
129 | 129 | func ae (ab) = addressFromStringValue(ab[K]) | |
130 | 130 | ||
131 | 131 | ||
132 | 132 | func af () = "%s__managerPublicKey" | |
133 | 133 | ||
134 | 134 | ||
135 | 135 | func ag () = "%s__pendingManagerPublicKey" | |
136 | 136 | ||
137 | 137 | ||
138 | 138 | func ah () = "%s%s__ratePerBlock__current" | |
139 | 139 | ||
140 | 140 | ||
141 | 141 | func ai () = "%s%s__ratePerBlockMax__current" | |
142 | 142 | ||
143 | 143 | ||
144 | 144 | func aj () = "%s%s__emission__startBlock" | |
145 | 145 | ||
146 | 146 | ||
147 | 147 | func ak () = "%s%s__boostingV2__startBlock" | |
148 | 148 | ||
149 | 149 | ||
150 | 150 | func al () = "%s%s__boostingV2__integral" | |
151 | 151 | ||
152 | 152 | ||
153 | 153 | func am () = "%s%s__emission__duration" | |
154 | 154 | ||
155 | 155 | ||
156 | 156 | func an () = "%s%s__emission__endBlock" | |
157 | 157 | ||
158 | 158 | ||
159 | 159 | func ao () = "%s__nextPeriod" | |
160 | 160 | ||
161 | 161 | ||
162 | 162 | func ap () = "%s%s__gwxRewardEmissionPart__startHeight" | |
163 | 163 | ||
164 | 164 | ||
165 | 165 | let aq = 1 | |
166 | 166 | ||
167 | 167 | let ar = 2 | |
168 | 168 | ||
169 | 169 | let as = 3 | |
170 | 170 | ||
171 | 171 | let at = 4 | |
172 | 172 | ||
173 | 173 | let au = 5 | |
174 | 174 | ||
175 | 175 | func av () = "%s__config" | |
176 | 176 | ||
177 | 177 | ||
178 | 178 | func aw () = split(h(this, av()), a) | |
179 | 179 | ||
180 | 180 | ||
181 | 181 | let ax = addressFromStringValue(aw()[au]) | |
182 | 182 | ||
183 | 183 | func ay (az,aA,aB,aC,ax) = makeString(["%s%d%d%d", az, aA, aB, aC, ax], a) | |
184 | 184 | ||
185 | 185 | ||
186 | 186 | func aD (az,aA,aB,aC,ax) = ay(az, toString(aA), toString(aB), toString(aC), ax) | |
187 | 187 | ||
188 | 188 | ||
189 | 189 | func aE () = { | |
190 | 190 | let r = getString(af()) | |
191 | 191 | if ($isInstanceOf(r, "String")) | |
192 | 192 | then { | |
193 | 193 | let aF = r | |
194 | 194 | fromBase58String(aF) | |
195 | 195 | } | |
196 | 196 | else if ($isInstanceOf(r, "Unit")) | |
197 | 197 | then unit | |
198 | 198 | else throw("Match error") | |
199 | 199 | } | |
200 | 200 | ||
201 | 201 | ||
202 | 202 | func aG () = { | |
203 | 203 | let r = getString(ag()) | |
204 | 204 | if ($isInstanceOf(r, "String")) | |
205 | 205 | then { | |
206 | 206 | let aF = r | |
207 | 207 | fromBase58String(aF) | |
208 | 208 | } | |
209 | 209 | else if ($isInstanceOf(r, "Unit")) | |
210 | 210 | then unit | |
211 | 211 | else throw("Match error") | |
212 | 212 | } | |
213 | 213 | ||
214 | 214 | ||
215 | 215 | func aH (aI) = { | |
216 | 216 | let aJ = throw("Permission denied") | |
217 | 217 | let r = aE() | |
218 | 218 | if ($isInstanceOf(r, "ByteVector")) | |
219 | 219 | then { | |
220 | 220 | let aK = r | |
221 | 221 | if ((aI.callerPublicKey == aK)) | |
222 | 222 | then true | |
223 | 223 | else aJ | |
224 | 224 | } | |
225 | 225 | else if ($isInstanceOf(r, "Unit")) | |
226 | 226 | then if ((aI.caller == this)) | |
227 | 227 | then true | |
228 | 228 | else aJ | |
229 | 229 | else throw("Match error") | |
230 | 230 | } | |
231 | 231 | ||
232 | 232 | ||
233 | 233 | let aL = 1 | |
234 | 234 | ||
235 | 235 | let aM = 2 | |
236 | 236 | ||
237 | 237 | let aN = 3 | |
238 | 238 | ||
239 | 239 | let aO = 4 | |
240 | 240 | ||
241 | 241 | let aP = 5 | |
242 | 242 | ||
243 | 243 | let aQ = 6 | |
244 | 244 | ||
245 | 245 | func aR (aS) = makeString(["%s%s__lock", aS], a) | |
246 | 246 | ||
247 | 247 | ||
248 | 248 | func aT (aS) = split(h(this, aR(aS)), a) | |
249 | 249 | ||
250 | 250 | ||
251 | 251 | func aU (aV,aW,aX,aY,aZ,ba,bb,bc) = makeString(["%d%d%d%d%d%d%d%d", aV, aW, aX, aY, aZ, ba, bb, bc], a) | |
252 | 252 | ||
253 | 253 | ||
254 | 254 | func bd (aV,aW,aX,aY,aZ,ba,bc) = aU(aV, toString(aW), toString(aX), toString(aY), toString(aZ), toString(ba), toString(lastBlock.timestamp), toString(bc)) | |
255 | 255 | ||
256 | 256 | ||
257 | 257 | func be () = "%s__nextUserNum" | |
258 | 258 | ||
259 | 259 | ||
260 | 260 | func bf (aS) = makeString(["%s%s%s__mapping__user2num", aS], a) | |
261 | 261 | ||
262 | 262 | ||
263 | 263 | func bg (V) = makeString(["%s%s%s__mapping__num2user", V], a) | |
264 | 264 | ||
265 | 265 | ||
266 | 266 | func bh (aV) = makeString(["%s%d%s__paramByUserNum", aV, "amount"], a) | |
267 | 267 | ||
268 | 268 | ||
269 | 269 | func bi (aV) = makeString(["%s%d%s__paramByUserNum", aV, "start"], a) | |
270 | 270 | ||
271 | 271 | ||
272 | 272 | func bj (aV) = makeString(["%s%d%s__paramByUserNum", aV, "duration"], a) | |
273 | 273 | ||
274 | 274 | ||
275 | 275 | func bk (aV) = makeString(["%s%d%s__paramByUserNum", aV, "k"], a) | |
276 | 276 | ||
277 | 277 | ||
278 | 278 | func bl (aV) = makeString(["%s%d%s__paramByUserNum", aV, "b"], a) | |
279 | 279 | ||
280 | 280 | ||
281 | 281 | func bm (aV,bn) = makeString(["%s%d%s%d__paramByPeriod", aV, "k", bn], a) | |
282 | 282 | ||
283 | 283 | ||
284 | 284 | func bo (aV,bn) = makeString(["%s%d%s%d__paramByPeriod", aV, "b", bn], a) | |
285 | 285 | ||
286 | 286 | ||
287 | 287 | func bp () = "%s%s__stats__activeTotalLocked" | |
288 | 288 | ||
289 | 289 | ||
290 | 290 | func bq () = "%s%s__stats__locksDurationSumInBlocks" | |
291 | 291 | ||
292 | 292 | ||
293 | 293 | func br () = "%s%s__stats__locksCount" | |
294 | 294 | ||
295 | 295 | ||
296 | 296 | func bs () = "%s%s__stats__activeUsersCount" | |
297 | 297 | ||
298 | 298 | ||
299 | 299 | func bt (aV) = makeString(["%s%d__userBoostEmissionLastIntV2", aV], a) | |
300 | 300 | ||
301 | 301 | ||
302 | 302 | func bu (aV,bv) = makeString(["%s%d__userBoostEmissionLastIntV2", aV, bv], a) | |
303 | 303 | ||
304 | 304 | ||
305 | 305 | func bw (aV) = makeString(["%s%d__maxBoostInt", aV], a) | |
306 | 306 | ||
307 | 307 | ||
308 | 308 | func bx () = "%s%s__maxBoostInt__total" | |
309 | 309 | ||
310 | 310 | ||
311 | 311 | func by (aV) = makeString(["%s%d__userBoostAvaliableToClaimTotal", aV], a) | |
312 | 312 | ||
313 | 313 | ||
314 | 314 | func bz (aV) = makeString(["%s%d__userBoostClaimed", aV], a) | |
315 | 315 | ||
316 | 316 | ||
317 | 317 | func bA () = "%s%s__gwxCached__total" | |
318 | 318 | ||
319 | 319 | ||
320 | 320 | func bB () = "%s__gwxCachedTotalCorrective" | |
321 | 321 | ||
322 | 322 | ||
323 | 323 | func bC (bD,bE,i,bF) = makeString(["%s%s%s%s%d", "vote", bD, bE, toString(i), toString(bF)], a) | |
324 | 324 | ||
325 | 325 | ||
326 | 326 | func bG (bF) = makeString(["%s%d", "startHeight", toString(bF)], a) | |
327 | 327 | ||
328 | 328 | ||
329 | 329 | func bH () = makeString(["%s", "currentEpochUi"], a) | |
330 | 330 | ||
331 | 331 | ||
332 | 332 | func bI (bJ,bF) = makeString(["%s%s%d", "votingResultStaked", bJ, toString(bF)], a) | |
333 | 333 | ||
334 | 334 | ||
335 | 335 | func bK (bJ,bF) = makeString(["%s%s%d", "votingResultStakedIntegral", bJ, toString(bF)], a) | |
336 | 336 | ||
337 | 337 | ||
338 | 338 | func bL (bJ,bF) = makeString(["%s%s%d", "votingResultStakedIntegralLastUpdateHeight", bJ, toString(bF)], a) | |
339 | 339 | ||
340 | 340 | ||
341 | 341 | func bM (bJ,i,bF) = makeString(["%s%s%s%d", "votingResultStakedIntegralLast", bJ, toString(i), toString(bF)], a) | |
342 | 342 | ||
343 | 343 | ||
344 | 344 | func bN (bJ,i,bF) = makeString(["%s%s%s%d", "voteStakedIntegral", bJ, toString(i), toString(bF)], a) | |
345 | 345 | ||
346 | 346 | ||
347 | 347 | func bO (bJ,i,bF) = makeString(["%s%s%s%d", "voteStakedIntegralLastUpdateHeight", bJ, toString(i), toString(bF)], a) | |
348 | 348 | ||
349 | 349 | ||
350 | 350 | func bP (bJ,i,bF) = makeString(["%s%s%s%d", "voteStakedIntegralLast", bJ, toString(i), toString(bF)], a) | |
351 | 351 | ||
352 | 352 | ||
353 | 353 | func bQ (bR,bJ) = makeString(["%s%s%s", "staked", bR, bJ], a) | |
354 | 354 | ||
355 | 355 | ||
356 | 356 | let bS = W() | |
357 | 357 | ||
358 | 358 | let ab = Y(bS) | |
359 | 359 | ||
360 | 360 | let bT = ac(ab) | |
361 | 361 | ||
362 | 362 | let bU = ad(ab) | |
363 | 363 | ||
364 | 364 | let bV = ae(ab) | |
365 | 365 | ||
366 | 366 | let bW = valueOrErrorMessage(addressFromString(valueOrErrorMessage(getString(makeString(["%s", "lpStakingPoolsContract"], a)), e("lp_staking_pools contract address is undefined"))), e("invalid lp_staking_pools contract address")) | |
367 | 367 | ||
368 | 368 | let bX = makeString(["%s", "votingEmissionContract"], a) | |
369 | 369 | ||
370 | 370 | let bY = addressFromStringValue(getStringValue(bS, bX)) | |
371 | 371 | ||
372 | 372 | let bZ = { | |
373 | 373 | let ca = invoke(bT, "getBoostCoeffREADONLY", nil, nil) | |
374 | 374 | if ($isInstanceOf(ca, "Int")) | |
375 | 375 | then ca | |
376 | 376 | else throw(($getType(ca) + " couldn't be cast to Int")) | |
377 | 377 | } | |
378 | 378 | ||
379 | 379 | func cb (cc) = { | |
380 | 380 | let cd = getIntegerValue(bY, bH()) | |
381 | 381 | let ce = makeString(["%s%s", "totalCachedGwxCorrection__activationEpoch"], a) | |
382 | 382 | let cf = getInteger(this, ce) | |
383 | 383 | let cg = valueOrElse(getInteger(this, bA()), 0) | |
384 | 384 | let ch = if (isDefined(cf)) | |
385 | 385 | then (cd >= value(cf)) | |
386 | 386 | else false | |
387 | 387 | let ci = if (if (ch) | |
388 | 388 | then cc | |
389 | 389 | else false) | |
390 | 390 | then valueOrElse(getInteger(this, bB()), 0) | |
391 | 391 | else 0 | |
392 | 392 | max([0, (cg + ci)]) | |
393 | 393 | } | |
394 | 394 | ||
395 | 395 | ||
396 | 396 | func cj (ck,cl,aW,cm,aY,cn,co,aI) = { | |
397 | 397 | let cp = makeString(["%s%s%s%s__history", ck, cl, toBase58String(aI.transactionId)], a) | |
398 | 398 | let cq = makeString(["%d%d%d%d%d%d%d", toString(lastBlock.height), toString(lastBlock.timestamp), toString(aW), toString(cm), toString(aY), toString(cn), toString(co)], a) | |
399 | 399 | StringEntry(cp, cq) | |
400 | 400 | } | |
401 | 401 | ||
402 | 402 | ||
403 | 403 | func cr (cs,ct,cu,cv) = { | |
404 | 404 | let cw = bq() | |
405 | 405 | let cx = br() | |
406 | 406 | let cy = bs() | |
407 | 407 | let cz = bp() | |
408 | 408 | let cA = k(this, cw) | |
409 | 409 | let cB = k(this, cx) | |
410 | 410 | let cC = k(this, cy) | |
411 | 411 | let cD = k(this, cz) | |
412 | 412 | [IntegerEntry(cw, (cA + ct)), IntegerEntry(cx, (cB + cu)), IntegerEntry(cy, (cC + cv)), IntegerEntry(cz, (cD + cs))] | |
413 | 413 | } | |
414 | 414 | ||
415 | 415 | ||
416 | 416 | func cE (cF,cG,cH) = { | |
417 | 417 | let cI = 1000 | |
418 | 418 | (((cF * cH) + cG) / cI) | |
419 | 419 | } | |
420 | 420 | ||
421 | 421 | ||
422 | 422 | func cJ (aS,aV,aW,aX,aY,cn,co,bn) = { | |
423 | 423 | let cK = bh(aV) | |
424 | 424 | let cL = bi(aV) | |
425 | 425 | let cM = bj(aV) | |
426 | 426 | let cN = bk(aV) | |
427 | 427 | let cO = bl(aV) | |
428 | 428 | let cP = bm(aV, bn) | |
429 | 429 | let cQ = bo(aV, bn) | |
430 | 430 | let bc = cE(cn, co, height) | |
431 | 431 | [IntegerEntry(cK, aW), IntegerEntry(cL, aX), IntegerEntry(cM, aY), IntegerEntry(cN, cn), IntegerEntry(cO, co), IntegerEntry(cP, cn), IntegerEntry(cQ, co), StringEntry(aR(aS), bd(aV, aW, aX, aY, cn, co, bc))] | |
432 | 432 | } | |
433 | 433 | ||
434 | 434 | ||
435 | 435 | func cR (aI,cS) = if ((size(aI.payments) > 1)) | |
436 | 436 | then throw("only one payment is allowed") | |
437 | 437 | else if ((size(aI.payments) == 0)) | |
438 | 438 | then 0 | |
439 | 439 | else { | |
440 | 440 | let cT = aI.payments[0] | |
441 | 441 | if ((value(cT.assetId) != cS)) | |
442 | 442 | then throw("invalid asset id in payment") | |
443 | 443 | else cT.amount | |
444 | 444 | } | |
445 | 445 | ||
446 | 446 | ||
447 | 447 | func cU (aS,cV) = { | |
448 | 448 | let cW = "empty" | |
449 | 449 | let cX = bf(aS) | |
450 | 450 | let aV = valueOrElse(getString(cX), cW) | |
451 | 451 | let cn = valueOrElse(getInteger(bk(aV)), 0) | |
452 | 452 | let co = valueOrElse(getInteger(bl(aV)), 0) | |
453 | 453 | let cY = cE(cn, co, cV) | |
454 | 454 | let bc = if ((0 > cY)) | |
455 | 455 | then 0 | |
456 | 456 | else cY | |
457 | 457 | bc | |
458 | 458 | } | |
459 | 459 | ||
460 | 460 | ||
461 | 461 | func cZ (aS) = cU(aS, height) | |
462 | 462 | ||
463 | 463 | ||
464 | 464 | func da () = { | |
465 | 465 | let db = { | |
466 | 466 | let cd = value(getInteger(bY, bH())) | |
467 | 467 | let dc = (cd - 1) | |
468 | 468 | if ((0 > dc)) | |
469 | 469 | then g("invalid epoch") | |
470 | 470 | else $Tuple2(cd, dc) | |
471 | 471 | } | |
472 | 472 | let cd = db._1 | |
473 | 473 | let dc = db._2 | |
474 | 474 | let dd = value(getInteger(bY, bG(cd))) | |
475 | 475 | $Tuple2(dc, dd) | |
476 | 476 | } | |
477 | 477 | ||
478 | 478 | ||
479 | 479 | func de (bJ) = { | |
480 | 480 | let df = 4 | |
481 | 481 | let dg = 5 | |
482 | 482 | let dh = { | |
483 | 483 | let ca = invoke(bS, "getPoolConfigByLpAssetIdREADONLY", [bJ], nil) | |
484 | 484 | if ($isInstanceOf(ca, "List[Any]")) | |
485 | 485 | then ca | |
486 | 486 | else throw(($getType(ca) + " couldn't be cast to List[Any]")) | |
487 | 487 | } | |
488 | 488 | let bD = { | |
489 | 489 | let ca = dh[df] | |
490 | 490 | if ($isInstanceOf(ca, "String")) | |
491 | 491 | then ca | |
492 | 492 | else throw(($getType(ca) + " couldn't be cast to String")) | |
493 | 493 | } | |
494 | 494 | let bE = { | |
495 | 495 | let ca = dh[dg] | |
496 | 496 | if ($isInstanceOf(ca, "String")) | |
497 | 497 | then ca | |
498 | 498 | else throw(($getType(ca) + " couldn't be cast to String")) | |
499 | 499 | } | |
500 | 500 | $Tuple2(bD, bE) | |
501 | 501 | } | |
502 | 502 | ||
503 | 503 | ||
504 | 504 | func di (bJ,bR) = { | |
505 | 505 | let aS = addressFromStringValue(bR) | |
506 | 506 | let dj = da() | |
507 | 507 | let dc = dj._1 | |
508 | 508 | let dd = dj._2 | |
509 | 509 | let dk = de(bJ) | |
510 | 510 | let bD = dk._1 | |
511 | 511 | let bE = dk._2 | |
512 | 512 | let dl = bC(bD, bE, aS, dc) | |
513 | 513 | let dm = valueOrElse(getInteger(bY, dl), 0) | |
514 | 514 | dm | |
515 | 515 | } | |
516 | 516 | ||
517 | 517 | ||
518 | 518 | func dn (bJ,bR) = { | |
519 | 519 | let do = valueOrElse(getInteger(bU, bQ(bR, bJ)), 0) | |
520 | 520 | let dm = di(bJ, bR) | |
521 | 521 | if ((do == 0)) | |
522 | 522 | then 0 | |
523 | 523 | else dm | |
524 | 524 | } | |
525 | 525 | ||
526 | 526 | ||
527 | 527 | func dp (bJ) = { | |
528 | 528 | let dq = da() | |
529 | 529 | let dc = dq._1 | |
530 | 530 | let dd = dq._2 | |
531 | 531 | let dr = valueOrElse(getInteger(bY, bI(bJ, dc)), 0) | |
532 | 532 | let ds = valueOrElse(getInteger(this, bI(bJ, dc)), dr) | |
533 | 533 | ds | |
534 | 534 | } | |
535 | 535 | ||
536 | 536 | ||
537 | - | func dt (bJ | |
538 | - | let | |
539 | - | let dc = | |
540 | - | let dd = | |
537 | + | func dt (bJ) = { | |
538 | + | let du = da() | |
539 | + | let dc = du._1 | |
540 | + | let dd = du._2 | |
541 | 541 | let ds = dp(bJ) | |
542 | - | let dw = (ds + du) | |
543 | - | let dx = bK(bJ, dc) | |
544 | - | let dy = valueOrElse(getInteger(this, dx), 0) | |
545 | - | let dz = bL(bJ, dc) | |
546 | - | let dA = valueOrElse(getInteger(this, dz), dd) | |
547 | - | let dB = (height - dA) | |
548 | - | let dC = ((dB * ds) + dy) | |
549 | - | $Tuple2([IntegerEntry(bI(bJ, dc), dw), IntegerEntry(dz, height), IntegerEntry(dx, dC)], dC) | |
542 | + | let dv = valueOrElse(getInteger(this, bK(bJ, dc)), 0) | |
543 | + | let dw = valueOrElse(getInteger(this, bL(bJ, dc)), dd) | |
544 | + | let dx = (height - dw) | |
545 | + | let dy = ((dx * ds) + dv) | |
546 | + | dy | |
550 | 547 | } | |
551 | 548 | ||
552 | 549 | ||
553 | - | func dD (bJ,bR,dE) = { | |
554 | - | let dF = da() | |
555 | - | let dc = dF._1 | |
556 | - | let dd = dF._2 | |
550 | + | func dz (bJ,dA) = { | |
551 | + | let dB = da() | |
552 | + | let dc = dB._1 | |
553 | + | let dd = dB._2 | |
554 | + | let ds = dp(bJ) | |
555 | + | let dC = (ds + dA) | |
556 | + | let dy = dt(bJ) | |
557 | + | [IntegerEntry(bI(bJ, dc), dC), IntegerEntry(bL(bJ, dc), height), IntegerEntry(bK(bJ, dc), dy)] | |
558 | + | } | |
559 | + | ||
560 | + | ||
561 | + | func dD (bJ,bR) = { | |
562 | + | let dE = da() | |
563 | + | let dc = dE._1 | |
564 | + | let dd = dE._2 | |
557 | 565 | let aS = addressFromStringValue(bR) | |
558 | - | let df = 4 | |
559 | - | let dg = 5 | |
560 | - | let dh = { | |
561 | - | let ca = invoke(bS, "getPoolConfigByLpAssetIdREADONLY", [bJ], nil) | |
562 | - | if ($isInstanceOf(ca, "List[Any]")) | |
563 | - | then ca | |
564 | - | else throw(($getType(ca) + " couldn't be cast to List[Any]")) | |
565 | - | } | |
566 | - | let bD = { | |
567 | - | let ca = dh[df] | |
568 | - | if ($isInstanceOf(ca, "String")) | |
569 | - | then ca | |
570 | - | else throw(($getType(ca) + " couldn't be cast to String")) | |
571 | - | } | |
572 | - | let bE = { | |
573 | - | let ca = dh[dg] | |
574 | - | if ($isInstanceOf(ca, "String")) | |
575 | - | then ca | |
576 | - | else throw(($getType(ca) + " couldn't be cast to String")) | |
577 | - | } | |
578 | - | let dm = valueOrElse(getInteger(bY, bC(bD, bE, aS, dc)), 0) | |
579 | - | let dG = if ((dm == 0)) | |
566 | + | let dF = dn(bJ, bR) | |
567 | + | let dG = valueOrElse(getInteger(this, bN(bJ, aS, dc)), 0) | |
568 | + | let dH = valueOrElse(getInteger(this, bO(bJ, aS, dc)), dd) | |
569 | + | let dI = (height - dH) | |
570 | + | let dJ = ((dI * dF) + dG) | |
571 | + | dJ | |
572 | + | } | |
573 | + | ||
574 | + | ||
575 | + | func dK (bJ,bR,dL) = { | |
576 | + | let dM = da() | |
577 | + | let dc = dM._1 | |
578 | + | let dd = dM._2 | |
579 | + | let aS = addressFromStringValue(bR) | |
580 | + | let dN = di(bJ, bR) | |
581 | + | let dO = if ((dN == 0)) | |
580 | 582 | then nil | |
581 | 583 | else { | |
582 | - | let du = if (dE) | |
583 | - | then dm | |
584 | - | else -(dm) | |
585 | - | let dH = dt(bJ, du) | |
586 | - | let dI = dH._1 | |
587 | - | let dC = dH._2 | |
588 | - | let dJ = if (dE) | |
589 | - | then 0 | |
590 | - | else dm | |
591 | - | let dK = bN(bJ, aS, dc) | |
592 | - | let dL = valueOrElse(getInteger(this, dK), 0) | |
593 | - | let dM = bO(bJ, aS, dc) | |
594 | - | let dN = valueOrElse(getInteger(this, dM), dd) | |
595 | - | let dO = (height - dN) | |
596 | - | let dP = ((dO * dJ) + dL) | |
597 | - | let dQ = [IntegerEntry(dM, height), IntegerEntry(dK, dP)] | |
598 | - | (dI ++ dQ) | |
584 | + | let dA = if (dL) | |
585 | + | then dN | |
586 | + | else -(dN) | |
587 | + | let dP = dz(bJ, dA) | |
588 | + | let dJ = dD(bJ, bR) | |
589 | + | let dQ = [IntegerEntry(bO(bJ, aS, dc), height), IntegerEntry(bN(bJ, aS, dc), dJ)] | |
590 | + | (dP ++ dQ) | |
599 | 591 | } | |
600 | - | | |
592 | + | dO | |
601 | 593 | } | |
602 | 594 | ||
603 | 595 | ||
604 | 596 | func dR (bJ,bR) = { | |
605 | 597 | let dS = da() | |
606 | 598 | let dc = dS._1 | |
607 | 599 | let dd = dS._2 | |
608 | 600 | let aS = addressFromStringValue(bR) | |
609 | - | let | |
601 | + | let dF = dn(bJ, bR) | |
610 | 602 | let ds = dp(bJ) | |
611 | - | let | |
612 | - | let | |
613 | - | let | |
614 | - | let | |
615 | - | let | |
616 | - | let | |
617 | - | let | |
618 | - | let | |
619 | - | let | |
620 | - | let | |
621 | - | let | |
622 | - | let | |
623 | - | let | |
624 | - | let | |
625 | - | $Tuple3([IntegerEntry( | |
603 | + | let dG = valueOrElse(getInteger(this, bN(bJ, aS, dc)), 0) | |
604 | + | let dv = valueOrElse(getInteger(this, bK(bJ, dc)), 0) | |
605 | + | let dH = valueOrElse(getInteger(this, bO(bJ, aS, dc)), dd) | |
606 | + | let dw = valueOrElse(getInteger(this, bL(bJ, dc)), dd) | |
607 | + | let dT = bP(bJ, aS, dc) | |
608 | + | let dU = valueOrElse(getInteger(this, dT), 0) | |
609 | + | let dV = bM(bJ, aS, dc) | |
610 | + | let dW = valueOrElse(getInteger(this, dV), 0) | |
611 | + | let dI = (height - dH) | |
612 | + | let dx = (height - dw) | |
613 | + | let dJ = ((dI * dF) + dG) | |
614 | + | let dy = ((dx * ds) + dv) | |
615 | + | let dX = (dJ - dU) | |
616 | + | let dY = (dy - dW) | |
617 | + | $Tuple3([IntegerEntry(dT, dJ), IntegerEntry(dV, dy)], dX, dY) | |
626 | 618 | } | |
627 | 619 | ||
628 | 620 | ||
629 | - | func | |
630 | - | let | |
631 | - | let | |
632 | - | let | |
633 | - | let | |
634 | - | let cH = if ((height > | |
635 | - | then | |
621 | + | func dZ () = { | |
622 | + | let ea = n(bT, ah()) | |
623 | + | let eb = getInteger(bT, ak()) | |
624 | + | let ec = getInteger(this, al()) | |
625 | + | let ed = n(bT, an()) | |
626 | + | let cH = if ((height > ed)) | |
627 | + | then ed | |
636 | 628 | else height | |
637 | - | let | |
638 | - | let r = | |
629 | + | let ee = { | |
630 | + | let r = eb | |
639 | 631 | if ($isInstanceOf(r, "Int")) | |
640 | 632 | then { | |
641 | - | let | |
642 | - | max([(cH - | |
633 | + | let ef = r | |
634 | + | max([(cH - ef), 0]) | |
643 | 635 | } | |
644 | 636 | else if ($isInstanceOf(r, "Unit")) | |
645 | 637 | then 0 | |
646 | 638 | else throw("Match error") | |
647 | 639 | } | |
648 | - | let | |
649 | - | let | |
650 | - | let | |
651 | - | $Tuple2([IntegerEntry(al(), | |
640 | + | let eg = ((ea * (bZ - 1)) / bZ) | |
641 | + | let eh = valueOrElse(ec, 0) | |
642 | + | let ei = ((eg * ee) + eh) | |
643 | + | $Tuple2([IntegerEntry(al(), ei), IntegerEntry(ak(), height)], ei) | |
652 | 644 | } | |
653 | 645 | ||
654 | 646 | ||
655 | - | func | |
656 | - | let | |
657 | - | if (( | |
647 | + | func ej (bJ,bR,ek) = { | |
648 | + | let el = getString(this, aR(bR)) | |
649 | + | if ((el == unit)) | |
658 | 650 | then $Tuple3(0, nil, "userRecord::is::empty") | |
659 | 651 | else { | |
660 | - | let | |
661 | - | let | |
662 | - | let | |
663 | - | let | |
652 | + | let em = split(value(el), a) | |
653 | + | let en = em[aL] | |
654 | + | let eo = "empty" | |
655 | + | let ep = if ((bJ != eo)) | |
664 | 656 | then { | |
665 | - | let | |
666 | - | getIntegerValue(bS, R( | |
657 | + | let eq = valueOrErrorMessage(getString(bS, N(bJ)), ("unsupported lp asset " + bJ)) | |
658 | + | getIntegerValue(bS, R(eq)) | |
667 | 659 | } | |
668 | - | else if ( | |
660 | + | else if (ek) | |
669 | 661 | then 0 | |
670 | 662 | else throw(("not readonly mode: unsupported lp asset " + bJ)) | |
671 | - | let | |
672 | - | let | |
673 | - | let | |
674 | - | let | |
675 | - | let | |
676 | - | if ((0 > | |
663 | + | let er = bu(en, bJ) | |
664 | + | let es = bt(en) | |
665 | + | let et = valueOrElse(getInteger(this, er), k(this, es)) | |
666 | + | let ei = dZ()._2 | |
667 | + | let eu = (ei - et) | |
668 | + | if ((0 > eu)) | |
677 | 669 | then throw("wrong calculations") | |
678 | 670 | else { | |
679 | - | let | |
680 | - | let | |
681 | - | let | |
682 | - | let | |
683 | - | let | |
684 | - | let | |
671 | + | let ev = dR(bJ, bR) | |
672 | + | let ew = ev._1 | |
673 | + | let ex = ev._2 | |
674 | + | let ey = ev._3 | |
675 | + | let ez = fraction(eu, ep, d) | |
676 | + | let eA = if ((ey == 0)) | |
685 | 677 | then 0 | |
686 | - | else fraction(ex, | |
687 | - | let | |
688 | - | let | |
689 | - | $Tuple3( | |
678 | + | else fraction(ez, ex, ey) | |
679 | + | let eB = ([IntegerEntry(er, ei)] ++ ew) | |
680 | + | let eC = makeString([toString(et), toString(eu), toString(ep), toString(ex), toString(ey)], ":") | |
681 | + | $Tuple3(eA, eB, eC) | |
690 | 682 | } | |
691 | 683 | } | |
692 | 684 | } | |
693 | 685 | ||
694 | 686 | ||
695 | - | func | |
696 | - | let | |
697 | - | let | |
698 | - | let az = fromBase58String( | |
699 | - | let aA = parseIntValue( | |
700 | - | let aB = parseIntValue( | |
701 | - | let aC = parseIntValue( | |
687 | + | func eD (aI,aY) = { | |
688 | + | let eE = aw() | |
689 | + | let eF = eE[aq] | |
690 | + | let az = fromBase58String(eF) | |
691 | + | let aA = parseIntValue(eE[ar]) | |
692 | + | let aB = parseIntValue(eE[as]) | |
693 | + | let aC = parseIntValue(eE[at]) | |
702 | 694 | if ((size(aI.payments) != 1)) | |
703 | 695 | then throw("invalid payment - exact one payment must be attached") | |
704 | 696 | else { | |
705 | 697 | let cT = aI.payments[0] | |
706 | - | let | |
698 | + | let eG = cT.amount | |
707 | 699 | if ((az != value(cT.assetId))) | |
708 | - | then throw((("invalid asset is in payment - " + | |
700 | + | then throw((("invalid asset is in payment - " + eF) + " is expected")) | |
709 | 701 | else { | |
710 | - | let | |
702 | + | let eH = be() | |
711 | 703 | let bR = toString(aI.caller) | |
712 | - | let | |
713 | - | let | |
704 | + | let eI = isDefined(getString(bf(bR))) | |
705 | + | let en = if (eI) | |
714 | 706 | then value(getString(bf(bR))) | |
715 | - | else toString(n(this, | |
716 | - | let aV = parseIntValue( | |
707 | + | else toString(n(this, eH)) | |
708 | + | let aV = parseIntValue(en) | |
717 | 709 | let cm = height | |
718 | - | let cL = bi( | |
719 | - | let cM = bj( | |
720 | - | let cK = bh( | |
721 | - | if (if ((aA > | |
710 | + | let cL = bi(en) | |
711 | + | let cM = bj(en) | |
712 | + | let cK = bh(en) | |
713 | + | if (if ((aA > eG)) | |
722 | 714 | then (aI.caller != bW) | |
723 | 715 | else false) | |
724 | 716 | then throw(("amount is less then minLockAmount=" + toString(aA))) | |
725 | 717 | else if ((aB > aY)) | |
726 | 718 | then throw(("passed duration is less then minLockDuration=" + toString(aB))) | |
727 | 719 | else if ((aY > aC)) | |
728 | 720 | then throw(("passed duration is greater then maxLockDuration=" + toString(aC))) | |
729 | - | else if (if ( | |
721 | + | else if (if (eI) | |
730 | 722 | then ((n(this, cL) + n(this, cM)) >= cm) | |
731 | 723 | else false) | |
732 | 724 | then throw("there is an active lock - consider to use increaseLock") | |
733 | 725 | else if ((k(this, cK) > 0)) | |
734 | 726 | then throw(("there are locked WXs - consider to use increaseLock " + cK)) | |
735 | 727 | else { | |
736 | - | let | |
737 | - | let | |
738 | - | let | |
739 | - | let cn = t( | |
740 | - | let co = t( | |
741 | - | let bn = toString(t( | |
728 | + | let eJ = fraction(aY, c, aC) | |
729 | + | let eK = fraction(eG, eJ, c) | |
730 | + | let eL = q(invoke(ax, "calcGwxParamsREADONLY", [eK, cm, aY], nil)) | |
731 | + | let cn = t(eL[0]) | |
732 | + | let co = t(eL[1]) | |
733 | + | let bn = toString(t(eL[2])) | |
742 | 734 | let cg = cb(false) | |
743 | - | let | |
744 | - | let | |
745 | - | let | |
735 | + | let es = bt(en) | |
736 | + | let ei = dZ()._2 | |
737 | + | let eM = if (eI) | |
746 | 738 | then nil | |
747 | - | else [IntegerEntry( | |
748 | - | $Tuple2((((( | |
739 | + | else [IntegerEntry(eH, (aV + 1)), StringEntry(bf(bR), en), StringEntry(bg(en), bR)] | |
740 | + | $Tuple2(((((eM ++ cJ(bR, en, eG, cm, aY, cn, co, bn)) ++ cr(eG, aY, 1, if (eI) | |
749 | 741 | then 0 | |
750 | - | else 1)) :+ cj("lock", bR, | |
742 | + | else 1)) :+ cj("lock", bR, eG, cm, aY, cn, co, aI)) ++ [IntegerEntry(es, ei), IntegerEntry(bA(), (cg + eK))]), eK) | |
751 | 743 | } | |
752 | 744 | } | |
753 | 745 | } | |
754 | 746 | } | |
755 | 747 | ||
756 | 748 | ||
757 | 749 | @Callable(aI) | |
758 | - | func constructor ( | |
759 | - | let | |
760 | - | if (( | |
761 | - | then ([IntegerEntry(be(), 0), StringEntry(av(), aD( | |
750 | + | func constructor (eN,eO,aA,eP,eQ,ax) = { | |
751 | + | let eR = aH(aI) | |
752 | + | if ((eR == eR)) | |
753 | + | then ([IntegerEntry(be(), 0), StringEntry(av(), aD(eO, aA, eP, eQ, ax)), StringEntry(A(), eN)] ++ cr(0, 0, 0, 0)) | |
762 | 754 | else throw("Strict value is not equal to itself.") | |
763 | 755 | } | |
764 | 756 | ||
765 | 757 | ||
766 | 758 | ||
767 | 759 | @Callable(aI) | |
768 | - | func lockRef (aY, | |
769 | - | let | |
770 | - | let | |
771 | - | let | |
772 | - | let | |
773 | - | let | |
760 | + | func lockRef (aY,eS,eT) = { | |
761 | + | let eU = eD(aI, aY) | |
762 | + | let eV = eU._1 | |
763 | + | let eK = eU._2 | |
764 | + | let eW = toString(aI.caller) | |
765 | + | let eX = if (if ((eS == "")) | |
774 | 766 | then true | |
775 | - | else ( | |
767 | + | else (eT == base58'')) | |
776 | 768 | then unit | |
777 | - | else invoke(w, "createPair", [z, | |
778 | - | if (( | |
769 | + | else invoke(w, "createPair", [z, eS, eW, eT], nil) | |
770 | + | if ((eX == eX)) | |
779 | 771 | then { | |
780 | - | let | |
781 | - | if (( | |
782 | - | then $Tuple2( | |
772 | + | let eY = invoke(ax, "updateReferralActivity", [toString(aI.caller), eK], nil) | |
773 | + | if ((eY == eY)) | |
774 | + | then $Tuple2(eV, unit) | |
783 | 775 | else throw("Strict value is not equal to itself.") | |
784 | 776 | } | |
785 | 777 | else throw("Strict value is not equal to itself.") | |
786 | 778 | } | |
787 | 779 | ||
788 | 780 | ||
789 | 781 | ||
790 | 782 | @Callable(aI) | |
791 | 783 | func lock (aY) = { | |
792 | - | let | |
793 | - | let | |
794 | - | let | |
795 | - | let | |
796 | - | if (( | |
797 | - | then $Tuple2( | |
784 | + | let eZ = eD(aI, aY) | |
785 | + | let eV = eZ._1 | |
786 | + | let eK = eZ._2 | |
787 | + | let eY = invoke(ax, "updateReferralActivity", [toString(aI.caller), eK], nil) | |
788 | + | if ((eY == eY)) | |
789 | + | then $Tuple2(eV, unit) | |
798 | 790 | else throw("Strict value is not equal to itself.") | |
799 | 791 | } | |
800 | 792 | ||
801 | 793 | ||
802 | 794 | ||
803 | 795 | @Callable(aI) | |
804 | - | func increaseLock ( | |
805 | - | let | |
806 | - | let | |
807 | - | let az = fromBase58String( | |
808 | - | let aB = parseIntValue( | |
809 | - | let aC = parseIntValue( | |
810 | - | let | |
796 | + | func increaseLock (fa) = { | |
797 | + | let eE = aw() | |
798 | + | let eF = eE[aq] | |
799 | + | let az = fromBase58String(eF) | |
800 | + | let aB = parseIntValue(eE[as]) | |
801 | + | let aC = parseIntValue(eE[at]) | |
802 | + | let eG = cR(aI, az) | |
811 | 803 | let bR = toString(aI.caller) | |
812 | - | let | |
813 | - | let | |
814 | - | let | |
815 | - | let cm = parseIntValue( | |
816 | - | let | |
817 | - | let | |
818 | - | let | |
819 | - | let | |
820 | - | let | |
821 | - | if ((0 > | |
804 | + | let em = aT(bR) | |
805 | + | let en = em[aL] | |
806 | + | let fb = parseIntValue(em[aM]) | |
807 | + | let cm = parseIntValue(em[aN]) | |
808 | + | let fc = parseIntValue(em[aO]) | |
809 | + | let fd = (cm + fc) | |
810 | + | let fe = max([(fd - height), 0]) | |
811 | + | let ff = (fb + eG) | |
812 | + | let fg = (fe + fa) | |
813 | + | if ((0 > fa)) | |
822 | 814 | then throw("duration is less then zero") | |
823 | - | else if ((aB > | |
815 | + | else if ((aB > fg)) | |
824 | 816 | then throw(("lockDurationNew is less then minLockDuration=" + toString(aB))) | |
825 | - | else if (( | |
817 | + | else if ((fg > aC)) | |
826 | 818 | then throw(("deltaDuration + existedLockDuration is greater then maxLockDuration=" + toString(aC))) | |
827 | 819 | else { | |
828 | - | let | |
829 | - | let | |
830 | - | let | |
831 | - | if (( | |
820 | + | let eJ = fraction(fg, c, aC) | |
821 | + | let eK = fraction(ff, eJ, c) | |
822 | + | let eY = invoke(ax, "updateReferralActivity", [toString(aI.caller), eK], nil) | |
823 | + | if ((eY == eY)) | |
832 | 824 | then { | |
833 | - | let | |
834 | - | let | |
835 | - | let cn = t( | |
836 | - | let co = t( | |
837 | - | let bn = toString(t( | |
838 | - | let | |
839 | - | let | |
840 | - | if ((0 > | |
841 | - | then throw(("gwxDiff is less then 0: " + toString( | |
825 | + | let fh = height | |
826 | + | let eL = q(invoke(ax, "calcGwxParamsREADONLY", [eK, fh, fg], nil)) | |
827 | + | let cn = t(eL[0]) | |
828 | + | let co = t(eL[1]) | |
829 | + | let bn = toString(t(eL[2])) | |
830 | + | let fi = cZ(bR) | |
831 | + | let fj = (eK - fi) | |
832 | + | if ((0 > fj)) | |
833 | + | then throw(("gwxDiff is less then 0: " + toString(fj))) | |
842 | 834 | else { | |
843 | 835 | let cg = cb(false) | |
844 | - | let | |
845 | - | (((cJ(bR, | |
836 | + | let fk = cb(true) | |
837 | + | (((cJ(bR, en, ff, fh, fg, cn, co, bn) ++ cr(eG, fa, 0, 0)) :+ cj("lock", bR, eG, cm, fg, cn, co, aI)) ++ [IntegerEntry(bA(), (cg + fj))]) | |
846 | 838 | } | |
847 | 839 | } | |
848 | 840 | else throw("Strict value is not equal to itself.") | |
849 | 841 | } | |
850 | 842 | } | |
851 | 843 | ||
852 | 844 | ||
853 | 845 | ||
854 | 846 | @Callable(aI) | |
855 | 847 | func claimWxBoost (bJ,bR) = if ((bU != aI.caller)) | |
856 | 848 | then throw("permissions denied") | |
857 | 849 | else { | |
858 | - | let | |
859 | - | let | |
860 | - | let | |
861 | - | let | |
862 | - | $Tuple2( | |
850 | + | let fl = ej(bJ, bR, false) | |
851 | + | let fm = fl._1 | |
852 | + | let eB = fl._2 | |
853 | + | let eC = fl._3 | |
854 | + | $Tuple2(eB, [fm]) | |
863 | 855 | } | |
864 | 856 | ||
865 | 857 | ||
866 | 858 | ||
867 | 859 | @Callable(aI) | |
868 | 860 | func claimWxBoostREADONLY (bJ,bR) = { | |
869 | - | let | |
870 | - | let | |
871 | - | let | |
872 | - | let | |
873 | - | $Tuple2(nil, [ | |
861 | + | let fn = ej(bJ, bR, true) | |
862 | + | let fm = fn._1 | |
863 | + | let eB = fn._2 | |
864 | + | let eC = fn._3 | |
865 | + | $Tuple2(nil, [fm, eC]) | |
874 | 866 | } | |
875 | 867 | ||
876 | 868 | ||
877 | 869 | ||
878 | 870 | @Callable(aI) | |
879 | 871 | func unlock (aS) = { | |
880 | - | let | |
881 | - | let | |
882 | - | let | |
883 | - | let cm = parseIntValue( | |
884 | - | let | |
885 | - | let | |
886 | - | let | |
887 | - | let az = fromBase58String( | |
888 | - | if (( | |
889 | - | then throw((("wait " + toString( | |
890 | - | else if ((0 >= | |
872 | + | let em = aT(aS) | |
873 | + | let en = em[aL] | |
874 | + | let fb = parseIntValue(em[aM]) | |
875 | + | let cm = parseIntValue(em[aN]) | |
876 | + | let fc = parseIntValue(em[aO]) | |
877 | + | let fd = (cm + fc) | |
878 | + | let eE = aw() | |
879 | + | let az = fromBase58String(eE[aq]) | |
880 | + | if ((fd >= height)) | |
881 | + | then throw((("wait " + toString(fd)) + " to unlock")) | |
882 | + | else if ((0 >= fb)) | |
891 | 883 | then throw("nothing to unlock") | |
892 | 884 | else { | |
893 | 885 | let bn = valueOrElse(getInteger(ax, ao()), 0) | |
894 | - | (((cJ(aS, | |
886 | + | (((cJ(aS, en, 0, cm, fc, 0, 0, toString(bn)) ++ cr(-(fb), 0, 0, -1)) :+ cj("unlock", aS, fb, cm, fc, 0, 0, aI)) :+ ScriptTransfer(addressFromStringValue(aS), fb, az)) | |
895 | 887 | } | |
896 | 888 | } | |
897 | 889 | ||
898 | 890 | ||
899 | 891 | ||
900 | 892 | @Callable(aI) | |
901 | 893 | func gwxUserInfoREADONLY (aS) = { | |
902 | 894 | let bc = cZ(aS) | |
903 | 895 | $Tuple2(nil, [bc]) | |
904 | 896 | } | |
905 | 897 | ||
906 | 898 | ||
907 | 899 | ||
908 | 900 | @Callable(aI) | |
909 | 901 | func userMaxDurationREADONLY (bR) = { | |
910 | - | let | |
911 | - | let aC = parseIntValue( | |
912 | - | let | |
913 | - | if (( | |
902 | + | let eE = aw() | |
903 | + | let aC = parseIntValue(eE[at]) | |
904 | + | let el = getString(this, aR(bR)) | |
905 | + | if ((el == unit)) | |
914 | 906 | then $Tuple2(nil, $Tuple2("lock", aC)) | |
915 | 907 | else { | |
916 | - | let | |
917 | - | let cm = parseIntValue( | |
918 | - | let | |
919 | - | let | |
920 | - | let | |
921 | - | let | |
922 | - | $Tuple2(nil, $Tuple2("increaseLock", | |
908 | + | let em = split(value(el), a) | |
909 | + | let cm = parseIntValue(em[aN]) | |
910 | + | let fc = parseIntValue(em[aO]) | |
911 | + | let fd = (cm + fc) | |
912 | + | let fe = max([(fd - height), 0]) | |
913 | + | let fo = (aC - fe) | |
914 | + | $Tuple2(nil, $Tuple2("increaseLock", fo)) | |
923 | 915 | } | |
924 | 916 | } | |
925 | 917 | ||
926 | 918 | ||
927 | 919 | ||
928 | 920 | @Callable(aI) | |
929 | 921 | func getUserGwxAmountAtHeightREADONLY (aS,cV) = { | |
930 | 922 | let bc = cU(aS, cV) | |
931 | 923 | $Tuple2(nil, bc) | |
932 | 924 | } | |
933 | 925 | ||
934 | 926 | ||
935 | 927 | ||
936 | 928 | @Callable(aI) | |
937 | 929 | func getTotalCachedGwxREADONLY () = $Tuple2(nil, cb(true)) | |
938 | 930 | ||
939 | 931 | ||
940 | 932 | ||
941 | 933 | @Callable(aI) | |
942 | 934 | func onBoostEmissionUpdate () = { | |
943 | - | let | |
935 | + | let eR = if ((aI.caller == bT)) | |
944 | 936 | then true | |
945 | 937 | else aH(aI) | |
946 | - | if (( | |
947 | - | then | |
938 | + | if ((eR == eR)) | |
939 | + | then dZ() | |
948 | 940 | else throw("Strict value is not equal to itself.") | |
949 | 941 | } | |
950 | 942 | ||
951 | 943 | ||
952 | 944 | ||
953 | 945 | @Callable(aI) | |
954 | - | func onStakedVoteUpdate (bJ,bR, | |
955 | - | let | |
946 | + | func onStakedVoteUpdate (bJ,bR,dL) = { | |
947 | + | let eR = if ((aI.caller == bU)) | |
956 | 948 | then true | |
957 | 949 | else aH(aI) | |
958 | - | if (( | |
950 | + | if ((eR == eR)) | |
959 | 951 | then { | |
960 | - | let | |
961 | - | $Tuple2( | |
952 | + | let dO = dK(bJ, bR, dL) | |
953 | + | $Tuple2(dO, unit) | |
962 | 954 | } | |
963 | 955 | else throw("Strict value is not equal to itself.") | |
964 | 956 | } | |
965 | 957 | ||
966 | 958 | ||
967 | 959 | ||
968 | 960 | @Callable(aI) | |
969 | 961 | func getVotingResultStakedREADONLY (bJ) = $Tuple2(nil, dp(bJ)) | |
970 | 962 | ||
971 | 963 | ||
972 | 964 | ||
973 | 965 | @Callable(aI) | |
966 | + | func getVotingResultStakedIntegralREADONLY (bJ) = $Tuple2(nil, dt(bJ)) | |
967 | + | ||
968 | + | ||
969 | + | ||
970 | + | @Callable(aI) | |
974 | 971 | func getUserVoteFinalizedREADONLY (bJ,bR) = $Tuple2(nil, di(bJ, bR)) | |
975 | 972 | ||
976 | 973 | ||
977 | 974 | ||
978 | 975 | @Callable(aI) | |
979 | - | func setManager (fn) = { | |
980 | - | let eP = aH(aI) | |
981 | - | if ((eP == eP)) | |
976 | + | func getUserVoteStakedIntegralREADONLY (bJ,bR) = $Tuple2(nil, dD(bJ, bR)) | |
977 | + | ||
978 | + | ||
979 | + | ||
980 | + | @Callable(aI) | |
981 | + | func setManager (fp) = { | |
982 | + | let eR = aH(aI) | |
983 | + | if ((eR == eR)) | |
982 | 984 | then { | |
983 | - | let | |
984 | - | if (( | |
985 | - | then [StringEntry(ag(), | |
985 | + | let fq = fromBase58String(fp) | |
986 | + | if ((fq == fq)) | |
987 | + | then [StringEntry(ag(), fp)] | |
986 | 988 | else throw("Strict value is not equal to itself.") | |
987 | 989 | } | |
988 | 990 | else throw("Strict value is not equal to itself.") | |
989 | 991 | } | |
990 | 992 | ||
991 | 993 | ||
992 | 994 | ||
993 | 995 | @Callable(aI) | |
994 | 996 | func confirmManager () = { | |
995 | - | let | |
996 | - | let | |
997 | + | let fr = aG() | |
998 | + | let fs = if (isDefined(fr)) | |
997 | 999 | then true | |
998 | 1000 | else throw("No pending manager") | |
999 | - | if (( | |
1001 | + | if ((fs == fs)) | |
1000 | 1002 | then { | |
1001 | - | let | |
1003 | + | let ft = if ((aI.callerPublicKey == value(fr))) | |
1002 | 1004 | then true | |
1003 | 1005 | else throw("You are not pending manager") | |
1004 | - | if (( | |
1005 | - | then [StringEntry(af(), toBase58String(value( | |
1006 | + | if ((ft == ft)) | |
1007 | + | then [StringEntry(af(), toBase58String(value(fr))), DeleteEntry(ag())] | |
1006 | 1008 | else throw("Strict value is not equal to itself.") | |
1007 | 1009 | } | |
1008 | 1010 | else throw("Strict value is not equal to itself.") | |
1009 | 1011 | } | |
1010 | 1012 | ||
1011 | 1013 | ||
1012 | - | @Verifier( | |
1013 | - | func | |
1014 | - | let | |
1014 | + | @Verifier(fu) | |
1015 | + | func fv () = { | |
1016 | + | let fw = { | |
1015 | 1017 | let r = aE() | |
1016 | 1018 | if ($isInstanceOf(r, "ByteVector")) | |
1017 | 1019 | then { | |
1018 | 1020 | let aK = r | |
1019 | 1021 | aK | |
1020 | 1022 | } | |
1021 | 1023 | else if ($isInstanceOf(r, "Unit")) | |
1022 | - | then | |
1024 | + | then fu.senderPublicKey | |
1023 | 1025 | else throw("Match error") | |
1024 | 1026 | } | |
1025 | - | sigVerify( | |
1027 | + | sigVerify(fu.bodyBytes, fu.proofs[0], fw) | |
1026 | 1028 | } | |
1027 | 1029 |
github/deemru/w8io/026f985 204.76 ms ◑