tx · J12uNBbPsaxjG6UnohPsGfbfTRq8bSKAm4rzc7GRhmwg 3NCX3qr5ABsbWQhQR8CV3vCvHQa2xANk2f2: -0.03500000 Waves 2022.12.16 12:20 [2362669] smart account 3NCX3qr5ABsbWQhQR8CV3vCvHQa2xANk2f2 > SELF 0.00000000 Waves
{ "type": 13, "id": "J12uNBbPsaxjG6UnohPsGfbfTRq8bSKAm4rzc7GRhmwg", "fee": 3500000, "feeAssetId": null, "timestamp": 1671182154205, "version": 1, "sender": "3NCX3qr5ABsbWQhQR8CV3vCvHQa2xANk2f2", "senderPublicKey": "9LajxyiDMFaW5Xgcye62gHbqchgWLEYTebgbfnZFdtTu", "proofs": [ "46XDaLWxKht1UTCQtCKVGWz4MD4HzmhrFHLU3Nj6MaYmXBK9DmkJiRNMSiDMoTimjmEh4UHgHHk2CttG1qAtC6Hf" ], "script": "base64:BgKDLQgCEgMKAQgSABIECgIBBBIDCgEBEgQKAgEEEgQKAggBEgQKAggBEgQKAggBEgUKAwEIARIAEgQKAgEBEgMKAQESBQoDAQEBEgQKAggIEgASABIDCgEIEgUKAwEBARIECgIBARIECgIIARIECgIICBILCgkIAQECAQIIBAQSBgoECAgBCBIAEgMKAQESAwoBARIECgIIASIKbFBkZWNpbWFscyIGc2NhbGU4IgxzY2FsZThCaWdJbnQiB3NjYWxlMTgiCnplcm9CaWdJbnQiBGJpZzAiBGJpZzEiBGJpZzIiC3dhdmVzU3RyaW5nIgNTRVAiClBvb2xBY3RpdmUiD1Bvb2xQdXREaXNhYmxlZCITUG9vbE1hdGNoZXJEaXNhYmxlZCIMUG9vbFNodXRkb3duIg5pZHhQb29sQWRkcmVzcyINaWR4UG9vbFN0YXR1cyIQaWR4UG9vbExQQXNzZXRJZCINaWR4QW10QXNzZXRJZCIPaWR4UHJpY2VBc3NldElkIg5pZHhBbXRBc3NldERjbSIQaWR4UHJpY2VBc3NldERjbSIOaWR4SUFtdEFzc2V0SWQiEGlkeElQcmljZUFzc2V0SWQiDWlkeEx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TgIEVW5pdAgFAmdBD3NlbmRlclB1YmxpY0tleQkAAgECC01hdGNoIGVycm9yBAJkTgUCZ0EDCQABAgUCZE4CBU9yZGVyBAJkcwUCZE4EAmdECQECYU8ABAJhQgkBAmRyAQUCZHMEAmFDCQD0AwMIBQJkcwlib2R5Qnl0ZXMJAJEDAggFAmRzBnByb29mcwAACAUCZHMPc2VuZGVyUHVibGljS2V5BAJhRAkA9AMDCAUCZHMJYm9keUJ5dGVzCQCRAwIIBQJkcwZwcm9vZnMAAQUCZ0QDAwMFAmFCBQJhQwcFAmFEBwYJAQJhQQMFAmFCBQJhQwUCYUQDCQABAgUCZE4CFFNldFNjcmlwdFRyYW5zYWN0aW9uBAJlUQUCZE4EAmdFCQD2AwEJAQV2YWx1ZQEIBQJlUQZzY3JpcHQEAmdGCQDbBAEJAQV2YWx1ZQEJAJ0IAgUCYUwJAQJheQAEAmdHCQDxBwEFBHRoaXMDAwkAAAIFAmdGBQJnRQkBAiE9AgUCZ0cFAmdFBwYJAPQDAwgFAmdBCWJvZHlCeXRlcwkAkQMCCAUCZ0EGcHJvb2ZzAAAFAmdDCQD0AwMIBQJnQQlib2R5Qnl0ZXMJAJEDAggFAmdBBnByb29mcwAABQJnQ3+fCEw=", "chainId": 84, "height": 2362669, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: Dzo1Gaw7gKhUMdhJjEn2ekyQpoaZD5v752Sna7jicx4M Next: 8toiu1fYLpr1hrHiBTBK4p55gQt7NByeThZP7nQH5rqE Diff:
Old | New | Differences | |
---|---|---|---|
288 | 288 | let cm = D(ce, b) | |
289 | 289 | let cn = fraction(cg, cl, cm) | |
290 | 290 | let co = fraction(ci, cl, cm) | |
291 | - | let cp = | |
292 | - | let cq = | |
291 | + | let cp = G(cn, bF) | |
292 | + | let cq = G(co, bG) | |
293 | 293 | let cr = if ((bX == "")) | |
294 | 294 | then nil | |
295 | 295 | else [ScriptTransfer(Z, cp, if ((cb == "WAVES")) | |
544 | 544 | if ((en == en)) | |
545 | 545 | then { | |
546 | 546 | let eo = toBigInt(ef) | |
547 | - | let ep = max([0, | |
547 | + | let ep = max([0, toInt(((em * (sqrtBigInt((d + ((eo * d) / el)), 18, 18, DOWN) - d)) / d))]) | |
548 | 548 | let cY = if (dU) | |
549 | 549 | then nil | |
550 | 550 | else [IntegerEntry(U(), ej), IntegerEntry(V(height, lastBlock.timestamp), ej), StringEntry(Y(toString(value(Z)), toBase58String(value(aa))), bj(ec, ed, ep, ej, 0, 0, height, lastBlock.timestamp, 0, 0))] | |
567 | 567 | ||
568 | 568 | func ew (ex,ef,dT,Z,aa) = { | |
569 | 569 | let dU = (aa == unit) | |
570 | - | let bN = aP() | |
571 | - | let bO = parseIntValue(bN[t]) | |
572 | - | let bP = parseIntValue(bN[u]) | |
573 | 570 | let ey = [if ((dT == bb)) | |
574 | 571 | then true | |
575 | 572 | else aI("invalid lp asset")] | |
583 | 580 | let eA = if (ez) | |
584 | 581 | then toBigInt(by(aU(bc))) | |
585 | 582 | else toBigInt(by(aU(bd))) | |
586 | - | let eB = if (ez) | |
587 | - | then bO | |
588 | - | else bP | |
589 | - | let eC = by(aU(bc)) | |
590 | - | let eD = by(aU(bd)) | |
591 | - | let eE = if (ez) | |
592 | - | then eC | |
593 | - | else eD | |
594 | - | let eF = toBigInt(eE) | |
583 | + | let eB = by(aU(bc)) | |
584 | + | let eC = by(aU(bd)) | |
585 | + | let eD = if (ez) | |
586 | + | then eB | |
587 | + | else eC | |
588 | + | let eE = toBigInt(eD) | |
595 | 589 | let em = toBigInt(valueOrErrorMessage(assetInfo(bb), (("asset " + toBase58String(bb)) + " doesn't exist")).quantity) | |
596 | - | let | |
597 | - | let | |
598 | - | let | |
599 | - | let | |
600 | - | let dQ = | |
601 | - | let | |
602 | - | then $Tuple4( | |
603 | - | else $Tuple4(0, | |
604 | - | let | |
605 | - | let | |
606 | - | let | |
607 | - | let | |
608 | - | let ei = bA(D( | |
590 | + | let eF = toBigInt(ef) | |
591 | + | let eG = max([0, toInt(((eA * (d - pow((d - ((eF * d) / em)), 18, h, 0, 18, DOWN))) / d))]) | |
592 | + | let eH = dP(eG) | |
593 | + | let eI = eH._1 | |
594 | + | let dQ = eH._2 | |
595 | + | let eJ = if (ez) | |
596 | + | then $Tuple4(eI, 0, (eB - eG), eC) | |
597 | + | else $Tuple4(0, eI, eB, (eC - eG)) | |
598 | + | let eK = eJ._1 | |
599 | + | let eL = eJ._2 | |
600 | + | let eM = eJ._3 | |
601 | + | let eN = eJ._4 | |
602 | + | let ei = bA(D(eN, bf), D(eM, be)) | |
609 | 603 | let ej = G(ei, b) | |
610 | 604 | let cY = if (dU) | |
611 | 605 | then nil | |
612 | - | else [StringEntry(ab(toString(value(Z)), toBase58String(value(aa))), bu( | |
613 | - | let eq = bA(D( | |
606 | + | else [StringEntry(ab(toString(value(Z)), toBase58String(value(aa))), bu(eK, eL, ef, ej, height, lastBlock.timestamp)), IntegerEntry(U(), ej), IntegerEntry(V(height, lastBlock.timestamp), ej)] | |
607 | + | let eq = bA(D(eC, bf), D(eB, be)) | |
614 | 608 | let er = G(eq, b) | |
615 | 609 | let es = { | |
616 | - | let | |
617 | - | fraction(( | |
610 | + | let eO = (toInt(fraction(eA, eF, em)) * 2) | |
611 | + | fraction((eI - eO), b, eO) | |
618 | 612 | } | |
619 | - | $Tuple5( | |
613 | + | $Tuple5(eI, cY, dQ, es, ez) | |
620 | 614 | } | |
621 | 615 | else throw("Strict value is not equal to itself.") | |
622 | 616 | } | |
623 | 617 | ||
624 | 618 | ||
625 | - | func | |
619 | + | func eP () = { | |
626 | 620 | let dN = getString(S()) | |
627 | 621 | if ($isInstanceOf(dN, "String")) | |
628 | 622 | then { | |
629 | - | let | |
630 | - | fromBase58String( | |
623 | + | let eQ = dN | |
624 | + | fromBase58String(eQ) | |
631 | 625 | } | |
632 | 626 | else if ($isInstanceOf(dN, "Unit")) | |
633 | 627 | then unit | |
635 | 629 | } | |
636 | 630 | ||
637 | 631 | ||
638 | - | func | |
632 | + | func eR () = { | |
639 | 633 | let dN = getString(T()) | |
640 | 634 | if ($isInstanceOf(dN, "String")) | |
641 | 635 | then { | |
642 | - | let | |
643 | - | fromBase58String( | |
636 | + | let eQ = dN | |
637 | + | fromBase58String(eQ) | |
644 | 638 | } | |
645 | 639 | else if ($isInstanceOf(dN, "Unit")) | |
646 | 640 | then unit | |
648 | 642 | } | |
649 | 643 | ||
650 | 644 | ||
651 | - | func | |
652 | - | let dN = | |
645 | + | func eS (dC) = { | |
646 | + | let dN = eP() | |
653 | 647 | if ($isInstanceOf(dN, "ByteVector")) | |
654 | 648 | then { | |
655 | - | let | |
656 | - | (dC.callerPublicKey == | |
649 | + | let eT = dN | |
650 | + | (dC.callerPublicKey == eT) | |
657 | 651 | } | |
658 | 652 | else if ($isInstanceOf(dN, "Unit")) | |
659 | 653 | then (dC.caller == this) | |
661 | 655 | } | |
662 | 656 | ||
663 | 657 | ||
664 | - | func | |
665 | - | let | |
666 | - | let dN = | |
658 | + | func eU (dC) = { | |
659 | + | let eV = throw("Permission denied") | |
660 | + | let dN = eP() | |
667 | 661 | if ($isInstanceOf(dN, "ByteVector")) | |
668 | 662 | then { | |
669 | - | let | |
670 | - | if ((dC.callerPublicKey == | |
663 | + | let eT = dN | |
664 | + | if ((dC.callerPublicKey == eT)) | |
671 | 665 | then true | |
672 | - | else | |
666 | + | else eV | |
673 | 667 | } | |
674 | 668 | else if ($isInstanceOf(dN, "Unit")) | |
675 | 669 | then if ((dC.caller == this)) | |
676 | 670 | then true | |
677 | - | else | |
671 | + | else eV | |
678 | 672 | else throw("Match error") | |
679 | 673 | } | |
680 | 674 | ||
681 | 675 | ||
682 | 676 | @Callable(dC) | |
683 | - | func setManager ( | |
684 | - | let | |
685 | - | if (( | |
677 | + | func setManager (eW) = { | |
678 | + | let eX = eU(dC) | |
679 | + | if ((eX == eX)) | |
686 | 680 | then { | |
687 | - | let | |
688 | - | if (( | |
689 | - | then [StringEntry(T(), | |
681 | + | let eY = fromBase58String(eW) | |
682 | + | if ((eY == eY)) | |
683 | + | then [StringEntry(T(), eW)] | |
690 | 684 | else throw("Strict value is not equal to itself.") | |
691 | 685 | } | |
692 | 686 | else throw("Strict value is not equal to itself.") | |
696 | 690 | ||
697 | 691 | @Callable(dC) | |
698 | 692 | func confirmManager () = { | |
699 | - | let | |
700 | - | let | |
693 | + | let eZ = eR() | |
694 | + | let fa = if (isDefined(eZ)) | |
701 | 695 | then true | |
702 | 696 | else throw("No pending manager") | |
703 | - | if (( | |
697 | + | if ((fa == fa)) | |
704 | 698 | then { | |
705 | - | let | |
699 | + | let fb = if ((dC.callerPublicKey == value(eZ))) | |
706 | 700 | then true | |
707 | 701 | else throw("You are not pending manager") | |
708 | - | if (( | |
709 | - | then [StringEntry(S(), toBase58String(value( | |
702 | + | if ((fb == fb)) | |
703 | + | then [StringEntry(S(), toBase58String(value(eZ))), DeleteEntry(T())] | |
710 | 704 | else throw("Strict value is not equal to itself.") | |
711 | 705 | } | |
712 | 706 | else throw("Strict value is not equal to itself.") | |
715 | 709 | ||
716 | 710 | ||
717 | 711 | @Callable(dC) | |
718 | - | func put (ct, | |
712 | + | func put (ct,fc) = if ((0 > ct)) | |
719 | 713 | then throw("Invalid slippageTolerance passed") | |
720 | 714 | else { | |
721 | 715 | let dI = dF(dC, ct, true) | |
724 | 718 | let cr = dI._9 | |
725 | 719 | let cW = dI._10 | |
726 | 720 | let cX = dI._11 | |
727 | - | let | |
728 | - | let | |
721 | + | let fd = dI._12 | |
722 | + | let fe = dI._13 | |
729 | 723 | let dG = toBigInt(value(dC.payments[0]).amount) | |
730 | 724 | let dH = toBigInt(value(dC.payments[1]).amount) | |
731 | 725 | let dk = dd(dG, dH, toBigInt(0)) | |
745 | 739 | } | |
746 | 740 | if ((dM == dM)) | |
747 | 741 | then { | |
748 | - | let | |
749 | - | then invoke(bi, "put", nil, [AttachedPayment( | |
742 | + | let ff = if ((cW > 0)) | |
743 | + | then invoke(bi, "put", nil, [AttachedPayment(fd, cW)]) | |
750 | 744 | else nil | |
751 | - | if (( | |
745 | + | if ((ff == ff)) | |
752 | 746 | then { | |
753 | - | let | |
754 | - | then invoke(bi, "put", nil, [AttachedPayment( | |
747 | + | let fg = if ((cX > 0)) | |
748 | + | then invoke(bi, "put", nil, [AttachedPayment(fe, cX)]) | |
755 | 749 | else nil | |
756 | - | if (( | |
750 | + | if ((fg == fg)) | |
757 | 751 | then { | |
758 | - | let | |
752 | + | let fh = if (fc) | |
759 | 753 | then { | |
760 | - | let | |
761 | - | if (( | |
754 | + | let fi = invoke(bh, "stake", nil, [AttachedPayment(ca, cV)]) | |
755 | + | if ((fi == fi)) | |
762 | 756 | then nil | |
763 | 757 | else throw("Strict value is not equal to itself.") | |
764 | 758 | } | |
765 | 759 | else [ScriptTransfer(dC.caller, cV, ca)] | |
766 | - | let | |
767 | - | if (( | |
760 | + | let fj = dl(0, 0, 0) | |
761 | + | if ((fj == fj)) | |
768 | 762 | then { | |
769 | - | let dc = | |
770 | - | let | |
771 | - | let | |
772 | - | if (( | |
773 | - | then ((cr ++ | |
763 | + | let dc = fj._2 | |
764 | + | let fk = fj._1 | |
765 | + | let fl = dp(dk, dc) | |
766 | + | if ((fl == fl)) | |
767 | + | then ((cr ++ fh) ++ fk) | |
774 | 768 | else throw("Strict value is not equal to itself.") | |
775 | 769 | } | |
776 | 770 | else throw("Strict value is not equal to itself.") | |
789 | 783 | ||
790 | 784 | ||
791 | 785 | @Callable(dC) | |
792 | - | func putForFree ( | |
786 | + | func putForFree (fm) = if ((0 > fm)) | |
793 | 787 | then throw("Invalid value passed") | |
794 | 788 | else { | |
795 | - | let dI = dF(dC, | |
789 | + | let dI = dF(dC, fm, false) | |
796 | 790 | let cr = dI._9 | |
797 | 791 | let dG = toBigInt(value(dC.payments[0]).amount) | |
798 | 792 | let dH = toBigInt(value(dC.payments[1]).amount) | |
799 | 793 | let dk = dd(dG, dH, toBigInt(0)) | |
800 | 794 | if ((dk == dk)) | |
801 | 795 | then { | |
802 | - | let | |
803 | - | let | |
804 | - | let dc = | |
805 | - | let | |
806 | - | if (( | |
807 | - | then (cr ++ | |
796 | + | let fn = dl(0, 0, 0) | |
797 | + | let fk = fn._1 | |
798 | + | let dc = fn._2 | |
799 | + | let fl = dp(dk, dc) | |
800 | + | if ((fl == fl)) | |
801 | + | then (cr ++ fk) | |
808 | 802 | else throw("Strict value is not equal to itself.") | |
809 | 803 | } | |
810 | 804 | else throw("Strict value is not equal to itself.") | |
813 | 807 | ||
814 | 808 | ||
815 | 809 | @Callable(dC) | |
816 | - | func putOneTkn (fp | |
817 | - | let | |
818 | - | let | |
819 | - | if ($isInstanceOf( | |
820 | - | then | |
821 | - | else throw(($getType( | |
810 | + | func putOneTkn (fo,fp) = { | |
811 | + | let fq = { | |
812 | + | let fr = invoke(aL, "isPoolOneTokenOperationsDisabledREADONLY", [toString(this)], nil) | |
813 | + | if ($isInstanceOf(fr, "Boolean")) | |
814 | + | then fr | |
815 | + | else throw(($getType(fr) + " couldn't be cast to Boolean")) | |
822 | 816 | } | |
823 | - | let | |
817 | + | let fs = if (if (if (aN()) | |
824 | 818 | then true | |
825 | 819 | else (ba == l)) | |
826 | 820 | then true | |
827 | 821 | else (ba == n)) | |
828 | 822 | then true | |
829 | - | else | |
830 | - | let ey = [if (if (!( | |
823 | + | else fq | |
824 | + | let ey = [if (if (!(fs)) | |
831 | 825 | then true | |
832 | - | else | |
826 | + | else eS(dC)) | |
833 | 827 | then true | |
834 | 828 | else aI("put operation is blocked by admin"), if ((size(dC.payments) == 1)) | |
835 | 829 | then true | |
836 | 830 | else aI("exactly 1 payment are expected")] | |
837 | 831 | if ((ey == ey)) | |
838 | 832 | then { | |
839 | - | let | |
840 | - | let dT = | |
841 | - | let dS = | |
833 | + | let ft = dC.payments[0] | |
834 | + | let dT = ft.assetId | |
835 | + | let dS = ft.amount | |
842 | 836 | let dk = if ((dT == bc)) | |
843 | 837 | then dd(toBigInt(dS), toBigInt(0), toBigInt(0)) | |
844 | 838 | else if ((dT == bd)) | |
846 | 840 | else aI("payment asset is not supported") | |
847 | 841 | let Z = dC.caller | |
848 | 842 | let aa = dC.transactionId | |
849 | - | let | |
850 | - | if (( | |
843 | + | let fu = dR(dS, dT, Z, aa) | |
844 | + | if ((fu == fu)) | |
851 | 845 | then { | |
852 | - | let dX = | |
853 | - | let | |
854 | - | let dQ = | |
855 | - | let cY = | |
856 | - | let | |
857 | - | let | |
858 | - | then ( | |
846 | + | let dX = fu._5 | |
847 | + | let fv = fu._4 | |
848 | + | let dQ = fu._3 | |
849 | + | let cY = fu._2 | |
850 | + | let fw = fu._1 | |
851 | + | let fx = if (if ((fo > 0)) | |
852 | + | then (fo > fw) | |
859 | 853 | else false) | |
860 | - | then aI(makeString(["amount to receive is less than ", toString( | |
861 | - | else | |
862 | - | let dL = dJ( | |
854 | + | then aI(makeString(["amount to receive is less than ", toString(fo)], "")) | |
855 | + | else fw | |
856 | + | let dL = dJ(fx) | |
863 | 857 | if ((dL == dL)) | |
864 | 858 | then { | |
865 | - | let | |
859 | + | let fh = if (fp) | |
866 | 860 | then { | |
867 | - | let | |
868 | - | if (( | |
861 | + | let fy = invoke(bh, "stake", nil, [AttachedPayment(bb, fx)]) | |
862 | + | if ((fy == fy)) | |
869 | 863 | then nil | |
870 | 864 | else throw("Strict value is not equal to itself.") | |
871 | 865 | } | |
872 | - | else [ScriptTransfer(dC.caller, | |
873 | - | let | |
866 | + | else [ScriptTransfer(dC.caller, fx, bb)] | |
867 | + | let fz = if ((dQ > 0)) | |
874 | 868 | then [ScriptTransfer(aM, dQ, dT)] | |
875 | 869 | else nil | |
876 | - | let | |
870 | + | let fA = if ((this == aM)) | |
877 | 871 | then $Tuple2(0, 0) | |
878 | 872 | else if (dX) | |
879 | 873 | then $Tuple2(-(dQ), 0) | |
880 | 874 | else $Tuple2(0, -(dQ)) | |
881 | - | let dm = | |
882 | - | let dn = | |
883 | - | let | |
884 | - | let | |
885 | - | let dc = | |
875 | + | let dm = fA._1 | |
876 | + | let dn = fA._2 | |
877 | + | let fB = dl(dm, dn, 0) | |
878 | + | let fk = fB._1 | |
879 | + | let dc = fB._2 | |
886 | 880 | let dw = value(getString(ah)) | |
887 | - | let | |
888 | - | if (( | |
889 | - | then $Tuple2((((cY ++ | |
881 | + | let fl = dp(dk, dc) | |
882 | + | if ((fl == fl)) | |
883 | + | then $Tuple2((((cY ++ fh) ++ fz) ++ fk), fx) | |
890 | 884 | else throw("Strict value is not equal to itself.") | |
891 | 885 | } | |
892 | 886 | else throw("Strict value is not equal to itself.") | |
900 | 894 | ||
901 | 895 | @Callable(dC) | |
902 | 896 | func putOneTknREADONLY (dT,dS) = { | |
903 | - | let | |
904 | - | let | |
905 | - | let cY = | |
906 | - | let dQ = | |
907 | - | let | |
908 | - | let dX = | |
909 | - | $Tuple2(nil, $Tuple3( | |
897 | + | let fC = dR(dS, aS(dT), unit, unit) | |
898 | + | let fw = fC._1 | |
899 | + | let cY = fC._2 | |
900 | + | let dQ = fC._3 | |
901 | + | let fv = fC._4 | |
902 | + | let dX = fC._5 | |
903 | + | $Tuple2(nil, $Tuple3(fw, dQ, fv)) | |
910 | 904 | } | |
911 | 905 | ||
912 | 906 | ||
913 | 907 | ||
914 | 908 | @Callable(dC) | |
915 | - | func getOneTkn ( | |
916 | - | let | |
917 | - | let | |
918 | - | if ($isInstanceOf( | |
919 | - | then | |
920 | - | else throw(($getType( | |
909 | + | func getOneTkn (fD,fo) = { | |
910 | + | let fq = { | |
911 | + | let fr = invoke(aL, "isPoolOneTokenOperationsDisabledREADONLY", [toString(this)], nil) | |
912 | + | if ($isInstanceOf(fr, "Boolean")) | |
913 | + | then fr | |
914 | + | else throw(($getType(fr) + " couldn't be cast to Boolean")) | |
921 | 915 | } | |
922 | - | let | |
916 | + | let fE = if (if (aN()) | |
923 | 917 | then true | |
924 | 918 | else (ba == n)) | |
925 | 919 | then true | |
926 | - | else | |
927 | - | let ey = [if (if (!( | |
920 | + | else fq | |
921 | + | let ey = [if (if (!(fE)) | |
928 | 922 | then true | |
929 | - | else | |
923 | + | else eS(dC)) | |
930 | 924 | then true | |
931 | 925 | else aI("get operation is blocked by admin"), if ((size(dC.payments) == 1)) | |
932 | 926 | then true | |
933 | 927 | else aI("exactly 1 payment are expected")] | |
934 | 928 | if ((ey == ey)) | |
935 | 929 | then { | |
936 | - | let ex = aS( | |
937 | - | let | |
938 | - | let dT = | |
939 | - | let ef = | |
930 | + | let ex = aS(fD) | |
931 | + | let ft = dC.payments[0] | |
932 | + | let dT = ft.assetId | |
933 | + | let ef = ft.amount | |
940 | 934 | let dk = dd(toBigInt(0), toBigInt(0), toBigInt(ef)) | |
941 | 935 | let Z = dC.caller | |
942 | 936 | let aa = dC.transactionId | |
943 | - | let | |
944 | - | if (( | |
937 | + | let fF = ew(ex, ef, dT, Z, aa) | |
938 | + | if ((fF == fF)) | |
945 | 939 | then { | |
946 | - | let ez = | |
947 | - | let | |
948 | - | let dQ = | |
949 | - | let cY = | |
950 | - | let | |
951 | - | let dK = if (if (( | |
952 | - | then ( | |
940 | + | let ez = fF._5 | |
941 | + | let fv = fF._4 | |
942 | + | let dQ = fF._3 | |
943 | + | let cY = fF._2 | |
944 | + | let fG = fF._1 | |
945 | + | let dK = if (if ((fo > 0)) | |
946 | + | then (fo > fG) | |
953 | 947 | else false) | |
954 | - | then aI(makeString(["amount to receive is less than ", toString( | |
955 | - | else | |
956 | - | let | |
957 | - | if (( | |
948 | + | then aI(makeString(["amount to receive is less than ", toString(fo)], "")) | |
949 | + | else fG | |
950 | + | let fH = invoke(aL, "burn", [ef], [AttachedPayment(dT, ef)]) | |
951 | + | if ((fH == fH)) | |
958 | 952 | then { | |
959 | - | let | |
960 | - | let | |
953 | + | let fI = [ScriptTransfer(Z, dK, ex)] | |
954 | + | let fz = if ((dQ > 0)) | |
961 | 955 | then [ScriptTransfer(aM, dQ, ex)] | |
962 | 956 | else nil | |
963 | - | let | |
964 | - | let | |
957 | + | let fJ = { | |
958 | + | let fK = if ((this == aM)) | |
965 | 959 | then 0 | |
966 | 960 | else dQ | |
967 | 961 | if (ez) | |
968 | - | then $Tuple2(-((dK + | |
969 | - | else $Tuple2(0, -((dK + | |
962 | + | then $Tuple2(-((dK + fK)), 0) | |
963 | + | else $Tuple2(0, -((dK + fK))) | |
970 | 964 | } | |
971 | - | let dm = | |
972 | - | let dn = | |
973 | - | let | |
974 | - | let | |
975 | - | let dc = | |
976 | - | let | |
977 | - | if (( | |
978 | - | then $Tuple2((((cY ++ | |
965 | + | let dm = fJ._1 | |
966 | + | let dn = fJ._2 | |
967 | + | let fL = dl(dm, dn, 0) | |
968 | + | let fk = fL._1 | |
969 | + | let dc = fL._2 | |
970 | + | let fl = dp(dk, dc) | |
971 | + | if ((fl == fl)) | |
972 | + | then $Tuple2((((cY ++ fI) ++ fz) ++ fk), dK) | |
979 | 973 | else throw("Strict value is not equal to itself.") | |
980 | 974 | } | |
981 | 975 | else throw("Strict value is not equal to itself.") | |
989 | 983 | ||
990 | 984 | @Callable(dC) | |
991 | 985 | func getOneTknREADONLY (ex,ef) = { | |
992 | - | let | |
993 | - | let | |
994 | - | let cY = | |
995 | - | let dQ = | |
996 | - | let | |
997 | - | let ez = | |
998 | - | $Tuple2(nil, $Tuple3( | |
986 | + | let fM = ew(aS(ex), ef, bb, unit, unit) | |
987 | + | let fG = fM._1 | |
988 | + | let cY = fM._2 | |
989 | + | let dQ = fM._3 | |
990 | + | let fv = fM._4 | |
991 | + | let ez = fM._5 | |
992 | + | $Tuple2(nil, $Tuple3(fG, dQ, fv)) | |
999 | 993 | } | |
1000 | 994 | ||
1001 | 995 | ||
1002 | 996 | ||
1003 | 997 | @Callable(dC) | |
1004 | - | func unstakeAndGetOneTkn ( | |
1005 | - | let | |
1006 | - | let | |
1007 | - | if ($isInstanceOf( | |
1008 | - | then | |
1009 | - | else throw(($getType( | |
998 | + | func unstakeAndGetOneTkn (fN,fD,fo) = { | |
999 | + | let fq = { | |
1000 | + | let fr = invoke(aL, "isPoolOneTokenOperationsDisabledREADONLY", [toString(this)], nil) | |
1001 | + | if ($isInstanceOf(fr, "Boolean")) | |
1002 | + | then fr | |
1003 | + | else throw(($getType(fr) + " couldn't be cast to Boolean")) | |
1010 | 1004 | } | |
1011 | - | let | |
1005 | + | let fE = if (if (aN()) | |
1012 | 1006 | then true | |
1013 | 1007 | else (ba == n)) | |
1014 | 1008 | then true | |
1015 | - | else | |
1016 | - | let ey = [if (if (!( | |
1009 | + | else fq | |
1010 | + | let ey = [if (if (!(fE)) | |
1017 | 1011 | then true | |
1018 | - | else | |
1012 | + | else eS(dC)) | |
1019 | 1013 | then true | |
1020 | 1014 | else aI("get operation is blocked by admin"), if ((size(dC.payments) == 0)) | |
1021 | 1015 | then true | |
1022 | 1016 | else aI("no payments are expected")] | |
1023 | 1017 | if ((ey == ey)) | |
1024 | 1018 | then { | |
1025 | - | let ex = aS( | |
1019 | + | let ex = aS(fD) | |
1026 | 1020 | let Z = dC.caller | |
1027 | 1021 | let aa = dC.transactionId | |
1028 | 1022 | let dk = dd(toBigInt(0), toBigInt(0), toBigInt(0)) | |
1029 | - | let | |
1030 | - | if (( | |
1023 | + | let fO = invoke(bh, "unstake", [toBase58String(bb), fN], nil) | |
1024 | + | if ((fO == fO)) | |
1031 | 1025 | then { | |
1032 | - | let | |
1033 | - | if (( | |
1026 | + | let fP = ew(ex, fN, bb, Z, aa) | |
1027 | + | if ((fP == fP)) | |
1034 | 1028 | then { | |
1035 | - | let ez = | |
1036 | - | let | |
1037 | - | let dQ = | |
1038 | - | let cY = | |
1039 | - | let | |
1040 | - | let dK = if (if (( | |
1041 | - | then ( | |
1029 | + | let ez = fP._5 | |
1030 | + | let fv = fP._4 | |
1031 | + | let dQ = fP._3 | |
1032 | + | let cY = fP._2 | |
1033 | + | let fG = fP._1 | |
1034 | + | let dK = if (if ((fo > 0)) | |
1035 | + | then (fo > fG) | |
1042 | 1036 | else false) | |
1043 | - | then aI(makeString(["amount to receive is less than ", toString( | |
1044 | - | else | |
1045 | - | let | |
1046 | - | if (( | |
1037 | + | then aI(makeString(["amount to receive is less than ", toString(fo)], "")) | |
1038 | + | else fG | |
1039 | + | let fH = invoke(aL, "burn", [fN], [AttachedPayment(bb, fN)]) | |
1040 | + | if ((fH == fH)) | |
1047 | 1041 | then { | |
1048 | - | let | |
1049 | - | let | |
1042 | + | let fI = [ScriptTransfer(dC.caller, dK, ex)] | |
1043 | + | let fz = if ((dQ > 0)) | |
1050 | 1044 | then [ScriptTransfer(aM, dQ, ex)] | |
1051 | 1045 | else nil | |
1052 | - | let | |
1053 | - | let | |
1046 | + | let fQ = { | |
1047 | + | let fK = if ((this == aM)) | |
1054 | 1048 | then 0 | |
1055 | 1049 | else dQ | |
1056 | 1050 | if (ez) | |
1057 | - | then $Tuple2(-((dK + | |
1058 | - | else $Tuple2(0, -((dK + | |
1051 | + | then $Tuple2(-((dK + fK)), 0) | |
1052 | + | else $Tuple2(0, -((dK + fK))) | |
1059 | 1053 | } | |
1060 | - | let dm = | |
1061 | - | let dn = | |
1062 | - | let | |
1063 | - | let | |
1064 | - | let dc = | |
1065 | - | let | |
1066 | - | if (( | |
1067 | - | then $Tuple2((((cY ++ | |
1054 | + | let dm = fQ._1 | |
1055 | + | let dn = fQ._2 | |
1056 | + | let fR = dl(dm, dn, 0) | |
1057 | + | let fk = fR._1 | |
1058 | + | let dc = fR._2 | |
1059 | + | let fl = dp(dk, dc) | |
1060 | + | if ((fl == fl)) | |
1061 | + | then $Tuple2((((cY ++ fI) ++ fz) ++ fk), dK) | |
1068 | 1062 | else throw("Strict value is not equal to itself.") | |
1069 | 1063 | } | |
1070 | 1064 | else throw("Strict value is not equal to itself.") | |
1081 | 1075 | @Callable(dC) | |
1082 | 1076 | func get () = { | |
1083 | 1077 | let cJ = dB(dC) | |
1084 | - | let | |
1078 | + | let fS = cJ._1 | |
1085 | 1079 | let cq = cJ._2 | |
1086 | 1080 | let dE = cJ._3 | |
1087 | 1081 | let bY = cJ._4 | |
1088 | 1082 | let cr = cJ._5 | |
1089 | 1083 | let dk = dd(toBigInt(0), toBigInt(0), toBigInt(dE)) | |
1090 | - | let | |
1091 | - | if (( | |
1084 | + | let fT = invoke(aL, "burn", [dE], [AttachedPayment(bY, dE)]) | |
1085 | + | if ((fT == fT)) | |
1092 | 1086 | then { | |
1093 | - | let | |
1094 | - | let | |
1095 | - | let dc = | |
1096 | - | let | |
1097 | - | if (( | |
1098 | - | then (cr ++ | |
1087 | + | let fU = dl(-(fS), -(cq), 0) | |
1088 | + | let fk = fU._1 | |
1089 | + | let dc = fU._2 | |
1090 | + | let fl = dp(dk, dc) | |
1091 | + | if ((fl == fl)) | |
1092 | + | then (cr ++ fk) | |
1099 | 1093 | else throw("Strict value is not equal to itself.") | |
1100 | 1094 | } | |
1101 | 1095 | else throw("Strict value is not equal to itself.") | |
1104 | 1098 | ||
1105 | 1099 | ||
1106 | 1100 | @Callable(dC) | |
1107 | - | func getNoLess (fW | |
1101 | + | func getNoLess (fV,fW) = { | |
1108 | 1102 | let cJ = dB(dC) | |
1109 | 1103 | let cp = cJ._1 | |
1110 | 1104 | let cq = cJ._2 | |
1111 | 1105 | let dE = cJ._3 | |
1112 | 1106 | let bY = cJ._4 | |
1113 | 1107 | let cr = cJ._5 | |
1114 | - | if (( | |
1115 | - | then throw(((("noLessThenAmtAsset failed: " + toString(cp)) + " < ") + toString( | |
1116 | - | else if (( | |
1117 | - | then throw(((("noLessThenPriceAsset failed: " + toString(cq)) + " < ") + toString( | |
1108 | + | if ((fV > cp)) | |
1109 | + | then throw(((("noLessThenAmtAsset failed: " + toString(cp)) + " < ") + toString(fV))) | |
1110 | + | else if ((fW > cq)) | |
1111 | + | then throw(((("noLessThenPriceAsset failed: " + toString(cq)) + " < ") + toString(fW))) | |
1118 | 1112 | else { | |
1119 | 1113 | let dk = dd(toBigInt(0), toBigInt(0), toBigInt(dE)) | |
1120 | - | let | |
1121 | - | if (( | |
1114 | + | let fT = invoke(aL, "burn", [dE], [AttachedPayment(bY, dE)]) | |
1115 | + | if ((fT == fT)) | |
1122 | 1116 | then { | |
1123 | - | let | |
1124 | - | let | |
1125 | - | let dc = | |
1126 | - | let | |
1127 | - | if (( | |
1128 | - | then (cr ++ | |
1117 | + | let fX = dl(-(cp), -(cq), 0) | |
1118 | + | let fk = fX._1 | |
1119 | + | let dc = fX._2 | |
1120 | + | let fl = dp(dk, dc) | |
1121 | + | if ((fl == fl)) | |
1122 | + | then (cr ++ fk) | |
1129 | 1123 | else throw("Strict value is not equal to itself.") | |
1130 | 1124 | } | |
1131 | 1125 | else throw("Strict value is not equal to itself.") | |
1136 | 1130 | ||
1137 | 1131 | @Callable(dC) | |
1138 | 1132 | func unstakeAndGet (dK) = { | |
1139 | - | let | |
1133 | + | let fY = if ((size(dC.payments) != 0)) | |
1140 | 1134 | then throw("No payments are expected") | |
1141 | 1135 | else true | |
1142 | - | if (( | |
1136 | + | if ((fY == fY)) | |
1143 | 1137 | then { | |
1144 | 1138 | let bN = aP() | |
1145 | 1139 | let ca = fromBase58String(bN[q]) | |
1146 | 1140 | let dk = dd(toBigInt(0), toBigInt(0), toBigInt(0)) | |
1147 | - | let | |
1148 | - | if (( | |
1141 | + | let fO = invoke(bh, "unstake", [toBase58String(ca), dK], nil) | |
1142 | + | if ((fO == fO)) | |
1149 | 1143 | then { | |
1150 | 1144 | let cJ = bW(toBase58String(dC.transactionId), toBase58String(ca), dK, dC.caller) | |
1151 | 1145 | let cp = cJ._1 | |
1152 | 1146 | let cq = cJ._2 | |
1153 | 1147 | let cd = parseIntValue(cJ._9) | |
1154 | 1148 | let cr = cJ._10 | |
1155 | - | let | |
1149 | + | let fZ = if (if (aN()) | |
1156 | 1150 | then true | |
1157 | 1151 | else (cd == n)) | |
1158 | 1152 | then throw(("Get operation is blocked by admin. Status = " + toString(cd))) | |
1159 | 1153 | else true | |
1160 | - | if (( | |
1154 | + | if ((fZ == fZ)) | |
1161 | 1155 | then { | |
1162 | - | let | |
1163 | - | if (( | |
1156 | + | let fT = invoke(aL, "burn", [dK], [AttachedPayment(ca, dK)]) | |
1157 | + | if ((fT == fT)) | |
1164 | 1158 | then { | |
1165 | - | let | |
1166 | - | let | |
1167 | - | let dc = | |
1168 | - | let | |
1169 | - | if (( | |
1170 | - | then (cr ++ | |
1159 | + | let ga = dl(-(cp), -(cq), 0) | |
1160 | + | let fk = ga._1 | |
1161 | + | let dc = ga._2 | |
1162 | + | let fl = dp(dk, dc) | |
1163 | + | if ((fl == fl)) | |
1164 | + | then (cr ++ fk) | |
1171 | 1165 | else throw("Strict value is not equal to itself.") | |
1172 | 1166 | } | |
1173 | 1167 | else throw("Strict value is not equal to itself.") | |
1182 | 1176 | ||
1183 | 1177 | ||
1184 | 1178 | @Callable(dC) | |
1185 | - | func unstakeAndGetNoLess ( | |
1186 | - | let | |
1179 | + | func unstakeAndGetNoLess (fN,gb,fW) = { | |
1180 | + | let fE = if (aN()) | |
1187 | 1181 | then true | |
1188 | 1182 | else (ba == n) | |
1189 | - | let ey = [if (!( | |
1183 | + | let ey = [if (!(fE)) | |
1190 | 1184 | then true | |
1191 | 1185 | else throw("get operation is blocked by admin"), if ((size(dC.payments) == 0)) | |
1192 | 1186 | then true | |
1194 | 1188 | if ((ey == ey)) | |
1195 | 1189 | then { | |
1196 | 1190 | let dk = dd(toBigInt(0), toBigInt(0), toBigInt(0)) | |
1197 | - | let | |
1198 | - | if (( | |
1191 | + | let fO = invoke(bh, "unstake", [toBase58String(bb), fN], nil) | |
1192 | + | if ((fO == fO)) | |
1199 | 1193 | then { | |
1200 | - | let cJ = bW(toBase58String(dC.transactionId), toBase58String(bb), | |
1194 | + | let cJ = bW(toBase58String(dC.transactionId), toBase58String(bb), fN, dC.caller) | |
1201 | 1195 | let cp = cJ._1 | |
1202 | 1196 | let cq = cJ._2 | |
1203 | 1197 | let cr = cJ._10 | |
1204 | - | let | |
1198 | + | let gc = [if ((cp >= gb)) | |
1205 | 1199 | then true | |
1206 | - | else throw(makeString(["amount asset amount to receive is less than ", toString( | |
1200 | + | else throw(makeString(["amount asset amount to receive is less than ", toString(gb)], "")), if ((cq >= fW)) | |
1207 | 1201 | then true | |
1208 | - | else throw(makeString(["price asset amount to receive is less than ", toString( | |
1209 | - | if (( | |
1202 | + | else throw(makeString(["price asset amount to receive is less than ", toString(fW)], ""))] | |
1203 | + | if ((gc == gc)) | |
1210 | 1204 | then { | |
1211 | - | let | |
1212 | - | if (( | |
1205 | + | let fT = invoke(aL, "burn", [fN], [AttachedPayment(bb, fN)]) | |
1206 | + | if ((fT == fT)) | |
1213 | 1207 | then { | |
1214 | - | let | |
1215 | - | let | |
1216 | - | let dc = | |
1217 | - | let | |
1218 | - | if (( | |
1219 | - | then (cr ++ | |
1208 | + | let gd = dl(-(cp), -(cq), 0) | |
1209 | + | let fk = gd._1 | |
1210 | + | let dc = gd._2 | |
1211 | + | let fl = dp(dk, dc) | |
1212 | + | if ((fl == fl)) | |
1213 | + | then (cr ++ fk) | |
1220 | 1214 | else throw("Strict value is not equal to itself.") | |
1221 | 1215 | } | |
1222 | 1216 | else throw("Strict value is not equal to itself.") | |
1231 | 1225 | ||
1232 | 1226 | ||
1233 | 1227 | @Callable(dC) | |
1234 | - | func activate (gf | |
1228 | + | func activate (ge,gf) = if ((toString(dC.caller) != toString(aL))) | |
1235 | 1229 | then throw("permissions denied") | |
1236 | - | else $Tuple2([StringEntry(ac(), | |
1230 | + | else $Tuple2([StringEntry(ac(), ge), StringEntry(ad(), gf)], "success") | |
1237 | 1231 | ||
1238 | 1232 | ||
1239 | 1233 | ||
1240 | 1234 | @Callable(dC) | |
1241 | 1235 | func refreshKLp () = { | |
1242 | - | let | |
1243 | - | let | |
1236 | + | let gg = valueOrElse(getInteger(ai), 0) | |
1237 | + | let gh = if (((height - gg) >= al)) | |
1244 | 1238 | then unit | |
1245 | 1239 | else aI(makeString([toString(al), " blocks have not passed since the previous call"], "")) | |
1246 | - | if (( | |
1240 | + | if ((gh == gh)) | |
1247 | 1241 | then { | |
1248 | 1242 | let dw = valueOrErrorMessage(parseBigInt(valueOrElse(getString(this, ah), "0")), aK("invalid kLp")) | |
1249 | - | let | |
1250 | - | let | |
1251 | - | let dc = | |
1243 | + | let gi = dl(0, 0, 0) | |
1244 | + | let gj = gi._1 | |
1245 | + | let dc = gi._2 | |
1252 | 1246 | let do = if ((dw != dc)) | |
1253 | - | then | |
1247 | + | then gj | |
1254 | 1248 | else aI("nothing to refresh") | |
1255 | 1249 | $Tuple2(do, toString(dc)) | |
1256 | 1250 | } | |
1309 | 1303 | func statsREADONLY () = { | |
1310 | 1304 | let bN = aP() | |
1311 | 1305 | let ca = fromBase58String(bN[q]) | |
1312 | - | let | |
1313 | - | let | |
1306 | + | let gk = bN[r] | |
1307 | + | let gl = bN[s] | |
1314 | 1308 | let cC = bN[v] | |
1315 | 1309 | let cD = bN[w] | |
1316 | 1310 | let bO = parseIntValue(bN[t]) | |
1317 | 1311 | let bP = parseIntValue(bN[u]) | |
1318 | - | let gn = valueOrErrorMessage(assetInfo(ca), (("Asset " + toBase58String(ca)) + " doesn't exist")).quantity | |
1312 | + | let gm = valueOrErrorMessage(assetInfo(ca), (("Asset " + toBase58String(ca)) + " doesn't exist")).quantity | |
1313 | + | let gn = by(gk) | |
1319 | 1314 | let go = by(gl) | |
1320 | - | let gp = by(gm) | |
1321 | - | let gq = if ((gn == 0)) | |
1315 | + | let gp = if ((gm == 0)) | |
1322 | 1316 | then [e, e, e] | |
1323 | - | else bL(go, | |
1317 | + | else bL(gn, go, gm) | |
1324 | 1318 | let ck = 0 | |
1325 | - | let | |
1326 | - | let | |
1327 | - | let | |
1328 | - | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d", toString(go), toString( | |
1319 | + | let gq = G(gp[1], b) | |
1320 | + | let gr = G(gp[2], b) | |
1321 | + | let gs = value(getInteger(aL, aw(toString(this)))) | |
1322 | + | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d", toString(gn), toString(go), toString(gm), toString(ck), toString(gq), toString(gr), toString(gs)], j)) | |
1329 | 1323 | } | |
1330 | 1324 | ||
1331 | 1325 | ||
1341 | 1335 | let bO = parseIntValue(bN[t]) | |
1342 | 1336 | let bP = parseIntValue(bN[u]) | |
1343 | 1337 | let cd = bN[p] | |
1344 | - | let | |
1345 | - | let | |
1346 | - | let | |
1347 | - | let bJ = D( | |
1348 | - | let bK = D( | |
1349 | - | let cj = if (( | |
1338 | + | let gm = valueOrErrorMessage(assetInfo(ca), (("Asset " + toBase58String(ca)) + " doesn't exist")).quantity | |
1339 | + | let gn = by(cA) | |
1340 | + | let go = by(cB) | |
1341 | + | let bJ = D(gn, bO) | |
1342 | + | let bK = D(go, bP) | |
1343 | + | let cj = if ((gm == 0)) | |
1350 | 1344 | then e | |
1351 | 1345 | else bA(bK, bJ) | |
1352 | 1346 | let cG = D(cu, bO) | |
1354 | 1348 | let cw = G(cH, bP) | |
1355 | 1349 | let dI = cs("", 500000, cu, cb, cw, cc, "", true, false) | |
1356 | 1350 | let cR = dI._1 | |
1357 | - | let | |
1351 | + | let gt = dI._3 | |
1358 | 1352 | let cf = dI._4 | |
1359 | 1353 | let ch = dI._5 | |
1360 | 1354 | let ce = dI._6 | |
1374 | 1368 | let bO = parseIntValue(bN[t]) | |
1375 | 1369 | let bP = parseIntValue(bN[u]) | |
1376 | 1370 | let cd = bN[p] | |
1377 | - | let | |
1378 | - | let | |
1379 | - | let | |
1380 | - | let | |
1381 | - | let | |
1382 | - | let cj = if (( | |
1371 | + | let gm = valueOrErrorMessage(assetInfo(ca), (("Asset " + toBase58String(ca)) + " doesn't exist")).quantity | |
1372 | + | let gu = by(cA) | |
1373 | + | let gv = by(cB) | |
1374 | + | let gw = D(gu, bO) | |
1375 | + | let gx = D(gv, bP) | |
1376 | + | let cj = if ((gm == 0)) | |
1383 | 1377 | then e | |
1384 | - | else bA( | |
1378 | + | else bA(gx, gw) | |
1385 | 1379 | let cH = D(cw, bP) | |
1386 | 1380 | let cG = fraction(cH, d, cj) | |
1387 | 1381 | let cu = G(cG, bO) | |
1388 | 1382 | let dI = cs("", 500000, cu, cb, cw, cc, "", true, false) | |
1389 | 1383 | let cR = dI._1 | |
1390 | - | let | |
1384 | + | let gt = dI._3 | |
1391 | 1385 | let cf = dI._4 | |
1392 | 1386 | let ch = dI._5 | |
1393 | 1387 | let ce = dI._6 | |
1397 | 1391 | ||
1398 | 1392 | ||
1399 | 1393 | @Callable(dC) | |
1400 | - | func evaluateGetREADONLY (gz | |
1401 | - | let cJ = bW("", | |
1394 | + | func evaluateGetREADONLY (gy,gz) = { | |
1395 | + | let cJ = bW("", gy, gz, this) | |
1402 | 1396 | let cp = cJ._1 | |
1403 | 1397 | let cq = cJ._2 | |
1404 | 1398 | let cf = cJ._5 | |
1410 | 1404 | } | |
1411 | 1405 | ||
1412 | 1406 | ||
1413 | - | @Verifier( | |
1414 | - | func | |
1415 | - | let | |
1416 | - | let dN = | |
1407 | + | @Verifier(gA) | |
1408 | + | func gB () = { | |
1409 | + | let gC = { | |
1410 | + | let dN = eP() | |
1417 | 1411 | if ($isInstanceOf(dN, "ByteVector")) | |
1418 | 1412 | then { | |
1419 | - | let | |
1420 | - | | |
1413 | + | let eT = dN | |
1414 | + | eT | |
1421 | 1415 | } | |
1422 | 1416 | else if ($isInstanceOf(dN, "Unit")) | |
1423 | - | then | |
1417 | + | then gA.senderPublicKey | |
1424 | 1418 | else throw("Match error") | |
1425 | 1419 | } | |
1426 | - | let dN = | |
1420 | + | let dN = gA | |
1427 | 1421 | if ($isInstanceOf(dN, "Order")) | |
1428 | 1422 | then { | |
1429 | 1423 | let ds = dN | |
1430 | - | let | |
1424 | + | let gD = aO() | |
1431 | 1425 | let aB = dr(ds) | |
1432 | 1426 | let aC = sigVerify(ds.bodyBytes, ds.proofs[0], ds.senderPublicKey) | |
1433 | - | let aD = sigVerify(ds.bodyBytes, ds.proofs[1], | |
1427 | + | let aD = sigVerify(ds.bodyBytes, ds.proofs[1], gD) | |
1434 | 1428 | if (if (if (aB) | |
1435 | 1429 | then aC | |
1436 | 1430 | else false) | |
1441 | 1435 | } | |
1442 | 1436 | else if ($isInstanceOf(dN, "SetScriptTransaction")) | |
1443 | 1437 | then { | |
1444 | - | let | |
1445 | - | let | |
1446 | - | let | |
1447 | - | let | |
1448 | - | if (if (( | |
1449 | - | then ( | |
1438 | + | let eQ = dN | |
1439 | + | let gE = blake2b256(value(eQ.script)) | |
1440 | + | let gF = fromBase64String(value(getString(aL, ay()))) | |
1441 | + | let gG = scriptHash(this) | |
1442 | + | if (if ((gF == gE)) | |
1443 | + | then (gG != gE) | |
1450 | 1444 | else false) | |
1451 | 1445 | then true | |
1452 | - | else sigVerify( | |
1446 | + | else sigVerify(gA.bodyBytes, gA.proofs[0], gC) | |
1453 | 1447 | } | |
1454 | - | else sigVerify( | |
1448 | + | else sigVerify(gA.bodyBytes, gA.proofs[0], gC) | |
1455 | 1449 | } | |
1456 | 1450 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = 8 | |
5 | 5 | ||
6 | 6 | let b = 100000000 | |
7 | 7 | ||
8 | 8 | let c = toBigInt(100000000) | |
9 | 9 | ||
10 | 10 | let d = toBigInt(1000000000000000000) | |
11 | 11 | ||
12 | 12 | let e = toBigInt(0) | |
13 | 13 | ||
14 | 14 | let f = toBigInt(0) | |
15 | 15 | ||
16 | 16 | let g = toBigInt(1) | |
17 | 17 | ||
18 | 18 | let h = toBigInt(2) | |
19 | 19 | ||
20 | 20 | let i = "WAVES" | |
21 | 21 | ||
22 | 22 | let j = "__" | |
23 | 23 | ||
24 | 24 | let k = 1 | |
25 | 25 | ||
26 | 26 | let l = 2 | |
27 | 27 | ||
28 | 28 | let m = 3 | |
29 | 29 | ||
30 | 30 | let n = 4 | |
31 | 31 | ||
32 | 32 | let o = 1 | |
33 | 33 | ||
34 | 34 | let p = 2 | |
35 | 35 | ||
36 | 36 | let q = 3 | |
37 | 37 | ||
38 | 38 | let r = 4 | |
39 | 39 | ||
40 | 40 | let s = 5 | |
41 | 41 | ||
42 | 42 | let t = 6 | |
43 | 43 | ||
44 | 44 | let u = 7 | |
45 | 45 | ||
46 | 46 | let v = 8 | |
47 | 47 | ||
48 | 48 | let w = 9 | |
49 | 49 | ||
50 | 50 | let x = 10 | |
51 | 51 | ||
52 | 52 | let y = 1 | |
53 | 53 | ||
54 | 54 | let z = 2 | |
55 | 55 | ||
56 | 56 | let A = 3 | |
57 | 57 | ||
58 | 58 | let B = 1 | |
59 | 59 | ||
60 | 60 | let C = 7 | |
61 | 61 | ||
62 | 62 | func D (E,F) = fraction(toBigInt(E), d, toBigInt(F)) | |
63 | 63 | ||
64 | 64 | ||
65 | 65 | func G (H,I) = toInt(fraction(H, toBigInt(I), d)) | |
66 | 66 | ||
67 | 67 | ||
68 | 68 | func J (H,I,K) = toInt(fraction(H, toBigInt(I), d, K)) | |
69 | 69 | ||
70 | 70 | ||
71 | 71 | func L (M,N,O) = fraction(M, N, O) | |
72 | 72 | ||
73 | 73 | ||
74 | 74 | func P (H) = if ((0 > H)) | |
75 | 75 | then -(H) | |
76 | 76 | else H | |
77 | 77 | ||
78 | 78 | ||
79 | 79 | func Q (H) = if ((e > H)) | |
80 | 80 | then -(H) | |
81 | 81 | else H | |
82 | 82 | ||
83 | 83 | ||
84 | 84 | func R () = "%s__factoryContract" | |
85 | 85 | ||
86 | 86 | ||
87 | 87 | func S () = "%s__managerPublicKey" | |
88 | 88 | ||
89 | 89 | ||
90 | 90 | func T () = "%s__pendingManagerPublicKey" | |
91 | 91 | ||
92 | 92 | ||
93 | 93 | func U () = "%s%s__price__last" | |
94 | 94 | ||
95 | 95 | ||
96 | 96 | func V (W,X) = makeString(["%s%s%d%d__price__history", toString(W), toString(X)], j) | |
97 | 97 | ||
98 | 98 | ||
99 | 99 | func Y (Z,aa) = ((("%s%s%s__P__" + Z) + "__") + aa) | |
100 | 100 | ||
101 | 101 | ||
102 | 102 | func ab (Z,aa) = ((("%s%s%s__G__" + Z) + "__") + aa) | |
103 | 103 | ||
104 | 104 | ||
105 | 105 | func ac () = "%s__amountAsset" | |
106 | 106 | ||
107 | 107 | ||
108 | 108 | func ad () = "%s__priceAsset" | |
109 | 109 | ||
110 | 110 | ||
111 | 111 | let ae = "%s__fee" | |
112 | 112 | ||
113 | 113 | let af = fraction(10, b, 10000) | |
114 | 114 | ||
115 | 115 | let ag = valueOrElse(getInteger(this, ae), af) | |
116 | 116 | ||
117 | 117 | let ah = makeString(["%s", "kLp"], j) | |
118 | 118 | ||
119 | 119 | let ai = makeString(["%s", "kLpRefreshedHeight"], j) | |
120 | 120 | ||
121 | 121 | let aj = makeString(["%s", "refreshKLpDelay"], j) | |
122 | 122 | ||
123 | 123 | let ak = 30 | |
124 | 124 | ||
125 | 125 | let al = valueOrElse(getInteger(this, aj), ak) | |
126 | 126 | ||
127 | 127 | func am () = "%s__factoryConfig" | |
128 | 128 | ||
129 | 129 | ||
130 | 130 | func an () = "%s%s__matcher__publicKey" | |
131 | 131 | ||
132 | 132 | ||
133 | 133 | func ao (ap) = (("%s%s%s__" + ap) + "__mappings__poolContract2LpAsset") | |
134 | 134 | ||
135 | 135 | ||
136 | 136 | func aq (ar,as) = (((("%d%d%s__" + ar) + "__") + as) + "__config") | |
137 | 137 | ||
138 | 138 | ||
139 | 139 | func at (au) = ("%s%s%s__mappings__baseAsset2internalId__" + au) | |
140 | 140 | ||
141 | 141 | ||
142 | 142 | func av () = "%s__shutdown" | |
143 | 143 | ||
144 | 144 | ||
145 | 145 | func aw (ax) = ("%s%s__poolWeight__" + ax) | |
146 | 146 | ||
147 | 147 | ||
148 | 148 | func ay () = "%s__allowedLpScriptHash" | |
149 | 149 | ||
150 | 150 | ||
151 | 151 | let az = "%s__feeCollectorAddress" | |
152 | 152 | ||
153 | 153 | func aA (aB,aC,aD) = throw(((((("order validation failed: orderValid=" + toString(aB)) + " senderValid=") + toString(aC)) + " matcherValid=") + toString(aD))) | |
154 | 154 | ||
155 | 155 | ||
156 | 156 | func aE (aF,aG) = valueOrErrorMessage(getString(aF, aG), makeString(["mandatory ", toString(aF), ".", aG, " is not defined"], "")) | |
157 | 157 | ||
158 | 158 | ||
159 | 159 | func aH (aF,aG) = valueOrErrorMessage(getInteger(aF, aG), makeString(["mandatory ", toString(aF), ".", aG, " is not defined"], "")) | |
160 | 160 | ||
161 | 161 | ||
162 | 162 | func aI (aJ) = throw(makeString(["lp.ride:", aJ], " ")) | |
163 | 163 | ||
164 | 164 | ||
165 | 165 | func aK (aJ) = makeString(["lp.ride:", aJ], " ") | |
166 | 166 | ||
167 | 167 | ||
168 | 168 | let aL = addressFromStringValue(aE(this, R())) | |
169 | 169 | ||
170 | 170 | let aM = addressFromStringValue(aE(aL, az)) | |
171 | 171 | ||
172 | 172 | func aN () = valueOrElse(getBoolean(aL, av()), false) | |
173 | 173 | ||
174 | 174 | ||
175 | 175 | func aO () = fromBase58String(aE(aL, an())) | |
176 | 176 | ||
177 | 177 | ||
178 | 178 | func aP () = { | |
179 | 179 | let aQ = aE(this, ac()) | |
180 | 180 | let aR = aE(this, ad()) | |
181 | 181 | let as = aH(aL, at(aR)) | |
182 | 182 | let ar = aH(aL, at(aQ)) | |
183 | 183 | split(aE(aL, aq(toString(ar), toString(as))), j) | |
184 | 184 | } | |
185 | 185 | ||
186 | 186 | ||
187 | 187 | func aS (aT) = if ((aT == i)) | |
188 | 188 | then unit | |
189 | 189 | else fromBase58String(aT) | |
190 | 190 | ||
191 | 191 | ||
192 | 192 | func aU (aT) = if ((aT == unit)) | |
193 | 193 | then i | |
194 | 194 | else toBase58String(value(aT)) | |
195 | 195 | ||
196 | 196 | ||
197 | 197 | func aV (aW) = $Tuple7(addressFromStringValue(aW[o]), parseIntValue(aW[p]), fromBase58String(aW[q]), aS(aW[r]), aS(aW[s]), parseIntValue(aW[t]), parseIntValue(aW[u])) | |
198 | 198 | ||
199 | 199 | ||
200 | 200 | let aX = aV(aP()) | |
201 | 201 | ||
202 | 202 | let aY = aX | |
203 | 203 | ||
204 | 204 | let aZ = aY._1 | |
205 | 205 | ||
206 | 206 | let ba = aY._2 | |
207 | 207 | ||
208 | 208 | let bb = aY._3 | |
209 | 209 | ||
210 | 210 | let bc = aY._4 | |
211 | 211 | ||
212 | 212 | let bd = aY._5 | |
213 | 213 | ||
214 | 214 | let be = aY._6 | |
215 | 215 | ||
216 | 216 | let bf = aY._7 | |
217 | 217 | ||
218 | 218 | func bg () = split(aE(aL, am()), j) | |
219 | 219 | ||
220 | 220 | ||
221 | 221 | let bh = valueOrErrorMessage(addressFromString(bg()[B]), "incorrect staking address") | |
222 | 222 | ||
223 | 223 | let bi = valueOrErrorMessage(addressFromString(bg()[C]), "incorrect staking address") | |
224 | 224 | ||
225 | 225 | func bj (bk,bl,bm,bn,bo,bp,bq,br,bs,bt) = makeString(["%d%d%d%d%d%d%d%d%d%d", toString(bk), toString(bl), toString(bm), toString(bn), toString(bo), toString(bp), toString(bq), toString(br), toString(bs), toString(bt)], j) | |
226 | 226 | ||
227 | 227 | ||
228 | 228 | func bu (bv,bw,bx,bn,bq,br) = makeString(["%d%d%d%d%d%d", toString(bv), toString(bw), toString(bx), toString(bn), toString(bq), toString(br)], j) | |
229 | 229 | ||
230 | 230 | ||
231 | 231 | func by (bz) = if ((bz == "WAVES")) | |
232 | 232 | then wavesBalance(this).available | |
233 | 233 | else assetBalance(this, fromBase58String(bz)) | |
234 | 234 | ||
235 | 235 | ||
236 | 236 | func bA (bB,bC) = fraction(bB, d, bC) | |
237 | 237 | ||
238 | 238 | ||
239 | 239 | func bD (bB,bC,K) = fraction(bB, d, bC, K) | |
240 | 240 | ||
241 | 241 | ||
242 | 242 | func bE (bF,bG,bH,bI) = { | |
243 | 243 | let bJ = D(bH, bF) | |
244 | 244 | let bK = D(bI, bG) | |
245 | 245 | bA(bK, bJ) | |
246 | 246 | } | |
247 | 247 | ||
248 | 248 | ||
249 | 249 | func bL (bH,bI,bM) = { | |
250 | 250 | let bN = aP() | |
251 | 251 | let bO = parseIntValue(bN[t]) | |
252 | 252 | let bP = parseIntValue(bN[u]) | |
253 | 253 | let bQ = bE(bO, bP, bH, bI) | |
254 | 254 | let bC = D(bH, bO) | |
255 | 255 | let bB = D(bI, bP) | |
256 | 256 | let bR = D(bM, b) | |
257 | 257 | let bS = bA(bC, bR) | |
258 | 258 | let bT = bA(bB, bR) | |
259 | 259 | [bQ, bS, bT] | |
260 | 260 | } | |
261 | 261 | ||
262 | 262 | ||
263 | 263 | func bU (bH,bI,bM) = { | |
264 | 264 | let bV = bL(bH, bI, bM) | |
265 | 265 | [G(bV[0], b), G(bV[1], b), G(bV[2], b)] | |
266 | 266 | } | |
267 | 267 | ||
268 | 268 | ||
269 | 269 | func bW (bX,bY,bZ,Z) = { | |
270 | 270 | let bN = aP() | |
271 | 271 | let ca = bN[q] | |
272 | 272 | let cb = bN[r] | |
273 | 273 | let cc = bN[s] | |
274 | 274 | let bF = parseIntValue(bN[t]) | |
275 | 275 | let bG = parseIntValue(bN[u]) | |
276 | 276 | let cd = bN[p] | |
277 | 277 | let ce = valueOrErrorMessage(assetInfo(fromBase58String(ca)), (("Asset " + ca) + " doesn't exist")).quantity | |
278 | 278 | if ((ca != bY)) | |
279 | 279 | then throw("Invalid asset passed.") | |
280 | 280 | else { | |
281 | 281 | let cf = by(cb) | |
282 | 282 | let cg = D(cf, bF) | |
283 | 283 | let ch = by(cc) | |
284 | 284 | let ci = D(ch, bG) | |
285 | 285 | let cj = bA(ci, cg) | |
286 | 286 | let ck = G(cj, b) | |
287 | 287 | let cl = D(bZ, b) | |
288 | 288 | let cm = D(ce, b) | |
289 | 289 | let cn = fraction(cg, cl, cm) | |
290 | 290 | let co = fraction(ci, cl, cm) | |
291 | - | let cp = | |
292 | - | let cq = | |
291 | + | let cp = G(cn, bF) | |
292 | + | let cq = G(co, bG) | |
293 | 293 | let cr = if ((bX == "")) | |
294 | 294 | then nil | |
295 | 295 | else [ScriptTransfer(Z, cp, if ((cb == "WAVES")) | |
296 | 296 | then unit | |
297 | 297 | else fromBase58String(cb)), ScriptTransfer(Z, cq, if ((cc == "WAVES")) | |
298 | 298 | then unit | |
299 | 299 | else fromBase58String(cc)), StringEntry(ab(toString(Z), bX), bu(cp, cq, bZ, ck, height, lastBlock.timestamp)), IntegerEntry(U(), ck), IntegerEntry(V(height, lastBlock.timestamp), ck)] | |
300 | 300 | $Tuple10(cp, cq, cb, cc, cf, ch, ce, cj, cd, cr) | |
301 | 301 | } | |
302 | 302 | } | |
303 | 303 | ||
304 | 304 | ||
305 | 305 | func cs (bX,ct,cu,cv,cw,cx,Z,cy,cz) = { | |
306 | 306 | let bN = aP() | |
307 | 307 | let ca = fromBase58String(bN[q]) | |
308 | 308 | let cA = bN[r] | |
309 | 309 | let cB = bN[s] | |
310 | 310 | let cC = bN[v] | |
311 | 311 | let cD = bN[w] | |
312 | 312 | let bO = parseIntValue(bN[t]) | |
313 | 313 | let bP = parseIntValue(bN[u]) | |
314 | 314 | let cd = bN[p] | |
315 | 315 | let ce = valueOrErrorMessage(assetInfo(ca), (("Asset " + toBase58String(ca)) + " doesn't exist")).quantity | |
316 | 316 | let cE = toBase58String(valueOrElse(cv, fromBase58String("WAVES"))) | |
317 | 317 | let cF = toBase58String(valueOrElse(cx, fromBase58String("WAVES"))) | |
318 | 318 | if (if ((cA != cE)) | |
319 | 319 | then true | |
320 | 320 | else (cB != cF)) | |
321 | 321 | then throw("Invalid amt or price asset passed.") | |
322 | 322 | else { | |
323 | 323 | let cf = if (cy) | |
324 | 324 | then by(cA) | |
325 | 325 | else (by(cA) - cu) | |
326 | 326 | let ch = if (cy) | |
327 | 327 | then by(cB) | |
328 | 328 | else (by(cB) - cw) | |
329 | 329 | let cG = D(cu, bO) | |
330 | 330 | let cH = D(cw, bP) | |
331 | 331 | let cI = bA(cH, cG) | |
332 | 332 | let cg = D(cf, bO) | |
333 | 333 | let ci = D(ch, bP) | |
334 | 334 | let cJ = if ((ce == 0)) | |
335 | 335 | then { | |
336 | 336 | let cj = e | |
337 | 337 | let cK = e | |
338 | 338 | let bR = pow((cG * cH), 0, toBigInt(5), 1, 0, DOWN) | |
339 | 339 | $Tuple5(G(bR, b), G(cG, bO), G(cH, bP), bA((ci + cH), (cg + cG)), cK) | |
340 | 340 | } | |
341 | 341 | else { | |
342 | 342 | let cj = bA(ci, cg) | |
343 | 343 | let cK = fraction(Q((cj - cI)), d, cj) | |
344 | 344 | let cL = D(ct, b) | |
345 | 345 | if (if ((cj != e)) | |
346 | 346 | then (cK > cL) | |
347 | 347 | else false) | |
348 | 348 | then throw(((("Price slippage " + toString(cK)) + " exceeded the passed limit of ") + toString(cL))) | |
349 | 349 | else { | |
350 | 350 | let cm = D(ce, b) | |
351 | 351 | let cM = fraction(cG, bD(ci, cg, CEILING), d, CEILING) | |
352 | 352 | let cN = fraction(cH, d, bD(ci, cg, FLOOR), CEILING) | |
353 | 353 | let cO = if ((cM > cH)) | |
354 | 354 | then $Tuple2(cN, cH) | |
355 | 355 | else $Tuple2(cG, cM) | |
356 | 356 | let cP = cO._1 | |
357 | 357 | let cQ = cO._2 | |
358 | 358 | let bR = fraction(cm, cQ, ci, FLOOR) | |
359 | 359 | $Tuple5(J(bR, b, FLOOR), J(cP, bO, CEILING), J(cQ, bP, CEILING), cj, cK) | |
360 | 360 | } | |
361 | 361 | } | |
362 | 362 | let cR = cJ._1 | |
363 | 363 | let cS = cJ._2 | |
364 | 364 | let cT = cJ._3 | |
365 | 365 | let ck = G(cJ._4, b) | |
366 | 366 | let cU = G(cJ._5, b) | |
367 | 367 | if ((0 >= cR)) | |
368 | 368 | then throw("Invalid calculations. LP calculated is less than zero.") | |
369 | 369 | else { | |
370 | 370 | let cV = if (!(cz)) | |
371 | 371 | then 0 | |
372 | 372 | else cR | |
373 | 373 | let cW = (cu - cS) | |
374 | 374 | let cX = (cw - cT) | |
375 | 375 | let cY = [IntegerEntry(U(), ck), IntegerEntry(V(height, lastBlock.timestamp), ck), StringEntry(Y(Z, bX), bj(cS, cT, cV, ck, ct, cU, height, lastBlock.timestamp, cW, cX))] | |
376 | 376 | $Tuple13(cR, cV, ck, cf, ch, ce, ca, cd, cY, cW, cX, cv, cx) | |
377 | 377 | } | |
378 | 378 | } | |
379 | 379 | } | |
380 | 380 | ||
381 | 381 | ||
382 | 382 | func cZ (da,db,ce) = { | |
383 | 383 | let dc = fraction(pow((da * db), 0, toBigInt(5), 1, 18, DOWN), g, ce) | |
384 | 384 | if ((ce == f)) | |
385 | 385 | then f | |
386 | 386 | else dc | |
387 | 387 | } | |
388 | 388 | ||
389 | 389 | ||
390 | 390 | func dd (de,df,dg) = { | |
391 | 391 | let dh = (toBigInt(by(aU(bc))) - de) | |
392 | 392 | let di = (toBigInt(by(aU(bd))) - df) | |
393 | 393 | let dj = (toBigInt(value(assetInfo(bb)).quantity) - dg) | |
394 | 394 | let dk = cZ(dh, di, dj) | |
395 | 395 | dk | |
396 | 396 | } | |
397 | 397 | ||
398 | 398 | ||
399 | 399 | func dl (dm,dn,dg) = { | |
400 | 400 | let dh = (by(aU(bc)) + dm) | |
401 | 401 | let di = (by(aU(bd)) + dn) | |
402 | 402 | let dj = (value(assetInfo(bb)).quantity + dg) | |
403 | 403 | let dc = cZ(toBigInt(dh), toBigInt(di), toBigInt(dj)) | |
404 | 404 | let do = [IntegerEntry(ai, height), StringEntry(ah, toString(dc))] | |
405 | 405 | $Tuple2(do, dc) | |
406 | 406 | } | |
407 | 407 | ||
408 | 408 | ||
409 | 409 | func dp (dq,dc) = if ((dc >= dq)) | |
410 | 410 | then true | |
411 | 411 | else aI(makeString(["updated KLp lower than current KLp", toString(dq), toString(dc)], " ")) | |
412 | 412 | ||
413 | 413 | ||
414 | 414 | func dr (ds) = { | |
415 | 415 | let dt = ds.amount | |
416 | 416 | let du = fraction(ds.amount, ds.price, b, FLOOR) | |
417 | 417 | let dv = if ((ds.orderType == Buy)) | |
418 | 418 | then $Tuple2(dt, -(du)) | |
419 | 419 | else $Tuple2(-(dt), du) | |
420 | 420 | let dm = dv._1 | |
421 | 421 | let dn = dv._2 | |
422 | 422 | if (if (if (aN()) | |
423 | 423 | then true | |
424 | 424 | else (ba == m)) | |
425 | 425 | then true | |
426 | 426 | else (ba == n)) | |
427 | 427 | then throw("Exchange operations disabled") | |
428 | 428 | else if (if ((ds.assetPair.amountAsset != bc)) | |
429 | 429 | then true | |
430 | 430 | else (ds.assetPair.priceAsset != bd)) | |
431 | 431 | then throw("Wrong order assets.") | |
432 | 432 | else { | |
433 | 433 | let dw = valueOrErrorMessage(parseBigInt(valueOrErrorMessage(getString(this, ah), aK("kLp is required"))), aK("invalid kLp")) | |
434 | 434 | let dx = dl(dm, dn, 0) | |
435 | 435 | let dy = dx._1 | |
436 | 436 | let dz = dx._2 | |
437 | 437 | let dA = (dz >= dw) | |
438 | 438 | dA | |
439 | 439 | } | |
440 | 440 | } | |
441 | 441 | ||
442 | 442 | ||
443 | 443 | func dB (dC) = if ((size(dC.payments) != 1)) | |
444 | 444 | then throw("exactly 1 payment is expected") | |
445 | 445 | else { | |
446 | 446 | let dD = value(dC.payments[0]) | |
447 | 447 | let bY = value(dD.assetId) | |
448 | 448 | let dE = dD.amount | |
449 | 449 | let cJ = bW(toBase58String(dC.transactionId), toBase58String(bY), dE, dC.caller) | |
450 | 450 | let cp = cJ._1 | |
451 | 451 | let cq = cJ._2 | |
452 | 452 | let cd = parseIntValue(cJ._9) | |
453 | 453 | let cr = cJ._10 | |
454 | 454 | if (if (aN()) | |
455 | 455 | then true | |
456 | 456 | else (cd == n)) | |
457 | 457 | then throw(("Get operation is blocked by admin. Status = " + toString(cd))) | |
458 | 458 | else $Tuple5(cp, cq, dE, bY, cr) | |
459 | 459 | } | |
460 | 460 | ||
461 | 461 | ||
462 | 462 | func dF (dC,ct,cz) = if ((size(dC.payments) != 2)) | |
463 | 463 | then throw("exactly 2 payments are expected") | |
464 | 464 | else { | |
465 | 465 | let dG = value(dC.payments[0]) | |
466 | 466 | let dH = value(dC.payments[1]) | |
467 | 467 | let dI = cs(toBase58String(dC.transactionId), ct, dG.amount, dG.assetId, dH.amount, dH.assetId, toString(dC.caller), false, cz) | |
468 | 468 | let cd = parseIntValue(dI._8) | |
469 | 469 | if (if (if (aN()) | |
470 | 470 | then true | |
471 | 471 | else (cd == l)) | |
472 | 472 | then true | |
473 | 473 | else (cd == n)) | |
474 | 474 | then throw(("Put operation is blocked by admin. Status = " + toString(cd))) | |
475 | 475 | else dI | |
476 | 476 | } | |
477 | 477 | ||
478 | 478 | ||
479 | 479 | func dJ (dK) = { | |
480 | 480 | let dL = invoke(aL, "emit", [dK], nil) | |
481 | 481 | if ((dL == dL)) | |
482 | 482 | then { | |
483 | 483 | let dM = { | |
484 | 484 | let dN = dL | |
485 | 485 | if ($isInstanceOf(dN, "Address")) | |
486 | 486 | then { | |
487 | 487 | let dO = dN | |
488 | 488 | invoke(dO, "emit", [dK], nil) | |
489 | 489 | } | |
490 | 490 | else unit | |
491 | 491 | } | |
492 | 492 | if ((dM == dM)) | |
493 | 493 | then dK | |
494 | 494 | else throw("Strict value is not equal to itself.") | |
495 | 495 | } | |
496 | 496 | else throw("Strict value is not equal to itself.") | |
497 | 497 | } | |
498 | 498 | ||
499 | 499 | ||
500 | 500 | func dP (dK) = { | |
501 | 501 | let dQ = fraction(dK, ag, b) | |
502 | 502 | $Tuple2((dK - dQ), dQ) | |
503 | 503 | } | |
504 | 504 | ||
505 | 505 | ||
506 | 506 | func dR (dS,dT,Z,aa) = { | |
507 | 507 | let dU = (aa == unit) | |
508 | 508 | let dV = by(aU(bc)) | |
509 | 509 | let dW = by(aU(bd)) | |
510 | 510 | let dX = if ((dT == bc)) | |
511 | 511 | then true | |
512 | 512 | else if ((dT == bd)) | |
513 | 513 | then false | |
514 | 514 | else aI("invalid asset") | |
515 | 515 | let dY = if (dU) | |
516 | 516 | then $Tuple2(dV, dW) | |
517 | 517 | else if (dX) | |
518 | 518 | then $Tuple2((dV - dS), dW) | |
519 | 519 | else $Tuple2(dV, (dW - dS)) | |
520 | 520 | let dZ = dY._1 | |
521 | 521 | let ea = dY._2 | |
522 | 522 | let eb = if (dX) | |
523 | 523 | then $Tuple2(dS, 0) | |
524 | 524 | else $Tuple2(0, dS) | |
525 | 525 | let ec = eb._1 | |
526 | 526 | let ed = eb._2 | |
527 | 527 | let dt = dP(ec)._1 | |
528 | 528 | let du = dP(ed)._1 | |
529 | 529 | let ee = dP(dS) | |
530 | 530 | let ef = ee._1 | |
531 | 531 | let dQ = ee._2 | |
532 | 532 | let eg = (dZ + dt) | |
533 | 533 | let eh = (ea + du) | |
534 | 534 | let ei = bA(D(eh, bf), D(eg, be)) | |
535 | 535 | let ej = G(ei, b) | |
536 | 536 | let ek = if (dX) | |
537 | 537 | then dZ | |
538 | 538 | else ea | |
539 | 539 | let el = toBigInt(ek) | |
540 | 540 | let em = toBigInt(valueOrErrorMessage(assetInfo(bb), (("asset " + toBase58String(bb)) + " doesn't exist")).quantity) | |
541 | 541 | let en = if ((em > f)) | |
542 | 542 | then true | |
543 | 543 | else aI("initial deposit requires all coins") | |
544 | 544 | if ((en == en)) | |
545 | 545 | then { | |
546 | 546 | let eo = toBigInt(ef) | |
547 | - | let ep = max([0, | |
547 | + | let ep = max([0, toInt(((em * (sqrtBigInt((d + ((eo * d) / el)), 18, 18, DOWN) - d)) / d))]) | |
548 | 548 | let cY = if (dU) | |
549 | 549 | then nil | |
550 | 550 | else [IntegerEntry(U(), ej), IntegerEntry(V(height, lastBlock.timestamp), ej), StringEntry(Y(toString(value(Z)), toBase58String(value(aa))), bj(ec, ed, ep, ej, 0, 0, height, lastBlock.timestamp, 0, 0))] | |
551 | 551 | let eq = bA(D(ea, bf), D(dZ, be)) | |
552 | 552 | let er = G(eq, b) | |
553 | 553 | let es = { | |
554 | 554 | let et = if (dX) | |
555 | 555 | then $Tuple2(ec, dZ) | |
556 | 556 | else $Tuple2(ed, ea) | |
557 | 557 | let dK = et._1 | |
558 | 558 | let eu = et._2 | |
559 | 559 | let ev = toInt(fraction(em, toBigInt((dK / 2)), toBigInt(eu))) | |
560 | 560 | fraction((ep - ev), b, ev) | |
561 | 561 | } | |
562 | 562 | $Tuple5(ep, cY, dQ, es, dX) | |
563 | 563 | } | |
564 | 564 | else throw("Strict value is not equal to itself.") | |
565 | 565 | } | |
566 | 566 | ||
567 | 567 | ||
568 | 568 | func ew (ex,ef,dT,Z,aa) = { | |
569 | 569 | let dU = (aa == unit) | |
570 | - | let bN = aP() | |
571 | - | let bO = parseIntValue(bN[t]) | |
572 | - | let bP = parseIntValue(bN[u]) | |
573 | 570 | let ey = [if ((dT == bb)) | |
574 | 571 | then true | |
575 | 572 | else aI("invalid lp asset")] | |
576 | 573 | if ((ey == ey)) | |
577 | 574 | then { | |
578 | 575 | let ez = if ((ex == bc)) | |
579 | 576 | then true | |
580 | 577 | else if ((ex == bd)) | |
581 | 578 | then false | |
582 | 579 | else aI("invalid asset") | |
583 | 580 | let eA = if (ez) | |
584 | 581 | then toBigInt(by(aU(bc))) | |
585 | 582 | else toBigInt(by(aU(bd))) | |
586 | - | let eB = if (ez) | |
587 | - | then bO | |
588 | - | else bP | |
589 | - | let eC = by(aU(bc)) | |
590 | - | let eD = by(aU(bd)) | |
591 | - | let eE = if (ez) | |
592 | - | then eC | |
593 | - | else eD | |
594 | - | let eF = toBigInt(eE) | |
583 | + | let eB = by(aU(bc)) | |
584 | + | let eC = by(aU(bd)) | |
585 | + | let eD = if (ez) | |
586 | + | then eB | |
587 | + | else eC | |
588 | + | let eE = toBigInt(eD) | |
595 | 589 | let em = toBigInt(valueOrErrorMessage(assetInfo(bb), (("asset " + toBase58String(bb)) + " doesn't exist")).quantity) | |
596 | - | let | |
597 | - | let | |
598 | - | let | |
599 | - | let | |
600 | - | let dQ = | |
601 | - | let | |
602 | - | then $Tuple4( | |
603 | - | else $Tuple4(0, | |
604 | - | let | |
605 | - | let | |
606 | - | let | |
607 | - | let | |
608 | - | let ei = bA(D( | |
590 | + | let eF = toBigInt(ef) | |
591 | + | let eG = max([0, toInt(((eA * (d - pow((d - ((eF * d) / em)), 18, h, 0, 18, DOWN))) / d))]) | |
592 | + | let eH = dP(eG) | |
593 | + | let eI = eH._1 | |
594 | + | let dQ = eH._2 | |
595 | + | let eJ = if (ez) | |
596 | + | then $Tuple4(eI, 0, (eB - eG), eC) | |
597 | + | else $Tuple4(0, eI, eB, (eC - eG)) | |
598 | + | let eK = eJ._1 | |
599 | + | let eL = eJ._2 | |
600 | + | let eM = eJ._3 | |
601 | + | let eN = eJ._4 | |
602 | + | let ei = bA(D(eN, bf), D(eM, be)) | |
609 | 603 | let ej = G(ei, b) | |
610 | 604 | let cY = if (dU) | |
611 | 605 | then nil | |
612 | - | else [StringEntry(ab(toString(value(Z)), toBase58String(value(aa))), bu( | |
613 | - | let eq = bA(D( | |
606 | + | else [StringEntry(ab(toString(value(Z)), toBase58String(value(aa))), bu(eK, eL, ef, ej, height, lastBlock.timestamp)), IntegerEntry(U(), ej), IntegerEntry(V(height, lastBlock.timestamp), ej)] | |
607 | + | let eq = bA(D(eC, bf), D(eB, be)) | |
614 | 608 | let er = G(eq, b) | |
615 | 609 | let es = { | |
616 | - | let | |
617 | - | fraction(( | |
610 | + | let eO = (toInt(fraction(eA, eF, em)) * 2) | |
611 | + | fraction((eI - eO), b, eO) | |
618 | 612 | } | |
619 | - | $Tuple5( | |
613 | + | $Tuple5(eI, cY, dQ, es, ez) | |
620 | 614 | } | |
621 | 615 | else throw("Strict value is not equal to itself.") | |
622 | 616 | } | |
623 | 617 | ||
624 | 618 | ||
625 | - | func | |
619 | + | func eP () = { | |
626 | 620 | let dN = getString(S()) | |
627 | 621 | if ($isInstanceOf(dN, "String")) | |
628 | 622 | then { | |
629 | - | let | |
630 | - | fromBase58String( | |
623 | + | let eQ = dN | |
624 | + | fromBase58String(eQ) | |
631 | 625 | } | |
632 | 626 | else if ($isInstanceOf(dN, "Unit")) | |
633 | 627 | then unit | |
634 | 628 | else throw("Match error") | |
635 | 629 | } | |
636 | 630 | ||
637 | 631 | ||
638 | - | func | |
632 | + | func eR () = { | |
639 | 633 | let dN = getString(T()) | |
640 | 634 | if ($isInstanceOf(dN, "String")) | |
641 | 635 | then { | |
642 | - | let | |
643 | - | fromBase58String( | |
636 | + | let eQ = dN | |
637 | + | fromBase58String(eQ) | |
644 | 638 | } | |
645 | 639 | else if ($isInstanceOf(dN, "Unit")) | |
646 | 640 | then unit | |
647 | 641 | else throw("Match error") | |
648 | 642 | } | |
649 | 643 | ||
650 | 644 | ||
651 | - | func | |
652 | - | let dN = | |
645 | + | func eS (dC) = { | |
646 | + | let dN = eP() | |
653 | 647 | if ($isInstanceOf(dN, "ByteVector")) | |
654 | 648 | then { | |
655 | - | let | |
656 | - | (dC.callerPublicKey == | |
649 | + | let eT = dN | |
650 | + | (dC.callerPublicKey == eT) | |
657 | 651 | } | |
658 | 652 | else if ($isInstanceOf(dN, "Unit")) | |
659 | 653 | then (dC.caller == this) | |
660 | 654 | else throw("Match error") | |
661 | 655 | } | |
662 | 656 | ||
663 | 657 | ||
664 | - | func | |
665 | - | let | |
666 | - | let dN = | |
658 | + | func eU (dC) = { | |
659 | + | let eV = throw("Permission denied") | |
660 | + | let dN = eP() | |
667 | 661 | if ($isInstanceOf(dN, "ByteVector")) | |
668 | 662 | then { | |
669 | - | let | |
670 | - | if ((dC.callerPublicKey == | |
663 | + | let eT = dN | |
664 | + | if ((dC.callerPublicKey == eT)) | |
671 | 665 | then true | |
672 | - | else | |
666 | + | else eV | |
673 | 667 | } | |
674 | 668 | else if ($isInstanceOf(dN, "Unit")) | |
675 | 669 | then if ((dC.caller == this)) | |
676 | 670 | then true | |
677 | - | else | |
671 | + | else eV | |
678 | 672 | else throw("Match error") | |
679 | 673 | } | |
680 | 674 | ||
681 | 675 | ||
682 | 676 | @Callable(dC) | |
683 | - | func setManager ( | |
684 | - | let | |
685 | - | if (( | |
677 | + | func setManager (eW) = { | |
678 | + | let eX = eU(dC) | |
679 | + | if ((eX == eX)) | |
686 | 680 | then { | |
687 | - | let | |
688 | - | if (( | |
689 | - | then [StringEntry(T(), | |
681 | + | let eY = fromBase58String(eW) | |
682 | + | if ((eY == eY)) | |
683 | + | then [StringEntry(T(), eW)] | |
690 | 684 | else throw("Strict value is not equal to itself.") | |
691 | 685 | } | |
692 | 686 | else throw("Strict value is not equal to itself.") | |
693 | 687 | } | |
694 | 688 | ||
695 | 689 | ||
696 | 690 | ||
697 | 691 | @Callable(dC) | |
698 | 692 | func confirmManager () = { | |
699 | - | let | |
700 | - | let | |
693 | + | let eZ = eR() | |
694 | + | let fa = if (isDefined(eZ)) | |
701 | 695 | then true | |
702 | 696 | else throw("No pending manager") | |
703 | - | if (( | |
697 | + | if ((fa == fa)) | |
704 | 698 | then { | |
705 | - | let | |
699 | + | let fb = if ((dC.callerPublicKey == value(eZ))) | |
706 | 700 | then true | |
707 | 701 | else throw("You are not pending manager") | |
708 | - | if (( | |
709 | - | then [StringEntry(S(), toBase58String(value( | |
702 | + | if ((fb == fb)) | |
703 | + | then [StringEntry(S(), toBase58String(value(eZ))), DeleteEntry(T())] | |
710 | 704 | else throw("Strict value is not equal to itself.") | |
711 | 705 | } | |
712 | 706 | else throw("Strict value is not equal to itself.") | |
713 | 707 | } | |
714 | 708 | ||
715 | 709 | ||
716 | 710 | ||
717 | 711 | @Callable(dC) | |
718 | - | func put (ct, | |
712 | + | func put (ct,fc) = if ((0 > ct)) | |
719 | 713 | then throw("Invalid slippageTolerance passed") | |
720 | 714 | else { | |
721 | 715 | let dI = dF(dC, ct, true) | |
722 | 716 | let cV = dI._2 | |
723 | 717 | let ca = dI._7 | |
724 | 718 | let cr = dI._9 | |
725 | 719 | let cW = dI._10 | |
726 | 720 | let cX = dI._11 | |
727 | - | let | |
728 | - | let | |
721 | + | let fd = dI._12 | |
722 | + | let fe = dI._13 | |
729 | 723 | let dG = toBigInt(value(dC.payments[0]).amount) | |
730 | 724 | let dH = toBigInt(value(dC.payments[1]).amount) | |
731 | 725 | let dk = dd(dG, dH, toBigInt(0)) | |
732 | 726 | if ((dk == dk)) | |
733 | 727 | then { | |
734 | 728 | let dL = invoke(aL, "emit", [cV], nil) | |
735 | 729 | if ((dL == dL)) | |
736 | 730 | then { | |
737 | 731 | let dM = { | |
738 | 732 | let dN = dL | |
739 | 733 | if ($isInstanceOf(dN, "Address")) | |
740 | 734 | then { | |
741 | 735 | let dO = dN | |
742 | 736 | invoke(dO, "emit", [cV], nil) | |
743 | 737 | } | |
744 | 738 | else unit | |
745 | 739 | } | |
746 | 740 | if ((dM == dM)) | |
747 | 741 | then { | |
748 | - | let | |
749 | - | then invoke(bi, "put", nil, [AttachedPayment( | |
742 | + | let ff = if ((cW > 0)) | |
743 | + | then invoke(bi, "put", nil, [AttachedPayment(fd, cW)]) | |
750 | 744 | else nil | |
751 | - | if (( | |
745 | + | if ((ff == ff)) | |
752 | 746 | then { | |
753 | - | let | |
754 | - | then invoke(bi, "put", nil, [AttachedPayment( | |
747 | + | let fg = if ((cX > 0)) | |
748 | + | then invoke(bi, "put", nil, [AttachedPayment(fe, cX)]) | |
755 | 749 | else nil | |
756 | - | if (( | |
750 | + | if ((fg == fg)) | |
757 | 751 | then { | |
758 | - | let | |
752 | + | let fh = if (fc) | |
759 | 753 | then { | |
760 | - | let | |
761 | - | if (( | |
754 | + | let fi = invoke(bh, "stake", nil, [AttachedPayment(ca, cV)]) | |
755 | + | if ((fi == fi)) | |
762 | 756 | then nil | |
763 | 757 | else throw("Strict value is not equal to itself.") | |
764 | 758 | } | |
765 | 759 | else [ScriptTransfer(dC.caller, cV, ca)] | |
766 | - | let | |
767 | - | if (( | |
760 | + | let fj = dl(0, 0, 0) | |
761 | + | if ((fj == fj)) | |
768 | 762 | then { | |
769 | - | let dc = | |
770 | - | let | |
771 | - | let | |
772 | - | if (( | |
773 | - | then ((cr ++ | |
763 | + | let dc = fj._2 | |
764 | + | let fk = fj._1 | |
765 | + | let fl = dp(dk, dc) | |
766 | + | if ((fl == fl)) | |
767 | + | then ((cr ++ fh) ++ fk) | |
774 | 768 | else throw("Strict value is not equal to itself.") | |
775 | 769 | } | |
776 | 770 | else throw("Strict value is not equal to itself.") | |
777 | 771 | } | |
778 | 772 | else throw("Strict value is not equal to itself.") | |
779 | 773 | } | |
780 | 774 | else throw("Strict value is not equal to itself.") | |
781 | 775 | } | |
782 | 776 | else throw("Strict value is not equal to itself.") | |
783 | 777 | } | |
784 | 778 | else throw("Strict value is not equal to itself.") | |
785 | 779 | } | |
786 | 780 | else throw("Strict value is not equal to itself.") | |
787 | 781 | } | |
788 | 782 | ||
789 | 783 | ||
790 | 784 | ||
791 | 785 | @Callable(dC) | |
792 | - | func putForFree ( | |
786 | + | func putForFree (fm) = if ((0 > fm)) | |
793 | 787 | then throw("Invalid value passed") | |
794 | 788 | else { | |
795 | - | let dI = dF(dC, | |
789 | + | let dI = dF(dC, fm, false) | |
796 | 790 | let cr = dI._9 | |
797 | 791 | let dG = toBigInt(value(dC.payments[0]).amount) | |
798 | 792 | let dH = toBigInt(value(dC.payments[1]).amount) | |
799 | 793 | let dk = dd(dG, dH, toBigInt(0)) | |
800 | 794 | if ((dk == dk)) | |
801 | 795 | then { | |
802 | - | let | |
803 | - | let | |
804 | - | let dc = | |
805 | - | let | |
806 | - | if (( | |
807 | - | then (cr ++ | |
796 | + | let fn = dl(0, 0, 0) | |
797 | + | let fk = fn._1 | |
798 | + | let dc = fn._2 | |
799 | + | let fl = dp(dk, dc) | |
800 | + | if ((fl == fl)) | |
801 | + | then (cr ++ fk) | |
808 | 802 | else throw("Strict value is not equal to itself.") | |
809 | 803 | } | |
810 | 804 | else throw("Strict value is not equal to itself.") | |
811 | 805 | } | |
812 | 806 | ||
813 | 807 | ||
814 | 808 | ||
815 | 809 | @Callable(dC) | |
816 | - | func putOneTkn (fp | |
817 | - | let | |
818 | - | let | |
819 | - | if ($isInstanceOf( | |
820 | - | then | |
821 | - | else throw(($getType( | |
810 | + | func putOneTkn (fo,fp) = { | |
811 | + | let fq = { | |
812 | + | let fr = invoke(aL, "isPoolOneTokenOperationsDisabledREADONLY", [toString(this)], nil) | |
813 | + | if ($isInstanceOf(fr, "Boolean")) | |
814 | + | then fr | |
815 | + | else throw(($getType(fr) + " couldn't be cast to Boolean")) | |
822 | 816 | } | |
823 | - | let | |
817 | + | let fs = if (if (if (aN()) | |
824 | 818 | then true | |
825 | 819 | else (ba == l)) | |
826 | 820 | then true | |
827 | 821 | else (ba == n)) | |
828 | 822 | then true | |
829 | - | else | |
830 | - | let ey = [if (if (!( | |
823 | + | else fq | |
824 | + | let ey = [if (if (!(fs)) | |
831 | 825 | then true | |
832 | - | else | |
826 | + | else eS(dC)) | |
833 | 827 | then true | |
834 | 828 | else aI("put operation is blocked by admin"), if ((size(dC.payments) == 1)) | |
835 | 829 | then true | |
836 | 830 | else aI("exactly 1 payment are expected")] | |
837 | 831 | if ((ey == ey)) | |
838 | 832 | then { | |
839 | - | let | |
840 | - | let dT = | |
841 | - | let dS = | |
833 | + | let ft = dC.payments[0] | |
834 | + | let dT = ft.assetId | |
835 | + | let dS = ft.amount | |
842 | 836 | let dk = if ((dT == bc)) | |
843 | 837 | then dd(toBigInt(dS), toBigInt(0), toBigInt(0)) | |
844 | 838 | else if ((dT == bd)) | |
845 | 839 | then dd(toBigInt(0), toBigInt(dS), toBigInt(0)) | |
846 | 840 | else aI("payment asset is not supported") | |
847 | 841 | let Z = dC.caller | |
848 | 842 | let aa = dC.transactionId | |
849 | - | let | |
850 | - | if (( | |
843 | + | let fu = dR(dS, dT, Z, aa) | |
844 | + | if ((fu == fu)) | |
851 | 845 | then { | |
852 | - | let dX = | |
853 | - | let | |
854 | - | let dQ = | |
855 | - | let cY = | |
856 | - | let | |
857 | - | let | |
858 | - | then ( | |
846 | + | let dX = fu._5 | |
847 | + | let fv = fu._4 | |
848 | + | let dQ = fu._3 | |
849 | + | let cY = fu._2 | |
850 | + | let fw = fu._1 | |
851 | + | let fx = if (if ((fo > 0)) | |
852 | + | then (fo > fw) | |
859 | 853 | else false) | |
860 | - | then aI(makeString(["amount to receive is less than ", toString( | |
861 | - | else | |
862 | - | let dL = dJ( | |
854 | + | then aI(makeString(["amount to receive is less than ", toString(fo)], "")) | |
855 | + | else fw | |
856 | + | let dL = dJ(fx) | |
863 | 857 | if ((dL == dL)) | |
864 | 858 | then { | |
865 | - | let | |
859 | + | let fh = if (fp) | |
866 | 860 | then { | |
867 | - | let | |
868 | - | if (( | |
861 | + | let fy = invoke(bh, "stake", nil, [AttachedPayment(bb, fx)]) | |
862 | + | if ((fy == fy)) | |
869 | 863 | then nil | |
870 | 864 | else throw("Strict value is not equal to itself.") | |
871 | 865 | } | |
872 | - | else [ScriptTransfer(dC.caller, | |
873 | - | let | |
866 | + | else [ScriptTransfer(dC.caller, fx, bb)] | |
867 | + | let fz = if ((dQ > 0)) | |
874 | 868 | then [ScriptTransfer(aM, dQ, dT)] | |
875 | 869 | else nil | |
876 | - | let | |
870 | + | let fA = if ((this == aM)) | |
877 | 871 | then $Tuple2(0, 0) | |
878 | 872 | else if (dX) | |
879 | 873 | then $Tuple2(-(dQ), 0) | |
880 | 874 | else $Tuple2(0, -(dQ)) | |
881 | - | let dm = | |
882 | - | let dn = | |
883 | - | let | |
884 | - | let | |
885 | - | let dc = | |
875 | + | let dm = fA._1 | |
876 | + | let dn = fA._2 | |
877 | + | let fB = dl(dm, dn, 0) | |
878 | + | let fk = fB._1 | |
879 | + | let dc = fB._2 | |
886 | 880 | let dw = value(getString(ah)) | |
887 | - | let | |
888 | - | if (( | |
889 | - | then $Tuple2((((cY ++ | |
881 | + | let fl = dp(dk, dc) | |
882 | + | if ((fl == fl)) | |
883 | + | then $Tuple2((((cY ++ fh) ++ fz) ++ fk), fx) | |
890 | 884 | else throw("Strict value is not equal to itself.") | |
891 | 885 | } | |
892 | 886 | else throw("Strict value is not equal to itself.") | |
893 | 887 | } | |
894 | 888 | else throw("Strict value is not equal to itself.") | |
895 | 889 | } | |
896 | 890 | else throw("Strict value is not equal to itself.") | |
897 | 891 | } | |
898 | 892 | ||
899 | 893 | ||
900 | 894 | ||
901 | 895 | @Callable(dC) | |
902 | 896 | func putOneTknREADONLY (dT,dS) = { | |
903 | - | let | |
904 | - | let | |
905 | - | let cY = | |
906 | - | let dQ = | |
907 | - | let | |
908 | - | let dX = | |
909 | - | $Tuple2(nil, $Tuple3( | |
897 | + | let fC = dR(dS, aS(dT), unit, unit) | |
898 | + | let fw = fC._1 | |
899 | + | let cY = fC._2 | |
900 | + | let dQ = fC._3 | |
901 | + | let fv = fC._4 | |
902 | + | let dX = fC._5 | |
903 | + | $Tuple2(nil, $Tuple3(fw, dQ, fv)) | |
910 | 904 | } | |
911 | 905 | ||
912 | 906 | ||
913 | 907 | ||
914 | 908 | @Callable(dC) | |
915 | - | func getOneTkn ( | |
916 | - | let | |
917 | - | let | |
918 | - | if ($isInstanceOf( | |
919 | - | then | |
920 | - | else throw(($getType( | |
909 | + | func getOneTkn (fD,fo) = { | |
910 | + | let fq = { | |
911 | + | let fr = invoke(aL, "isPoolOneTokenOperationsDisabledREADONLY", [toString(this)], nil) | |
912 | + | if ($isInstanceOf(fr, "Boolean")) | |
913 | + | then fr | |
914 | + | else throw(($getType(fr) + " couldn't be cast to Boolean")) | |
921 | 915 | } | |
922 | - | let | |
916 | + | let fE = if (if (aN()) | |
923 | 917 | then true | |
924 | 918 | else (ba == n)) | |
925 | 919 | then true | |
926 | - | else | |
927 | - | let ey = [if (if (!( | |
920 | + | else fq | |
921 | + | let ey = [if (if (!(fE)) | |
928 | 922 | then true | |
929 | - | else | |
923 | + | else eS(dC)) | |
930 | 924 | then true | |
931 | 925 | else aI("get operation is blocked by admin"), if ((size(dC.payments) == 1)) | |
932 | 926 | then true | |
933 | 927 | else aI("exactly 1 payment are expected")] | |
934 | 928 | if ((ey == ey)) | |
935 | 929 | then { | |
936 | - | let ex = aS( | |
937 | - | let | |
938 | - | let dT = | |
939 | - | let ef = | |
930 | + | let ex = aS(fD) | |
931 | + | let ft = dC.payments[0] | |
932 | + | let dT = ft.assetId | |
933 | + | let ef = ft.amount | |
940 | 934 | let dk = dd(toBigInt(0), toBigInt(0), toBigInt(ef)) | |
941 | 935 | let Z = dC.caller | |
942 | 936 | let aa = dC.transactionId | |
943 | - | let | |
944 | - | if (( | |
937 | + | let fF = ew(ex, ef, dT, Z, aa) | |
938 | + | if ((fF == fF)) | |
945 | 939 | then { | |
946 | - | let ez = | |
947 | - | let | |
948 | - | let dQ = | |
949 | - | let cY = | |
950 | - | let | |
951 | - | let dK = if (if (( | |
952 | - | then ( | |
940 | + | let ez = fF._5 | |
941 | + | let fv = fF._4 | |
942 | + | let dQ = fF._3 | |
943 | + | let cY = fF._2 | |
944 | + | let fG = fF._1 | |
945 | + | let dK = if (if ((fo > 0)) | |
946 | + | then (fo > fG) | |
953 | 947 | else false) | |
954 | - | then aI(makeString(["amount to receive is less than ", toString( | |
955 | - | else | |
956 | - | let | |
957 | - | if (( | |
948 | + | then aI(makeString(["amount to receive is less than ", toString(fo)], "")) | |
949 | + | else fG | |
950 | + | let fH = invoke(aL, "burn", [ef], [AttachedPayment(dT, ef)]) | |
951 | + | if ((fH == fH)) | |
958 | 952 | then { | |
959 | - | let | |
960 | - | let | |
953 | + | let fI = [ScriptTransfer(Z, dK, ex)] | |
954 | + | let fz = if ((dQ > 0)) | |
961 | 955 | then [ScriptTransfer(aM, dQ, ex)] | |
962 | 956 | else nil | |
963 | - | let | |
964 | - | let | |
957 | + | let fJ = { | |
958 | + | let fK = if ((this == aM)) | |
965 | 959 | then 0 | |
966 | 960 | else dQ | |
967 | 961 | if (ez) | |
968 | - | then $Tuple2(-((dK + | |
969 | - | else $Tuple2(0, -((dK + | |
962 | + | then $Tuple2(-((dK + fK)), 0) | |
963 | + | else $Tuple2(0, -((dK + fK))) | |
970 | 964 | } | |
971 | - | let dm = | |
972 | - | let dn = | |
973 | - | let | |
974 | - | let | |
975 | - | let dc = | |
976 | - | let | |
977 | - | if (( | |
978 | - | then $Tuple2((((cY ++ | |
965 | + | let dm = fJ._1 | |
966 | + | let dn = fJ._2 | |
967 | + | let fL = dl(dm, dn, 0) | |
968 | + | let fk = fL._1 | |
969 | + | let dc = fL._2 | |
970 | + | let fl = dp(dk, dc) | |
971 | + | if ((fl == fl)) | |
972 | + | then $Tuple2((((cY ++ fI) ++ fz) ++ fk), dK) | |
979 | 973 | else throw("Strict value is not equal to itself.") | |
980 | 974 | } | |
981 | 975 | else throw("Strict value is not equal to itself.") | |
982 | 976 | } | |
983 | 977 | else throw("Strict value is not equal to itself.") | |
984 | 978 | } | |
985 | 979 | else throw("Strict value is not equal to itself.") | |
986 | 980 | } | |
987 | 981 | ||
988 | 982 | ||
989 | 983 | ||
990 | 984 | @Callable(dC) | |
991 | 985 | func getOneTknREADONLY (ex,ef) = { | |
992 | - | let | |
993 | - | let | |
994 | - | let cY = | |
995 | - | let dQ = | |
996 | - | let | |
997 | - | let ez = | |
998 | - | $Tuple2(nil, $Tuple3( | |
986 | + | let fM = ew(aS(ex), ef, bb, unit, unit) | |
987 | + | let fG = fM._1 | |
988 | + | let cY = fM._2 | |
989 | + | let dQ = fM._3 | |
990 | + | let fv = fM._4 | |
991 | + | let ez = fM._5 | |
992 | + | $Tuple2(nil, $Tuple3(fG, dQ, fv)) | |
999 | 993 | } | |
1000 | 994 | ||
1001 | 995 | ||
1002 | 996 | ||
1003 | 997 | @Callable(dC) | |
1004 | - | func unstakeAndGetOneTkn ( | |
1005 | - | let | |
1006 | - | let | |
1007 | - | if ($isInstanceOf( | |
1008 | - | then | |
1009 | - | else throw(($getType( | |
998 | + | func unstakeAndGetOneTkn (fN,fD,fo) = { | |
999 | + | let fq = { | |
1000 | + | let fr = invoke(aL, "isPoolOneTokenOperationsDisabledREADONLY", [toString(this)], nil) | |
1001 | + | if ($isInstanceOf(fr, "Boolean")) | |
1002 | + | then fr | |
1003 | + | else throw(($getType(fr) + " couldn't be cast to Boolean")) | |
1010 | 1004 | } | |
1011 | - | let | |
1005 | + | let fE = if (if (aN()) | |
1012 | 1006 | then true | |
1013 | 1007 | else (ba == n)) | |
1014 | 1008 | then true | |
1015 | - | else | |
1016 | - | let ey = [if (if (!( | |
1009 | + | else fq | |
1010 | + | let ey = [if (if (!(fE)) | |
1017 | 1011 | then true | |
1018 | - | else | |
1012 | + | else eS(dC)) | |
1019 | 1013 | then true | |
1020 | 1014 | else aI("get operation is blocked by admin"), if ((size(dC.payments) == 0)) | |
1021 | 1015 | then true | |
1022 | 1016 | else aI("no payments are expected")] | |
1023 | 1017 | if ((ey == ey)) | |
1024 | 1018 | then { | |
1025 | - | let ex = aS( | |
1019 | + | let ex = aS(fD) | |
1026 | 1020 | let Z = dC.caller | |
1027 | 1021 | let aa = dC.transactionId | |
1028 | 1022 | let dk = dd(toBigInt(0), toBigInt(0), toBigInt(0)) | |
1029 | - | let | |
1030 | - | if (( | |
1023 | + | let fO = invoke(bh, "unstake", [toBase58String(bb), fN], nil) | |
1024 | + | if ((fO == fO)) | |
1031 | 1025 | then { | |
1032 | - | let | |
1033 | - | if (( | |
1026 | + | let fP = ew(ex, fN, bb, Z, aa) | |
1027 | + | if ((fP == fP)) | |
1034 | 1028 | then { | |
1035 | - | let ez = | |
1036 | - | let | |
1037 | - | let dQ = | |
1038 | - | let cY = | |
1039 | - | let | |
1040 | - | let dK = if (if (( | |
1041 | - | then ( | |
1029 | + | let ez = fP._5 | |
1030 | + | let fv = fP._4 | |
1031 | + | let dQ = fP._3 | |
1032 | + | let cY = fP._2 | |
1033 | + | let fG = fP._1 | |
1034 | + | let dK = if (if ((fo > 0)) | |
1035 | + | then (fo > fG) | |
1042 | 1036 | else false) | |
1043 | - | then aI(makeString(["amount to receive is less than ", toString( | |
1044 | - | else | |
1045 | - | let | |
1046 | - | if (( | |
1037 | + | then aI(makeString(["amount to receive is less than ", toString(fo)], "")) | |
1038 | + | else fG | |
1039 | + | let fH = invoke(aL, "burn", [fN], [AttachedPayment(bb, fN)]) | |
1040 | + | if ((fH == fH)) | |
1047 | 1041 | then { | |
1048 | - | let | |
1049 | - | let | |
1042 | + | let fI = [ScriptTransfer(dC.caller, dK, ex)] | |
1043 | + | let fz = if ((dQ > 0)) | |
1050 | 1044 | then [ScriptTransfer(aM, dQ, ex)] | |
1051 | 1045 | else nil | |
1052 | - | let | |
1053 | - | let | |
1046 | + | let fQ = { | |
1047 | + | let fK = if ((this == aM)) | |
1054 | 1048 | then 0 | |
1055 | 1049 | else dQ | |
1056 | 1050 | if (ez) | |
1057 | - | then $Tuple2(-((dK + | |
1058 | - | else $Tuple2(0, -((dK + | |
1051 | + | then $Tuple2(-((dK + fK)), 0) | |
1052 | + | else $Tuple2(0, -((dK + fK))) | |
1059 | 1053 | } | |
1060 | - | let dm = | |
1061 | - | let dn = | |
1062 | - | let | |
1063 | - | let | |
1064 | - | let dc = | |
1065 | - | let | |
1066 | - | if (( | |
1067 | - | then $Tuple2((((cY ++ | |
1054 | + | let dm = fQ._1 | |
1055 | + | let dn = fQ._2 | |
1056 | + | let fR = dl(dm, dn, 0) | |
1057 | + | let fk = fR._1 | |
1058 | + | let dc = fR._2 | |
1059 | + | let fl = dp(dk, dc) | |
1060 | + | if ((fl == fl)) | |
1061 | + | then $Tuple2((((cY ++ fI) ++ fz) ++ fk), dK) | |
1068 | 1062 | else throw("Strict value is not equal to itself.") | |
1069 | 1063 | } | |
1070 | 1064 | else throw("Strict value is not equal to itself.") | |
1071 | 1065 | } | |
1072 | 1066 | else throw("Strict value is not equal to itself.") | |
1073 | 1067 | } | |
1074 | 1068 | else throw("Strict value is not equal to itself.") | |
1075 | 1069 | } | |
1076 | 1070 | else throw("Strict value is not equal to itself.") | |
1077 | 1071 | } | |
1078 | 1072 | ||
1079 | 1073 | ||
1080 | 1074 | ||
1081 | 1075 | @Callable(dC) | |
1082 | 1076 | func get () = { | |
1083 | 1077 | let cJ = dB(dC) | |
1084 | - | let | |
1078 | + | let fS = cJ._1 | |
1085 | 1079 | let cq = cJ._2 | |
1086 | 1080 | let dE = cJ._3 | |
1087 | 1081 | let bY = cJ._4 | |
1088 | 1082 | let cr = cJ._5 | |
1089 | 1083 | let dk = dd(toBigInt(0), toBigInt(0), toBigInt(dE)) | |
1090 | - | let | |
1091 | - | if (( | |
1084 | + | let fT = invoke(aL, "burn", [dE], [AttachedPayment(bY, dE)]) | |
1085 | + | if ((fT == fT)) | |
1092 | 1086 | then { | |
1093 | - | let | |
1094 | - | let | |
1095 | - | let dc = | |
1096 | - | let | |
1097 | - | if (( | |
1098 | - | then (cr ++ | |
1087 | + | let fU = dl(-(fS), -(cq), 0) | |
1088 | + | let fk = fU._1 | |
1089 | + | let dc = fU._2 | |
1090 | + | let fl = dp(dk, dc) | |
1091 | + | if ((fl == fl)) | |
1092 | + | then (cr ++ fk) | |
1099 | 1093 | else throw("Strict value is not equal to itself.") | |
1100 | 1094 | } | |
1101 | 1095 | else throw("Strict value is not equal to itself.") | |
1102 | 1096 | } | |
1103 | 1097 | ||
1104 | 1098 | ||
1105 | 1099 | ||
1106 | 1100 | @Callable(dC) | |
1107 | - | func getNoLess (fW | |
1101 | + | func getNoLess (fV,fW) = { | |
1108 | 1102 | let cJ = dB(dC) | |
1109 | 1103 | let cp = cJ._1 | |
1110 | 1104 | let cq = cJ._2 | |
1111 | 1105 | let dE = cJ._3 | |
1112 | 1106 | let bY = cJ._4 | |
1113 | 1107 | let cr = cJ._5 | |
1114 | - | if (( | |
1115 | - | then throw(((("noLessThenAmtAsset failed: " + toString(cp)) + " < ") + toString( | |
1116 | - | else if (( | |
1117 | - | then throw(((("noLessThenPriceAsset failed: " + toString(cq)) + " < ") + toString( | |
1108 | + | if ((fV > cp)) | |
1109 | + | then throw(((("noLessThenAmtAsset failed: " + toString(cp)) + " < ") + toString(fV))) | |
1110 | + | else if ((fW > cq)) | |
1111 | + | then throw(((("noLessThenPriceAsset failed: " + toString(cq)) + " < ") + toString(fW))) | |
1118 | 1112 | else { | |
1119 | 1113 | let dk = dd(toBigInt(0), toBigInt(0), toBigInt(dE)) | |
1120 | - | let | |
1121 | - | if (( | |
1114 | + | let fT = invoke(aL, "burn", [dE], [AttachedPayment(bY, dE)]) | |
1115 | + | if ((fT == fT)) | |
1122 | 1116 | then { | |
1123 | - | let | |
1124 | - | let | |
1125 | - | let dc = | |
1126 | - | let | |
1127 | - | if (( | |
1128 | - | then (cr ++ | |
1117 | + | let fX = dl(-(cp), -(cq), 0) | |
1118 | + | let fk = fX._1 | |
1119 | + | let dc = fX._2 | |
1120 | + | let fl = dp(dk, dc) | |
1121 | + | if ((fl == fl)) | |
1122 | + | then (cr ++ fk) | |
1129 | 1123 | else throw("Strict value is not equal to itself.") | |
1130 | 1124 | } | |
1131 | 1125 | else throw("Strict value is not equal to itself.") | |
1132 | 1126 | } | |
1133 | 1127 | } | |
1134 | 1128 | ||
1135 | 1129 | ||
1136 | 1130 | ||
1137 | 1131 | @Callable(dC) | |
1138 | 1132 | func unstakeAndGet (dK) = { | |
1139 | - | let | |
1133 | + | let fY = if ((size(dC.payments) != 0)) | |
1140 | 1134 | then throw("No payments are expected") | |
1141 | 1135 | else true | |
1142 | - | if (( | |
1136 | + | if ((fY == fY)) | |
1143 | 1137 | then { | |
1144 | 1138 | let bN = aP() | |
1145 | 1139 | let ca = fromBase58String(bN[q]) | |
1146 | 1140 | let dk = dd(toBigInt(0), toBigInt(0), toBigInt(0)) | |
1147 | - | let | |
1148 | - | if (( | |
1141 | + | let fO = invoke(bh, "unstake", [toBase58String(ca), dK], nil) | |
1142 | + | if ((fO == fO)) | |
1149 | 1143 | then { | |
1150 | 1144 | let cJ = bW(toBase58String(dC.transactionId), toBase58String(ca), dK, dC.caller) | |
1151 | 1145 | let cp = cJ._1 | |
1152 | 1146 | let cq = cJ._2 | |
1153 | 1147 | let cd = parseIntValue(cJ._9) | |
1154 | 1148 | let cr = cJ._10 | |
1155 | - | let | |
1149 | + | let fZ = if (if (aN()) | |
1156 | 1150 | then true | |
1157 | 1151 | else (cd == n)) | |
1158 | 1152 | then throw(("Get operation is blocked by admin. Status = " + toString(cd))) | |
1159 | 1153 | else true | |
1160 | - | if (( | |
1154 | + | if ((fZ == fZ)) | |
1161 | 1155 | then { | |
1162 | - | let | |
1163 | - | if (( | |
1156 | + | let fT = invoke(aL, "burn", [dK], [AttachedPayment(ca, dK)]) | |
1157 | + | if ((fT == fT)) | |
1164 | 1158 | then { | |
1165 | - | let | |
1166 | - | let | |
1167 | - | let dc = | |
1168 | - | let | |
1169 | - | if (( | |
1170 | - | then (cr ++ | |
1159 | + | let ga = dl(-(cp), -(cq), 0) | |
1160 | + | let fk = ga._1 | |
1161 | + | let dc = ga._2 | |
1162 | + | let fl = dp(dk, dc) | |
1163 | + | if ((fl == fl)) | |
1164 | + | then (cr ++ fk) | |
1171 | 1165 | else throw("Strict value is not equal to itself.") | |
1172 | 1166 | } | |
1173 | 1167 | else throw("Strict value is not equal to itself.") | |
1174 | 1168 | } | |
1175 | 1169 | else throw("Strict value is not equal to itself.") | |
1176 | 1170 | } | |
1177 | 1171 | else throw("Strict value is not equal to itself.") | |
1178 | 1172 | } | |
1179 | 1173 | else throw("Strict value is not equal to itself.") | |
1180 | 1174 | } | |
1181 | 1175 | ||
1182 | 1176 | ||
1183 | 1177 | ||
1184 | 1178 | @Callable(dC) | |
1185 | - | func unstakeAndGetNoLess ( | |
1186 | - | let | |
1179 | + | func unstakeAndGetNoLess (fN,gb,fW) = { | |
1180 | + | let fE = if (aN()) | |
1187 | 1181 | then true | |
1188 | 1182 | else (ba == n) | |
1189 | - | let ey = [if (!( | |
1183 | + | let ey = [if (!(fE)) | |
1190 | 1184 | then true | |
1191 | 1185 | else throw("get operation is blocked by admin"), if ((size(dC.payments) == 0)) | |
1192 | 1186 | then true | |
1193 | 1187 | else throw("no payments are expected")] | |
1194 | 1188 | if ((ey == ey)) | |
1195 | 1189 | then { | |
1196 | 1190 | let dk = dd(toBigInt(0), toBigInt(0), toBigInt(0)) | |
1197 | - | let | |
1198 | - | if (( | |
1191 | + | let fO = invoke(bh, "unstake", [toBase58String(bb), fN], nil) | |
1192 | + | if ((fO == fO)) | |
1199 | 1193 | then { | |
1200 | - | let cJ = bW(toBase58String(dC.transactionId), toBase58String(bb), | |
1194 | + | let cJ = bW(toBase58String(dC.transactionId), toBase58String(bb), fN, dC.caller) | |
1201 | 1195 | let cp = cJ._1 | |
1202 | 1196 | let cq = cJ._2 | |
1203 | 1197 | let cr = cJ._10 | |
1204 | - | let | |
1198 | + | let gc = [if ((cp >= gb)) | |
1205 | 1199 | then true | |
1206 | - | else throw(makeString(["amount asset amount to receive is less than ", toString( | |
1200 | + | else throw(makeString(["amount asset amount to receive is less than ", toString(gb)], "")), if ((cq >= fW)) | |
1207 | 1201 | then true | |
1208 | - | else throw(makeString(["price asset amount to receive is less than ", toString( | |
1209 | - | if (( | |
1202 | + | else throw(makeString(["price asset amount to receive is less than ", toString(fW)], ""))] | |
1203 | + | if ((gc == gc)) | |
1210 | 1204 | then { | |
1211 | - | let | |
1212 | - | if (( | |
1205 | + | let fT = invoke(aL, "burn", [fN], [AttachedPayment(bb, fN)]) | |
1206 | + | if ((fT == fT)) | |
1213 | 1207 | then { | |
1214 | - | let | |
1215 | - | let | |
1216 | - | let dc = | |
1217 | - | let | |
1218 | - | if (( | |
1219 | - | then (cr ++ | |
1208 | + | let gd = dl(-(cp), -(cq), 0) | |
1209 | + | let fk = gd._1 | |
1210 | + | let dc = gd._2 | |
1211 | + | let fl = dp(dk, dc) | |
1212 | + | if ((fl == fl)) | |
1213 | + | then (cr ++ fk) | |
1220 | 1214 | else throw("Strict value is not equal to itself.") | |
1221 | 1215 | } | |
1222 | 1216 | else throw("Strict value is not equal to itself.") | |
1223 | 1217 | } | |
1224 | 1218 | else throw("Strict value is not equal to itself.") | |
1225 | 1219 | } | |
1226 | 1220 | else throw("Strict value is not equal to itself.") | |
1227 | 1221 | } | |
1228 | 1222 | else throw("Strict value is not equal to itself.") | |
1229 | 1223 | } | |
1230 | 1224 | ||
1231 | 1225 | ||
1232 | 1226 | ||
1233 | 1227 | @Callable(dC) | |
1234 | - | func activate (gf | |
1228 | + | func activate (ge,gf) = if ((toString(dC.caller) != toString(aL))) | |
1235 | 1229 | then throw("permissions denied") | |
1236 | - | else $Tuple2([StringEntry(ac(), | |
1230 | + | else $Tuple2([StringEntry(ac(), ge), StringEntry(ad(), gf)], "success") | |
1237 | 1231 | ||
1238 | 1232 | ||
1239 | 1233 | ||
1240 | 1234 | @Callable(dC) | |
1241 | 1235 | func refreshKLp () = { | |
1242 | - | let | |
1243 | - | let | |
1236 | + | let gg = valueOrElse(getInteger(ai), 0) | |
1237 | + | let gh = if (((height - gg) >= al)) | |
1244 | 1238 | then unit | |
1245 | 1239 | else aI(makeString([toString(al), " blocks have not passed since the previous call"], "")) | |
1246 | - | if (( | |
1240 | + | if ((gh == gh)) | |
1247 | 1241 | then { | |
1248 | 1242 | let dw = valueOrErrorMessage(parseBigInt(valueOrElse(getString(this, ah), "0")), aK("invalid kLp")) | |
1249 | - | let | |
1250 | - | let | |
1251 | - | let dc = | |
1243 | + | let gi = dl(0, 0, 0) | |
1244 | + | let gj = gi._1 | |
1245 | + | let dc = gi._2 | |
1252 | 1246 | let do = if ((dw != dc)) | |
1253 | - | then | |
1247 | + | then gj | |
1254 | 1248 | else aI("nothing to refresh") | |
1255 | 1249 | $Tuple2(do, toString(dc)) | |
1256 | 1250 | } | |
1257 | 1251 | else throw("Strict value is not equal to itself.") | |
1258 | 1252 | } | |
1259 | 1253 | ||
1260 | 1254 | ||
1261 | 1255 | ||
1262 | 1256 | @Callable(dC) | |
1263 | 1257 | func getPoolConfigWrapperREADONLY () = $Tuple2(nil, aP()) | |
1264 | 1258 | ||
1265 | 1259 | ||
1266 | 1260 | ||
1267 | 1261 | @Callable(dC) | |
1268 | 1262 | func getAccBalanceWrapperREADONLY (bz) = $Tuple2(nil, by(bz)) | |
1269 | 1263 | ||
1270 | 1264 | ||
1271 | 1265 | ||
1272 | 1266 | @Callable(dC) | |
1273 | 1267 | func calcPricesWrapperREADONLY (bH,bI,bM) = { | |
1274 | 1268 | let bV = bL(bH, bI, bM) | |
1275 | 1269 | $Tuple2(nil, [toString(bV[0]), toString(bV[1]), toString(bV[2])]) | |
1276 | 1270 | } | |
1277 | 1271 | ||
1278 | 1272 | ||
1279 | 1273 | ||
1280 | 1274 | @Callable(dC) | |
1281 | 1275 | func toX18WrapperREADONLY (E,F) = $Tuple2(nil, toString(D(E, F))) | |
1282 | 1276 | ||
1283 | 1277 | ||
1284 | 1278 | ||
1285 | 1279 | @Callable(dC) | |
1286 | 1280 | func fromX18WrapperREADONLY (H,I) = $Tuple2(nil, G(parseBigIntValue(H), I)) | |
1287 | 1281 | ||
1288 | 1282 | ||
1289 | 1283 | ||
1290 | 1284 | @Callable(dC) | |
1291 | 1285 | func calcPriceBigIntWrapperREADONLY (bB,bC) = $Tuple2(nil, toString(bA(parseBigIntValue(bB), parseBigIntValue(bC)))) | |
1292 | 1286 | ||
1293 | 1287 | ||
1294 | 1288 | ||
1295 | 1289 | @Callable(dC) | |
1296 | 1290 | func estimatePutOperationWrapperREADONLY (bX,ct,cu,cv,cw,cx,Z,cy,cz) = $Tuple2(nil, cs(bX, ct, cu, cv, cw, cx, Z, cy, cz)) | |
1297 | 1291 | ||
1298 | 1292 | ||
1299 | 1293 | ||
1300 | 1294 | @Callable(dC) | |
1301 | 1295 | func estimateGetOperationWrapperREADONLY (bX,bY,bZ,Z) = { | |
1302 | 1296 | let cJ = bW(bX, bY, bZ, addressFromStringValue(Z)) | |
1303 | 1297 | $Tuple2(nil, $Tuple10(cJ._1, cJ._2, cJ._3, cJ._4, cJ._5, cJ._6, cJ._7, toString(cJ._8), cJ._9, cJ._10)) | |
1304 | 1298 | } | |
1305 | 1299 | ||
1306 | 1300 | ||
1307 | 1301 | ||
1308 | 1302 | @Callable(dC) | |
1309 | 1303 | func statsREADONLY () = { | |
1310 | 1304 | let bN = aP() | |
1311 | 1305 | let ca = fromBase58String(bN[q]) | |
1312 | - | let | |
1313 | - | let | |
1306 | + | let gk = bN[r] | |
1307 | + | let gl = bN[s] | |
1314 | 1308 | let cC = bN[v] | |
1315 | 1309 | let cD = bN[w] | |
1316 | 1310 | let bO = parseIntValue(bN[t]) | |
1317 | 1311 | let bP = parseIntValue(bN[u]) | |
1318 | - | let gn = valueOrErrorMessage(assetInfo(ca), (("Asset " + toBase58String(ca)) + " doesn't exist")).quantity | |
1312 | + | let gm = valueOrErrorMessage(assetInfo(ca), (("Asset " + toBase58String(ca)) + " doesn't exist")).quantity | |
1313 | + | let gn = by(gk) | |
1319 | 1314 | let go = by(gl) | |
1320 | - | let gp = by(gm) | |
1321 | - | let gq = if ((gn == 0)) | |
1315 | + | let gp = if ((gm == 0)) | |
1322 | 1316 | then [e, e, e] | |
1323 | - | else bL(go, | |
1317 | + | else bL(gn, go, gm) | |
1324 | 1318 | let ck = 0 | |
1325 | - | let | |
1326 | - | let | |
1327 | - | let | |
1328 | - | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d", toString(go), toString( | |
1319 | + | let gq = G(gp[1], b) | |
1320 | + | let gr = G(gp[2], b) | |
1321 | + | let gs = value(getInteger(aL, aw(toString(this)))) | |
1322 | + | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d", toString(gn), toString(go), toString(gm), toString(ck), toString(gq), toString(gr), toString(gs)], j)) | |
1329 | 1323 | } | |
1330 | 1324 | ||
1331 | 1325 | ||
1332 | 1326 | ||
1333 | 1327 | @Callable(dC) | |
1334 | 1328 | func evaluatePutByAmountAssetREADONLY (cu) = { | |
1335 | 1329 | let bN = aP() | |
1336 | 1330 | let ca = fromBase58String(bN[q]) | |
1337 | 1331 | let cA = bN[r] | |
1338 | 1332 | let cb = fromBase58String(cA) | |
1339 | 1333 | let cB = bN[s] | |
1340 | 1334 | let cc = fromBase58String(cB) | |
1341 | 1335 | let bO = parseIntValue(bN[t]) | |
1342 | 1336 | let bP = parseIntValue(bN[u]) | |
1343 | 1337 | let cd = bN[p] | |
1344 | - | let | |
1345 | - | let | |
1346 | - | let | |
1347 | - | let bJ = D( | |
1348 | - | let bK = D( | |
1349 | - | let cj = if (( | |
1338 | + | let gm = valueOrErrorMessage(assetInfo(ca), (("Asset " + toBase58String(ca)) + " doesn't exist")).quantity | |
1339 | + | let gn = by(cA) | |
1340 | + | let go = by(cB) | |
1341 | + | let bJ = D(gn, bO) | |
1342 | + | let bK = D(go, bP) | |
1343 | + | let cj = if ((gm == 0)) | |
1350 | 1344 | then e | |
1351 | 1345 | else bA(bK, bJ) | |
1352 | 1346 | let cG = D(cu, bO) | |
1353 | 1347 | let cH = fraction(cG, cj, d) | |
1354 | 1348 | let cw = G(cH, bP) | |
1355 | 1349 | let dI = cs("", 500000, cu, cb, cw, cc, "", true, false) | |
1356 | 1350 | let cR = dI._1 | |
1357 | - | let | |
1351 | + | let gt = dI._3 | |
1358 | 1352 | let cf = dI._4 | |
1359 | 1353 | let ch = dI._5 | |
1360 | 1354 | let ce = dI._6 | |
1361 | 1355 | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d", toString(cR), toString(G(cj, b)), toString(cf), toString(ch), toString(ce), cd, toString(cu), toString(cw)], j)) | |
1362 | 1356 | } | |
1363 | 1357 | ||
1364 | 1358 | ||
1365 | 1359 | ||
1366 | 1360 | @Callable(dC) | |
1367 | 1361 | func evaluatePutByPriceAssetREADONLY (cw) = { | |
1368 | 1362 | let bN = aP() | |
1369 | 1363 | let ca = fromBase58String(bN[q]) | |
1370 | 1364 | let cA = bN[r] | |
1371 | 1365 | let cb = fromBase58String(cA) | |
1372 | 1366 | let cB = bN[s] | |
1373 | 1367 | let cc = fromBase58String(cB) | |
1374 | 1368 | let bO = parseIntValue(bN[t]) | |
1375 | 1369 | let bP = parseIntValue(bN[u]) | |
1376 | 1370 | let cd = bN[p] | |
1377 | - | let | |
1378 | - | let | |
1379 | - | let | |
1380 | - | let | |
1381 | - | let | |
1382 | - | let cj = if (( | |
1371 | + | let gm = valueOrErrorMessage(assetInfo(ca), (("Asset " + toBase58String(ca)) + " doesn't exist")).quantity | |
1372 | + | let gu = by(cA) | |
1373 | + | let gv = by(cB) | |
1374 | + | let gw = D(gu, bO) | |
1375 | + | let gx = D(gv, bP) | |
1376 | + | let cj = if ((gm == 0)) | |
1383 | 1377 | then e | |
1384 | - | else bA( | |
1378 | + | else bA(gx, gw) | |
1385 | 1379 | let cH = D(cw, bP) | |
1386 | 1380 | let cG = fraction(cH, d, cj) | |
1387 | 1381 | let cu = G(cG, bO) | |
1388 | 1382 | let dI = cs("", 500000, cu, cb, cw, cc, "", true, false) | |
1389 | 1383 | let cR = dI._1 | |
1390 | - | let | |
1384 | + | let gt = dI._3 | |
1391 | 1385 | let cf = dI._4 | |
1392 | 1386 | let ch = dI._5 | |
1393 | 1387 | let ce = dI._6 | |
1394 | 1388 | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d", toString(cR), toString(G(cj, b)), toString(cf), toString(ch), toString(ce), cd, toString(cu), toString(cw)], j)) | |
1395 | 1389 | } | |
1396 | 1390 | ||
1397 | 1391 | ||
1398 | 1392 | ||
1399 | 1393 | @Callable(dC) | |
1400 | - | func evaluateGetREADONLY (gz | |
1401 | - | let cJ = bW("", | |
1394 | + | func evaluateGetREADONLY (gy,gz) = { | |
1395 | + | let cJ = bW("", gy, gz, this) | |
1402 | 1396 | let cp = cJ._1 | |
1403 | 1397 | let cq = cJ._2 | |
1404 | 1398 | let cf = cJ._5 | |
1405 | 1399 | let ch = cJ._6 | |
1406 | 1400 | let ce = cJ._7 | |
1407 | 1401 | let ck = cJ._8 | |
1408 | 1402 | let cd = parseIntValue(cJ._9) | |
1409 | 1403 | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d", toString(cp), toString(cq), toString(cf), toString(ch), toString(ce), toString(ck), toString(cd)], j)) | |
1410 | 1404 | } | |
1411 | 1405 | ||
1412 | 1406 | ||
1413 | - | @Verifier( | |
1414 | - | func | |
1415 | - | let | |
1416 | - | let dN = | |
1407 | + | @Verifier(gA) | |
1408 | + | func gB () = { | |
1409 | + | let gC = { | |
1410 | + | let dN = eP() | |
1417 | 1411 | if ($isInstanceOf(dN, "ByteVector")) | |
1418 | 1412 | then { | |
1419 | - | let | |
1420 | - | | |
1413 | + | let eT = dN | |
1414 | + | eT | |
1421 | 1415 | } | |
1422 | 1416 | else if ($isInstanceOf(dN, "Unit")) | |
1423 | - | then | |
1417 | + | then gA.senderPublicKey | |
1424 | 1418 | else throw("Match error") | |
1425 | 1419 | } | |
1426 | - | let dN = | |
1420 | + | let dN = gA | |
1427 | 1421 | if ($isInstanceOf(dN, "Order")) | |
1428 | 1422 | then { | |
1429 | 1423 | let ds = dN | |
1430 | - | let | |
1424 | + | let gD = aO() | |
1431 | 1425 | let aB = dr(ds) | |
1432 | 1426 | let aC = sigVerify(ds.bodyBytes, ds.proofs[0], ds.senderPublicKey) | |
1433 | - | let aD = sigVerify(ds.bodyBytes, ds.proofs[1], | |
1427 | + | let aD = sigVerify(ds.bodyBytes, ds.proofs[1], gD) | |
1434 | 1428 | if (if (if (aB) | |
1435 | 1429 | then aC | |
1436 | 1430 | else false) | |
1437 | 1431 | then aD | |
1438 | 1432 | else false) | |
1439 | 1433 | then true | |
1440 | 1434 | else aA(aB, aC, aD) | |
1441 | 1435 | } | |
1442 | 1436 | else if ($isInstanceOf(dN, "SetScriptTransaction")) | |
1443 | 1437 | then { | |
1444 | - | let | |
1445 | - | let | |
1446 | - | let | |
1447 | - | let | |
1448 | - | if (if (( | |
1449 | - | then ( | |
1438 | + | let eQ = dN | |
1439 | + | let gE = blake2b256(value(eQ.script)) | |
1440 | + | let gF = fromBase64String(value(getString(aL, ay()))) | |
1441 | + | let gG = scriptHash(this) | |
1442 | + | if (if ((gF == gE)) | |
1443 | + | then (gG != gE) | |
1450 | 1444 | else false) | |
1451 | 1445 | then true | |
1452 | - | else sigVerify( | |
1446 | + | else sigVerify(gA.bodyBytes, gA.proofs[0], gC) | |
1453 | 1447 | } | |
1454 | - | else sigVerify( | |
1448 | + | else sigVerify(gA.bodyBytes, gA.proofs[0], gC) | |
1455 | 1449 | } | |
1456 | 1450 |
github/deemru/w8io/026f985 319.40 ms ◑