tx · FFkVGLKmtEr2dZwZjDWxH1bf3z5389NLVd6QAAjZt9k8 3N3LtGiBDqDjfHpd7WnTCTKXB3gPWqUrDLL: -0.03500000 Waves 2022.12.07 12:11 [2349728] smart account 3N3LtGiBDqDjfHpd7WnTCTKXB3gPWqUrDLL > SELF 0.00000000 Waves
{ "type": 13, "id": "FFkVGLKmtEr2dZwZjDWxH1bf3z5389NLVd6QAAjZt9k8", "fee": 3500000, "feeAssetId": null, "timestamp": 1670404292411, "version": 1, "sender": "3N3LtGiBDqDjfHpd7WnTCTKXB3gPWqUrDLL", "senderPublicKey": "3wnnbmrpP3X4LxULFVHTeu7zNZBzFV7NSxRokwryVFaJ", "proofs": [ "4rpW27TJaDtzTdfwHSA5yd5fT7TdK6Aib4YfP8AteBcoAXZM1pWWEixboexnYtM2qoD9WuWF88HXGrx5Hth6vzS7" ], "script": "base64:BgLfLAgCEgMKAQgSABIECgIBBBIDCgEBEgQKAgEEEgQKAggBEgQKAggBEgQKAggBEgUKAwEIARIAEgQKAgEBEgMKAQESBQoDAQEBEgQKAggIEgASABIDCgEIEgUKAwEBARIECgIBARIECgIIARIECgIICBILCgkIAQECAQIIBAQSBgoECAgBCBIAEgMKAQESAwoBARIECgIIASIKbFBkZWNpbWFscyIGc2NhbGU4IgxzY2FsZThCaWdJbnQiB3NjYWxlMTgiCnplcm9CaWdJbnQiBGJpZzAiBGJpZzEiBGJpZzIiC3dhdmVzU3RyaW5nIgNTRVAiClBvb2xBY3RpdmUiD1Bvb2xQdXREaXNhYmxlZCITUG9vbE1hdGNoZXJEaXNhYmxlZCIMUG9vbFNodXRkb3duIg5pZHhQb29sQWRkcmVzcyINaWR4UG9vbFN0YXR1cyIQaWR4UG9vbExQQXNzZXRJZCINaWR4QW10QXNzZXRJZCIPaWR4UHJpY2VBc3NldElkIg5pZHhBbXRBc3NldERjbSIQaWR4UHJpY2VBc3NldERjbSIOaWR4SUFtdEFzc2V0SWQiEGlkeElQcmljZUFzc2V0SWQiDWlkeEx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kcAlib2R5Qnl0ZXMJAJEDAggFAmRwBnByb29mcwAACAUCZHAPc2VuZGVyUHVibGljS2V5BAJhQgkA9AMDCAUCZHAJYm9keUJ5dGVzCQCRAwIIBQJkcAZwcm9vZnMAAQUCZ0IDAwMFAmF6BQJhQQcFAmFCBwYJAQJheQMFAmF6BQJhQQUCYUIDCQABAgUCZEsCFFNldFNjcmlwdFRyYW5zYWN0aW9uBAJlTgUCZEsEAmdDCQD2AwEJAQV2YWx1ZQEIBQJlTgZzY3JpcHQEAmdECQDbBAEJAQV2YWx1ZQEJAJ0IAgUCYUoJAQJhdwAEAmdFCQDxBwEFBHRoaXMDAwkAAAIFAmdEBQJnQwkBAiE9AgUCZ0UFAmdDBwYJAPQDAwgFAmd5CWJvZHlCeXRlcwkAkQMCCAUCZ3kGcHJvb2ZzAAAFAmdBCQD0AwMIBQJneQlib2R5Qnl0ZXMJAJEDAggFAmd5BnByb29mcwAABQJnQdQ0z6o=", "chainId": 84, "height": 2349728, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: EXCwMSX5uSZXWQke8vkJF9a3xHanX6FDndsuC7eHzMAQ Next: Fvnr9wBFt3FteBcamPquTDymJPjXgeghtEhcwiinL2Q8 Diff:
Old | New | Differences | |
---|---|---|---|
754 | 754 | let fg = di(0, 0, 0) | |
755 | 755 | let fh = fg._1 | |
756 | 756 | let cZ = fg._2 | |
757 | - | let fi = dm(dh, cZ) | |
757 | + | let de = (toBigInt(bw(aS(ba))) - dD) | |
758 | + | let df = (toBigInt(bw(aS(bb))) - dE) | |
759 | + | let dg = toBigInt(value(assetInfo(aZ)).quantity) | |
760 | + | let fi = aG(makeString([toString(de), toString(df), toString(dg), toString(dh), toString(cZ)], " ")) | |
758 | 761 | if ((fi == fi)) | |
759 | - | then ((co ++ fe) ++ fh) | |
762 | + | then { | |
763 | + | let fj = dm(dh, cZ) | |
764 | + | if ((fj == fj)) | |
765 | + | then ((co ++ fe) ++ fh) | |
766 | + | else throw("Strict value is not equal to itself.") | |
767 | + | } | |
760 | 768 | else throw("Strict value is not equal to itself.") | |
761 | 769 | } | |
762 | 770 | else throw("Strict value is not equal to itself.") | |
773 | 781 | ||
774 | 782 | ||
775 | 783 | @Callable(dz) | |
776 | - | func putForFree ( | |
784 | + | func putForFree (fk) = if ((0 > fk)) | |
777 | 785 | then throw("Invalid value passed") | |
778 | 786 | else { | |
779 | - | let dF = dC(dz, | |
787 | + | let dF = dC(dz, fk, false) | |
780 | 788 | let co = dF._9 | |
781 | 789 | let dD = toBigInt(value(dz.payments[0]).amount) | |
782 | 790 | let dE = toBigInt(value(dz.payments[1]).amount) | |
783 | 791 | let dh = da(dD, dE, toBigInt(0)) | |
784 | 792 | if ((dh == dh)) | |
785 | 793 | then { | |
786 | - | let | |
787 | - | let fh = | |
788 | - | let cZ = | |
789 | - | let | |
790 | - | if (( | |
794 | + | let fl = di(0, 0, 0) | |
795 | + | let fh = fl._1 | |
796 | + | let cZ = fl._2 | |
797 | + | let fj = dm(dh, cZ) | |
798 | + | if ((fj == fj)) | |
791 | 799 | then (co ++ fh) | |
792 | 800 | else throw("Strict value is not equal to itself.") | |
793 | 801 | } | |
797 | 805 | ||
798 | 806 | ||
799 | 807 | @Callable(dz) | |
800 | - | func putOneTkn ( | |
801 | - | let | |
802 | - | let | |
803 | - | if ($isInstanceOf( | |
804 | - | then | |
805 | - | else throw(($getType( | |
808 | + | func putOneTkn (fm,fn) = { | |
809 | + | let fo = { | |
810 | + | let fp = invoke(aJ, "isPoolOneTokenOperationsDisabledREADONLY", [toString(this)], nil) | |
811 | + | if ($isInstanceOf(fp, "Boolean")) | |
812 | + | then fp | |
813 | + | else throw(($getType(fp) + " couldn't be cast to Boolean")) | |
806 | 814 | } | |
807 | - | let | |
815 | + | let fq = if (if (if (aL()) | |
808 | 816 | then true | |
809 | 817 | else (aY == l)) | |
810 | 818 | then true | |
811 | 819 | else (aY == n)) | |
812 | 820 | then true | |
813 | - | else | |
814 | - | let ev = [if (if (!( | |
821 | + | else fo | |
822 | + | let ev = [if (if (!(fq)) | |
815 | 823 | then true | |
816 | 824 | else eP(dz)) | |
817 | 825 | then true | |
820 | 828 | else aG("exactly 1 payment are expected")] | |
821 | 829 | if ((ev == ev)) | |
822 | 830 | then { | |
823 | - | let | |
824 | - | let dQ = | |
825 | - | let dP = | |
831 | + | let fr = dz.payments[0] | |
832 | + | let dQ = fr.assetId | |
833 | + | let dP = fr.amount | |
826 | 834 | let dh = if ((dQ == ba)) | |
827 | 835 | then da(toBigInt(dP), toBigInt(0), toBigInt(0)) | |
828 | 836 | else if ((dQ == bb)) | |
830 | 838 | else aG("payment asset is not supported") | |
831 | 839 | let X = dz.caller | |
832 | 840 | let Y = dz.transactionId | |
833 | - | let | |
834 | - | if (( | |
841 | + | let fs = dO(dP, dQ, X, Y) | |
842 | + | if ((fs == fs)) | |
835 | 843 | then { | |
836 | - | let dU = | |
837 | - | let | |
838 | - | let dN = | |
839 | - | let cV = | |
840 | - | let | |
841 | - | let | |
842 | - | then ( | |
844 | + | let dU = fs._5 | |
845 | + | let ft = fs._4 | |
846 | + | let dN = fs._3 | |
847 | + | let cV = fs._2 | |
848 | + | let fu = fs._1 | |
849 | + | let fv = if (if ((fm > 0)) | |
850 | + | then (fm > fu) | |
843 | 851 | else false) | |
844 | - | then aG(makeString(["amount to receive is less than ", toString( | |
845 | - | else | |
846 | - | let dI = dG( | |
852 | + | then aG(makeString(["amount to receive is less than ", toString(fm)], "")) | |
853 | + | else fu | |
854 | + | let dI = dG(fv) | |
847 | 855 | if ((dI == dI)) | |
848 | 856 | then { | |
849 | - | let fe = if ( | |
857 | + | let fe = if (fn) | |
850 | 858 | then { | |
851 | - | let | |
852 | - | if (( | |
859 | + | let fw = invoke(bf, "stake", nil, [AttachedPayment(aZ, fv)]) | |
860 | + | if ((fw == fw)) | |
853 | 861 | then nil | |
854 | 862 | else throw("Strict value is not equal to itself.") | |
855 | 863 | } | |
856 | - | else [ScriptTransfer(dz.caller, | |
857 | - | let | |
864 | + | else [ScriptTransfer(dz.caller, fv, aZ)] | |
865 | + | let fx = if ((dN > 0)) | |
858 | 866 | then [ScriptTransfer(aK, dN, dQ)] | |
859 | 867 | else nil | |
860 | - | let | |
868 | + | let fy = if ((this == aK)) | |
861 | 869 | then $Tuple2(0, 0) | |
862 | 870 | else if (dU) | |
863 | 871 | then $Tuple2(-(dN), 0) | |
864 | 872 | else $Tuple2(0, -(dN)) | |
865 | - | let dj = | |
866 | - | let dk = | |
867 | - | let | |
868 | - | let fh = | |
869 | - | let cZ = | |
873 | + | let dj = fy._1 | |
874 | + | let dk = fy._2 | |
875 | + | let fz = di(dj, dk, 0) | |
876 | + | let fh = fz._1 | |
877 | + | let cZ = fz._2 | |
870 | 878 | let dt = value(getString(af)) | |
871 | - | let fz = aG(makeString([toString(dj), toString(dk), dt, toString(dh), toString(cZ)], " ")) | |
872 | - | if ((fz == fz)) | |
873 | - | then { | |
874 | - | let fi = dm(dh, cZ) | |
875 | - | if ((fi == fi)) | |
876 | - | then $Tuple2((((cV ++ fe) ++ fw) ++ fh), fu) | |
877 | - | else throw("Strict value is not equal to itself.") | |
878 | - | } | |
879 | + | let fj = dm(dh, cZ) | |
880 | + | if ((fj == fj)) | |
881 | + | then $Tuple2((((cV ++ fe) ++ fx) ++ fh), fv) | |
879 | 882 | else throw("Strict value is not equal to itself.") | |
880 | 883 | } | |
881 | 884 | else throw("Strict value is not equal to itself.") | |
890 | 893 | @Callable(dz) | |
891 | 894 | func putOneTknREADONLY (dQ,dP) = { | |
892 | 895 | let fA = dO(dP, aQ(dQ), unit, unit) | |
893 | - | let | |
896 | + | let fu = fA._1 | |
894 | 897 | let cV = fA._2 | |
895 | 898 | let dN = fA._3 | |
896 | - | let | |
899 | + | let ft = fA._4 | |
897 | 900 | let dU = fA._5 | |
898 | - | $Tuple2(nil, $Tuple3( | |
901 | + | $Tuple2(nil, $Tuple3(fu, dN, ft)) | |
899 | 902 | } | |
900 | 903 | ||
901 | 904 | ||
902 | 905 | ||
903 | 906 | @Callable(dz) | |
904 | - | func getOneTkn (fB, | |
905 | - | let | |
906 | - | let | |
907 | - | if ($isInstanceOf( | |
908 | - | then | |
909 | - | else throw(($getType( | |
907 | + | func getOneTkn (fB,fm) = { | |
908 | + | let fo = { | |
909 | + | let fp = invoke(aJ, "isPoolOneTokenOperationsDisabledREADONLY", [toString(this)], nil) | |
910 | + | if ($isInstanceOf(fp, "Boolean")) | |
911 | + | then fp | |
912 | + | else throw(($getType(fp) + " couldn't be cast to Boolean")) | |
910 | 913 | } | |
911 | 914 | let fC = if (if (aL()) | |
912 | 915 | then true | |
913 | 916 | else (aY == n)) | |
914 | 917 | then true | |
915 | - | else | |
918 | + | else fo | |
916 | 919 | let ev = [if (if (!(fC)) | |
917 | 920 | then true | |
918 | 921 | else eP(dz)) | |
923 | 926 | if ((ev == ev)) | |
924 | 927 | then { | |
925 | 928 | let eu = aQ(fB) | |
926 | - | let | |
927 | - | let dQ = | |
928 | - | let ec = | |
929 | + | let fr = dz.payments[0] | |
930 | + | let dQ = fr.assetId | |
931 | + | let ec = fr.amount | |
929 | 932 | let dh = da(toBigInt(0), toBigInt(0), toBigInt(ec)) | |
930 | 933 | let X = dz.caller | |
931 | 934 | let Y = dz.transactionId | |
933 | 936 | if ((fD == fD)) | |
934 | 937 | then { | |
935 | 938 | let ew = fD._5 | |
936 | - | let | |
939 | + | let ft = fD._4 | |
937 | 940 | let dN = fD._3 | |
938 | 941 | let cV = fD._2 | |
939 | 942 | let fE = fD._1 | |
940 | - | let dH = if (if (( | |
941 | - | then ( | |
943 | + | let dH = if (if ((fm > 0)) | |
944 | + | then (fm > fE) | |
942 | 945 | else false) | |
943 | - | then aG(makeString(["amount to receive is less than ", toString( | |
946 | + | then aG(makeString(["amount to receive is less than ", toString(fm)], "")) | |
944 | 947 | else fE | |
945 | 948 | let fF = invoke(aJ, "burn", [ec], [AttachedPayment(dQ, ec)]) | |
946 | 949 | if ((fF == fF)) | |
947 | 950 | then { | |
948 | 951 | let fG = [ScriptTransfer(X, dH, eu)] | |
949 | - | let | |
952 | + | let fx = if ((dN > 0)) | |
950 | 953 | then [ScriptTransfer(aK, dN, eu)] | |
951 | 954 | else nil | |
952 | 955 | let fH = { | |
962 | 965 | let fJ = di(dj, dk, 0) | |
963 | 966 | let fh = fJ._1 | |
964 | 967 | let cZ = fJ._2 | |
965 | - | let | |
966 | - | if (( | |
967 | - | then $Tuple2((((cV ++ fG) ++ | |
968 | + | let fj = dm(dh, cZ) | |
969 | + | if ((fj == fj)) | |
970 | + | then $Tuple2((((cV ++ fG) ++ fx) ++ fh), dH) | |
968 | 971 | else throw("Strict value is not equal to itself.") | |
969 | 972 | } | |
970 | 973 | else throw("Strict value is not equal to itself.") | |
982 | 985 | let fE = fK._1 | |
983 | 986 | let cV = fK._2 | |
984 | 987 | let dN = fK._3 | |
985 | - | let | |
988 | + | let ft = fK._4 | |
986 | 989 | let ew = fK._5 | |
987 | - | $Tuple2(nil, $Tuple3(fE, dN, | |
990 | + | $Tuple2(nil, $Tuple3(fE, dN, ft)) | |
988 | 991 | } | |
989 | 992 | ||
990 | 993 | ||
991 | 994 | ||
992 | 995 | @Callable(dz) | |
993 | - | func unstakeAndGetOneTkn (fL,fB, | |
994 | - | let | |
995 | - | let | |
996 | - | if ($isInstanceOf( | |
997 | - | then | |
998 | - | else throw(($getType( | |
996 | + | func unstakeAndGetOneTkn (fL,fB,fm) = { | |
997 | + | let fo = { | |
998 | + | let fp = invoke(aJ, "isPoolOneTokenOperationsDisabledREADONLY", [toString(this)], nil) | |
999 | + | if ($isInstanceOf(fp, "Boolean")) | |
1000 | + | then fp | |
1001 | + | else throw(($getType(fp) + " couldn't be cast to Boolean")) | |
999 | 1002 | } | |
1000 | 1003 | let fC = if (if (aL()) | |
1001 | 1004 | then true | |
1002 | 1005 | else (aY == n)) | |
1003 | 1006 | then true | |
1004 | - | else | |
1007 | + | else fo | |
1005 | 1008 | let ev = [if (if (!(fC)) | |
1006 | 1009 | then true | |
1007 | 1010 | else eP(dz)) | |
1022 | 1025 | if ((fN == fN)) | |
1023 | 1026 | then { | |
1024 | 1027 | let ew = fN._5 | |
1025 | - | let | |
1028 | + | let ft = fN._4 | |
1026 | 1029 | let dN = fN._3 | |
1027 | 1030 | let cV = fN._2 | |
1028 | 1031 | let fE = fN._1 | |
1029 | - | let dH = if (if (( | |
1030 | - | then ( | |
1032 | + | let dH = if (if ((fm > 0)) | |
1033 | + | then (fm > fE) | |
1031 | 1034 | else false) | |
1032 | - | then aG(makeString(["amount to receive is less than ", toString( | |
1035 | + | then aG(makeString(["amount to receive is less than ", toString(fm)], "")) | |
1033 | 1036 | else fE | |
1034 | 1037 | let fF = invoke(aJ, "burn", [fL], [AttachedPayment(aZ, fL)]) | |
1035 | 1038 | if ((fF == fF)) | |
1036 | 1039 | then { | |
1037 | 1040 | let fG = [ScriptTransfer(dz.caller, dH, eu)] | |
1038 | - | let | |
1041 | + | let fx = if ((dN > 0)) | |
1039 | 1042 | then [ScriptTransfer(aK, dN, eu)] | |
1040 | 1043 | else nil | |
1041 | 1044 | let fO = { | |
1051 | 1054 | let fP = di(dj, dk, 0) | |
1052 | 1055 | let fh = fP._1 | |
1053 | 1056 | let cZ = fP._2 | |
1054 | - | let | |
1055 | - | if (( | |
1056 | - | then $Tuple2((((cV ++ fG) ++ | |
1057 | + | let fj = dm(dh, cZ) | |
1058 | + | if ((fj == fj)) | |
1059 | + | then $Tuple2((((cV ++ fG) ++ fx) ++ fh), dH) | |
1057 | 1060 | else throw("Strict value is not equal to itself.") | |
1058 | 1061 | } | |
1059 | 1062 | else throw("Strict value is not equal to itself.") | |
1082 | 1085 | let fS = di(-(fQ), -(cn), 0) | |
1083 | 1086 | let fh = fS._1 | |
1084 | 1087 | let cZ = fS._2 | |
1085 | - | let | |
1086 | - | if (( | |
1088 | + | let fj = dm(dh, cZ) | |
1089 | + | if ((fj == fj)) | |
1087 | 1090 | then (co ++ fh) | |
1088 | 1091 | else throw("Strict value is not equal to itself.") | |
1089 | 1092 | } | |
1112 | 1115 | let fV = di(-(cm), -(cn), 0) | |
1113 | 1116 | let fh = fV._1 | |
1114 | 1117 | let cZ = fV._2 | |
1115 | - | let | |
1116 | - | if (( | |
1118 | + | let fj = dm(dh, cZ) | |
1119 | + | if ((fj == fj)) | |
1117 | 1120 | then (co ++ fh) | |
1118 | 1121 | else throw("Strict value is not equal to itself.") | |
1119 | 1122 | } | |
1154 | 1157 | let fY = di(-(cm), -(cn), 0) | |
1155 | 1158 | let fh = fY._1 | |
1156 | 1159 | let cZ = fY._2 | |
1157 | - | let | |
1158 | - | if (( | |
1160 | + | let fj = dm(dh, cZ) | |
1161 | + | if ((fj == fj)) | |
1159 | 1162 | then (co ++ fh) | |
1160 | 1163 | else throw("Strict value is not equal to itself.") | |
1161 | 1164 | } | |
1203 | 1206 | let gb = di(-(cm), -(cn), 0) | |
1204 | 1207 | let fh = gb._1 | |
1205 | 1208 | let cZ = gb._2 | |
1206 | - | let | |
1207 | - | if (( | |
1209 | + | let fj = dm(dh, cZ) | |
1210 | + | if ((fj == fj)) | |
1208 | 1211 | then (co ++ fh) | |
1209 | 1212 | else throw("Strict value is not equal to itself.") | |
1210 | 1213 | } |
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, 18, 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 | 719 | let dh = da(dD, dE, toBigInt(0)) | |
720 | 720 | if ((dh == dh)) | |
721 | 721 | then { | |
722 | 722 | let dI = invoke(aJ, "emit", [cS], nil) | |
723 | 723 | if ((dI == dI)) | |
724 | 724 | then { | |
725 | 725 | let dJ = { | |
726 | 726 | let dK = dI | |
727 | 727 | if ($isInstanceOf(dK, "Address")) | |
728 | 728 | then { | |
729 | 729 | let dL = dK | |
730 | 730 | invoke(dL, "emit", [cS], nil) | |
731 | 731 | } | |
732 | 732 | else unit | |
733 | 733 | } | |
734 | 734 | if ((dJ == dJ)) | |
735 | 735 | then { | |
736 | 736 | let fc = if ((cT > 0)) | |
737 | 737 | then invoke(bg, "put", nil, [AttachedPayment(fa, cT)]) | |
738 | 738 | else nil | |
739 | 739 | if ((fc == fc)) | |
740 | 740 | then { | |
741 | 741 | let fd = if ((cU > 0)) | |
742 | 742 | then invoke(bg, "put", nil, [AttachedPayment(fb, cU)]) | |
743 | 743 | else nil | |
744 | 744 | if ((fd == fd)) | |
745 | 745 | then { | |
746 | 746 | let fe = if (eZ) | |
747 | 747 | then { | |
748 | 748 | let ff = invoke(bf, "stake", nil, [AttachedPayment(bX, cS)]) | |
749 | 749 | if ((ff == ff)) | |
750 | 750 | then nil | |
751 | 751 | else throw("Strict value is not equal to itself.") | |
752 | 752 | } | |
753 | 753 | else [ScriptTransfer(dz.caller, cS, bX)] | |
754 | 754 | let fg = di(0, 0, 0) | |
755 | 755 | let fh = fg._1 | |
756 | 756 | let cZ = fg._2 | |
757 | - | let fi = dm(dh, cZ) | |
757 | + | let de = (toBigInt(bw(aS(ba))) - dD) | |
758 | + | let df = (toBigInt(bw(aS(bb))) - dE) | |
759 | + | let dg = toBigInt(value(assetInfo(aZ)).quantity) | |
760 | + | let fi = aG(makeString([toString(de), toString(df), toString(dg), toString(dh), toString(cZ)], " ")) | |
758 | 761 | if ((fi == fi)) | |
759 | - | then ((co ++ fe) ++ fh) | |
762 | + | then { | |
763 | + | let fj = dm(dh, cZ) | |
764 | + | if ((fj == fj)) | |
765 | + | then ((co ++ fe) ++ fh) | |
766 | + | else throw("Strict value is not equal to itself.") | |
767 | + | } | |
760 | 768 | else throw("Strict value is not equal to itself.") | |
761 | 769 | } | |
762 | 770 | else throw("Strict value is not equal to itself.") | |
763 | 771 | } | |
764 | 772 | else throw("Strict value is not equal to itself.") | |
765 | 773 | } | |
766 | 774 | else throw("Strict value is not equal to itself.") | |
767 | 775 | } | |
768 | 776 | else throw("Strict value is not equal to itself.") | |
769 | 777 | } | |
770 | 778 | else throw("Strict value is not equal to itself.") | |
771 | 779 | } | |
772 | 780 | ||
773 | 781 | ||
774 | 782 | ||
775 | 783 | @Callable(dz) | |
776 | - | func putForFree ( | |
784 | + | func putForFree (fk) = if ((0 > fk)) | |
777 | 785 | then throw("Invalid value passed") | |
778 | 786 | else { | |
779 | - | let dF = dC(dz, | |
787 | + | let dF = dC(dz, fk, false) | |
780 | 788 | let co = dF._9 | |
781 | 789 | let dD = toBigInt(value(dz.payments[0]).amount) | |
782 | 790 | let dE = toBigInt(value(dz.payments[1]).amount) | |
783 | 791 | let dh = da(dD, dE, toBigInt(0)) | |
784 | 792 | if ((dh == dh)) | |
785 | 793 | then { | |
786 | - | let | |
787 | - | let fh = | |
788 | - | let cZ = | |
789 | - | let | |
790 | - | if (( | |
794 | + | let fl = di(0, 0, 0) | |
795 | + | let fh = fl._1 | |
796 | + | let cZ = fl._2 | |
797 | + | let fj = dm(dh, cZ) | |
798 | + | if ((fj == fj)) | |
791 | 799 | then (co ++ fh) | |
792 | 800 | else throw("Strict value is not equal to itself.") | |
793 | 801 | } | |
794 | 802 | else throw("Strict value is not equal to itself.") | |
795 | 803 | } | |
796 | 804 | ||
797 | 805 | ||
798 | 806 | ||
799 | 807 | @Callable(dz) | |
800 | - | func putOneTkn ( | |
801 | - | let | |
802 | - | let | |
803 | - | if ($isInstanceOf( | |
804 | - | then | |
805 | - | else throw(($getType( | |
808 | + | func putOneTkn (fm,fn) = { | |
809 | + | let fo = { | |
810 | + | let fp = invoke(aJ, "isPoolOneTokenOperationsDisabledREADONLY", [toString(this)], nil) | |
811 | + | if ($isInstanceOf(fp, "Boolean")) | |
812 | + | then fp | |
813 | + | else throw(($getType(fp) + " couldn't be cast to Boolean")) | |
806 | 814 | } | |
807 | - | let | |
815 | + | let fq = if (if (if (aL()) | |
808 | 816 | then true | |
809 | 817 | else (aY == l)) | |
810 | 818 | then true | |
811 | 819 | else (aY == n)) | |
812 | 820 | then true | |
813 | - | else | |
814 | - | let ev = [if (if (!( | |
821 | + | else fo | |
822 | + | let ev = [if (if (!(fq)) | |
815 | 823 | then true | |
816 | 824 | else eP(dz)) | |
817 | 825 | then true | |
818 | 826 | else aG("put operation is blocked by admin"), if ((size(dz.payments) == 1)) | |
819 | 827 | then true | |
820 | 828 | else aG("exactly 1 payment are expected")] | |
821 | 829 | if ((ev == ev)) | |
822 | 830 | then { | |
823 | - | let | |
824 | - | let dQ = | |
825 | - | let dP = | |
831 | + | let fr = dz.payments[0] | |
832 | + | let dQ = fr.assetId | |
833 | + | let dP = fr.amount | |
826 | 834 | let dh = if ((dQ == ba)) | |
827 | 835 | then da(toBigInt(dP), toBigInt(0), toBigInt(0)) | |
828 | 836 | else if ((dQ == bb)) | |
829 | 837 | then da(toBigInt(0), toBigInt(dP), toBigInt(0)) | |
830 | 838 | else aG("payment asset is not supported") | |
831 | 839 | let X = dz.caller | |
832 | 840 | let Y = dz.transactionId | |
833 | - | let | |
834 | - | if (( | |
841 | + | let fs = dO(dP, dQ, X, Y) | |
842 | + | if ((fs == fs)) | |
835 | 843 | then { | |
836 | - | let dU = | |
837 | - | let | |
838 | - | let dN = | |
839 | - | let cV = | |
840 | - | let | |
841 | - | let | |
842 | - | then ( | |
844 | + | let dU = fs._5 | |
845 | + | let ft = fs._4 | |
846 | + | let dN = fs._3 | |
847 | + | let cV = fs._2 | |
848 | + | let fu = fs._1 | |
849 | + | let fv = if (if ((fm > 0)) | |
850 | + | then (fm > fu) | |
843 | 851 | else false) | |
844 | - | then aG(makeString(["amount to receive is less than ", toString( | |
845 | - | else | |
846 | - | let dI = dG( | |
852 | + | then aG(makeString(["amount to receive is less than ", toString(fm)], "")) | |
853 | + | else fu | |
854 | + | let dI = dG(fv) | |
847 | 855 | if ((dI == dI)) | |
848 | 856 | then { | |
849 | - | let fe = if ( | |
857 | + | let fe = if (fn) | |
850 | 858 | then { | |
851 | - | let | |
852 | - | if (( | |
859 | + | let fw = invoke(bf, "stake", nil, [AttachedPayment(aZ, fv)]) | |
860 | + | if ((fw == fw)) | |
853 | 861 | then nil | |
854 | 862 | else throw("Strict value is not equal to itself.") | |
855 | 863 | } | |
856 | - | else [ScriptTransfer(dz.caller, | |
857 | - | let | |
864 | + | else [ScriptTransfer(dz.caller, fv, aZ)] | |
865 | + | let fx = if ((dN > 0)) | |
858 | 866 | then [ScriptTransfer(aK, dN, dQ)] | |
859 | 867 | else nil | |
860 | - | let | |
868 | + | let fy = if ((this == aK)) | |
861 | 869 | then $Tuple2(0, 0) | |
862 | 870 | else if (dU) | |
863 | 871 | then $Tuple2(-(dN), 0) | |
864 | 872 | else $Tuple2(0, -(dN)) | |
865 | - | let dj = | |
866 | - | let dk = | |
867 | - | let | |
868 | - | let fh = | |
869 | - | let cZ = | |
873 | + | let dj = fy._1 | |
874 | + | let dk = fy._2 | |
875 | + | let fz = di(dj, dk, 0) | |
876 | + | let fh = fz._1 | |
877 | + | let cZ = fz._2 | |
870 | 878 | let dt = value(getString(af)) | |
871 | - | let fz = aG(makeString([toString(dj), toString(dk), dt, toString(dh), toString(cZ)], " ")) | |
872 | - | if ((fz == fz)) | |
873 | - | then { | |
874 | - | let fi = dm(dh, cZ) | |
875 | - | if ((fi == fi)) | |
876 | - | then $Tuple2((((cV ++ fe) ++ fw) ++ fh), fu) | |
877 | - | else throw("Strict value is not equal to itself.") | |
878 | - | } | |
879 | + | let fj = dm(dh, cZ) | |
880 | + | if ((fj == fj)) | |
881 | + | then $Tuple2((((cV ++ fe) ++ fx) ++ fh), fv) | |
879 | 882 | else throw("Strict value is not equal to itself.") | |
880 | 883 | } | |
881 | 884 | else throw("Strict value is not equal to itself.") | |
882 | 885 | } | |
883 | 886 | else throw("Strict value is not equal to itself.") | |
884 | 887 | } | |
885 | 888 | else throw("Strict value is not equal to itself.") | |
886 | 889 | } | |
887 | 890 | ||
888 | 891 | ||
889 | 892 | ||
890 | 893 | @Callable(dz) | |
891 | 894 | func putOneTknREADONLY (dQ,dP) = { | |
892 | 895 | let fA = dO(dP, aQ(dQ), unit, unit) | |
893 | - | let | |
896 | + | let fu = fA._1 | |
894 | 897 | let cV = fA._2 | |
895 | 898 | let dN = fA._3 | |
896 | - | let | |
899 | + | let ft = fA._4 | |
897 | 900 | let dU = fA._5 | |
898 | - | $Tuple2(nil, $Tuple3( | |
901 | + | $Tuple2(nil, $Tuple3(fu, dN, ft)) | |
899 | 902 | } | |
900 | 903 | ||
901 | 904 | ||
902 | 905 | ||
903 | 906 | @Callable(dz) | |
904 | - | func getOneTkn (fB, | |
905 | - | let | |
906 | - | let | |
907 | - | if ($isInstanceOf( | |
908 | - | then | |
909 | - | else throw(($getType( | |
907 | + | func getOneTkn (fB,fm) = { | |
908 | + | let fo = { | |
909 | + | let fp = invoke(aJ, "isPoolOneTokenOperationsDisabledREADONLY", [toString(this)], nil) | |
910 | + | if ($isInstanceOf(fp, "Boolean")) | |
911 | + | then fp | |
912 | + | else throw(($getType(fp) + " couldn't be cast to Boolean")) | |
910 | 913 | } | |
911 | 914 | let fC = if (if (aL()) | |
912 | 915 | then true | |
913 | 916 | else (aY == n)) | |
914 | 917 | then true | |
915 | - | else | |
918 | + | else fo | |
916 | 919 | let ev = [if (if (!(fC)) | |
917 | 920 | then true | |
918 | 921 | else eP(dz)) | |
919 | 922 | then true | |
920 | 923 | else aG("get operation is blocked by admin"), if ((size(dz.payments) == 1)) | |
921 | 924 | then true | |
922 | 925 | else aG("exactly 1 payment are expected")] | |
923 | 926 | if ((ev == ev)) | |
924 | 927 | then { | |
925 | 928 | let eu = aQ(fB) | |
926 | - | let | |
927 | - | let dQ = | |
928 | - | let ec = | |
929 | + | let fr = dz.payments[0] | |
930 | + | let dQ = fr.assetId | |
931 | + | let ec = fr.amount | |
929 | 932 | let dh = da(toBigInt(0), toBigInt(0), toBigInt(ec)) | |
930 | 933 | let X = dz.caller | |
931 | 934 | let Y = dz.transactionId | |
932 | 935 | let fD = et(eu, ec, dQ, X, Y) | |
933 | 936 | if ((fD == fD)) | |
934 | 937 | then { | |
935 | 938 | let ew = fD._5 | |
936 | - | let | |
939 | + | let ft = fD._4 | |
937 | 940 | let dN = fD._3 | |
938 | 941 | let cV = fD._2 | |
939 | 942 | let fE = fD._1 | |
940 | - | let dH = if (if (( | |
941 | - | then ( | |
943 | + | let dH = if (if ((fm > 0)) | |
944 | + | then (fm > fE) | |
942 | 945 | else false) | |
943 | - | then aG(makeString(["amount to receive is less than ", toString( | |
946 | + | then aG(makeString(["amount to receive is less than ", toString(fm)], "")) | |
944 | 947 | else fE | |
945 | 948 | let fF = invoke(aJ, "burn", [ec], [AttachedPayment(dQ, ec)]) | |
946 | 949 | if ((fF == fF)) | |
947 | 950 | then { | |
948 | 951 | let fG = [ScriptTransfer(X, dH, eu)] | |
949 | - | let | |
952 | + | let fx = if ((dN > 0)) | |
950 | 953 | then [ScriptTransfer(aK, dN, eu)] | |
951 | 954 | else nil | |
952 | 955 | let fH = { | |
953 | 956 | let fI = if ((this == aK)) | |
954 | 957 | then 0 | |
955 | 958 | else dN | |
956 | 959 | if (ew) | |
957 | 960 | then $Tuple2(-((dH + fI)), 0) | |
958 | 961 | else $Tuple2(0, -((dH + fI))) | |
959 | 962 | } | |
960 | 963 | let dj = fH._1 | |
961 | 964 | let dk = fH._2 | |
962 | 965 | let fJ = di(dj, dk, 0) | |
963 | 966 | let fh = fJ._1 | |
964 | 967 | let cZ = fJ._2 | |
965 | - | let | |
966 | - | if (( | |
967 | - | then $Tuple2((((cV ++ fG) ++ | |
968 | + | let fj = dm(dh, cZ) | |
969 | + | if ((fj == fj)) | |
970 | + | then $Tuple2((((cV ++ fG) ++ fx) ++ fh), dH) | |
968 | 971 | else throw("Strict value is not equal to itself.") | |
969 | 972 | } | |
970 | 973 | else throw("Strict value is not equal to itself.") | |
971 | 974 | } | |
972 | 975 | else throw("Strict value is not equal to itself.") | |
973 | 976 | } | |
974 | 977 | else throw("Strict value is not equal to itself.") | |
975 | 978 | } | |
976 | 979 | ||
977 | 980 | ||
978 | 981 | ||
979 | 982 | @Callable(dz) | |
980 | 983 | func getOneTknREADONLY (eu,ec) = { | |
981 | 984 | let fK = et(aQ(eu), ec, aZ, unit, unit) | |
982 | 985 | let fE = fK._1 | |
983 | 986 | let cV = fK._2 | |
984 | 987 | let dN = fK._3 | |
985 | - | let | |
988 | + | let ft = fK._4 | |
986 | 989 | let ew = fK._5 | |
987 | - | $Tuple2(nil, $Tuple3(fE, dN, | |
990 | + | $Tuple2(nil, $Tuple3(fE, dN, ft)) | |
988 | 991 | } | |
989 | 992 | ||
990 | 993 | ||
991 | 994 | ||
992 | 995 | @Callable(dz) | |
993 | - | func unstakeAndGetOneTkn (fL,fB, | |
994 | - | let | |
995 | - | let | |
996 | - | if ($isInstanceOf( | |
997 | - | then | |
998 | - | else throw(($getType( | |
996 | + | func unstakeAndGetOneTkn (fL,fB,fm) = { | |
997 | + | let fo = { | |
998 | + | let fp = invoke(aJ, "isPoolOneTokenOperationsDisabledREADONLY", [toString(this)], nil) | |
999 | + | if ($isInstanceOf(fp, "Boolean")) | |
1000 | + | then fp | |
1001 | + | else throw(($getType(fp) + " couldn't be cast to Boolean")) | |
999 | 1002 | } | |
1000 | 1003 | let fC = if (if (aL()) | |
1001 | 1004 | then true | |
1002 | 1005 | else (aY == n)) | |
1003 | 1006 | then true | |
1004 | - | else | |
1007 | + | else fo | |
1005 | 1008 | let ev = [if (if (!(fC)) | |
1006 | 1009 | then true | |
1007 | 1010 | else eP(dz)) | |
1008 | 1011 | then true | |
1009 | 1012 | else aG("get operation is blocked by admin"), if ((size(dz.payments) == 0)) | |
1010 | 1013 | then true | |
1011 | 1014 | else aG("no payments are expected")] | |
1012 | 1015 | if ((ev == ev)) | |
1013 | 1016 | then { | |
1014 | 1017 | let eu = aQ(fB) | |
1015 | 1018 | let X = dz.caller | |
1016 | 1019 | let Y = dz.transactionId | |
1017 | 1020 | let dh = da(toBigInt(0), toBigInt(0), toBigInt(0)) | |
1018 | 1021 | let fM = invoke(bf, "unstake", [toBase58String(aZ), fL], nil) | |
1019 | 1022 | if ((fM == fM)) | |
1020 | 1023 | then { | |
1021 | 1024 | let fN = et(eu, fL, aZ, X, Y) | |
1022 | 1025 | if ((fN == fN)) | |
1023 | 1026 | then { | |
1024 | 1027 | let ew = fN._5 | |
1025 | - | let | |
1028 | + | let ft = fN._4 | |
1026 | 1029 | let dN = fN._3 | |
1027 | 1030 | let cV = fN._2 | |
1028 | 1031 | let fE = fN._1 | |
1029 | - | let dH = if (if (( | |
1030 | - | then ( | |
1032 | + | let dH = if (if ((fm > 0)) | |
1033 | + | then (fm > fE) | |
1031 | 1034 | else false) | |
1032 | - | then aG(makeString(["amount to receive is less than ", toString( | |
1035 | + | then aG(makeString(["amount to receive is less than ", toString(fm)], "")) | |
1033 | 1036 | else fE | |
1034 | 1037 | let fF = invoke(aJ, "burn", [fL], [AttachedPayment(aZ, fL)]) | |
1035 | 1038 | if ((fF == fF)) | |
1036 | 1039 | then { | |
1037 | 1040 | let fG = [ScriptTransfer(dz.caller, dH, eu)] | |
1038 | - | let | |
1041 | + | let fx = if ((dN > 0)) | |
1039 | 1042 | then [ScriptTransfer(aK, dN, eu)] | |
1040 | 1043 | else nil | |
1041 | 1044 | let fO = { | |
1042 | 1045 | let fI = if ((this == aK)) | |
1043 | 1046 | then 0 | |
1044 | 1047 | else dN | |
1045 | 1048 | if (ew) | |
1046 | 1049 | then $Tuple2(-((dH + fI)), 0) | |
1047 | 1050 | else $Tuple2(0, -((dH + fI))) | |
1048 | 1051 | } | |
1049 | 1052 | let dj = fO._1 | |
1050 | 1053 | let dk = fO._2 | |
1051 | 1054 | let fP = di(dj, dk, 0) | |
1052 | 1055 | let fh = fP._1 | |
1053 | 1056 | let cZ = fP._2 | |
1054 | - | let | |
1055 | - | if (( | |
1056 | - | then $Tuple2((((cV ++ fG) ++ | |
1057 | + | let fj = dm(dh, cZ) | |
1058 | + | if ((fj == fj)) | |
1059 | + | then $Tuple2((((cV ++ fG) ++ fx) ++ fh), dH) | |
1057 | 1060 | else throw("Strict value is not equal to itself.") | |
1058 | 1061 | } | |
1059 | 1062 | else throw("Strict value is not equal to itself.") | |
1060 | 1063 | } | |
1061 | 1064 | else throw("Strict value is not equal to itself.") | |
1062 | 1065 | } | |
1063 | 1066 | else throw("Strict value is not equal to itself.") | |
1064 | 1067 | } | |
1065 | 1068 | else throw("Strict value is not equal to itself.") | |
1066 | 1069 | } | |
1067 | 1070 | ||
1068 | 1071 | ||
1069 | 1072 | ||
1070 | 1073 | @Callable(dz) | |
1071 | 1074 | func get () = { | |
1072 | 1075 | let cG = dy(dz) | |
1073 | 1076 | let fQ = cG._1 | |
1074 | 1077 | let cn = cG._2 | |
1075 | 1078 | let dB = cG._3 | |
1076 | 1079 | let bV = cG._4 | |
1077 | 1080 | let co = cG._5 | |
1078 | 1081 | let dh = da(toBigInt(0), toBigInt(0), toBigInt(dB)) | |
1079 | 1082 | let fR = invoke(aJ, "burn", [dB], [AttachedPayment(bV, dB)]) | |
1080 | 1083 | if ((fR == fR)) | |
1081 | 1084 | then { | |
1082 | 1085 | let fS = di(-(fQ), -(cn), 0) | |
1083 | 1086 | let fh = fS._1 | |
1084 | 1087 | let cZ = fS._2 | |
1085 | - | let | |
1086 | - | if (( | |
1088 | + | let fj = dm(dh, cZ) | |
1089 | + | if ((fj == fj)) | |
1087 | 1090 | then (co ++ fh) | |
1088 | 1091 | else throw("Strict value is not equal to itself.") | |
1089 | 1092 | } | |
1090 | 1093 | else throw("Strict value is not equal to itself.") | |
1091 | 1094 | } | |
1092 | 1095 | ||
1093 | 1096 | ||
1094 | 1097 | ||
1095 | 1098 | @Callable(dz) | |
1096 | 1099 | func getNoLess (fT,fU) = { | |
1097 | 1100 | let cG = dy(dz) | |
1098 | 1101 | let cm = cG._1 | |
1099 | 1102 | let cn = cG._2 | |
1100 | 1103 | let dB = cG._3 | |
1101 | 1104 | let bV = cG._4 | |
1102 | 1105 | let co = cG._5 | |
1103 | 1106 | if ((fT > cm)) | |
1104 | 1107 | then throw(((("noLessThenAmtAsset failed: " + toString(cm)) + " < ") + toString(fT))) | |
1105 | 1108 | else if ((fU > cn)) | |
1106 | 1109 | then throw(((("noLessThenPriceAsset failed: " + toString(cn)) + " < ") + toString(fU))) | |
1107 | 1110 | else { | |
1108 | 1111 | let dh = da(toBigInt(0), toBigInt(0), toBigInt(dB)) | |
1109 | 1112 | let fR = invoke(aJ, "burn", [dB], [AttachedPayment(bV, dB)]) | |
1110 | 1113 | if ((fR == fR)) | |
1111 | 1114 | then { | |
1112 | 1115 | let fV = di(-(cm), -(cn), 0) | |
1113 | 1116 | let fh = fV._1 | |
1114 | 1117 | let cZ = fV._2 | |
1115 | - | let | |
1116 | - | if (( | |
1118 | + | let fj = dm(dh, cZ) | |
1119 | + | if ((fj == fj)) | |
1117 | 1120 | then (co ++ fh) | |
1118 | 1121 | else throw("Strict value is not equal to itself.") | |
1119 | 1122 | } | |
1120 | 1123 | else throw("Strict value is not equal to itself.") | |
1121 | 1124 | } | |
1122 | 1125 | } | |
1123 | 1126 | ||
1124 | 1127 | ||
1125 | 1128 | ||
1126 | 1129 | @Callable(dz) | |
1127 | 1130 | func unstakeAndGet (dH) = { | |
1128 | 1131 | let fW = if ((size(dz.payments) != 0)) | |
1129 | 1132 | then throw("No payments are expected") | |
1130 | 1133 | else true | |
1131 | 1134 | if ((fW == fW)) | |
1132 | 1135 | then { | |
1133 | 1136 | let bK = aN() | |
1134 | 1137 | let bX = fromBase58String(bK[q]) | |
1135 | 1138 | let dh = da(toBigInt(0), toBigInt(0), toBigInt(0)) | |
1136 | 1139 | let fM = invoke(bf, "unstake", [toBase58String(bX), dH], nil) | |
1137 | 1140 | if ((fM == fM)) | |
1138 | 1141 | then { | |
1139 | 1142 | let cG = bT(toBase58String(dz.transactionId), toBase58String(bX), dH, dz.caller) | |
1140 | 1143 | let cm = cG._1 | |
1141 | 1144 | let cn = cG._2 | |
1142 | 1145 | let ca = parseIntValue(cG._9) | |
1143 | 1146 | let co = cG._10 | |
1144 | 1147 | let fX = if (if (aL()) | |
1145 | 1148 | then true | |
1146 | 1149 | else (ca == n)) | |
1147 | 1150 | then throw(("Get operation is blocked by admin. Status = " + toString(ca))) | |
1148 | 1151 | else true | |
1149 | 1152 | if ((fX == fX)) | |
1150 | 1153 | then { | |
1151 | 1154 | let fR = invoke(aJ, "burn", [dH], [AttachedPayment(bX, dH)]) | |
1152 | 1155 | if ((fR == fR)) | |
1153 | 1156 | then { | |
1154 | 1157 | let fY = di(-(cm), -(cn), 0) | |
1155 | 1158 | let fh = fY._1 | |
1156 | 1159 | let cZ = fY._2 | |
1157 | - | let | |
1158 | - | if (( | |
1160 | + | let fj = dm(dh, cZ) | |
1161 | + | if ((fj == fj)) | |
1159 | 1162 | then (co ++ fh) | |
1160 | 1163 | else throw("Strict value is not equal to itself.") | |
1161 | 1164 | } | |
1162 | 1165 | else throw("Strict value is not equal to itself.") | |
1163 | 1166 | } | |
1164 | 1167 | else throw("Strict value is not equal to itself.") | |
1165 | 1168 | } | |
1166 | 1169 | else throw("Strict value is not equal to itself.") | |
1167 | 1170 | } | |
1168 | 1171 | else throw("Strict value is not equal to itself.") | |
1169 | 1172 | } | |
1170 | 1173 | ||
1171 | 1174 | ||
1172 | 1175 | ||
1173 | 1176 | @Callable(dz) | |
1174 | 1177 | func unstakeAndGetNoLess (fL,fZ,fU) = { | |
1175 | 1178 | let fC = if (aL()) | |
1176 | 1179 | then true | |
1177 | 1180 | else (aY == n) | |
1178 | 1181 | let ev = [if (!(fC)) | |
1179 | 1182 | then true | |
1180 | 1183 | else throw("get operation is blocked by admin"), if ((size(dz.payments) == 0)) | |
1181 | 1184 | then true | |
1182 | 1185 | else throw("no payments are expected")] | |
1183 | 1186 | if ((ev == ev)) | |
1184 | 1187 | then { | |
1185 | 1188 | let dh = da(toBigInt(0), toBigInt(0), toBigInt(0)) | |
1186 | 1189 | let fM = invoke(bf, "unstake", [toBase58String(aZ), fL], nil) | |
1187 | 1190 | if ((fM == fM)) | |
1188 | 1191 | then { | |
1189 | 1192 | let cG = bT(toBase58String(dz.transactionId), toBase58String(aZ), fL, dz.caller) | |
1190 | 1193 | let cm = cG._1 | |
1191 | 1194 | let cn = cG._2 | |
1192 | 1195 | let co = cG._10 | |
1193 | 1196 | let ga = [if ((cm >= fZ)) | |
1194 | 1197 | then true | |
1195 | 1198 | else throw(makeString(["amount asset amount to receive is less than ", toString(fZ)], "")), if ((cn >= fU)) | |
1196 | 1199 | then true | |
1197 | 1200 | else throw(makeString(["price asset amount to receive is less than ", toString(fU)], ""))] | |
1198 | 1201 | if ((ga == ga)) | |
1199 | 1202 | then { | |
1200 | 1203 | let fR = invoke(aJ, "burn", [fL], [AttachedPayment(aZ, fL)]) | |
1201 | 1204 | if ((fR == fR)) | |
1202 | 1205 | then { | |
1203 | 1206 | let gb = di(-(cm), -(cn), 0) | |
1204 | 1207 | let fh = gb._1 | |
1205 | 1208 | let cZ = gb._2 | |
1206 | - | let | |
1207 | - | if (( | |
1209 | + | let fj = dm(dh, cZ) | |
1210 | + | if ((fj == fj)) | |
1208 | 1211 | then (co ++ fh) | |
1209 | 1212 | else throw("Strict value is not equal to itself.") | |
1210 | 1213 | } | |
1211 | 1214 | else throw("Strict value is not equal to itself.") | |
1212 | 1215 | } | |
1213 | 1216 | else throw("Strict value is not equal to itself.") | |
1214 | 1217 | } | |
1215 | 1218 | else throw("Strict value is not equal to itself.") | |
1216 | 1219 | } | |
1217 | 1220 | else throw("Strict value is not equal to itself.") | |
1218 | 1221 | } | |
1219 | 1222 | ||
1220 | 1223 | ||
1221 | 1224 | ||
1222 | 1225 | @Callable(dz) | |
1223 | 1226 | func activate (gc,gd) = if ((toString(dz.caller) != toString(aJ))) | |
1224 | 1227 | then throw("permissions denied") | |
1225 | 1228 | else $Tuple2([StringEntry(aa(), gc), StringEntry(ab(), gd)], "success") | |
1226 | 1229 | ||
1227 | 1230 | ||
1228 | 1231 | ||
1229 | 1232 | @Callable(dz) | |
1230 | 1233 | func refreshKLp () = { | |
1231 | 1234 | let ge = valueOrElse(getInteger(ag), 0) | |
1232 | 1235 | let gf = if (((height - ge) >= aj)) | |
1233 | 1236 | then unit | |
1234 | 1237 | else aG(makeString([toString(aj), " blocks have not passed since the previous call"], "")) | |
1235 | 1238 | if ((gf == gf)) | |
1236 | 1239 | then { | |
1237 | 1240 | let dt = valueOrErrorMessage(parseBigInt(valueOrElse(getString(this, af), "0")), aI("invalid kLp")) | |
1238 | 1241 | let gg = di(0, 0, 0) | |
1239 | 1242 | let gh = gg._1 | |
1240 | 1243 | let cZ = gg._2 | |
1241 | 1244 | let dl = if ((dt != cZ)) | |
1242 | 1245 | then gh | |
1243 | 1246 | else aG("nothing to refresh") | |
1244 | 1247 | $Tuple2(dl, toString(cZ)) | |
1245 | 1248 | } | |
1246 | 1249 | else throw("Strict value is not equal to itself.") | |
1247 | 1250 | } | |
1248 | 1251 | ||
1249 | 1252 | ||
1250 | 1253 | ||
1251 | 1254 | @Callable(dz) | |
1252 | 1255 | func getPoolConfigWrapperREADONLY () = $Tuple2(nil, aN()) | |
1253 | 1256 | ||
1254 | 1257 | ||
1255 | 1258 | ||
1256 | 1259 | @Callable(dz) | |
1257 | 1260 | func getAccBalanceWrapperREADONLY (bx) = $Tuple2(nil, bw(bx)) | |
1258 | 1261 | ||
1259 | 1262 | ||
1260 | 1263 | ||
1261 | 1264 | @Callable(dz) | |
1262 | 1265 | func calcPricesWrapperREADONLY (bE,bF,bJ) = { | |
1263 | 1266 | let bS = bI(bE, bF, bJ) | |
1264 | 1267 | $Tuple2(nil, [toString(bS[0]), toString(bS[1]), toString(bS[2])]) | |
1265 | 1268 | } | |
1266 | 1269 | ||
1267 | 1270 | ||
1268 | 1271 | ||
1269 | 1272 | @Callable(dz) | |
1270 | 1273 | func toX18WrapperREADONLY (E,F) = $Tuple2(nil, toString(D(E, F))) | |
1271 | 1274 | ||
1272 | 1275 | ||
1273 | 1276 | ||
1274 | 1277 | @Callable(dz) | |
1275 | 1278 | func fromX18WrapperREADONLY (H,I) = $Tuple2(nil, G(parseBigIntValue(H), I)) | |
1276 | 1279 | ||
1277 | 1280 | ||
1278 | 1281 | ||
1279 | 1282 | @Callable(dz) | |
1280 | 1283 | func calcPriceBigIntWrapperREADONLY (bz,bA) = $Tuple2(nil, toString(by(parseBigIntValue(bz), parseBigIntValue(bA)))) | |
1281 | 1284 | ||
1282 | 1285 | ||
1283 | 1286 | ||
1284 | 1287 | @Callable(dz) | |
1285 | 1288 | func estimatePutOperationWrapperREADONLY (bU,cq,cr,cs,ct,cu,X,cv,cw) = $Tuple2(nil, cp(bU, cq, cr, cs, ct, cu, X, cv, cw)) | |
1286 | 1289 | ||
1287 | 1290 | ||
1288 | 1291 | ||
1289 | 1292 | @Callable(dz) | |
1290 | 1293 | func estimateGetOperationWrapperREADONLY (bU,bV,bW,X) = { | |
1291 | 1294 | let cG = bT(bU, bV, bW, addressFromStringValue(X)) | |
1292 | 1295 | $Tuple2(nil, $Tuple10(cG._1, cG._2, cG._3, cG._4, cG._5, cG._6, cG._7, toString(cG._8), cG._9, cG._10)) | |
1293 | 1296 | } | |
1294 | 1297 | ||
1295 | 1298 | ||
1296 | 1299 | ||
1297 | 1300 | @Callable(dz) | |
1298 | 1301 | func statsREADONLY () = { | |
1299 | 1302 | let bK = aN() | |
1300 | 1303 | let bX = fromBase58String(bK[q]) | |
1301 | 1304 | let gi = bK[r] | |
1302 | 1305 | let gj = bK[s] | |
1303 | 1306 | let cz = bK[v] | |
1304 | 1307 | let cA = bK[w] | |
1305 | 1308 | let bL = parseIntValue(bK[t]) | |
1306 | 1309 | let bM = parseIntValue(bK[u]) | |
1307 | 1310 | let gk = valueOrErrorMessage(assetInfo(bX), (("Asset " + toBase58String(bX)) + " doesn't exist")).quantity | |
1308 | 1311 | let gl = bw(gi) | |
1309 | 1312 | let gm = bw(gj) | |
1310 | 1313 | let gn = if ((gk == 0)) | |
1311 | 1314 | then [e, e, e] | |
1312 | 1315 | else bI(gl, gm, gk) | |
1313 | 1316 | let ch = 0 | |
1314 | 1317 | let go = G(gn[1], b) | |
1315 | 1318 | let gp = G(gn[2], b) | |
1316 | 1319 | let gq = value(getInteger(aJ, au(toString(this)))) | |
1317 | 1320 | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d", toString(gl), toString(gm), toString(gk), toString(ch), toString(go), toString(gp), toString(gq)], j)) | |
1318 | 1321 | } | |
1319 | 1322 | ||
1320 | 1323 | ||
1321 | 1324 | ||
1322 | 1325 | @Callable(dz) | |
1323 | 1326 | func evaluatePutByAmountAssetREADONLY (cr) = { | |
1324 | 1327 | let bK = aN() | |
1325 | 1328 | let bX = fromBase58String(bK[q]) | |
1326 | 1329 | let cx = bK[r] | |
1327 | 1330 | let bY = fromBase58String(cx) | |
1328 | 1331 | let cy = bK[s] | |
1329 | 1332 | let bZ = fromBase58String(cy) | |
1330 | 1333 | let bL = parseIntValue(bK[t]) | |
1331 | 1334 | let bM = parseIntValue(bK[u]) | |
1332 | 1335 | let ca = bK[p] | |
1333 | 1336 | let gk = valueOrErrorMessage(assetInfo(bX), (("Asset " + toBase58String(bX)) + " doesn't exist")).quantity | |
1334 | 1337 | let gl = bw(cx) | |
1335 | 1338 | let gm = bw(cy) | |
1336 | 1339 | let bG = D(gl, bL) | |
1337 | 1340 | let bH = D(gm, bM) | |
1338 | 1341 | let cg = if ((gk == 0)) | |
1339 | 1342 | then e | |
1340 | 1343 | else by(bH, bG) | |
1341 | 1344 | let cD = D(cr, bL) | |
1342 | 1345 | let cE = fraction(cD, cg, d) | |
1343 | 1346 | let ct = G(cE, bM) | |
1344 | 1347 | let dF = cp("", 500000, cr, bY, ct, bZ, "", true, false) | |
1345 | 1348 | let cO = dF._1 | |
1346 | 1349 | let gr = dF._3 | |
1347 | 1350 | let cc = dF._4 | |
1348 | 1351 | let ce = dF._5 | |
1349 | 1352 | let cb = dF._6 | |
1350 | 1353 | $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)) | |
1351 | 1354 | } | |
1352 | 1355 | ||
1353 | 1356 | ||
1354 | 1357 | ||
1355 | 1358 | @Callable(dz) | |
1356 | 1359 | func evaluatePutByPriceAssetREADONLY (ct) = { | |
1357 | 1360 | let bK = aN() | |
1358 | 1361 | let bX = fromBase58String(bK[q]) | |
1359 | 1362 | let cx = bK[r] | |
1360 | 1363 | let bY = fromBase58String(cx) | |
1361 | 1364 | let cy = bK[s] | |
1362 | 1365 | let bZ = fromBase58String(cy) | |
1363 | 1366 | let bL = parseIntValue(bK[t]) | |
1364 | 1367 | let bM = parseIntValue(bK[u]) | |
1365 | 1368 | let ca = bK[p] | |
1366 | 1369 | let gk = valueOrErrorMessage(assetInfo(bX), (("Asset " + toBase58String(bX)) + " doesn't exist")).quantity | |
1367 | 1370 | let gs = bw(cx) | |
1368 | 1371 | let gt = bw(cy) | |
1369 | 1372 | let gu = D(gs, bL) | |
1370 | 1373 | let gv = D(gt, bM) | |
1371 | 1374 | let cg = if ((gk == 0)) | |
1372 | 1375 | then e | |
1373 | 1376 | else by(gv, gu) | |
1374 | 1377 | let cE = D(ct, bM) | |
1375 | 1378 | let cD = fraction(cE, d, cg) | |
1376 | 1379 | let cr = G(cD, bL) | |
1377 | 1380 | let dF = cp("", 500000, cr, bY, ct, bZ, "", true, false) | |
1378 | 1381 | let cO = dF._1 | |
1379 | 1382 | let gr = dF._3 | |
1380 | 1383 | let cc = dF._4 | |
1381 | 1384 | let ce = dF._5 | |
1382 | 1385 | let cb = dF._6 | |
1383 | 1386 | $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)) | |
1384 | 1387 | } | |
1385 | 1388 | ||
1386 | 1389 | ||
1387 | 1390 | ||
1388 | 1391 | @Callable(dz) | |
1389 | 1392 | func evaluateGetREADONLY (gw,gx) = { | |
1390 | 1393 | let cG = bT("", gw, gx, this) | |
1391 | 1394 | let cm = cG._1 | |
1392 | 1395 | let cn = cG._2 | |
1393 | 1396 | let cc = cG._5 | |
1394 | 1397 | let ce = cG._6 | |
1395 | 1398 | let cb = cG._7 | |
1396 | 1399 | let ch = cG._8 | |
1397 | 1400 | let ca = parseIntValue(cG._9) | |
1398 | 1401 | $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)) | |
1399 | 1402 | } | |
1400 | 1403 | ||
1401 | 1404 | ||
1402 | 1405 | @Verifier(gy) | |
1403 | 1406 | func gz () = { | |
1404 | 1407 | let gA = { | |
1405 | 1408 | let dK = eM() | |
1406 | 1409 | if ($isInstanceOf(dK, "ByteVector")) | |
1407 | 1410 | then { | |
1408 | 1411 | let eQ = dK | |
1409 | 1412 | eQ | |
1410 | 1413 | } | |
1411 | 1414 | else if ($isInstanceOf(dK, "Unit")) | |
1412 | 1415 | then gy.senderPublicKey | |
1413 | 1416 | else throw("Match error") | |
1414 | 1417 | } | |
1415 | 1418 | let dK = gy | |
1416 | 1419 | if ($isInstanceOf(dK, "Order")) | |
1417 | 1420 | then { | |
1418 | 1421 | let dp = dK | |
1419 | 1422 | let gB = aM() | |
1420 | 1423 | let az = do(dp) | |
1421 | 1424 | let aA = sigVerify(dp.bodyBytes, dp.proofs[0], dp.senderPublicKey) | |
1422 | 1425 | let aB = sigVerify(dp.bodyBytes, dp.proofs[1], gB) | |
1423 | 1426 | if (if (if (az) | |
1424 | 1427 | then aA | |
1425 | 1428 | else false) | |
1426 | 1429 | then aB | |
1427 | 1430 | else false) | |
1428 | 1431 | then true | |
1429 | 1432 | else ay(az, aA, aB) | |
1430 | 1433 | } | |
1431 | 1434 | else if ($isInstanceOf(dK, "SetScriptTransaction")) | |
1432 | 1435 | then { | |
1433 | 1436 | let eN = dK | |
1434 | 1437 | let gC = blake2b256(value(eN.script)) | |
1435 | 1438 | let gD = fromBase64String(value(getString(aJ, aw()))) | |
1436 | 1439 | let gE = scriptHash(this) | |
1437 | 1440 | if (if ((gD == gC)) | |
1438 | 1441 | then (gE != gC) | |
1439 | 1442 | else false) | |
1440 | 1443 | then true | |
1441 | 1444 | else sigVerify(gy.bodyBytes, gy.proofs[0], gA) | |
1442 | 1445 | } | |
1443 | 1446 | else sigVerify(gy.bodyBytes, gy.proofs[0], gA) | |
1444 | 1447 | } | |
1445 | 1448 |
github/deemru/w8io/026f985 157.62 ms ◑