tx · 91rj6WfoAV7vRUfmmusm1FFKARDcQWYfMoxTRKoLpDjy 3MqczhSTuvkrfmVXHQ7F7FUBKGG4ujRiCVF: -0.03500000 Waves 2022.12.07 11:53 [2349708] smart account 3MqczhSTuvkrfmVXHQ7F7FUBKGG4ujRiCVF > SELF 0.00000000 Waves
{ "type": 13, "id": "91rj6WfoAV7vRUfmmusm1FFKARDcQWYfMoxTRKoLpDjy", "fee": 3500000, "feeAssetId": null, "timestamp": 1670403113594, "version": 1, "sender": "3MqczhSTuvkrfmVXHQ7F7FUBKGG4ujRiCVF", "senderPublicKey": "EQAgJZZPyCDpoMAzhZA7KEcgYnQYQw2R5rQGNZAnnywo", "proofs": [ "kuUPvLW4pa7iDtewrmQ8kKvJjj47B4Tc56hY2dWjnnXcQDrMUSreBJypbv4W8E5cPUqp1CZQEBZTe1p3QqVwyF6" ], "script": "base64:BgLfLAgCEgMKAQgSABIECgIBBBIDCgEBEgQKAgEEEgQKAggBEgQKAggBEgQKAggBEgUKAwEIARIAEgQKAgEBEgMKAQESBQoDAQEBEgQKAggIEgASABIDCgEIEgUKAwEBARIECgIBARIECgIIARIECgIICBILCgkIAQECAQIIBAQSBgoECAgBCBIAEgMKAQESAwoBARIECgIIASIKbFBkZWNpbWFscyIGc2NhbGU4IgxzY2FsZThCaWdJbnQiB3NjYWxlMTgiCnplcm9CaWdJbnQiBGJpZzAiBGJpZzEiBGJpZzIiC3dhdmVzU3RyaW5nIgNTRVAiClBvb2xBY3RpdmUiD1Bvb2xQdXREaXNhYmxlZCITUG9vbE1hdGNoZXJEaXNhYmxlZCIMUG9vbFNodXRkb3duIg5pZHhQb29sQWRkcmVzcyINaWR4UG9vbFN0YXR1cyIQaWR4UG9vbExQQXNzZXRJZCINaWR4QW10QXNzZXRJZCIPaWR4UHJpY2VBc3NldElkIg5pZHhBbXRBc3NldERjbSIQaWR4UHJpY2VBc3NldERjbSIOaWR4SUFtdEFzc2V0SWQiEGlkeElQcmljZUFzc2V0SWQiDWlk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cGCQECYXkDBQJhegUCYUEFAmFCAwkAAQIFAmRLAhRTZXRTY3JpcHRUcmFuc2FjdGlvbgQCZU4FAmRLBAJnQwkA9gMBCQEFdmFsdWUBCAUCZU4Gc2NyaXB0BAJnRAkA2wQBCQEFdmFsdWUBCQCdCAIFAmFKCQECYXcABAJnRQkA8QcBBQR0aGlzAwMJAAACBQJnRAUCZ0MJAQIhPQIFAmdFBQJnQwcGCQD0AwMIBQJneQlib2R5Qnl0ZXMJAJEDAggFAmd5BnByb29mcwAABQJnQQkA9AMDCAUCZ3kJYm9keUJ5dGVzCQCRAwIIBQJneQZwcm9vZnMAAAUCZ0EJxIri", "chainId": 84, "height": 2349708, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 2DJgK7zJJGYtbAiGPPd1rwVhnm2PhoVkYXqAcBv13ZdT Next: oZnc5nLLjcKeKL4WcSpb2ZQ4jhttNJN9ZrUp6wAwkWr Diff:
Old | New | Differences | |
---|---|---|---|
865 | 865 | let fy = di(dj, dk, 0) | |
866 | 866 | let fh = fy._1 | |
867 | 867 | let cZ = fy._2 | |
868 | - | let fi = dm(dh, cZ) | |
869 | - | if ((fi == fi)) | |
870 | - | then $Tuple2((((cV ++ fe) ++ fw) ++ fh), fu) | |
868 | + | let dt = value(getString(af)) | |
869 | + | let fz = aG(makeString([toString(dj), toString(dk), dt, toString(dh), toString(cZ)], " ")) | |
870 | + | if ((fz == fz)) | |
871 | + | then { | |
872 | + | let fi = dm(dh, cZ) | |
873 | + | if ((fi == fi)) | |
874 | + | then $Tuple2((((cV ++ fe) ++ fw) ++ fh), fu) | |
875 | + | else throw("Strict value is not equal to itself.") | |
876 | + | } | |
871 | 877 | else throw("Strict value is not equal to itself.") | |
872 | 878 | } | |
873 | 879 | else throw("Strict value is not equal to itself.") | |
881 | 887 | ||
882 | 888 | @Callable(dz) | |
883 | 889 | func putOneTknREADONLY (dQ,dP) = { | |
884 | - | let | |
885 | - | let ft = | |
886 | - | let cV = | |
887 | - | let dN = | |
888 | - | let fs = | |
889 | - | let dU = | |
890 | + | let fA = dO(dP, aQ(dQ), unit, unit) | |
891 | + | let ft = fA._1 | |
892 | + | let cV = fA._2 | |
893 | + | let dN = fA._3 | |
894 | + | let fs = fA._4 | |
895 | + | let dU = fA._5 | |
890 | 896 | $Tuple2(nil, $Tuple3(ft, dN, fs)) | |
891 | 897 | } | |
892 | 898 | ||
893 | 899 | ||
894 | 900 | ||
895 | 901 | @Callable(dz) | |
896 | - | func getOneTkn ( | |
902 | + | func getOneTkn (fB,fl) = { | |
897 | 903 | let fn = { | |
898 | 904 | let fo = invoke(aJ, "isPoolOneTokenOperationsDisabledREADONLY", [toString(this)], nil) | |
899 | 905 | if ($isInstanceOf(fo, "Boolean")) | |
900 | 906 | then fo | |
901 | 907 | else throw(($getType(fo) + " couldn't be cast to Boolean")) | |
902 | 908 | } | |
903 | - | let | |
909 | + | let fC = if (if (aL()) | |
904 | 910 | then true | |
905 | 911 | else (aY == n)) | |
906 | 912 | then true | |
907 | 913 | else fn | |
908 | - | let ev = [if (if (!( | |
914 | + | let ev = [if (if (!(fC)) | |
909 | 915 | then true | |
910 | 916 | else eP(dz)) | |
911 | 917 | then true | |
914 | 920 | else aG("exactly 1 payment are expected")] | |
915 | 921 | if ((ev == ev)) | |
916 | 922 | then { | |
917 | - | let eu = aQ( | |
923 | + | let eu = aQ(fB) | |
918 | 924 | let fq = dz.payments[0] | |
919 | 925 | let dQ = fq.assetId | |
920 | 926 | let ec = fq.amount | |
921 | 927 | let dh = da(toBigInt(0), toBigInt(0), toBigInt(ec)) | |
922 | 928 | let X = dz.caller | |
923 | 929 | let Y = dz.transactionId | |
924 | - | let | |
925 | - | if (( | |
930 | + | let fD = et(eu, ec, dQ, X, Y) | |
931 | + | if ((fD == fD)) | |
926 | 932 | then { | |
927 | - | let ew = | |
928 | - | let fs = | |
929 | - | let dN = | |
930 | - | let cV = | |
931 | - | let | |
933 | + | let ew = fD._5 | |
934 | + | let fs = fD._4 | |
935 | + | let dN = fD._3 | |
936 | + | let cV = fD._2 | |
937 | + | let fE = fD._1 | |
932 | 938 | let dH = if (if ((fl > 0)) | |
933 | - | then (fl > | |
939 | + | then (fl > fE) | |
934 | 940 | else false) | |
935 | 941 | then aG(makeString(["amount to receive is less than ", toString(fl)], "")) | |
936 | - | else | |
937 | - | let | |
938 | - | if (( | |
942 | + | else fE | |
943 | + | let fF = invoke(aJ, "burn", [ec], [AttachedPayment(dQ, ec)]) | |
944 | + | if ((fF == fF)) | |
939 | 945 | then { | |
940 | - | let | |
946 | + | let fG = [ScriptTransfer(X, dH, eu)] | |
941 | 947 | let fw = if ((dN > 0)) | |
942 | 948 | then [ScriptTransfer(aK, dN, eu)] | |
943 | 949 | else nil | |
944 | - | let | |
945 | - | let | |
950 | + | let fH = { | |
951 | + | let fI = if ((this == aK)) | |
946 | 952 | then 0 | |
947 | 953 | else dN | |
948 | 954 | if (ew) | |
949 | - | then $Tuple2(-((dH + | |
950 | - | else $Tuple2(0, -((dH + | |
955 | + | then $Tuple2(-((dH + fI)), 0) | |
956 | + | else $Tuple2(0, -((dH + fI))) | |
951 | 957 | } | |
952 | - | let dj = | |
953 | - | let dk = | |
954 | - | let | |
955 | - | let fh = | |
956 | - | let cZ = | |
958 | + | let dj = fH._1 | |
959 | + | let dk = fH._2 | |
960 | + | let fJ = di(dj, dk, 0) | |
961 | + | let fh = fJ._1 | |
962 | + | let cZ = fJ._2 | |
957 | 963 | let fi = dm(dh, cZ) | |
958 | 964 | if ((fi == fi)) | |
959 | - | then $Tuple2((((cV ++ | |
965 | + | then $Tuple2((((cV ++ fG) ++ fw) ++ fh), dH) | |
960 | 966 | else throw("Strict value is not equal to itself.") | |
961 | 967 | } | |
962 | 968 | else throw("Strict value is not equal to itself.") | |
970 | 976 | ||
971 | 977 | @Callable(dz) | |
972 | 978 | func getOneTknREADONLY (eu,ec) = { | |
973 | - | let | |
974 | - | let | |
975 | - | let cV = | |
976 | - | let dN = | |
977 | - | let fs = | |
978 | - | let ew = | |
979 | - | $Tuple2(nil, $Tuple3( | |
979 | + | let fK = et(aQ(eu), ec, aZ, unit, unit) | |
980 | + | let fE = fK._1 | |
981 | + | let cV = fK._2 | |
982 | + | let dN = fK._3 | |
983 | + | let fs = fK._4 | |
984 | + | let ew = fK._5 | |
985 | + | $Tuple2(nil, $Tuple3(fE, dN, fs)) | |
980 | 986 | } | |
981 | 987 | ||
982 | 988 | ||
983 | 989 | ||
984 | 990 | @Callable(dz) | |
985 | - | func unstakeAndGetOneTkn ( | |
991 | + | func unstakeAndGetOneTkn (fL,fB,fl) = { | |
986 | 992 | let fn = { | |
987 | 993 | let fo = invoke(aJ, "isPoolOneTokenOperationsDisabledREADONLY", [toString(this)], nil) | |
988 | 994 | if ($isInstanceOf(fo, "Boolean")) | |
989 | 995 | then fo | |
990 | 996 | else throw(($getType(fo) + " couldn't be cast to Boolean")) | |
991 | 997 | } | |
992 | - | let | |
998 | + | let fC = if (if (aL()) | |
993 | 999 | then true | |
994 | 1000 | else (aY == n)) | |
995 | 1001 | then true | |
996 | 1002 | else fn | |
997 | - | let ev = [if (if (!( | |
1003 | + | let ev = [if (if (!(fC)) | |
998 | 1004 | then true | |
999 | 1005 | else eP(dz)) | |
1000 | 1006 | then true | |
1003 | 1009 | else aG("no payments are expected")] | |
1004 | 1010 | if ((ev == ev)) | |
1005 | 1011 | then { | |
1006 | - | let eu = aQ( | |
1012 | + | let eu = aQ(fB) | |
1007 | 1013 | let X = dz.caller | |
1008 | 1014 | let Y = dz.transactionId | |
1009 | 1015 | let dh = da(toBigInt(0), toBigInt(0), toBigInt(0)) | |
1010 | - | let | |
1011 | - | if (( | |
1016 | + | let fM = invoke(bf, "unstake", [toBase58String(aZ), fL], nil) | |
1017 | + | if ((fM == fM)) | |
1012 | 1018 | then { | |
1013 | - | let | |
1014 | - | if (( | |
1019 | + | let fN = et(eu, fL, aZ, X, Y) | |
1020 | + | if ((fN == fN)) | |
1015 | 1021 | then { | |
1016 | - | let ew = | |
1017 | - | let fs = | |
1018 | - | let dN = | |
1019 | - | let cV = | |
1020 | - | let | |
1022 | + | let ew = fN._5 | |
1023 | + | let fs = fN._4 | |
1024 | + | let dN = fN._3 | |
1025 | + | let cV = fN._2 | |
1026 | + | let fE = fN._1 | |
1021 | 1027 | let dH = if (if ((fl > 0)) | |
1022 | - | then (fl > | |
1028 | + | then (fl > fE) | |
1023 | 1029 | else false) | |
1024 | 1030 | then aG(makeString(["amount to receive is less than ", toString(fl)], "")) | |
1025 | - | else | |
1026 | - | let | |
1027 | - | if (( | |
1031 | + | else fE | |
1032 | + | let fF = invoke(aJ, "burn", [fL], [AttachedPayment(aZ, fL)]) | |
1033 | + | if ((fF == fF)) | |
1028 | 1034 | then { | |
1029 | - | let | |
1035 | + | let fG = [ScriptTransfer(dz.caller, dH, eu)] | |
1030 | 1036 | let fw = if ((dN > 0)) | |
1031 | 1037 | then [ScriptTransfer(aK, dN, eu)] | |
1032 | 1038 | else nil | |
1033 | - | let | |
1034 | - | let | |
1039 | + | let fO = { | |
1040 | + | let fI = if ((this == aK)) | |
1035 | 1041 | then 0 | |
1036 | 1042 | else dN | |
1037 | 1043 | if (ew) | |
1038 | - | then $Tuple2(-((dH + | |
1039 | - | else $Tuple2(0, -((dH + | |
1044 | + | then $Tuple2(-((dH + fI)), 0) | |
1045 | + | else $Tuple2(0, -((dH + fI))) | |
1040 | 1046 | } | |
1041 | - | let dj = | |
1042 | - | let dk = | |
1043 | - | let | |
1044 | - | let fh = | |
1045 | - | let cZ = | |
1047 | + | let dj = fO._1 | |
1048 | + | let dk = fO._2 | |
1049 | + | let fP = di(dj, dk, 0) | |
1050 | + | let fh = fP._1 | |
1051 | + | let cZ = fP._2 | |
1046 | 1052 | let fi = dm(dh, cZ) | |
1047 | 1053 | if ((fi == fi)) | |
1048 | - | then $Tuple2((((cV ++ | |
1054 | + | then $Tuple2((((cV ++ fG) ++ fw) ++ fh), dH) | |
1049 | 1055 | else throw("Strict value is not equal to itself.") | |
1050 | 1056 | } | |
1051 | 1057 | else throw("Strict value is not equal to itself.") | |
1062 | 1068 | @Callable(dz) | |
1063 | 1069 | func get () = { | |
1064 | 1070 | let cG = dy(dz) | |
1065 | - | let | |
1071 | + | let fQ = cG._1 | |
1066 | 1072 | let cn = cG._2 | |
1067 | 1073 | let dB = cG._3 | |
1068 | 1074 | let bV = cG._4 | |
1069 | 1075 | let co = cG._5 | |
1070 | 1076 | let dh = da(toBigInt(0), toBigInt(0), toBigInt(dB)) | |
1071 | - | let | |
1072 | - | if (( | |
1077 | + | let fR = invoke(aJ, "burn", [dB], [AttachedPayment(bV, dB)]) | |
1078 | + | if ((fR == fR)) | |
1073 | 1079 | then { | |
1074 | - | let | |
1075 | - | let fh = | |
1076 | - | let cZ = | |
1080 | + | let fS = di(-(fQ), -(cn), 0) | |
1081 | + | let fh = fS._1 | |
1082 | + | let cZ = fS._2 | |
1077 | 1083 | let fi = dm(dh, cZ) | |
1078 | 1084 | if ((fi == fi)) | |
1079 | 1085 | then (co ++ fh) | |
1085 | 1091 | ||
1086 | 1092 | ||
1087 | 1093 | @Callable(dz) | |
1088 | - | func getNoLess ( | |
1094 | + | func getNoLess (fT,fU) = { | |
1089 | 1095 | let cG = dy(dz) | |
1090 | 1096 | let cm = cG._1 | |
1091 | 1097 | let cn = cG._2 | |
1092 | 1098 | let dB = cG._3 | |
1093 | 1099 | let bV = cG._4 | |
1094 | 1100 | let co = cG._5 | |
1095 | - | if (( | |
1096 | - | then throw(((("noLessThenAmtAsset failed: " + toString(cm)) + " < ") + toString( | |
1097 | - | else if (( | |
1098 | - | then throw(((("noLessThenPriceAsset failed: " + toString(cn)) + " < ") + toString( | |
1101 | + | if ((fT > cm)) | |
1102 | + | then throw(((("noLessThenAmtAsset failed: " + toString(cm)) + " < ") + toString(fT))) | |
1103 | + | else if ((fU > cn)) | |
1104 | + | then throw(((("noLessThenPriceAsset failed: " + toString(cn)) + " < ") + toString(fU))) | |
1099 | 1105 | else { | |
1100 | 1106 | let dh = da(toBigInt(0), toBigInt(0), toBigInt(dB)) | |
1101 | - | let | |
1102 | - | if (( | |
1107 | + | let fR = invoke(aJ, "burn", [dB], [AttachedPayment(bV, dB)]) | |
1108 | + | if ((fR == fR)) | |
1103 | 1109 | then { | |
1104 | - | let | |
1105 | - | let fh = | |
1106 | - | let cZ = | |
1110 | + | let fV = di(-(cm), -(cn), 0) | |
1111 | + | let fh = fV._1 | |
1112 | + | let cZ = fV._2 | |
1107 | 1113 | let fi = dm(dh, cZ) | |
1108 | 1114 | if ((fi == fi)) | |
1109 | 1115 | then (co ++ fh) | |
1117 | 1123 | ||
1118 | 1124 | @Callable(dz) | |
1119 | 1125 | func unstakeAndGet (dH) = { | |
1120 | - | let | |
1126 | + | let fW = if ((size(dz.payments) != 0)) | |
1121 | 1127 | then throw("No payments are expected") | |
1122 | 1128 | else true | |
1123 | - | if (( | |
1129 | + | if ((fW == fW)) | |
1124 | 1130 | then { | |
1125 | 1131 | let bK = aN() | |
1126 | 1132 | let bX = fromBase58String(bK[q]) | |
1127 | 1133 | let dh = da(toBigInt(0), toBigInt(0), toBigInt(0)) | |
1128 | - | let | |
1129 | - | if (( | |
1134 | + | let fM = invoke(bf, "unstake", [toBase58String(bX), dH], nil) | |
1135 | + | if ((fM == fM)) | |
1130 | 1136 | then { | |
1131 | 1137 | let cG = bT(toBase58String(dz.transactionId), toBase58String(bX), dH, dz.caller) | |
1132 | 1138 | let cm = cG._1 | |
1133 | 1139 | let cn = cG._2 | |
1134 | 1140 | let ca = parseIntValue(cG._9) | |
1135 | 1141 | let co = cG._10 | |
1136 | - | let | |
1142 | + | let fX = if (if (aL()) | |
1137 | 1143 | then true | |
1138 | 1144 | else (ca == n)) | |
1139 | 1145 | then throw(("Get operation is blocked by admin. Status = " + toString(ca))) | |
1140 | 1146 | else true | |
1141 | - | if (( | |
1147 | + | if ((fX == fX)) | |
1142 | 1148 | then { | |
1143 | - | let | |
1144 | - | if (( | |
1149 | + | let fR = invoke(aJ, "burn", [dH], [AttachedPayment(bX, dH)]) | |
1150 | + | if ((fR == fR)) | |
1145 | 1151 | then { | |
1146 | - | let | |
1147 | - | let fh = | |
1148 | - | let cZ = | |
1152 | + | let fY = di(-(cm), -(cn), 0) | |
1153 | + | let fh = fY._1 | |
1154 | + | let cZ = fY._2 | |
1149 | 1155 | let fi = dm(dh, cZ) | |
1150 | 1156 | if ((fi == fi)) | |
1151 | 1157 | then (co ++ fh) | |
1163 | 1169 | ||
1164 | 1170 | ||
1165 | 1171 | @Callable(dz) | |
1166 | - | func unstakeAndGetNoLess ( | |
1167 | - | let | |
1172 | + | func unstakeAndGetNoLess (fL,fZ,fU) = { | |
1173 | + | let fC = if (aL()) | |
1168 | 1174 | then true | |
1169 | 1175 | else (aY == n) | |
1170 | - | let ev = [if (!( | |
1176 | + | let ev = [if (!(fC)) | |
1171 | 1177 | then true | |
1172 | 1178 | else throw("get operation is blocked by admin"), if ((size(dz.payments) == 0)) | |
1173 | 1179 | then true | |
1175 | 1181 | if ((ev == ev)) | |
1176 | 1182 | then { | |
1177 | 1183 | let dh = da(toBigInt(0), toBigInt(0), toBigInt(0)) | |
1178 | - | let | |
1179 | - | if (( | |
1184 | + | let fM = invoke(bf, "unstake", [toBase58String(aZ), fL], nil) | |
1185 | + | if ((fM == fM)) | |
1180 | 1186 | then { | |
1181 | - | let cG = bT(toBase58String(dz.transactionId), toBase58String(aZ), | |
1187 | + | let cG = bT(toBase58String(dz.transactionId), toBase58String(aZ), fL, dz.caller) | |
1182 | 1188 | let cm = cG._1 | |
1183 | 1189 | let cn = cG._2 | |
1184 | 1190 | let co = cG._10 | |
1185 | - | let | |
1191 | + | let ga = [if ((cm >= fZ)) | |
1186 | 1192 | then true | |
1187 | - | else throw(makeString(["amount asset amount to receive is less than ", toString( | |
1193 | + | else throw(makeString(["amount asset amount to receive is less than ", toString(fZ)], "")), if ((cn >= fU)) | |
1188 | 1194 | then true | |
1189 | - | else throw(makeString(["price asset amount to receive is less than ", toString( | |
1190 | - | if (( | |
1195 | + | else throw(makeString(["price asset amount to receive is less than ", toString(fU)], ""))] | |
1196 | + | if ((ga == ga)) | |
1191 | 1197 | then { | |
1192 | - | let | |
1193 | - | if (( | |
1198 | + | let fR = invoke(aJ, "burn", [fL], [AttachedPayment(aZ, fL)]) | |
1199 | + | if ((fR == fR)) | |
1194 | 1200 | then { | |
1195 | - | let | |
1196 | - | let fh = | |
1197 | - | let cZ = | |
1201 | + | let gb = di(-(cm), -(cn), 0) | |
1202 | + | let fh = gb._1 | |
1203 | + | let cZ = gb._2 | |
1198 | 1204 | let fi = dm(dh, cZ) | |
1199 | 1205 | if ((fi == fi)) | |
1200 | 1206 | then (co ++ fh) | |
1212 | 1218 | ||
1213 | 1219 | ||
1214 | 1220 | @Callable(dz) | |
1215 | - | func activate ( | |
1221 | + | func activate (gc,gd) = if ((toString(dz.caller) != toString(aJ))) | |
1216 | 1222 | then throw("permissions denied") | |
1217 | - | else $Tuple2([StringEntry(aa(), | |
1223 | + | else $Tuple2([StringEntry(aa(), gc), StringEntry(ab(), gd)], "success") | |
1218 | 1224 | ||
1219 | 1225 | ||
1220 | 1226 | ||
1221 | 1227 | @Callable(dz) | |
1222 | 1228 | func refreshKLp () = { | |
1223 | - | let | |
1224 | - | let | |
1229 | + | let ge = valueOrElse(getInteger(ag), 0) | |
1230 | + | let gf = if (((height - ge) >= aj)) | |
1225 | 1231 | then unit | |
1226 | 1232 | else aG(makeString([toString(aj), " blocks have not passed since the previous call"], "")) | |
1227 | - | if (( | |
1233 | + | if ((gf == gf)) | |
1228 | 1234 | then { | |
1229 | 1235 | let dt = valueOrErrorMessage(parseBigInt(valueOrElse(getString(this, af), "0")), aI("invalid kLp")) | |
1230 | - | let | |
1231 | - | let | |
1232 | - | let cZ = | |
1236 | + | let gg = di(0, 0, 0) | |
1237 | + | let gh = gg._1 | |
1238 | + | let cZ = gg._2 | |
1233 | 1239 | let dl = if ((dt != cZ)) | |
1234 | - | then | |
1240 | + | then gh | |
1235 | 1241 | else aG("nothing to refresh") | |
1236 | 1242 | $Tuple2(dl, toString(cZ)) | |
1237 | 1243 | } | |
1290 | 1296 | func statsREADONLY () = { | |
1291 | 1297 | let bK = aN() | |
1292 | 1298 | let bX = fromBase58String(bK[q]) | |
1293 | - | let | |
1294 | - | let | |
1299 | + | let gi = bK[r] | |
1300 | + | let gj = bK[s] | |
1295 | 1301 | let cz = bK[v] | |
1296 | 1302 | let cA = bK[w] | |
1297 | 1303 | let bL = parseIntValue(bK[t]) | |
1298 | 1304 | let bM = parseIntValue(bK[u]) | |
1299 | - | let gj = valueOrErrorMessage(assetInfo(bX), (("Asset " + toBase58String(bX)) + " doesn't exist")).quantity | |
1300 | - | let gk = bw(gh) | |
1305 | + | let gk = valueOrErrorMessage(assetInfo(bX), (("Asset " + toBase58String(bX)) + " doesn't exist")).quantity | |
1301 | 1306 | let gl = bw(gi) | |
1302 | - | let gm = if ((gj == 0)) | |
1307 | + | let gm = bw(gj) | |
1308 | + | let gn = if ((gk == 0)) | |
1303 | 1309 | then [e, e, e] | |
1304 | - | else bI( | |
1310 | + | else bI(gl, gm, gk) | |
1305 | 1311 | let ch = 0 | |
1306 | - | let | |
1307 | - | let | |
1308 | - | let | |
1309 | - | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d", toString(gk), toString( | |
1312 | + | let go = G(gn[1], b) | |
1313 | + | let gp = G(gn[2], b) | |
1314 | + | let gq = value(getInteger(aJ, au(toString(this)))) | |
1315 | + | $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)) | |
1310 | 1316 | } | |
1311 | 1317 | ||
1312 | 1318 | ||
1322 | 1328 | let bL = parseIntValue(bK[t]) | |
1323 | 1329 | let bM = parseIntValue(bK[u]) | |
1324 | 1330 | let ca = bK[p] | |
1325 | - | let | |
1326 | - | let | |
1327 | - | let | |
1328 | - | let bG = D( | |
1329 | - | let bH = D( | |
1330 | - | let cg = if (( | |
1331 | + | let gk = valueOrErrorMessage(assetInfo(bX), (("Asset " + toBase58String(bX)) + " doesn't exist")).quantity | |
1332 | + | let gl = bw(cx) | |
1333 | + | let gm = bw(cy) | |
1334 | + | let bG = D(gl, bL) | |
1335 | + | let bH = D(gm, bM) | |
1336 | + | let cg = if ((gk == 0)) | |
1331 | 1337 | then e | |
1332 | 1338 | else by(bH, bG) | |
1333 | 1339 | let cD = D(cr, bL) | |
1335 | 1341 | let ct = G(cE, bM) | |
1336 | 1342 | let dF = cp("", 500000, cr, bY, ct, bZ, "", true, false) | |
1337 | 1343 | let cO = dF._1 | |
1338 | - | let | |
1344 | + | let gr = dF._3 | |
1339 | 1345 | let cc = dF._4 | |
1340 | 1346 | let ce = dF._5 | |
1341 | 1347 | let cb = dF._6 | |
1355 | 1361 | let bL = parseIntValue(bK[t]) | |
1356 | 1362 | let bM = parseIntValue(bK[u]) | |
1357 | 1363 | let ca = bK[p] | |
1358 | - | let | |
1359 | - | let | |
1360 | - | let | |
1361 | - | let | |
1362 | - | let | |
1363 | - | let cg = if (( | |
1364 | + | let gk = valueOrErrorMessage(assetInfo(bX), (("Asset " + toBase58String(bX)) + " doesn't exist")).quantity | |
1365 | + | let gs = bw(cx) | |
1366 | + | let gt = bw(cy) | |
1367 | + | let gu = D(gs, bL) | |
1368 | + | let gv = D(gt, bM) | |
1369 | + | let cg = if ((gk == 0)) | |
1364 | 1370 | then e | |
1365 | - | else by( | |
1371 | + | else by(gv, gu) | |
1366 | 1372 | let cE = D(ct, bM) | |
1367 | 1373 | let cD = fraction(cE, d, cg) | |
1368 | 1374 | let cr = G(cD, bL) | |
1369 | 1375 | let dF = cp("", 500000, cr, bY, ct, bZ, "", true, false) | |
1370 | 1376 | let cO = dF._1 | |
1371 | - | let | |
1377 | + | let gr = dF._3 | |
1372 | 1378 | let cc = dF._4 | |
1373 | 1379 | let ce = dF._5 | |
1374 | 1380 | let cb = dF._6 | |
1378 | 1384 | ||
1379 | 1385 | ||
1380 | 1386 | @Callable(dz) | |
1381 | - | func evaluateGetREADONLY ( | |
1382 | - | let cG = bT("", | |
1387 | + | func evaluateGetREADONLY (gw,gx) = { | |
1388 | + | let cG = bT("", gw, gx, this) | |
1383 | 1389 | let cm = cG._1 | |
1384 | 1390 | let cn = cG._2 | |
1385 | 1391 | let cc = cG._5 | |
1391 | 1397 | } | |
1392 | 1398 | ||
1393 | 1399 | ||
1394 | - | @Verifier( | |
1395 | - | func | |
1396 | - | let | |
1400 | + | @Verifier(gy) | |
1401 | + | func gz () = { | |
1402 | + | let gA = { | |
1397 | 1403 | let dK = eM() | |
1398 | 1404 | if ($isInstanceOf(dK, "ByteVector")) | |
1399 | 1405 | then { | |
1401 | 1407 | eQ | |
1402 | 1408 | } | |
1403 | 1409 | else if ($isInstanceOf(dK, "Unit")) | |
1404 | - | then | |
1410 | + | then gy.senderPublicKey | |
1405 | 1411 | else throw("Match error") | |
1406 | 1412 | } | |
1407 | - | let dK = | |
1413 | + | let dK = gy | |
1408 | 1414 | if ($isInstanceOf(dK, "Order")) | |
1409 | 1415 | then { | |
1410 | 1416 | let dp = dK | |
1411 | - | let | |
1417 | + | let gB = aM() | |
1412 | 1418 | let az = do(dp) | |
1413 | 1419 | let aA = sigVerify(dp.bodyBytes, dp.proofs[0], dp.senderPublicKey) | |
1414 | - | let aB = sigVerify(dp.bodyBytes, dp.proofs[1], | |
1420 | + | let aB = sigVerify(dp.bodyBytes, dp.proofs[1], gB) | |
1415 | 1421 | if (if (if (az) | |
1416 | 1422 | then aA | |
1417 | 1423 | else false) | |
1423 | 1429 | else if ($isInstanceOf(dK, "SetScriptTransaction")) | |
1424 | 1430 | then { | |
1425 | 1431 | let eN = dK | |
1426 | - | let | |
1427 | - | let | |
1428 | - | let | |
1429 | - | if (if (( | |
1430 | - | then ( | |
1432 | + | let gC = blake2b256(value(eN.script)) | |
1433 | + | let gD = fromBase64String(value(getString(aJ, aw()))) | |
1434 | + | let gE = scriptHash(this) | |
1435 | + | if (if ((gD == gC)) | |
1436 | + | then (gE != gC) | |
1431 | 1437 | else false) | |
1432 | 1438 | then true | |
1433 | - | else sigVerify( | |
1439 | + | else sigVerify(gy.bodyBytes, gy.proofs[0], gA) | |
1434 | 1440 | } | |
1435 | - | else sigVerify( | |
1441 | + | else sigVerify(gy.bodyBytes, gy.proofs[0], gA) | |
1436 | 1442 | } | |
1437 | 1443 |
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 | cZ | |
379 | 379 | } | |
380 | 380 | ||
381 | 381 | ||
382 | 382 | func da (db,dc,dd) = { | |
383 | 383 | let de = (toBigInt(bw(aS(ba))) - db) | |
384 | 384 | let df = (toBigInt(bw(aS(bb))) - dc) | |
385 | 385 | let dg = (toBigInt(value(assetInfo(aZ)).quantity) - dd) | |
386 | 386 | let dh = cW(de, df, dg) | |
387 | 387 | dh | |
388 | 388 | } | |
389 | 389 | ||
390 | 390 | ||
391 | 391 | func di (dj,dk,dd) = { | |
392 | 392 | let de = (bw(aS(ba)) + dj) | |
393 | 393 | let df = (bw(aS(bb)) + dk) | |
394 | 394 | let dg = (value(assetInfo(aZ)).quantity + dd) | |
395 | 395 | let cZ = cW(toBigInt(de), toBigInt(df), toBigInt(dg)) | |
396 | 396 | let dl = [IntegerEntry(ag, height), StringEntry(af, toString(cZ))] | |
397 | 397 | $Tuple2(dl, cZ) | |
398 | 398 | } | |
399 | 399 | ||
400 | 400 | ||
401 | 401 | func dm (dn,cZ) = if ((cZ >= dn)) | |
402 | 402 | then true | |
403 | 403 | else aG(makeString(["updated KLp lower than current KLp", toString(dn), toString(cZ)], " ")) | |
404 | 404 | ||
405 | 405 | ||
406 | 406 | func do (dp) = { | |
407 | 407 | let dq = dp.amount | |
408 | 408 | let dr = fraction(dp.amount, dp.price, b, FLOOR) | |
409 | 409 | let ds = if ((dp.orderType == Buy)) | |
410 | 410 | then $Tuple2(dq, -(dr)) | |
411 | 411 | else $Tuple2(-(dq), dr) | |
412 | 412 | let dj = ds._1 | |
413 | 413 | let dk = ds._2 | |
414 | 414 | if (if (if (aL()) | |
415 | 415 | then true | |
416 | 416 | else (aY == m)) | |
417 | 417 | then true | |
418 | 418 | else (aY == n)) | |
419 | 419 | then throw("Exchange operations disabled") | |
420 | 420 | else if (if ((dp.assetPair.amountAsset != ba)) | |
421 | 421 | then true | |
422 | 422 | else (dp.assetPair.priceAsset != bb)) | |
423 | 423 | then throw("Wrong order assets.") | |
424 | 424 | else { | |
425 | 425 | let dt = valueOrErrorMessage(parseBigInt(valueOrErrorMessage(getString(this, af), aI("kLp is required"))), aI("invalid kLp")) | |
426 | 426 | let du = di(dj, dk, 0) | |
427 | 427 | let dv = du._1 | |
428 | 428 | let dw = du._2 | |
429 | 429 | let dx = (dw >= dt) | |
430 | 430 | dx | |
431 | 431 | } | |
432 | 432 | } | |
433 | 433 | ||
434 | 434 | ||
435 | 435 | func dy (dz) = if ((size(dz.payments) != 1)) | |
436 | 436 | then throw("exactly 1 payment is expected") | |
437 | 437 | else { | |
438 | 438 | let dA = value(dz.payments[0]) | |
439 | 439 | let bV = value(dA.assetId) | |
440 | 440 | let dB = dA.amount | |
441 | 441 | let cG = bT(toBase58String(dz.transactionId), toBase58String(bV), dB, dz.caller) | |
442 | 442 | let cm = cG._1 | |
443 | 443 | let cn = cG._2 | |
444 | 444 | let ca = parseIntValue(cG._9) | |
445 | 445 | let co = cG._10 | |
446 | 446 | if (if (aL()) | |
447 | 447 | then true | |
448 | 448 | else (ca == n)) | |
449 | 449 | then throw(("Get operation is blocked by admin. Status = " + toString(ca))) | |
450 | 450 | else $Tuple5(cm, cn, dB, bV, co) | |
451 | 451 | } | |
452 | 452 | ||
453 | 453 | ||
454 | 454 | func dC (dz,cq,cw) = if ((size(dz.payments) != 2)) | |
455 | 455 | then throw("exactly 2 payments are expected") | |
456 | 456 | else { | |
457 | 457 | let dD = value(dz.payments[0]) | |
458 | 458 | let dE = value(dz.payments[1]) | |
459 | 459 | let dF = cp(toBase58String(dz.transactionId), cq, dD.amount, dD.assetId, dE.amount, dE.assetId, toString(dz.caller), false, cw) | |
460 | 460 | let ca = parseIntValue(dF._8) | |
461 | 461 | if (if (if (aL()) | |
462 | 462 | then true | |
463 | 463 | else (ca == l)) | |
464 | 464 | then true | |
465 | 465 | else (ca == n)) | |
466 | 466 | then throw(("Put operation is blocked by admin. Status = " + toString(ca))) | |
467 | 467 | else dF | |
468 | 468 | } | |
469 | 469 | ||
470 | 470 | ||
471 | 471 | func dG (dH) = { | |
472 | 472 | let dI = invoke(aJ, "emit", [dH], nil) | |
473 | 473 | if ((dI == dI)) | |
474 | 474 | then { | |
475 | 475 | let dJ = { | |
476 | 476 | let dK = dI | |
477 | 477 | if ($isInstanceOf(dK, "Address")) | |
478 | 478 | then { | |
479 | 479 | let dL = dK | |
480 | 480 | invoke(dL, "emit", [dH], nil) | |
481 | 481 | } | |
482 | 482 | else unit | |
483 | 483 | } | |
484 | 484 | if ((dJ == dJ)) | |
485 | 485 | then dH | |
486 | 486 | else throw("Strict value is not equal to itself.") | |
487 | 487 | } | |
488 | 488 | else throw("Strict value is not equal to itself.") | |
489 | 489 | } | |
490 | 490 | ||
491 | 491 | ||
492 | 492 | func dM (dH) = { | |
493 | 493 | let dN = fraction(dH, ae, b) | |
494 | 494 | $Tuple2((dH - dN), dN) | |
495 | 495 | } | |
496 | 496 | ||
497 | 497 | ||
498 | 498 | func dO (dP,dQ,X,Y) = { | |
499 | 499 | let dR = (Y == unit) | |
500 | 500 | let dS = bw(aS(ba)) | |
501 | 501 | let dT = bw(aS(bb)) | |
502 | 502 | let dU = if ((dQ == ba)) | |
503 | 503 | then true | |
504 | 504 | else if ((dQ == bb)) | |
505 | 505 | then false | |
506 | 506 | else aG("invalid asset") | |
507 | 507 | let dV = if (dR) | |
508 | 508 | then $Tuple2(dS, dT) | |
509 | 509 | else if (dU) | |
510 | 510 | then $Tuple2((dS - dP), dT) | |
511 | 511 | else $Tuple2(dS, (dT - dP)) | |
512 | 512 | let dW = dV._1 | |
513 | 513 | let dX = dV._2 | |
514 | 514 | let dY = if (dU) | |
515 | 515 | then $Tuple2(dP, 0) | |
516 | 516 | else $Tuple2(0, dP) | |
517 | 517 | let dZ = dY._1 | |
518 | 518 | let ea = dY._2 | |
519 | 519 | let dq = dM(dZ)._1 | |
520 | 520 | let dr = dM(ea)._1 | |
521 | 521 | let eb = dM(dP) | |
522 | 522 | let ec = eb._1 | |
523 | 523 | let dN = eb._2 | |
524 | 524 | let ed = (dW + dq) | |
525 | 525 | let ee = (dX + dr) | |
526 | 526 | let ef = by(D(ee, bd), D(ed, bc)) | |
527 | 527 | let eg = G(ef, b) | |
528 | 528 | let eh = if (dU) | |
529 | 529 | then dW | |
530 | 530 | else dX | |
531 | 531 | let ei = toBigInt(eh) | |
532 | 532 | let ej = toBigInt(valueOrErrorMessage(assetInfo(aZ), (("asset " + toBase58String(aZ)) + " doesn't exist")).quantity) | |
533 | 533 | let ek = if ((ej > f)) | |
534 | 534 | then true | |
535 | 535 | else aG("initial deposit requires all coins") | |
536 | 536 | if ((ek == ek)) | |
537 | 537 | then { | |
538 | 538 | let el = toBigInt(ec) | |
539 | 539 | let em = max([0, toInt(((ej * (sqrtBigInt((d + ((el * d) / ei)), 18, 18, DOWN) - d)) / d))]) | |
540 | 540 | let cV = if (dR) | |
541 | 541 | then nil | |
542 | 542 | 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))] | |
543 | 543 | let en = by(D(dX, bd), D(dW, bc)) | |
544 | 544 | let eo = G(en, b) | |
545 | 545 | let ep = { | |
546 | 546 | let eq = if (dU) | |
547 | 547 | then $Tuple2(dZ, dW) | |
548 | 548 | else $Tuple2(ea, dX) | |
549 | 549 | let dH = eq._1 | |
550 | 550 | let er = eq._2 | |
551 | 551 | let es = toInt(fraction(ej, toBigInt((dH / 2)), toBigInt(er))) | |
552 | 552 | fraction((em - es), b, es) | |
553 | 553 | } | |
554 | 554 | $Tuple5(em, cV, dN, ep, dU) | |
555 | 555 | } | |
556 | 556 | else throw("Strict value is not equal to itself.") | |
557 | 557 | } | |
558 | 558 | ||
559 | 559 | ||
560 | 560 | func et (eu,ec,dQ,X,Y) = { | |
561 | 561 | let dR = (Y == unit) | |
562 | 562 | let ev = [if ((dQ == aZ)) | |
563 | 563 | then true | |
564 | 564 | else aG("invalid lp asset")] | |
565 | 565 | if ((ev == ev)) | |
566 | 566 | then { | |
567 | 567 | let ew = if ((eu == ba)) | |
568 | 568 | then true | |
569 | 569 | else if ((eu == bb)) | |
570 | 570 | then false | |
571 | 571 | else aG("invalid asset") | |
572 | 572 | let ex = if (ew) | |
573 | 573 | then toBigInt(bw(aS(ba))) | |
574 | 574 | else toBigInt(bw(aS(bb))) | |
575 | 575 | let ey = bw(aS(ba)) | |
576 | 576 | let ez = bw(aS(bb)) | |
577 | 577 | let eA = if (ew) | |
578 | 578 | then ey | |
579 | 579 | else ez | |
580 | 580 | let eB = toBigInt(eA) | |
581 | 581 | let ej = toBigInt(valueOrErrorMessage(assetInfo(aZ), (("asset " + toBase58String(aZ)) + " doesn't exist")).quantity) | |
582 | 582 | let eC = toBigInt(ec) | |
583 | 583 | let eD = max([0, toInt(((ex * (d - pow((d - ((eC * d) / ej)), 18, h, 0, 18, DOWN))) / d))]) | |
584 | 584 | let eE = dM(eD) | |
585 | 585 | let eF = eE._1 | |
586 | 586 | let dN = eE._2 | |
587 | 587 | let eG = if (ew) | |
588 | 588 | then $Tuple4(eF, 0, (ey - eD), ez) | |
589 | 589 | else $Tuple4(0, eF, ey, (ez - eD)) | |
590 | 590 | let eH = eG._1 | |
591 | 591 | let eI = eG._2 | |
592 | 592 | let eJ = eG._3 | |
593 | 593 | let eK = eG._4 | |
594 | 594 | let ef = by(D(eK, bd), D(eJ, bc)) | |
595 | 595 | let eg = G(ef, b) | |
596 | 596 | let cV = if (dR) | |
597 | 597 | then nil | |
598 | 598 | 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)] | |
599 | 599 | let en = by(D(ez, bd), D(ey, bc)) | |
600 | 600 | let eo = G(en, b) | |
601 | 601 | let ep = { | |
602 | 602 | let eL = (toInt(fraction(ex, eC, ej)) * 2) | |
603 | 603 | fraction((eF - eL), b, eL) | |
604 | 604 | } | |
605 | 605 | $Tuple5(eF, cV, dN, ep, ew) | |
606 | 606 | } | |
607 | 607 | else throw("Strict value is not equal to itself.") | |
608 | 608 | } | |
609 | 609 | ||
610 | 610 | ||
611 | 611 | func eM () = { | |
612 | 612 | let dK = getString(Q()) | |
613 | 613 | if ($isInstanceOf(dK, "String")) | |
614 | 614 | then { | |
615 | 615 | let eN = dK | |
616 | 616 | fromBase58String(eN) | |
617 | 617 | } | |
618 | 618 | else if ($isInstanceOf(dK, "Unit")) | |
619 | 619 | then unit | |
620 | 620 | else throw("Match error") | |
621 | 621 | } | |
622 | 622 | ||
623 | 623 | ||
624 | 624 | func eO () = { | |
625 | 625 | let dK = getString(R()) | |
626 | 626 | if ($isInstanceOf(dK, "String")) | |
627 | 627 | then { | |
628 | 628 | let eN = dK | |
629 | 629 | fromBase58String(eN) | |
630 | 630 | } | |
631 | 631 | else if ($isInstanceOf(dK, "Unit")) | |
632 | 632 | then unit | |
633 | 633 | else throw("Match error") | |
634 | 634 | } | |
635 | 635 | ||
636 | 636 | ||
637 | 637 | func eP (dz) = { | |
638 | 638 | let dK = eM() | |
639 | 639 | if ($isInstanceOf(dK, "ByteVector")) | |
640 | 640 | then { | |
641 | 641 | let eQ = dK | |
642 | 642 | (dz.callerPublicKey == eQ) | |
643 | 643 | } | |
644 | 644 | else if ($isInstanceOf(dK, "Unit")) | |
645 | 645 | then (dz.caller == this) | |
646 | 646 | else throw("Match error") | |
647 | 647 | } | |
648 | 648 | ||
649 | 649 | ||
650 | 650 | func eR (dz) = { | |
651 | 651 | let eS = throw("Permission denied") | |
652 | 652 | let dK = eM() | |
653 | 653 | if ($isInstanceOf(dK, "ByteVector")) | |
654 | 654 | then { | |
655 | 655 | let eQ = dK | |
656 | 656 | if ((dz.callerPublicKey == eQ)) | |
657 | 657 | then true | |
658 | 658 | else eS | |
659 | 659 | } | |
660 | 660 | else if ($isInstanceOf(dK, "Unit")) | |
661 | 661 | then if ((dz.caller == this)) | |
662 | 662 | then true | |
663 | 663 | else eS | |
664 | 664 | else throw("Match error") | |
665 | 665 | } | |
666 | 666 | ||
667 | 667 | ||
668 | 668 | @Callable(dz) | |
669 | 669 | func setManager (eT) = { | |
670 | 670 | let eU = eR(dz) | |
671 | 671 | if ((eU == eU)) | |
672 | 672 | then { | |
673 | 673 | let eV = fromBase58String(eT) | |
674 | 674 | if ((eV == eV)) | |
675 | 675 | then [StringEntry(R(), eT)] | |
676 | 676 | else throw("Strict value is not equal to itself.") | |
677 | 677 | } | |
678 | 678 | else throw("Strict value is not equal to itself.") | |
679 | 679 | } | |
680 | 680 | ||
681 | 681 | ||
682 | 682 | ||
683 | 683 | @Callable(dz) | |
684 | 684 | func confirmManager () = { | |
685 | 685 | let eW = eO() | |
686 | 686 | let eX = if (isDefined(eW)) | |
687 | 687 | then true | |
688 | 688 | else throw("No pending manager") | |
689 | 689 | if ((eX == eX)) | |
690 | 690 | then { | |
691 | 691 | let eY = if ((dz.callerPublicKey == value(eW))) | |
692 | 692 | then true | |
693 | 693 | else throw("You are not pending manager") | |
694 | 694 | if ((eY == eY)) | |
695 | 695 | then [StringEntry(Q(), toBase58String(value(eW))), DeleteEntry(R())] | |
696 | 696 | else throw("Strict value is not equal to itself.") | |
697 | 697 | } | |
698 | 698 | else throw("Strict value is not equal to itself.") | |
699 | 699 | } | |
700 | 700 | ||
701 | 701 | ||
702 | 702 | ||
703 | 703 | @Callable(dz) | |
704 | 704 | func put (cq,eZ) = if ((0 > cq)) | |
705 | 705 | then throw("Invalid slippageTolerance passed") | |
706 | 706 | else { | |
707 | 707 | let dF = dC(dz, cq, true) | |
708 | 708 | let cS = dF._2 | |
709 | 709 | let bX = dF._7 | |
710 | 710 | let co = dF._9 | |
711 | 711 | let cT = dF._10 | |
712 | 712 | let cU = dF._11 | |
713 | 713 | let fa = dF._12 | |
714 | 714 | let fb = dF._13 | |
715 | 715 | let dD = toBigInt(value(dz.payments[0]).amount) | |
716 | 716 | let dE = toBigInt(value(dz.payments[1]).amount) | |
717 | 717 | let dh = da(dD, dE, toBigInt(0)) | |
718 | 718 | if ((dh == dh)) | |
719 | 719 | then { | |
720 | 720 | let dI = invoke(aJ, "emit", [cS], nil) | |
721 | 721 | if ((dI == dI)) | |
722 | 722 | then { | |
723 | 723 | let dJ = { | |
724 | 724 | let dK = dI | |
725 | 725 | if ($isInstanceOf(dK, "Address")) | |
726 | 726 | then { | |
727 | 727 | let dL = dK | |
728 | 728 | invoke(dL, "emit", [cS], nil) | |
729 | 729 | } | |
730 | 730 | else unit | |
731 | 731 | } | |
732 | 732 | if ((dJ == dJ)) | |
733 | 733 | then { | |
734 | 734 | let fc = if ((cT > 0)) | |
735 | 735 | then invoke(bg, "put", nil, [AttachedPayment(fa, cT)]) | |
736 | 736 | else nil | |
737 | 737 | if ((fc == fc)) | |
738 | 738 | then { | |
739 | 739 | let fd = if ((cU > 0)) | |
740 | 740 | then invoke(bg, "put", nil, [AttachedPayment(fb, cU)]) | |
741 | 741 | else nil | |
742 | 742 | if ((fd == fd)) | |
743 | 743 | then { | |
744 | 744 | let fe = if (eZ) | |
745 | 745 | then { | |
746 | 746 | let ff = invoke(bf, "stake", nil, [AttachedPayment(bX, cS)]) | |
747 | 747 | if ((ff == ff)) | |
748 | 748 | then nil | |
749 | 749 | else throw("Strict value is not equal to itself.") | |
750 | 750 | } | |
751 | 751 | else [ScriptTransfer(dz.caller, cS, bX)] | |
752 | 752 | let fg = di(0, 0, 0) | |
753 | 753 | let fh = fg._1 | |
754 | 754 | let cZ = fg._2 | |
755 | 755 | let fi = dm(dh, cZ) | |
756 | 756 | if ((fi == fi)) | |
757 | 757 | then ((co ++ fe) ++ fh) | |
758 | 758 | else throw("Strict value is not equal to itself.") | |
759 | 759 | } | |
760 | 760 | else throw("Strict value is not equal to itself.") | |
761 | 761 | } | |
762 | 762 | else throw("Strict value is not equal to itself.") | |
763 | 763 | } | |
764 | 764 | else throw("Strict value is not equal to itself.") | |
765 | 765 | } | |
766 | 766 | else throw("Strict value is not equal to itself.") | |
767 | 767 | } | |
768 | 768 | else throw("Strict value is not equal to itself.") | |
769 | 769 | } | |
770 | 770 | ||
771 | 771 | ||
772 | 772 | ||
773 | 773 | @Callable(dz) | |
774 | 774 | func putForFree (fj) = if ((0 > fj)) | |
775 | 775 | then throw("Invalid value passed") | |
776 | 776 | else { | |
777 | 777 | let dF = dC(dz, fj, false) | |
778 | 778 | let co = dF._9 | |
779 | 779 | let dD = toBigInt(value(dz.payments[0]).amount) | |
780 | 780 | let dE = toBigInt(value(dz.payments[1]).amount) | |
781 | 781 | let dh = da(dD, dE, toBigInt(0)) | |
782 | 782 | if ((dh == dh)) | |
783 | 783 | then { | |
784 | 784 | let fk = di(0, 0, 0) | |
785 | 785 | let fh = fk._1 | |
786 | 786 | let cZ = fk._2 | |
787 | 787 | let fi = dm(dh, cZ) | |
788 | 788 | if ((fi == fi)) | |
789 | 789 | then (co ++ fh) | |
790 | 790 | else throw("Strict value is not equal to itself.") | |
791 | 791 | } | |
792 | 792 | else throw("Strict value is not equal to itself.") | |
793 | 793 | } | |
794 | 794 | ||
795 | 795 | ||
796 | 796 | ||
797 | 797 | @Callable(dz) | |
798 | 798 | func putOneTkn (fl,fm) = { | |
799 | 799 | let fn = { | |
800 | 800 | let fo = invoke(aJ, "isPoolOneTokenOperationsDisabledREADONLY", [toString(this)], nil) | |
801 | 801 | if ($isInstanceOf(fo, "Boolean")) | |
802 | 802 | then fo | |
803 | 803 | else throw(($getType(fo) + " couldn't be cast to Boolean")) | |
804 | 804 | } | |
805 | 805 | let fp = if (if (if (aL()) | |
806 | 806 | then true | |
807 | 807 | else (aY == l)) | |
808 | 808 | then true | |
809 | 809 | else (aY == n)) | |
810 | 810 | then true | |
811 | 811 | else fn | |
812 | 812 | let ev = [if (if (!(fp)) | |
813 | 813 | then true | |
814 | 814 | else eP(dz)) | |
815 | 815 | then true | |
816 | 816 | else aG("put operation is blocked by admin"), if ((size(dz.payments) == 1)) | |
817 | 817 | then true | |
818 | 818 | else aG("exactly 1 payment are expected")] | |
819 | 819 | if ((ev == ev)) | |
820 | 820 | then { | |
821 | 821 | let fq = dz.payments[0] | |
822 | 822 | let dQ = fq.assetId | |
823 | 823 | let dP = fq.amount | |
824 | 824 | let dh = if ((dQ == ba)) | |
825 | 825 | then da(toBigInt(dP), toBigInt(0), toBigInt(0)) | |
826 | 826 | else if ((dQ == bb)) | |
827 | 827 | then da(toBigInt(0), toBigInt(dP), toBigInt(0)) | |
828 | 828 | else aG("payment asset is not supported") | |
829 | 829 | let X = dz.caller | |
830 | 830 | let Y = dz.transactionId | |
831 | 831 | let fr = dO(dP, dQ, X, Y) | |
832 | 832 | if ((fr == fr)) | |
833 | 833 | then { | |
834 | 834 | let dU = fr._5 | |
835 | 835 | let fs = fr._4 | |
836 | 836 | let dN = fr._3 | |
837 | 837 | let cV = fr._2 | |
838 | 838 | let ft = fr._1 | |
839 | 839 | let fu = if (if ((fl > 0)) | |
840 | 840 | then (fl > ft) | |
841 | 841 | else false) | |
842 | 842 | then aG(makeString(["amount to receive is less than ", toString(fl)], "")) | |
843 | 843 | else ft | |
844 | 844 | let dI = dG(fu) | |
845 | 845 | if ((dI == dI)) | |
846 | 846 | then { | |
847 | 847 | let fe = if (fm) | |
848 | 848 | then { | |
849 | 849 | let fv = invoke(bf, "stake", nil, [AttachedPayment(aZ, fu)]) | |
850 | 850 | if ((fv == fv)) | |
851 | 851 | then nil | |
852 | 852 | else throw("Strict value is not equal to itself.") | |
853 | 853 | } | |
854 | 854 | else [ScriptTransfer(dz.caller, fu, aZ)] | |
855 | 855 | let fw = if ((dN > 0)) | |
856 | 856 | then [ScriptTransfer(aK, dN, dQ)] | |
857 | 857 | else nil | |
858 | 858 | let fx = if ((this == aK)) | |
859 | 859 | then $Tuple2(0, 0) | |
860 | 860 | else if (dU) | |
861 | 861 | then $Tuple2(-(dN), 0) | |
862 | 862 | else $Tuple2(0, -(dN)) | |
863 | 863 | let dj = fx._1 | |
864 | 864 | let dk = fx._2 | |
865 | 865 | let fy = di(dj, dk, 0) | |
866 | 866 | let fh = fy._1 | |
867 | 867 | let cZ = fy._2 | |
868 | - | let fi = dm(dh, cZ) | |
869 | - | if ((fi == fi)) | |
870 | - | then $Tuple2((((cV ++ fe) ++ fw) ++ fh), fu) | |
868 | + | let dt = value(getString(af)) | |
869 | + | let fz = aG(makeString([toString(dj), toString(dk), dt, toString(dh), toString(cZ)], " ")) | |
870 | + | if ((fz == fz)) | |
871 | + | then { | |
872 | + | let fi = dm(dh, cZ) | |
873 | + | if ((fi == fi)) | |
874 | + | then $Tuple2((((cV ++ fe) ++ fw) ++ fh), fu) | |
875 | + | else throw("Strict value is not equal to itself.") | |
876 | + | } | |
871 | 877 | else throw("Strict value is not equal to itself.") | |
872 | 878 | } | |
873 | 879 | else throw("Strict value is not equal to itself.") | |
874 | 880 | } | |
875 | 881 | else throw("Strict value is not equal to itself.") | |
876 | 882 | } | |
877 | 883 | else throw("Strict value is not equal to itself.") | |
878 | 884 | } | |
879 | 885 | ||
880 | 886 | ||
881 | 887 | ||
882 | 888 | @Callable(dz) | |
883 | 889 | func putOneTknREADONLY (dQ,dP) = { | |
884 | - | let | |
885 | - | let ft = | |
886 | - | let cV = | |
887 | - | let dN = | |
888 | - | let fs = | |
889 | - | let dU = | |
890 | + | let fA = dO(dP, aQ(dQ), unit, unit) | |
891 | + | let ft = fA._1 | |
892 | + | let cV = fA._2 | |
893 | + | let dN = fA._3 | |
894 | + | let fs = fA._4 | |
895 | + | let dU = fA._5 | |
890 | 896 | $Tuple2(nil, $Tuple3(ft, dN, fs)) | |
891 | 897 | } | |
892 | 898 | ||
893 | 899 | ||
894 | 900 | ||
895 | 901 | @Callable(dz) | |
896 | - | func getOneTkn ( | |
902 | + | func getOneTkn (fB,fl) = { | |
897 | 903 | let fn = { | |
898 | 904 | let fo = invoke(aJ, "isPoolOneTokenOperationsDisabledREADONLY", [toString(this)], nil) | |
899 | 905 | if ($isInstanceOf(fo, "Boolean")) | |
900 | 906 | then fo | |
901 | 907 | else throw(($getType(fo) + " couldn't be cast to Boolean")) | |
902 | 908 | } | |
903 | - | let | |
909 | + | let fC = if (if (aL()) | |
904 | 910 | then true | |
905 | 911 | else (aY == n)) | |
906 | 912 | then true | |
907 | 913 | else fn | |
908 | - | let ev = [if (if (!( | |
914 | + | let ev = [if (if (!(fC)) | |
909 | 915 | then true | |
910 | 916 | else eP(dz)) | |
911 | 917 | then true | |
912 | 918 | else aG("get operation is blocked by admin"), if ((size(dz.payments) == 1)) | |
913 | 919 | then true | |
914 | 920 | else aG("exactly 1 payment are expected")] | |
915 | 921 | if ((ev == ev)) | |
916 | 922 | then { | |
917 | - | let eu = aQ( | |
923 | + | let eu = aQ(fB) | |
918 | 924 | let fq = dz.payments[0] | |
919 | 925 | let dQ = fq.assetId | |
920 | 926 | let ec = fq.amount | |
921 | 927 | let dh = da(toBigInt(0), toBigInt(0), toBigInt(ec)) | |
922 | 928 | let X = dz.caller | |
923 | 929 | let Y = dz.transactionId | |
924 | - | let | |
925 | - | if (( | |
930 | + | let fD = et(eu, ec, dQ, X, Y) | |
931 | + | if ((fD == fD)) | |
926 | 932 | then { | |
927 | - | let ew = | |
928 | - | let fs = | |
929 | - | let dN = | |
930 | - | let cV = | |
931 | - | let | |
933 | + | let ew = fD._5 | |
934 | + | let fs = fD._4 | |
935 | + | let dN = fD._3 | |
936 | + | let cV = fD._2 | |
937 | + | let fE = fD._1 | |
932 | 938 | let dH = if (if ((fl > 0)) | |
933 | - | then (fl > | |
939 | + | then (fl > fE) | |
934 | 940 | else false) | |
935 | 941 | then aG(makeString(["amount to receive is less than ", toString(fl)], "")) | |
936 | - | else | |
937 | - | let | |
938 | - | if (( | |
942 | + | else fE | |
943 | + | let fF = invoke(aJ, "burn", [ec], [AttachedPayment(dQ, ec)]) | |
944 | + | if ((fF == fF)) | |
939 | 945 | then { | |
940 | - | let | |
946 | + | let fG = [ScriptTransfer(X, dH, eu)] | |
941 | 947 | let fw = if ((dN > 0)) | |
942 | 948 | then [ScriptTransfer(aK, dN, eu)] | |
943 | 949 | else nil | |
944 | - | let | |
945 | - | let | |
950 | + | let fH = { | |
951 | + | let fI = if ((this == aK)) | |
946 | 952 | then 0 | |
947 | 953 | else dN | |
948 | 954 | if (ew) | |
949 | - | then $Tuple2(-((dH + | |
950 | - | else $Tuple2(0, -((dH + | |
955 | + | then $Tuple2(-((dH + fI)), 0) | |
956 | + | else $Tuple2(0, -((dH + fI))) | |
951 | 957 | } | |
952 | - | let dj = | |
953 | - | let dk = | |
954 | - | let | |
955 | - | let fh = | |
956 | - | let cZ = | |
958 | + | let dj = fH._1 | |
959 | + | let dk = fH._2 | |
960 | + | let fJ = di(dj, dk, 0) | |
961 | + | let fh = fJ._1 | |
962 | + | let cZ = fJ._2 | |
957 | 963 | let fi = dm(dh, cZ) | |
958 | 964 | if ((fi == fi)) | |
959 | - | then $Tuple2((((cV ++ | |
965 | + | then $Tuple2((((cV ++ fG) ++ fw) ++ fh), dH) | |
960 | 966 | else throw("Strict value is not equal to itself.") | |
961 | 967 | } | |
962 | 968 | else throw("Strict value is not equal to itself.") | |
963 | 969 | } | |
964 | 970 | else throw("Strict value is not equal to itself.") | |
965 | 971 | } | |
966 | 972 | else throw("Strict value is not equal to itself.") | |
967 | 973 | } | |
968 | 974 | ||
969 | 975 | ||
970 | 976 | ||
971 | 977 | @Callable(dz) | |
972 | 978 | func getOneTknREADONLY (eu,ec) = { | |
973 | - | let | |
974 | - | let | |
975 | - | let cV = | |
976 | - | let dN = | |
977 | - | let fs = | |
978 | - | let ew = | |
979 | - | $Tuple2(nil, $Tuple3( | |
979 | + | let fK = et(aQ(eu), ec, aZ, unit, unit) | |
980 | + | let fE = fK._1 | |
981 | + | let cV = fK._2 | |
982 | + | let dN = fK._3 | |
983 | + | let fs = fK._4 | |
984 | + | let ew = fK._5 | |
985 | + | $Tuple2(nil, $Tuple3(fE, dN, fs)) | |
980 | 986 | } | |
981 | 987 | ||
982 | 988 | ||
983 | 989 | ||
984 | 990 | @Callable(dz) | |
985 | - | func unstakeAndGetOneTkn ( | |
991 | + | func unstakeAndGetOneTkn (fL,fB,fl) = { | |
986 | 992 | let fn = { | |
987 | 993 | let fo = invoke(aJ, "isPoolOneTokenOperationsDisabledREADONLY", [toString(this)], nil) | |
988 | 994 | if ($isInstanceOf(fo, "Boolean")) | |
989 | 995 | then fo | |
990 | 996 | else throw(($getType(fo) + " couldn't be cast to Boolean")) | |
991 | 997 | } | |
992 | - | let | |
998 | + | let fC = if (if (aL()) | |
993 | 999 | then true | |
994 | 1000 | else (aY == n)) | |
995 | 1001 | then true | |
996 | 1002 | else fn | |
997 | - | let ev = [if (if (!( | |
1003 | + | let ev = [if (if (!(fC)) | |
998 | 1004 | then true | |
999 | 1005 | else eP(dz)) | |
1000 | 1006 | then true | |
1001 | 1007 | else aG("get operation is blocked by admin"), if ((size(dz.payments) == 0)) | |
1002 | 1008 | then true | |
1003 | 1009 | else aG("no payments are expected")] | |
1004 | 1010 | if ((ev == ev)) | |
1005 | 1011 | then { | |
1006 | - | let eu = aQ( | |
1012 | + | let eu = aQ(fB) | |
1007 | 1013 | let X = dz.caller | |
1008 | 1014 | let Y = dz.transactionId | |
1009 | 1015 | let dh = da(toBigInt(0), toBigInt(0), toBigInt(0)) | |
1010 | - | let | |
1011 | - | if (( | |
1016 | + | let fM = invoke(bf, "unstake", [toBase58String(aZ), fL], nil) | |
1017 | + | if ((fM == fM)) | |
1012 | 1018 | then { | |
1013 | - | let | |
1014 | - | if (( | |
1019 | + | let fN = et(eu, fL, aZ, X, Y) | |
1020 | + | if ((fN == fN)) | |
1015 | 1021 | then { | |
1016 | - | let ew = | |
1017 | - | let fs = | |
1018 | - | let dN = | |
1019 | - | let cV = | |
1020 | - | let | |
1022 | + | let ew = fN._5 | |
1023 | + | let fs = fN._4 | |
1024 | + | let dN = fN._3 | |
1025 | + | let cV = fN._2 | |
1026 | + | let fE = fN._1 | |
1021 | 1027 | let dH = if (if ((fl > 0)) | |
1022 | - | then (fl > | |
1028 | + | then (fl > fE) | |
1023 | 1029 | else false) | |
1024 | 1030 | then aG(makeString(["amount to receive is less than ", toString(fl)], "")) | |
1025 | - | else | |
1026 | - | let | |
1027 | - | if (( | |
1031 | + | else fE | |
1032 | + | let fF = invoke(aJ, "burn", [fL], [AttachedPayment(aZ, fL)]) | |
1033 | + | if ((fF == fF)) | |
1028 | 1034 | then { | |
1029 | - | let | |
1035 | + | let fG = [ScriptTransfer(dz.caller, dH, eu)] | |
1030 | 1036 | let fw = if ((dN > 0)) | |
1031 | 1037 | then [ScriptTransfer(aK, dN, eu)] | |
1032 | 1038 | else nil | |
1033 | - | let | |
1034 | - | let | |
1039 | + | let fO = { | |
1040 | + | let fI = if ((this == aK)) | |
1035 | 1041 | then 0 | |
1036 | 1042 | else dN | |
1037 | 1043 | if (ew) | |
1038 | - | then $Tuple2(-((dH + | |
1039 | - | else $Tuple2(0, -((dH + | |
1044 | + | then $Tuple2(-((dH + fI)), 0) | |
1045 | + | else $Tuple2(0, -((dH + fI))) | |
1040 | 1046 | } | |
1041 | - | let dj = | |
1042 | - | let dk = | |
1043 | - | let | |
1044 | - | let fh = | |
1045 | - | let cZ = | |
1047 | + | let dj = fO._1 | |
1048 | + | let dk = fO._2 | |
1049 | + | let fP = di(dj, dk, 0) | |
1050 | + | let fh = fP._1 | |
1051 | + | let cZ = fP._2 | |
1046 | 1052 | let fi = dm(dh, cZ) | |
1047 | 1053 | if ((fi == fi)) | |
1048 | - | then $Tuple2((((cV ++ | |
1054 | + | then $Tuple2((((cV ++ fG) ++ fw) ++ fh), dH) | |
1049 | 1055 | else throw("Strict value is not equal to itself.") | |
1050 | 1056 | } | |
1051 | 1057 | else throw("Strict value is not equal to itself.") | |
1052 | 1058 | } | |
1053 | 1059 | else throw("Strict value is not equal to itself.") | |
1054 | 1060 | } | |
1055 | 1061 | else throw("Strict value is not equal to itself.") | |
1056 | 1062 | } | |
1057 | 1063 | else throw("Strict value is not equal to itself.") | |
1058 | 1064 | } | |
1059 | 1065 | ||
1060 | 1066 | ||
1061 | 1067 | ||
1062 | 1068 | @Callable(dz) | |
1063 | 1069 | func get () = { | |
1064 | 1070 | let cG = dy(dz) | |
1065 | - | let | |
1071 | + | let fQ = cG._1 | |
1066 | 1072 | let cn = cG._2 | |
1067 | 1073 | let dB = cG._3 | |
1068 | 1074 | let bV = cG._4 | |
1069 | 1075 | let co = cG._5 | |
1070 | 1076 | let dh = da(toBigInt(0), toBigInt(0), toBigInt(dB)) | |
1071 | - | let | |
1072 | - | if (( | |
1077 | + | let fR = invoke(aJ, "burn", [dB], [AttachedPayment(bV, dB)]) | |
1078 | + | if ((fR == fR)) | |
1073 | 1079 | then { | |
1074 | - | let | |
1075 | - | let fh = | |
1076 | - | let cZ = | |
1080 | + | let fS = di(-(fQ), -(cn), 0) | |
1081 | + | let fh = fS._1 | |
1082 | + | let cZ = fS._2 | |
1077 | 1083 | let fi = dm(dh, cZ) | |
1078 | 1084 | if ((fi == fi)) | |
1079 | 1085 | then (co ++ fh) | |
1080 | 1086 | else throw("Strict value is not equal to itself.") | |
1081 | 1087 | } | |
1082 | 1088 | else throw("Strict value is not equal to itself.") | |
1083 | 1089 | } | |
1084 | 1090 | ||
1085 | 1091 | ||
1086 | 1092 | ||
1087 | 1093 | @Callable(dz) | |
1088 | - | func getNoLess ( | |
1094 | + | func getNoLess (fT,fU) = { | |
1089 | 1095 | let cG = dy(dz) | |
1090 | 1096 | let cm = cG._1 | |
1091 | 1097 | let cn = cG._2 | |
1092 | 1098 | let dB = cG._3 | |
1093 | 1099 | let bV = cG._4 | |
1094 | 1100 | let co = cG._5 | |
1095 | - | if (( | |
1096 | - | then throw(((("noLessThenAmtAsset failed: " + toString(cm)) + " < ") + toString( | |
1097 | - | else if (( | |
1098 | - | then throw(((("noLessThenPriceAsset failed: " + toString(cn)) + " < ") + toString( | |
1101 | + | if ((fT > cm)) | |
1102 | + | then throw(((("noLessThenAmtAsset failed: " + toString(cm)) + " < ") + toString(fT))) | |
1103 | + | else if ((fU > cn)) | |
1104 | + | then throw(((("noLessThenPriceAsset failed: " + toString(cn)) + " < ") + toString(fU))) | |
1099 | 1105 | else { | |
1100 | 1106 | let dh = da(toBigInt(0), toBigInt(0), toBigInt(dB)) | |
1101 | - | let | |
1102 | - | if (( | |
1107 | + | let fR = invoke(aJ, "burn", [dB], [AttachedPayment(bV, dB)]) | |
1108 | + | if ((fR == fR)) | |
1103 | 1109 | then { | |
1104 | - | let | |
1105 | - | let fh = | |
1106 | - | let cZ = | |
1110 | + | let fV = di(-(cm), -(cn), 0) | |
1111 | + | let fh = fV._1 | |
1112 | + | let cZ = fV._2 | |
1107 | 1113 | let fi = dm(dh, cZ) | |
1108 | 1114 | if ((fi == fi)) | |
1109 | 1115 | then (co ++ fh) | |
1110 | 1116 | else throw("Strict value is not equal to itself.") | |
1111 | 1117 | } | |
1112 | 1118 | else throw("Strict value is not equal to itself.") | |
1113 | 1119 | } | |
1114 | 1120 | } | |
1115 | 1121 | ||
1116 | 1122 | ||
1117 | 1123 | ||
1118 | 1124 | @Callable(dz) | |
1119 | 1125 | func unstakeAndGet (dH) = { | |
1120 | - | let | |
1126 | + | let fW = if ((size(dz.payments) != 0)) | |
1121 | 1127 | then throw("No payments are expected") | |
1122 | 1128 | else true | |
1123 | - | if (( | |
1129 | + | if ((fW == fW)) | |
1124 | 1130 | then { | |
1125 | 1131 | let bK = aN() | |
1126 | 1132 | let bX = fromBase58String(bK[q]) | |
1127 | 1133 | let dh = da(toBigInt(0), toBigInt(0), toBigInt(0)) | |
1128 | - | let | |
1129 | - | if (( | |
1134 | + | let fM = invoke(bf, "unstake", [toBase58String(bX), dH], nil) | |
1135 | + | if ((fM == fM)) | |
1130 | 1136 | then { | |
1131 | 1137 | let cG = bT(toBase58String(dz.transactionId), toBase58String(bX), dH, dz.caller) | |
1132 | 1138 | let cm = cG._1 | |
1133 | 1139 | let cn = cG._2 | |
1134 | 1140 | let ca = parseIntValue(cG._9) | |
1135 | 1141 | let co = cG._10 | |
1136 | - | let | |
1142 | + | let fX = if (if (aL()) | |
1137 | 1143 | then true | |
1138 | 1144 | else (ca == n)) | |
1139 | 1145 | then throw(("Get operation is blocked by admin. Status = " + toString(ca))) | |
1140 | 1146 | else true | |
1141 | - | if (( | |
1147 | + | if ((fX == fX)) | |
1142 | 1148 | then { | |
1143 | - | let | |
1144 | - | if (( | |
1149 | + | let fR = invoke(aJ, "burn", [dH], [AttachedPayment(bX, dH)]) | |
1150 | + | if ((fR == fR)) | |
1145 | 1151 | then { | |
1146 | - | let | |
1147 | - | let fh = | |
1148 | - | let cZ = | |
1152 | + | let fY = di(-(cm), -(cn), 0) | |
1153 | + | let fh = fY._1 | |
1154 | + | let cZ = fY._2 | |
1149 | 1155 | let fi = dm(dh, cZ) | |
1150 | 1156 | if ((fi == fi)) | |
1151 | 1157 | then (co ++ fh) | |
1152 | 1158 | else throw("Strict value is not equal to itself.") | |
1153 | 1159 | } | |
1154 | 1160 | else throw("Strict value is not equal to itself.") | |
1155 | 1161 | } | |
1156 | 1162 | else throw("Strict value is not equal to itself.") | |
1157 | 1163 | } | |
1158 | 1164 | else throw("Strict value is not equal to itself.") | |
1159 | 1165 | } | |
1160 | 1166 | else throw("Strict value is not equal to itself.") | |
1161 | 1167 | } | |
1162 | 1168 | ||
1163 | 1169 | ||
1164 | 1170 | ||
1165 | 1171 | @Callable(dz) | |
1166 | - | func unstakeAndGetNoLess ( | |
1167 | - | let | |
1172 | + | func unstakeAndGetNoLess (fL,fZ,fU) = { | |
1173 | + | let fC = if (aL()) | |
1168 | 1174 | then true | |
1169 | 1175 | else (aY == n) | |
1170 | - | let ev = [if (!( | |
1176 | + | let ev = [if (!(fC)) | |
1171 | 1177 | then true | |
1172 | 1178 | else throw("get operation is blocked by admin"), if ((size(dz.payments) == 0)) | |
1173 | 1179 | then true | |
1174 | 1180 | else throw("no payments are expected")] | |
1175 | 1181 | if ((ev == ev)) | |
1176 | 1182 | then { | |
1177 | 1183 | let dh = da(toBigInt(0), toBigInt(0), toBigInt(0)) | |
1178 | - | let | |
1179 | - | if (( | |
1184 | + | let fM = invoke(bf, "unstake", [toBase58String(aZ), fL], nil) | |
1185 | + | if ((fM == fM)) | |
1180 | 1186 | then { | |
1181 | - | let cG = bT(toBase58String(dz.transactionId), toBase58String(aZ), | |
1187 | + | let cG = bT(toBase58String(dz.transactionId), toBase58String(aZ), fL, dz.caller) | |
1182 | 1188 | let cm = cG._1 | |
1183 | 1189 | let cn = cG._2 | |
1184 | 1190 | let co = cG._10 | |
1185 | - | let | |
1191 | + | let ga = [if ((cm >= fZ)) | |
1186 | 1192 | then true | |
1187 | - | else throw(makeString(["amount asset amount to receive is less than ", toString( | |
1193 | + | else throw(makeString(["amount asset amount to receive is less than ", toString(fZ)], "")), if ((cn >= fU)) | |
1188 | 1194 | then true | |
1189 | - | else throw(makeString(["price asset amount to receive is less than ", toString( | |
1190 | - | if (( | |
1195 | + | else throw(makeString(["price asset amount to receive is less than ", toString(fU)], ""))] | |
1196 | + | if ((ga == ga)) | |
1191 | 1197 | then { | |
1192 | - | let | |
1193 | - | if (( | |
1198 | + | let fR = invoke(aJ, "burn", [fL], [AttachedPayment(aZ, fL)]) | |
1199 | + | if ((fR == fR)) | |
1194 | 1200 | then { | |
1195 | - | let | |
1196 | - | let fh = | |
1197 | - | let cZ = | |
1201 | + | let gb = di(-(cm), -(cn), 0) | |
1202 | + | let fh = gb._1 | |
1203 | + | let cZ = gb._2 | |
1198 | 1204 | let fi = dm(dh, cZ) | |
1199 | 1205 | if ((fi == fi)) | |
1200 | 1206 | then (co ++ fh) | |
1201 | 1207 | else throw("Strict value is not equal to itself.") | |
1202 | 1208 | } | |
1203 | 1209 | else throw("Strict value is not equal to itself.") | |
1204 | 1210 | } | |
1205 | 1211 | else throw("Strict value is not equal to itself.") | |
1206 | 1212 | } | |
1207 | 1213 | else throw("Strict value is not equal to itself.") | |
1208 | 1214 | } | |
1209 | 1215 | else throw("Strict value is not equal to itself.") | |
1210 | 1216 | } | |
1211 | 1217 | ||
1212 | 1218 | ||
1213 | 1219 | ||
1214 | 1220 | @Callable(dz) | |
1215 | - | func activate ( | |
1221 | + | func activate (gc,gd) = if ((toString(dz.caller) != toString(aJ))) | |
1216 | 1222 | then throw("permissions denied") | |
1217 | - | else $Tuple2([StringEntry(aa(), | |
1223 | + | else $Tuple2([StringEntry(aa(), gc), StringEntry(ab(), gd)], "success") | |
1218 | 1224 | ||
1219 | 1225 | ||
1220 | 1226 | ||
1221 | 1227 | @Callable(dz) | |
1222 | 1228 | func refreshKLp () = { | |
1223 | - | let | |
1224 | - | let | |
1229 | + | let ge = valueOrElse(getInteger(ag), 0) | |
1230 | + | let gf = if (((height - ge) >= aj)) | |
1225 | 1231 | then unit | |
1226 | 1232 | else aG(makeString([toString(aj), " blocks have not passed since the previous call"], "")) | |
1227 | - | if (( | |
1233 | + | if ((gf == gf)) | |
1228 | 1234 | then { | |
1229 | 1235 | let dt = valueOrErrorMessage(parseBigInt(valueOrElse(getString(this, af), "0")), aI("invalid kLp")) | |
1230 | - | let | |
1231 | - | let | |
1232 | - | let cZ = | |
1236 | + | let gg = di(0, 0, 0) | |
1237 | + | let gh = gg._1 | |
1238 | + | let cZ = gg._2 | |
1233 | 1239 | let dl = if ((dt != cZ)) | |
1234 | - | then | |
1240 | + | then gh | |
1235 | 1241 | else aG("nothing to refresh") | |
1236 | 1242 | $Tuple2(dl, toString(cZ)) | |
1237 | 1243 | } | |
1238 | 1244 | else throw("Strict value is not equal to itself.") | |
1239 | 1245 | } | |
1240 | 1246 | ||
1241 | 1247 | ||
1242 | 1248 | ||
1243 | 1249 | @Callable(dz) | |
1244 | 1250 | func getPoolConfigWrapperREADONLY () = $Tuple2(nil, aN()) | |
1245 | 1251 | ||
1246 | 1252 | ||
1247 | 1253 | ||
1248 | 1254 | @Callable(dz) | |
1249 | 1255 | func getAccBalanceWrapperREADONLY (bx) = $Tuple2(nil, bw(bx)) | |
1250 | 1256 | ||
1251 | 1257 | ||
1252 | 1258 | ||
1253 | 1259 | @Callable(dz) | |
1254 | 1260 | func calcPricesWrapperREADONLY (bE,bF,bJ) = { | |
1255 | 1261 | let bS = bI(bE, bF, bJ) | |
1256 | 1262 | $Tuple2(nil, [toString(bS[0]), toString(bS[1]), toString(bS[2])]) | |
1257 | 1263 | } | |
1258 | 1264 | ||
1259 | 1265 | ||
1260 | 1266 | ||
1261 | 1267 | @Callable(dz) | |
1262 | 1268 | func toX18WrapperREADONLY (E,F) = $Tuple2(nil, toString(D(E, F))) | |
1263 | 1269 | ||
1264 | 1270 | ||
1265 | 1271 | ||
1266 | 1272 | @Callable(dz) | |
1267 | 1273 | func fromX18WrapperREADONLY (H,I) = $Tuple2(nil, G(parseBigIntValue(H), I)) | |
1268 | 1274 | ||
1269 | 1275 | ||
1270 | 1276 | ||
1271 | 1277 | @Callable(dz) | |
1272 | 1278 | func calcPriceBigIntWrapperREADONLY (bz,bA) = $Tuple2(nil, toString(by(parseBigIntValue(bz), parseBigIntValue(bA)))) | |
1273 | 1279 | ||
1274 | 1280 | ||
1275 | 1281 | ||
1276 | 1282 | @Callable(dz) | |
1277 | 1283 | func estimatePutOperationWrapperREADONLY (bU,cq,cr,cs,ct,cu,X,cv,cw) = $Tuple2(nil, cp(bU, cq, cr, cs, ct, cu, X, cv, cw)) | |
1278 | 1284 | ||
1279 | 1285 | ||
1280 | 1286 | ||
1281 | 1287 | @Callable(dz) | |
1282 | 1288 | func estimateGetOperationWrapperREADONLY (bU,bV,bW,X) = { | |
1283 | 1289 | let cG = bT(bU, bV, bW, addressFromStringValue(X)) | |
1284 | 1290 | $Tuple2(nil, $Tuple10(cG._1, cG._2, cG._3, cG._4, cG._5, cG._6, cG._7, toString(cG._8), cG._9, cG._10)) | |
1285 | 1291 | } | |
1286 | 1292 | ||
1287 | 1293 | ||
1288 | 1294 | ||
1289 | 1295 | @Callable(dz) | |
1290 | 1296 | func statsREADONLY () = { | |
1291 | 1297 | let bK = aN() | |
1292 | 1298 | let bX = fromBase58String(bK[q]) | |
1293 | - | let | |
1294 | - | let | |
1299 | + | let gi = bK[r] | |
1300 | + | let gj = bK[s] | |
1295 | 1301 | let cz = bK[v] | |
1296 | 1302 | let cA = bK[w] | |
1297 | 1303 | let bL = parseIntValue(bK[t]) | |
1298 | 1304 | let bM = parseIntValue(bK[u]) | |
1299 | - | let gj = valueOrErrorMessage(assetInfo(bX), (("Asset " + toBase58String(bX)) + " doesn't exist")).quantity | |
1300 | - | let gk = bw(gh) | |
1305 | + | let gk = valueOrErrorMessage(assetInfo(bX), (("Asset " + toBase58String(bX)) + " doesn't exist")).quantity | |
1301 | 1306 | let gl = bw(gi) | |
1302 | - | let gm = if ((gj == 0)) | |
1307 | + | let gm = bw(gj) | |
1308 | + | let gn = if ((gk == 0)) | |
1303 | 1309 | then [e, e, e] | |
1304 | - | else bI( | |
1310 | + | else bI(gl, gm, gk) | |
1305 | 1311 | let ch = 0 | |
1306 | - | let | |
1307 | - | let | |
1308 | - | let | |
1309 | - | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d", toString(gk), toString( | |
1312 | + | let go = G(gn[1], b) | |
1313 | + | let gp = G(gn[2], b) | |
1314 | + | let gq = value(getInteger(aJ, au(toString(this)))) | |
1315 | + | $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)) | |
1310 | 1316 | } | |
1311 | 1317 | ||
1312 | 1318 | ||
1313 | 1319 | ||
1314 | 1320 | @Callable(dz) | |
1315 | 1321 | func evaluatePutByAmountAssetREADONLY (cr) = { | |
1316 | 1322 | let bK = aN() | |
1317 | 1323 | let bX = fromBase58String(bK[q]) | |
1318 | 1324 | let cx = bK[r] | |
1319 | 1325 | let bY = fromBase58String(cx) | |
1320 | 1326 | let cy = bK[s] | |
1321 | 1327 | let bZ = fromBase58String(cy) | |
1322 | 1328 | let bL = parseIntValue(bK[t]) | |
1323 | 1329 | let bM = parseIntValue(bK[u]) | |
1324 | 1330 | let ca = bK[p] | |
1325 | - | let | |
1326 | - | let | |
1327 | - | let | |
1328 | - | let bG = D( | |
1329 | - | let bH = D( | |
1330 | - | let cg = if (( | |
1331 | + | let gk = valueOrErrorMessage(assetInfo(bX), (("Asset " + toBase58String(bX)) + " doesn't exist")).quantity | |
1332 | + | let gl = bw(cx) | |
1333 | + | let gm = bw(cy) | |
1334 | + | let bG = D(gl, bL) | |
1335 | + | let bH = D(gm, bM) | |
1336 | + | let cg = if ((gk == 0)) | |
1331 | 1337 | then e | |
1332 | 1338 | else by(bH, bG) | |
1333 | 1339 | let cD = D(cr, bL) | |
1334 | 1340 | let cE = fraction(cD, cg, d) | |
1335 | 1341 | let ct = G(cE, bM) | |
1336 | 1342 | let dF = cp("", 500000, cr, bY, ct, bZ, "", true, false) | |
1337 | 1343 | let cO = dF._1 | |
1338 | - | let | |
1344 | + | let gr = dF._3 | |
1339 | 1345 | let cc = dF._4 | |
1340 | 1346 | let ce = dF._5 | |
1341 | 1347 | let cb = dF._6 | |
1342 | 1348 | $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)) | |
1343 | 1349 | } | |
1344 | 1350 | ||
1345 | 1351 | ||
1346 | 1352 | ||
1347 | 1353 | @Callable(dz) | |
1348 | 1354 | func evaluatePutByPriceAssetREADONLY (ct) = { | |
1349 | 1355 | let bK = aN() | |
1350 | 1356 | let bX = fromBase58String(bK[q]) | |
1351 | 1357 | let cx = bK[r] | |
1352 | 1358 | let bY = fromBase58String(cx) | |
1353 | 1359 | let cy = bK[s] | |
1354 | 1360 | let bZ = fromBase58String(cy) | |
1355 | 1361 | let bL = parseIntValue(bK[t]) | |
1356 | 1362 | let bM = parseIntValue(bK[u]) | |
1357 | 1363 | let ca = bK[p] | |
1358 | - | let | |
1359 | - | let | |
1360 | - | let | |
1361 | - | let | |
1362 | - | let | |
1363 | - | let cg = if (( | |
1364 | + | let gk = valueOrErrorMessage(assetInfo(bX), (("Asset " + toBase58String(bX)) + " doesn't exist")).quantity | |
1365 | + | let gs = bw(cx) | |
1366 | + | let gt = bw(cy) | |
1367 | + | let gu = D(gs, bL) | |
1368 | + | let gv = D(gt, bM) | |
1369 | + | let cg = if ((gk == 0)) | |
1364 | 1370 | then e | |
1365 | - | else by( | |
1371 | + | else by(gv, gu) | |
1366 | 1372 | let cE = D(ct, bM) | |
1367 | 1373 | let cD = fraction(cE, d, cg) | |
1368 | 1374 | let cr = G(cD, bL) | |
1369 | 1375 | let dF = cp("", 500000, cr, bY, ct, bZ, "", true, false) | |
1370 | 1376 | let cO = dF._1 | |
1371 | - | let | |
1377 | + | let gr = dF._3 | |
1372 | 1378 | let cc = dF._4 | |
1373 | 1379 | let ce = dF._5 | |
1374 | 1380 | let cb = dF._6 | |
1375 | 1381 | $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)) | |
1376 | 1382 | } | |
1377 | 1383 | ||
1378 | 1384 | ||
1379 | 1385 | ||
1380 | 1386 | @Callable(dz) | |
1381 | - | func evaluateGetREADONLY ( | |
1382 | - | let cG = bT("", | |
1387 | + | func evaluateGetREADONLY (gw,gx) = { | |
1388 | + | let cG = bT("", gw, gx, this) | |
1383 | 1389 | let cm = cG._1 | |
1384 | 1390 | let cn = cG._2 | |
1385 | 1391 | let cc = cG._5 | |
1386 | 1392 | let ce = cG._6 | |
1387 | 1393 | let cb = cG._7 | |
1388 | 1394 | let ch = cG._8 | |
1389 | 1395 | let ca = parseIntValue(cG._9) | |
1390 | 1396 | $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)) | |
1391 | 1397 | } | |
1392 | 1398 | ||
1393 | 1399 | ||
1394 | - | @Verifier( | |
1395 | - | func | |
1396 | - | let | |
1400 | + | @Verifier(gy) | |
1401 | + | func gz () = { | |
1402 | + | let gA = { | |
1397 | 1403 | let dK = eM() | |
1398 | 1404 | if ($isInstanceOf(dK, "ByteVector")) | |
1399 | 1405 | then { | |
1400 | 1406 | let eQ = dK | |
1401 | 1407 | eQ | |
1402 | 1408 | } | |
1403 | 1409 | else if ($isInstanceOf(dK, "Unit")) | |
1404 | - | then | |
1410 | + | then gy.senderPublicKey | |
1405 | 1411 | else throw("Match error") | |
1406 | 1412 | } | |
1407 | - | let dK = | |
1413 | + | let dK = gy | |
1408 | 1414 | if ($isInstanceOf(dK, "Order")) | |
1409 | 1415 | then { | |
1410 | 1416 | let dp = dK | |
1411 | - | let | |
1417 | + | let gB = aM() | |
1412 | 1418 | let az = do(dp) | |
1413 | 1419 | let aA = sigVerify(dp.bodyBytes, dp.proofs[0], dp.senderPublicKey) | |
1414 | - | let aB = sigVerify(dp.bodyBytes, dp.proofs[1], | |
1420 | + | let aB = sigVerify(dp.bodyBytes, dp.proofs[1], gB) | |
1415 | 1421 | if (if (if (az) | |
1416 | 1422 | then aA | |
1417 | 1423 | else false) | |
1418 | 1424 | then aB | |
1419 | 1425 | else false) | |
1420 | 1426 | then true | |
1421 | 1427 | else ay(az, aA, aB) | |
1422 | 1428 | } | |
1423 | 1429 | else if ($isInstanceOf(dK, "SetScriptTransaction")) | |
1424 | 1430 | then { | |
1425 | 1431 | let eN = dK | |
1426 | - | let | |
1427 | - | let | |
1428 | - | let | |
1429 | - | if (if (( | |
1430 | - | then ( | |
1432 | + | let gC = blake2b256(value(eN.script)) | |
1433 | + | let gD = fromBase64String(value(getString(aJ, aw()))) | |
1434 | + | let gE = scriptHash(this) | |
1435 | + | if (if ((gD == gC)) | |
1436 | + | then (gE != gC) | |
1431 | 1437 | else false) | |
1432 | 1438 | then true | |
1433 | - | else sigVerify( | |
1439 | + | else sigVerify(gy.bodyBytes, gy.proofs[0], gA) | |
1434 | 1440 | } | |
1435 | - | else sigVerify( | |
1441 | + | else sigVerify(gy.bodyBytes, gy.proofs[0], gA) | |
1436 | 1442 | } | |
1437 | 1443 |
github/deemru/w8io/169f3d6 260.78 ms ◑