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