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