tx · Gtt4HGsZ6dH8gjhEfELrwmR8Y9oy7dyQ2GgDNMnfAzRt 3MzKSdTH2jFbypLsoNfrH7QgkzSbx3EYwCA: -0.04000000 Waves 2023.02.21 09:30 [2459040] smart account 3MzKSdTH2jFbypLsoNfrH7QgkzSbx3EYwCA > SELF 0.00000000 Waves
{ "type": 13, "id": "Gtt4HGsZ6dH8gjhEfELrwmR8Y9oy7dyQ2GgDNMnfAzRt", "fee": 4000000, "feeAssetId": null, "timestamp": 1676961012067, "version": 2, "chainId": 84, "sender": "3MzKSdTH2jFbypLsoNfrH7QgkzSbx3EYwCA", "senderPublicKey": "35yd3qw1gxKDxKwGAykHN9fANbXNWwseaUwbWDj24o3x", "proofs": [ "4ZWE5hbWXg5wr7v6iPgA2m5fCE586yMZbQWwQQHDMJq45nqN4mnUswSXrkQX19yoD2KHjKm8Wke8vQDMrAGeHYyD" ], "script": "base64:BgLpKggCEgUKAwEEARIHCgUBBAEIARIDCgEIEgMKAQgSABIECgIBBBIECgIBBBIDCgEBEgASBAoCCAESABIECgIIARIECgIIARIECgIBARIDCgEBEgUKAwEBARIFCgMBCAESBAoCAQgSBAoCAQgSBAoCCAgSBAoCCAgSBAoCCAESABIDCgEIEgUKAwEBARIECgIIARIECgIBARIECgIICBILCgkIAQECAQIIBAQSBgoECAgBCCIGc2NhbGU4IgxzY2FsZThCaWdJbnQiB3NjYWxlMTgiCnplcm9CaWdJbnQiBGJpZzAiBGJpZzEiBGJpZzIiBGJpZzMiBGJpZzQiCnNsaXBwYWdlNEQiC3dhdmVzU3RyaW5nIgVBbXVsdCIFRGNvbnYiA1NFUCIFRU1QVFkiClBvb2xBY3RpdmUiClBvb2xQdXREaXMiDlBvb2xNYXRjaGVyRGlzIgxQb29sU2h1dGRvd24iDmlkeFBvb2xBZGRyZXNzIglpZHhQb29sU3QiCWlkeExQQXNJZCIJaWR4QW1Bc0lkIglpZHhQckFzSWQiC2lkeEFtdEFzRGNtIg1pZHhQcmljZUFzRGNtIgtpZ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mdsAgVPcmRlcgQCZVoFAmdsBAJpawkBAmFXAAQCaWwJAQJlWQEFAmVaBAJhRggFAmlsAl8xBAJhRwgFAmlsAl8yBAJhSAkA9AMDCAUCZVoJYm9keUJ5dGVzCQCRAwIIBQJlWgZwcm9vZnMAAAgFAmVaD3NlbmRlclB1YmxpY0tleQQCYUkJAPQDAwgFAmVaCWJvZHlCeXRlcwkAkQMCCAUCZVoGcHJvb2ZzAAEFAmlrAwMDBQJhRgUCYUgHBQJhSQcGCQECYUUEBQJhRgUCYUcFAmFIBQJhSQMJAAECBQJnbAIUU2V0U2NyaXB0VHJhbnNhY3Rpb24EAmNDBQJnbAMJAPQDAwgFAmloCWJvZHlCeXRlcwkAkQMCCAUCaWgGcHJvb2ZzAAAFAmlqBgQCaW0JAPYDAQkBBXZhbHVlAQgFAmNDBnNjcmlwdAQCaW4JANsEAQkBBXZhbHVlAQkAnQgCBQJhUQkBAmFDAAQCaW8JAPEHAQUEdGhpcwMJAAACBQJpbgUCaW0JAQIhPQIFAmlvBQJpbQcJAPQDAwgFAmloCWJvZHlCeXRlcwkAkQMCCAUCaWgGcHJvb2ZzAAAFAmlq7ZEuMw==", "height": 2459040, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: EA55LsWsUzWbji14MRtMSeK9EQ9StJCJxCTq57kCVJu3 Next: 7m22zTGU8dXPcnQiwRBWbdYeteU9bFiFocXTZy1hETWU Diff:
Old | New | Differences | |
---|---|---|---|
952 | 952 | ||
953 | 953 | ||
954 | 954 | @Callable(cP) | |
955 | - | func calculateAmountOutForSwapREADONLY (gw,gs) = { | |
956 | - | let | |
955 | + | func calculateAmountOutForSwapREADONLY (gw,gs,gx) = { | |
956 | + | let gy = if ((gs == false)) | |
957 | 957 | then { | |
958 | - | let | |
958 | + | let gz = aJ(this, ak()) | |
959 | 959 | let gt = (toBigInt(bN(aJ(this, aj()))) + toBigInt(gw)) | |
960 | - | $Tuple2( | |
960 | + | $Tuple2(gz, gt) | |
961 | 961 | } | |
962 | 962 | else { | |
963 | - | let | |
963 | + | let gz = aJ(this, aj()) | |
964 | 964 | let gt = (toBigInt(bN(aJ(this, ak()))) + toBigInt(gw)) | |
965 | - | $Tuple2( | |
965 | + | $Tuple2(gz, gt) | |
966 | 966 | } | |
967 | - | let | |
968 | - | let gt = | |
967 | + | let gz = gy._1 | |
968 | + | let gt = gy._2 | |
969 | 969 | let bg = aY() | |
970 | 970 | let dj = bg[w] | |
971 | 971 | let dk = bg[x] | |
972 | 972 | let cz = [toBigInt(bN(dj)), toBigInt(bN(dk))] | |
973 | 973 | let et = cy(cz) | |
974 | 974 | let eB = gr(gs, et, toBigInt(gw)) | |
975 | - | let | |
976 | - | let | |
977 | - | let | |
978 | - | then [(toBigInt(bN(dj)) + toBigInt(gw)), (toBigInt(bN(dk)) - | |
979 | - | else [(toBigInt(bN(dj)) - | |
980 | - | let | |
981 | - | let dY = if (( | |
975 | + | let gA = ((toBigInt(bN(gz)) - eB) - toBigInt(1)) | |
976 | + | let gB = max([0, toInt(gA)]) | |
977 | + | let gC = if ((gs == false)) | |
978 | + | then [((toBigInt(bN(dj)) + toBigInt(gw)) + toBigInt(gx)), (toBigInt(bN(dk)) - gA)] | |
979 | + | else [(toBigInt(bN(dj)) - gA), ((toBigInt(bN(dk)) + toBigInt(gw)) + toBigInt(gx))] | |
980 | + | let gD = cy(gC) | |
981 | + | let dY = if ((gD >= et)) | |
982 | 982 | then true | |
983 | - | else throw(makeString(["new D is fewer error", toString(et), toString( | |
983 | + | else throw(makeString(["new D is fewer error", toString(et), toString(gD)], "__")) | |
984 | 984 | if ((dY == dY)) | |
985 | - | then $Tuple2(nil, | |
985 | + | then $Tuple2(nil, gB) | |
986 | 986 | else throw("Strict value is not equal to itself.") | |
987 | 987 | } | |
988 | 988 | ||
989 | 989 | ||
990 | 990 | ||
991 | 991 | @Callable(cP) | |
992 | - | func calculateAmountOutForSwapAndSendTokens (gw,gs, | |
993 | - | let | |
992 | + | func calculateAmountOutForSwapAndSendTokens (gw,gs,gE,gF,gx) = { | |
993 | + | let gG = { | |
994 | 994 | let aS = invoke(aQ, "getSwapContractREADONLY", nil, nil) | |
995 | 995 | if ($isInstanceOf(aS, "String")) | |
996 | 996 | then aS | |
997 | 997 | else throw(($getType(aS) + " couldn't be cast to String")) | |
998 | 998 | } | |
999 | - | let | |
999 | + | let gH = [if ((value(cP.payments[0]).amount >= gw)) | |
1000 | 1000 | then true | |
1001 | - | else aN("Wrong amount"), if ((cP.caller == addressFromStringValue( | |
1001 | + | else aN("Wrong amount"), if ((cP.caller == addressFromStringValue(gG))) | |
1002 | 1002 | then true | |
1003 | 1003 | else aN("Permission denied")] | |
1004 | - | if (( | |
1004 | + | if ((gH == gH)) | |
1005 | 1005 | then { | |
1006 | 1006 | let fk = value(cP.payments[0]) | |
1007 | - | let | |
1008 | - | let | |
1007 | + | let gI = be(fk.assetId) | |
1008 | + | let gJ = if ((gs == false)) | |
1009 | 1009 | then { | |
1010 | - | let | |
1011 | - | let gt = (bN( | |
1012 | - | $Tuple2( | |
1010 | + | let gz = aJ(this, ak()) | |
1011 | + | let gt = (bN(gI) - value(cP.payments[0]).amount) | |
1012 | + | $Tuple2(gz, gt) | |
1013 | 1013 | } | |
1014 | 1014 | else { | |
1015 | - | let | |
1016 | - | let gt = (bN( | |
1017 | - | $Tuple2( | |
1015 | + | let gz = aJ(this, aj()) | |
1016 | + | let gt = (bN(gI) - value(cP.payments[0]).amount) | |
1017 | + | $Tuple2(gz, gt) | |
1018 | 1018 | } | |
1019 | - | let | |
1020 | - | let gt = | |
1019 | + | let gz = gJ._1 | |
1020 | + | let gt = gJ._2 | |
1021 | 1021 | let bg = aY() | |
1022 | 1022 | let dj = bg[w] | |
1023 | 1023 | let dk = bg[x] | |
1026 | 1026 | else [toBigInt(bN(dj)), (toBigInt(bN(dk)) - toBigInt(value(cP.payments[0]).amount))] | |
1027 | 1027 | let et = cy(cz) | |
1028 | 1028 | let eB = gr(gs, et, toBigInt(0)) | |
1029 | - | let | |
1030 | - | let | |
1031 | - | let | |
1029 | + | let gA = ((toBigInt(bN(gz)) - eB) - toBigInt(1)) | |
1030 | + | let gB = max([0, toInt(gA)]) | |
1031 | + | let gK = if ((gB >= gE)) | |
1032 | 1032 | then true | |
1033 | 1033 | else throw("Exchange result is fewer coins than expected") | |
1034 | - | if (( | |
1034 | + | if ((gK == gK)) | |
1035 | 1035 | then { | |
1036 | - | let | |
1037 | - | then [toBigInt(bN(dj)), (toBigInt(bN(dk)) - | |
1038 | - | else [(toBigInt(bN(dj)) - | |
1039 | - | let | |
1040 | - | let dY = if (( | |
1036 | + | let gC = if ((gs == false)) | |
1037 | + | then [(toBigInt(bN(dj)) + toBigInt(gx)), (toBigInt(bN(dk)) - gA)] | |
1038 | + | else [(toBigInt(bN(dj)) - gA), (toBigInt(bN(dk)) + toBigInt(gx))] | |
1039 | + | let gD = cy(gC) | |
1040 | + | let dY = if ((gD >= et)) | |
1041 | 1041 | then true | |
1042 | 1042 | else throw("new D is fewer error") | |
1043 | 1043 | if ((dY == dY)) | |
1044 | - | then $Tuple2([ScriptTransfer(addressFromStringValue( | |
1044 | + | then $Tuple2([ScriptTransfer(addressFromStringValue(gF), gB, bc(gz))], gB) | |
1045 | 1045 | else throw("Strict value is not equal to itself.") | |
1046 | 1046 | } | |
1047 | 1047 | else throw("Strict value is not equal to itself.") | |
1062 | 1062 | ||
1063 | 1063 | ||
1064 | 1064 | @Callable(cP) | |
1065 | - | func setManager ( | |
1065 | + | func setManager (gL) = { | |
1066 | 1066 | let ex = gq(cP) | |
1067 | 1067 | if ((ex == ex)) | |
1068 | 1068 | then { | |
1069 | - | let | |
1070 | - | if (( | |
1071 | - | then [StringEntry(aa(), | |
1069 | + | let gM = fromBase58String(gL) | |
1070 | + | if ((gM == gM)) | |
1071 | + | then [StringEntry(aa(), gL)] | |
1072 | 1072 | else throw("Strict value is not equal to itself.") | |
1073 | 1073 | } | |
1074 | 1074 | else throw("Strict value is not equal to itself.") | |
1079 | 1079 | @Callable(cP) | |
1080 | 1080 | func confirmManager () = { | |
1081 | 1081 | let cu = gm() | |
1082 | - | let | |
1082 | + | let gN = if (isDefined(cu)) | |
1083 | 1083 | then true | |
1084 | 1084 | else throw("No pending manager") | |
1085 | - | if (( | |
1085 | + | if ((gN == gN)) | |
1086 | 1086 | then { | |
1087 | - | let | |
1087 | + | let gO = if ((cP.callerPublicKey == value(cu))) | |
1088 | 1088 | then true | |
1089 | 1089 | else throw("You are not pending manager") | |
1090 | - | if (( | |
1090 | + | if ((gO == gO)) | |
1091 | 1091 | then [StringEntry(Z(), toBase58String(value(cu))), DeleteEntry(aa())] | |
1092 | 1092 | else throw("Strict value is not equal to itself.") | |
1093 | 1093 | } | |
1097 | 1097 | ||
1098 | 1098 | ||
1099 | 1099 | @Callable(cP) | |
1100 | - | func put ( | |
1101 | - | let | |
1102 | - | let | |
1103 | - | let | |
1104 | - | if ((0 > | |
1100 | + | func put (gP,gQ) = { | |
1101 | + | let gR = bs() | |
1102 | + | let gS = valueOrErrorMessage(addressFromString(gR[C]), "Wr st addr") | |
1103 | + | let gT = valueOrErrorMessage(addressFromString(gR[E]), "Wr sl addr") | |
1104 | + | if ((0 > gP)) | |
1105 | 1105 | then throw("Wrong slippage") | |
1106 | 1106 | else if ((size(cP.payments) != 2)) | |
1107 | 1107 | then throw("2 pmnts expd") | |
1108 | 1108 | else { | |
1109 | - | let | |
1110 | - | let | |
1111 | - | let eO = (toBigInt(bN(be(bm))) - | |
1109 | + | let gU = toBigInt(value(cP.payments[0]).amount) | |
1110 | + | let gV = toBigInt(value(cP.payments[1]).amount) | |
1111 | + | let eO = (toBigInt(bN(be(bm))) - gU) | |
1112 | 1112 | if ((eO == eO)) | |
1113 | 1113 | then { | |
1114 | - | let eP = (toBigInt(bN(be(bn))) - | |
1114 | + | let eP = (toBigInt(bN(be(bn))) - gV) | |
1115 | 1115 | if ((eP == eP)) | |
1116 | 1116 | then { | |
1117 | 1117 | let eQ = toBigInt(value(assetInfo(bl)).quantity) | |
1118 | 1118 | if ((eQ == eQ)) | |
1119 | 1119 | then { | |
1120 | - | let eR = eK( | |
1120 | + | let eR = eK(gU, gV, toBigInt(0)) | |
1121 | 1121 | if ((eR == eR)) | |
1122 | 1122 | then { | |
1123 | - | let | |
1124 | - | let el = | |
1125 | - | let | |
1126 | - | let dB = | |
1127 | - | let em = | |
1128 | - | let en = | |
1129 | - | let dj = | |
1130 | - | let dk = | |
1123 | + | let gW = fl(toString(cP.caller), toBase58String(cP.transactionId), AttachedPayment(value(cP.payments[0]).assetId, value(cP.payments[0]).amount), cP.payments[1], gP, true, false, true, 0, "") | |
1124 | + | let el = gW._2 | |
1125 | + | let gX = gW._7 | |
1126 | + | let dB = gW._9 | |
1127 | + | let em = gW._10 | |
1128 | + | let en = gW._11 | |
1129 | + | let dj = gW._12 | |
1130 | + | let dk = gW._13 | |
1131 | 1131 | let dX = invoke(aQ, "emit", [el], nil) | |
1132 | 1132 | if ((dX == dX)) | |
1133 | 1133 | then { | |
1134 | - | let | |
1134 | + | let gY = { | |
1135 | 1135 | let gl = dX | |
1136 | 1136 | if ($isInstanceOf(gl, "Address")) | |
1137 | 1137 | then { | |
1138 | - | let | |
1139 | - | invoke( | |
1138 | + | let gZ = gl | |
1139 | + | invoke(gZ, "emit", [el], nil) | |
1140 | 1140 | } | |
1141 | 1141 | else unit | |
1142 | 1142 | } | |
1143 | - | if (( | |
1143 | + | if ((gY == gY)) | |
1144 | 1144 | then { | |
1145 | - | let | |
1146 | - | then invoke( | |
1145 | + | let ha = if ((em > 0)) | |
1146 | + | then invoke(gT, "put", nil, [AttachedPayment(dj, em)]) | |
1147 | 1147 | else nil | |
1148 | - | if (( | |
1148 | + | if ((ha == ha)) | |
1149 | 1149 | then { | |
1150 | - | let | |
1151 | - | then invoke( | |
1150 | + | let hb = if ((en > 0)) | |
1151 | + | then invoke(gT, "put", nil, [AttachedPayment(dk, en)]) | |
1152 | 1152 | else nil | |
1153 | - | if (( | |
1153 | + | if ((hb == hb)) | |
1154 | 1154 | then { | |
1155 | - | let | |
1155 | + | let hc = if (gQ) | |
1156 | 1156 | then { | |
1157 | - | let | |
1158 | - | if (( | |
1157 | + | let hd = invoke(gS, "stake", nil, [AttachedPayment(gX, el)]) | |
1158 | + | if ((hd == hd)) | |
1159 | 1159 | then nil | |
1160 | 1160 | else throw("Strict value is not equal to itself.") | |
1161 | 1161 | } | |
1162 | - | else [ScriptTransfer(cP.caller, el, | |
1163 | - | let | |
1164 | - | let gi = | |
1165 | - | let eJ = | |
1166 | - | let | |
1162 | + | else [ScriptTransfer(cP.caller, el, gX)] | |
1163 | + | let he = eS(0, 0, 0) | |
1164 | + | let gi = he._1 | |
1165 | + | let eJ = he._2 | |
1166 | + | let hf = if ((eJ >= eR)) | |
1167 | 1167 | then true | |
1168 | 1168 | else aN(makeString(["updated DLp lower than current DLp", toString(eO), toString(eP), toString(eQ), toString(eR), toString(eJ), toString(em), toString(en)], " ")) | |
1169 | - | if (( | |
1169 | + | if ((hf == hf)) | |
1170 | 1170 | then { | |
1171 | - | let | |
1172 | - | if (( | |
1173 | - | then ((dB ++ | |
1171 | + | let hg = value(assetInfo(bl)).quantity | |
1172 | + | if ((hg == hg)) | |
1173 | + | then ((dB ++ hc) ++ gi) | |
1174 | 1174 | else throw("Strict value is not equal to itself.") | |
1175 | 1175 | } | |
1176 | 1176 | else throw("Strict value is not equal to itself.") | |
1196 | 1196 | ||
1197 | 1197 | ||
1198 | 1198 | @Callable(cP) | |
1199 | - | func putOneTknV2 (fM, | |
1200 | - | let | |
1199 | + | func putOneTknV2 (fM,gQ) = { | |
1200 | + | let hh = { | |
1201 | 1201 | let aS = invoke(aQ, "isPoolOneTokenOperationsDisabledREADONLY", [toString(this)], nil) | |
1202 | 1202 | if ($isInstanceOf(aS, "Boolean")) | |
1203 | 1203 | then aS | |
1204 | 1204 | else throw(($getType(aS) + " couldn't be cast to Boolean")) | |
1205 | 1205 | } | |
1206 | - | let | |
1206 | + | let hi = if (if (if (aV()) | |
1207 | 1207 | then true | |
1208 | 1208 | else (bk == q)) | |
1209 | 1209 | then true | |
1210 | 1210 | else (bk == s)) | |
1211 | 1211 | then true | |
1212 | - | else | |
1213 | - | let | |
1212 | + | else hh | |
1213 | + | let gH = [if (if (!(hi)) | |
1214 | 1214 | then true | |
1215 | 1215 | else go(cP)) | |
1216 | 1216 | then true | |
1217 | 1217 | else aN("put operation is blocked by admin"), if ((size(cP.payments) == 1)) | |
1218 | 1218 | then true | |
1219 | 1219 | else aN("exactly 1 payment are expected")] | |
1220 | - | if (( | |
1220 | + | if ((gH == gH)) | |
1221 | 1221 | then { | |
1222 | 1222 | let dj = toBase58String(value(bm)) | |
1223 | 1223 | let dk = toBase58String(value(bn)) | |
1235 | 1235 | else eK(toBigInt(0), toBigInt(dL), toBigInt(0)) | |
1236 | 1236 | if ((eR == eR)) | |
1237 | 1237 | then { | |
1238 | - | let | |
1239 | - | if (( | |
1238 | + | let hj = fp(dL, df, toString(dh), toBase58String(cP.transactionId), true) | |
1239 | + | if ((hj == hj)) | |
1240 | 1240 | then { | |
1241 | - | let cx = | |
1242 | - | let dB = | |
1243 | - | let | |
1241 | + | let cx = hj._3 | |
1242 | + | let dB = hj._2 | |
1243 | + | let hk = hj._1 | |
1244 | 1244 | let el = if (if ((fM > 0)) | |
1245 | - | then (fM > | |
1245 | + | then (fM > hk) | |
1246 | 1246 | else false) | |
1247 | 1247 | then aN(makeString(["amount to receive is less than ", toString(fM)], "")) | |
1248 | - | else | |
1249 | - | let | |
1250 | - | if (( | |
1248 | + | else hk | |
1249 | + | let gW = invoke(aQ, "emit", [el], nil) | |
1250 | + | if ((gW == gW)) | |
1251 | 1251 | then { | |
1252 | - | let | |
1253 | - | let gl = | |
1252 | + | let gY = { | |
1253 | + | let gl = gW | |
1254 | 1254 | if ($isInstanceOf(gl, "Address")) | |
1255 | 1255 | then { | |
1256 | - | let | |
1257 | - | invoke( | |
1256 | + | let gZ = gl | |
1257 | + | invoke(gZ, "emit", [el], nil) | |
1258 | 1258 | } | |
1259 | 1259 | else unit | |
1260 | 1260 | } | |
1261 | - | if (( | |
1261 | + | if ((gY == gY)) | |
1262 | 1262 | then { | |
1263 | - | let | |
1263 | + | let hc = if (gQ) | |
1264 | 1264 | then { | |
1265 | - | let | |
1266 | - | if (( | |
1265 | + | let hd = invoke(bu, "stake", nil, [AttachedPayment(di, el)]) | |
1266 | + | if ((hd == hd)) | |
1267 | 1267 | then nil | |
1268 | 1268 | else throw("Strict value is not equal to itself.") | |
1269 | 1269 | } | |
1271 | 1271 | let gc = if ((cx > 0)) | |
1272 | 1272 | then [ScriptTransfer(aX, cx, fromBase58String(df))] | |
1273 | 1273 | else nil | |
1274 | - | let | |
1274 | + | let hl = if ((this == aX)) | |
1275 | 1275 | then $Tuple2(0, 0) | |
1276 | 1276 | else { | |
1277 | - | let | |
1277 | + | let hm = if ((fk.assetId == bm)) | |
1278 | 1278 | then true | |
1279 | 1279 | else false | |
1280 | - | if ( | |
1280 | + | if (hm) | |
1281 | 1281 | then $Tuple2(-(cx), 0) | |
1282 | 1282 | else $Tuple2(0, -(cx)) | |
1283 | 1283 | } | |
1284 | - | let eT = | |
1285 | - | let eU = | |
1286 | - | let | |
1287 | - | let gi = | |
1288 | - | let eJ = | |
1284 | + | let eT = hl._1 | |
1285 | + | let eU = hl._2 | |
1286 | + | let hn = eS(eT, eU, 0) | |
1287 | + | let gi = hn._1 | |
1288 | + | let eJ = hn._2 | |
1289 | 1289 | let gj = eW(eR, eJ) | |
1290 | 1290 | if ((gj == gj)) | |
1291 | - | then $Tuple2((((dB ++ | |
1291 | + | then $Tuple2((((dB ++ hc) ++ gc) ++ gi), el) | |
1292 | 1292 | else throw("Strict value is not equal to itself.") | |
1293 | 1293 | } | |
1294 | 1294 | else throw("Strict value is not equal to itself.") | |
1305 | 1305 | ||
1306 | 1306 | ||
1307 | 1307 | @Callable(cP) | |
1308 | - | func putForFree ( | |
1308 | + | func putForFree (ho) = if ((0 > ho)) | |
1309 | 1309 | then throw("Wrong slpg") | |
1310 | 1310 | else if ((size(cP.payments) != 2)) | |
1311 | 1311 | then throw("2 pmnts expd") | |
1312 | 1312 | else { | |
1313 | - | let | |
1314 | - | let dB = | |
1315 | - | let | |
1316 | - | let | |
1317 | - | let eR = eK( | |
1313 | + | let hp = fl(toString(cP.caller), toBase58String(cP.transactionId), AttachedPayment(value(cP.payments[0]).assetId, value(cP.payments[0]).amount), cP.payments[1], ho, false, false, true, 0, "") | |
1314 | + | let dB = hp._9 | |
1315 | + | let gU = toBigInt(value(cP.payments[0]).amount) | |
1316 | + | let gV = toBigInt(value(cP.payments[1]).amount) | |
1317 | + | let eR = eK(gU, gV, toBigInt(0)) | |
1318 | 1318 | if ((eR == eR)) | |
1319 | 1319 | then { | |
1320 | - | let | |
1321 | - | let gi = | |
1322 | - | let eJ = | |
1320 | + | let hq = eS(0, 0, 0) | |
1321 | + | let gi = hq._1 | |
1322 | + | let eJ = hq._2 | |
1323 | 1323 | let gj = eW(eR, eJ) | |
1324 | 1324 | if ((gj == gj)) | |
1325 | 1325 | then (dB ++ gi) | |
1336 | 1336 | if ((eR == eR)) | |
1337 | 1337 | then { | |
1338 | 1338 | let dX = fj(cP) | |
1339 | - | let | |
1339 | + | let hr = dX._1 | |
1340 | 1340 | let dA = dX._2 | |
1341 | 1341 | let dL = dX._3 | |
1342 | 1342 | let df = dX._4 | |
1344 | 1344 | let ey = invoke(aQ, "burn", [dL], [AttachedPayment(df, dL)]) | |
1345 | 1345 | if ((ey == ey)) | |
1346 | 1346 | then { | |
1347 | - | let | |
1348 | - | let gi = | |
1349 | - | let eJ = | |
1347 | + | let hs = eS(-(hr), -(dA), 0) | |
1348 | + | let gi = hs._1 | |
1349 | + | let eJ = hs._2 | |
1350 | 1350 | let gj = eW(eR, eJ) | |
1351 | 1351 | if ((gj == gj)) | |
1352 | 1352 | then (dB ++ gi) | |
1361 | 1361 | ||
1362 | 1362 | @Callable(cP) | |
1363 | 1363 | func getOneTknV2 (fL,fM) = { | |
1364 | - | let | |
1364 | + | let hh = { | |
1365 | 1365 | let aS = invoke(aQ, "isPoolOneTokenOperationsDisabledREADONLY", [toString(this)], nil) | |
1366 | 1366 | if ($isInstanceOf(aS, "Boolean")) | |
1367 | 1367 | then aS | |
1368 | 1368 | else throw(($getType(aS) + " couldn't be cast to Boolean")) | |
1369 | 1369 | } | |
1370 | - | let | |
1370 | + | let ht = if (if (aV()) | |
1371 | 1371 | then true | |
1372 | 1372 | else (bk == s)) | |
1373 | 1373 | then true | |
1374 | - | else | |
1375 | - | let | |
1374 | + | else hh | |
1375 | + | let gH = [if (if (!(ht)) | |
1376 | 1376 | then true | |
1377 | 1377 | else go(cP)) | |
1378 | 1378 | then true | |
1379 | 1379 | else aN("get operation is blocked by admin"), if ((size(cP.payments) == 1)) | |
1380 | 1380 | then true | |
1381 | 1381 | else aN("exactly 1 payment are expected")] | |
1382 | - | if (( | |
1382 | + | if ((gH == gH)) | |
1383 | 1383 | then { | |
1384 | - | let | |
1385 | - | let dB = | |
1386 | - | let fV = | |
1384 | + | let hu = fK(fL, fM, cP.payments, cP.caller, cP.originCaller, cP.transactionId) | |
1385 | + | let dB = hu._1 | |
1386 | + | let fV = hu._2 | |
1387 | 1387 | $Tuple2(dB, fV) | |
1388 | 1388 | } | |
1389 | 1389 | else throw("Strict value is not equal to itself.") | |
1393 | 1393 | ||
1394 | 1394 | @Callable(cP) | |
1395 | 1395 | func refreshDLp () = { | |
1396 | - | let | |
1397 | - | let | |
1396 | + | let hv = valueOrElse(getInteger(aq), 0) | |
1397 | + | let hw = if (((height - hv) >= at)) | |
1398 | 1398 | then unit | |
1399 | 1399 | else aN(makeString([toString(at), " blocks have not passed since the previous call"], "")) | |
1400 | - | if (( | |
1400 | + | if ((hw == hw)) | |
1401 | 1401 | then { | |
1402 | 1402 | let fd = valueOrErrorMessage(parseBigInt(valueOrElse(getString(this, ap), "0")), aP("invalid dLp")) | |
1403 | - | let | |
1404 | - | let | |
1405 | - | let eJ = | |
1403 | + | let hx = eS(0, 0, 0) | |
1404 | + | let hy = hx._1 | |
1405 | + | let eJ = hx._2 | |
1406 | 1406 | let eV = if ((fd != eJ)) | |
1407 | - | then | |
1407 | + | then hy | |
1408 | 1408 | else aN("nothing to refresh") | |
1409 | 1409 | $Tuple2(eV, toString(eJ)) | |
1410 | 1410 | } | |
1414 | 1414 | ||
1415 | 1415 | ||
1416 | 1416 | @Callable(cP) | |
1417 | - | func getOneTknV2READONLY (fL, | |
1417 | + | func getOneTknV2READONLY (fL,hz) = { | |
1418 | 1418 | let dj = toBase58String(value(bm)) | |
1419 | 1419 | let dk = toBase58String(value(bn)) | |
1420 | 1420 | let di = toBase58String(value(bl)) | |
1421 | 1421 | let cz = [toBigInt(bN(dj)), toBigInt(bN(dk))] | |
1422 | 1422 | let eI = toBigInt(valueOrErrorMessage(assetInfo(fromBase58String(di)), "invalid lp asset").quantity) | |
1423 | 1423 | let cb = cy(cz) | |
1424 | - | let ca = (cb - fraction(toBigInt( | |
1425 | - | let | |
1424 | + | let ca = (cb - fraction(toBigInt(hz), cb, eI)) | |
1425 | + | let hA = if ((fL == dj)) | |
1426 | 1426 | then 0 | |
1427 | 1427 | else if ((fL == dk)) | |
1428 | 1428 | then 1 | |
1429 | 1429 | else throw("invalid out asset id") | |
1430 | - | let | |
1431 | - | let | |
1432 | - | let | |
1433 | - | let | |
1434 | - | let fU = | |
1435 | - | let cx = | |
1430 | + | let hB = es(cz, hA, ca) | |
1431 | + | let gA = (cz[hA] - hB) | |
1432 | + | let gB = max([0, toInt((gA - f))]) | |
1433 | + | let hC = cv(gB, aT) | |
1434 | + | let fU = hC._1 | |
1435 | + | let cx = hC._2 | |
1436 | 1436 | $Tuple2(nil, $Tuple2(fU, cx)) | |
1437 | 1437 | } | |
1438 | 1438 | ||
1439 | 1439 | ||
1440 | 1440 | ||
1441 | 1441 | @Callable(cP) | |
1442 | - | func getOneTknV2WithBonusREADONLY (fL, | |
1442 | + | func getOneTknV2WithBonusREADONLY (fL,hz) = { | |
1443 | 1443 | let dj = toBase58String(value(bm)) | |
1444 | 1444 | let dk = toBase58String(value(bn)) | |
1445 | 1445 | let di = toBase58String(value(bl)) | |
1446 | 1446 | let dp = bN(dj) | |
1447 | 1447 | let dr = bN(dk) | |
1448 | - | let | |
1449 | - | let aS = invoke(this, "getOneTknV2READONLY", [fL, | |
1448 | + | let hD = { | |
1449 | + | let aS = invoke(this, "getOneTknV2READONLY", [fL, hz], nil) | |
1450 | 1450 | if ($isInstanceOf(aS, "(Int, Int)")) | |
1451 | 1451 | then aS | |
1452 | 1452 | else throw(($getType(aS) + " couldn't be cast to (Int, Int)")) | |
1453 | 1453 | } | |
1454 | - | let fU = | |
1455 | - | let cx = | |
1456 | - | let dX = dd("", di, | |
1454 | + | let fU = hD._1 | |
1455 | + | let cx = hD._2 | |
1456 | + | let dX = dd("", di, hz, this) | |
1457 | 1457 | let dz = dX._1 | |
1458 | 1458 | let dA = dX._2 | |
1459 | - | let | |
1460 | - | let fJ = if (( | |
1459 | + | let hE = (dz + dA) | |
1460 | + | let fJ = if ((hE == 0)) | |
1461 | 1461 | then if ((fU == 0)) | |
1462 | 1462 | then 0 | |
1463 | 1463 | else throw("bonus calculation error") | |
1464 | - | else fraction((fU - | |
1464 | + | else fraction((fU - hE), a, hE) | |
1465 | 1465 | $Tuple2(nil, $Tuple3(fU, cx, fJ)) | |
1466 | 1466 | } | |
1467 | 1467 | ||
1468 | 1468 | ||
1469 | 1469 | ||
1470 | 1470 | @Callable(cP) | |
1471 | - | func getNoLess ( | |
1471 | + | func getNoLess (hF,hG) = { | |
1472 | 1472 | let dX = fj(cP) | |
1473 | 1473 | let dz = dX._1 | |
1474 | 1474 | let dA = dX._2 | |
1475 | 1475 | let dL = dX._3 | |
1476 | 1476 | let df = dX._4 | |
1477 | 1477 | let dB = dX._5 | |
1478 | - | if (( | |
1479 | - | then throw(((("Failed: " + toString(dz)) + " < ") + toString( | |
1480 | - | else if (( | |
1481 | - | then throw(((("Failed: " + toString(dA)) + " < ") + toString( | |
1478 | + | if ((hF > dz)) | |
1479 | + | then throw(((("Failed: " + toString(dz)) + " < ") + toString(hF))) | |
1480 | + | else if ((hG > dA)) | |
1481 | + | then throw(((("Failed: " + toString(dA)) + " < ") + toString(hG))) | |
1482 | 1482 | else { | |
1483 | 1483 | let eR = eK(toBigInt(0), toBigInt(0), toBigInt(0)) | |
1484 | 1484 | if ((eR == eR)) | |
1485 | 1485 | then { | |
1486 | - | let | |
1487 | - | if (( | |
1486 | + | let hH = invoke(aQ, "burn", [dL], [AttachedPayment(df, dL)]) | |
1487 | + | if ((hH == hH)) | |
1488 | 1488 | then { | |
1489 | - | let | |
1490 | - | let gi = | |
1491 | - | let eJ = | |
1489 | + | let hI = eS(-(dz), -(dA), 0) | |
1490 | + | let gi = hI._1 | |
1491 | + | let eJ = hI._2 | |
1492 | 1492 | let gj = eW(eR, eJ) | |
1493 | 1493 | if ((gj == gj)) | |
1494 | 1494 | then (dB ++ gi) | |
1504 | 1504 | ||
1505 | 1505 | @Callable(cP) | |
1506 | 1506 | func unstakeAndGet (cw) = { | |
1507 | - | let | |
1507 | + | let hJ = if ((size(cP.payments) != 0)) | |
1508 | 1508 | then throw("No pmnts expd") | |
1509 | 1509 | else true | |
1510 | - | if (( | |
1510 | + | if ((hJ == hJ)) | |
1511 | 1511 | then { | |
1512 | - | let | |
1513 | - | let | |
1514 | - | let | |
1512 | + | let hK = bs() | |
1513 | + | let gX = bl | |
1514 | + | let hL = valueOrErrorMessage(addressFromString(hK[C]), "Wr st addr") | |
1515 | 1515 | let eR = eK(toBigInt(0), toBigInt(0), toBigInt(0)) | |
1516 | 1516 | if ((eR == eR)) | |
1517 | 1517 | then { | |
1518 | - | let | |
1519 | - | if (( | |
1518 | + | let hM = invoke(hL, "unstake", [toBase58String(gX), cw], nil) | |
1519 | + | if ((hM == hM)) | |
1520 | 1520 | then { | |
1521 | - | let dX = dd(toBase58String(cP.transactionId), toBase58String( | |
1521 | + | let dX = dd(toBase58String(cP.transactionId), toBase58String(gX), cw, cP.caller) | |
1522 | 1522 | let dz = dX._1 | |
1523 | 1523 | let dA = dX._2 | |
1524 | 1524 | let dn = parseIntValue(dX._9) | |
1525 | 1525 | let dB = dX._10 | |
1526 | - | let | |
1526 | + | let hN = if (if (aV()) | |
1527 | 1527 | then true | |
1528 | 1528 | else (dn == s)) | |
1529 | 1529 | then throw(("Blocked: " + toString(dn))) | |
1530 | 1530 | else true | |
1531 | - | if (( | |
1531 | + | if ((hN == hN)) | |
1532 | 1532 | then { | |
1533 | - | let | |
1534 | - | if (( | |
1533 | + | let hO = invoke(aQ, "burn", [cw], [AttachedPayment(gX, cw)]) | |
1534 | + | if ((hO == hO)) | |
1535 | 1535 | then { | |
1536 | - | let | |
1537 | - | let gi = | |
1538 | - | let eJ = | |
1536 | + | let hP = eS(-(dz), -(dA), 0) | |
1537 | + | let gi = hP._1 | |
1538 | + | let eJ = hP._2 | |
1539 | 1539 | let gj = eW(eR, eJ) | |
1540 | 1540 | if ((gj == gj)) | |
1541 | 1541 | then (dB ++ gi) | |
1555 | 1555 | ||
1556 | 1556 | ||
1557 | 1557 | @Callable(cP) | |
1558 | - | func unstakeAndGetNoLess ( | |
1559 | - | let | |
1558 | + | func unstakeAndGetNoLess (hQ,hR,hG) = { | |
1559 | + | let ht = if (aV()) | |
1560 | 1560 | then true | |
1561 | 1561 | else (bk == s) | |
1562 | - | let | |
1562 | + | let gH = [if (!(ht)) | |
1563 | 1563 | then true | |
1564 | 1564 | else throw("get operation is blocked by admin"), if ((size(cP.payments) == 0)) | |
1565 | 1565 | then true | |
1566 | 1566 | else throw("no payments are expected")] | |
1567 | - | if (( | |
1567 | + | if ((gH == gH)) | |
1568 | 1568 | then { | |
1569 | 1569 | let eR = eK(toBigInt(0), toBigInt(0), toBigInt(0)) | |
1570 | 1570 | if ((eR == eR)) | |
1571 | 1571 | then { | |
1572 | - | let | |
1573 | - | if (( | |
1572 | + | let hM = invoke(bu, "unstake", [toBase58String(bl), hQ], nil) | |
1573 | + | if ((hM == hM)) | |
1574 | 1574 | then { | |
1575 | - | let | |
1576 | - | let dz = | |
1577 | - | let dA = | |
1578 | - | let dB = | |
1579 | - | let | |
1575 | + | let hS = dd(toBase58String(cP.transactionId), toBase58String(bl), hQ, cP.caller) | |
1576 | + | let dz = hS._1 | |
1577 | + | let dA = hS._2 | |
1578 | + | let dB = hS._10 | |
1579 | + | let hT = [if ((dz >= hR)) | |
1580 | 1580 | then true | |
1581 | - | else throw(makeString(["amount asset amount to receive is less than ", toString( | |
1581 | + | else throw(makeString(["amount asset amount to receive is less than ", toString(hR)], "")), if ((dA >= hG)) | |
1582 | 1582 | then true | |
1583 | - | else throw(makeString(["price asset amount to receive is less than ", toString( | |
1584 | - | if (( | |
1583 | + | else throw(makeString(["price asset amount to receive is less than ", toString(hG)], ""))] | |
1584 | + | if ((hT == hT)) | |
1585 | 1585 | then { | |
1586 | - | let | |
1587 | - | if (( | |
1586 | + | let hH = invoke(aQ, "burn", [hQ], [AttachedPayment(bl, hQ)]) | |
1587 | + | if ((hH == hH)) | |
1588 | 1588 | then { | |
1589 | - | let | |
1590 | - | let gi = | |
1591 | - | let eJ = | |
1589 | + | let hU = eS(-(dz), -(dA), 0) | |
1590 | + | let gi = hU._1 | |
1591 | + | let eJ = hU._2 | |
1592 | 1592 | let gj = eW(eR, eJ) | |
1593 | 1593 | if ((gj == gj)) | |
1594 | 1594 | then (dB ++ gi) | |
1608 | 1608 | ||
1609 | 1609 | ||
1610 | 1610 | @Callable(cP) | |
1611 | - | func unstakeAndGetOneTknV2 ( | |
1612 | - | let | |
1611 | + | func unstakeAndGetOneTknV2 (hQ,fL,fM) = { | |
1612 | + | let hh = { | |
1613 | 1613 | let aS = invoke(aQ, "isPoolOneTokenOperationsDisabledREADONLY", [toString(this)], nil) | |
1614 | 1614 | if ($isInstanceOf(aS, "Boolean")) | |
1615 | 1615 | then aS | |
1616 | 1616 | else throw(($getType(aS) + " couldn't be cast to Boolean")) | |
1617 | 1617 | } | |
1618 | - | let | |
1618 | + | let ht = if (if (aV()) | |
1619 | 1619 | then true | |
1620 | 1620 | else (bk == s)) | |
1621 | 1621 | then true | |
1622 | - | else | |
1623 | - | let | |
1622 | + | else hh | |
1623 | + | let gH = [if (if (!(ht)) | |
1624 | 1624 | then true | |
1625 | 1625 | else go(cP)) | |
1626 | 1626 | then true | |
1627 | 1627 | else aN("get operation is blocked by admin"), if ((size(cP.payments) == 0)) | |
1628 | 1628 | then true | |
1629 | 1629 | else aN("no payments are expected")] | |
1630 | - | if (( | |
1630 | + | if ((gH == gH)) | |
1631 | 1631 | then { | |
1632 | - | let | |
1633 | - | let | |
1634 | - | let | |
1635 | - | let | |
1636 | - | if (( | |
1632 | + | let hK = bs() | |
1633 | + | let gX = bl | |
1634 | + | let hL = valueOrErrorMessage(addressFromString(hK[C]), "Wr st addr") | |
1635 | + | let hM = invoke(hL, "unstake", [toBase58String(gX), hQ], nil) | |
1636 | + | if ((hM == hM)) | |
1637 | 1637 | then { | |
1638 | - | let | |
1639 | - | let dB = | |
1640 | - | let fV = | |
1638 | + | let hV = fK(fL, fM, [AttachedPayment(gX, hQ)], cP.caller, cP.originCaller, cP.transactionId) | |
1639 | + | let dB = hV._1 | |
1640 | + | let fV = hV._2 | |
1641 | 1641 | $Tuple2(dB, fV) | |
1642 | 1642 | } | |
1643 | 1643 | else throw("Strict value is not equal to itself.") | |
1648 | 1648 | ||
1649 | 1649 | ||
1650 | 1650 | @Callable(cP) | |
1651 | - | func putOneTknV2WithBonusREADONLY (hV,hW) = { | |
1652 | - | let hX = fp(hV, hW, "", "", true) | |
1653 | - | let fE = hX._1 | |
1654 | - | let dB = hX._2 | |
1655 | - | let cx = hX._3 | |
1656 | - | let fJ = hX._4 | |
1657 | - | $Tuple2(nil, $Tuple3(fE, cx, fJ)) | |
1658 | - | } | |
1659 | - | ||
1660 | - | ||
1661 | - | ||
1662 | - | @Callable(cP) | |
1663 | - | func putOneTknV2WithoutTakeFeeREADONLY (hV,hW) = { | |
1664 | - | let hY = fp(hV, hW, "", "", false) | |
1651 | + | func putOneTknV2WithBonusREADONLY (hW,hX) = { | |
1652 | + | let hY = fp(hW, hX, "", "", true) | |
1665 | 1653 | let fE = hY._1 | |
1666 | 1654 | let dB = hY._2 | |
1667 | 1655 | let cx = hY._3 | |
1672 | 1660 | ||
1673 | 1661 | ||
1674 | 1662 | @Callable(cP) | |
1675 | - | func activate (hZ,ia) = if ((toString(cP.caller) != toString(aQ))) | |
1676 | - | then throw("denied") | |
1677 | - | else $Tuple2([StringEntry(aj(), hZ), StringEntry(ak(), ia)], "success") | |
1663 | + | func putOneTknV2WithoutTakeFeeREADONLY (hW,hX) = { | |
1664 | + | let hZ = fp(hW, hX, "", "", false) | |
1665 | + | let fE = hZ._1 | |
1666 | + | let dB = hZ._2 | |
1667 | + | let cx = hZ._3 | |
1668 | + | let fJ = hZ._4 | |
1669 | + | $Tuple2(nil, $Tuple3(fE, cx, fJ)) | |
1670 | + | } | |
1678 | 1671 | ||
1679 | 1672 | ||
1680 | 1673 | ||
1681 | 1674 | @Callable(cP) | |
1682 | - | func | |
1683 | - | then | |
1684 | - | else [StringEntry( | |
1675 | + | func activate (ia,ib) = if ((toString(cP.caller) != toString(aQ))) | |
1676 | + | then throw("denied") | |
1677 | + | else $Tuple2([StringEntry(aj(), ia), StringEntry(ak(), ib)], "success") | |
1685 | 1678 | ||
1686 | 1679 | ||
1687 | 1680 | ||
1688 | 1681 | @Callable(cP) | |
1689 | - | func | |
1682 | + | func setS (ic,hN) = if ((toString(cP.caller) != aJ(this, am()))) | |
1690 | 1683 | then gn | |
1691 | - | else [IntegerEntry(ib, hM)] | |
1684 | + | else [StringEntry(ic, hN)] | |
1685 | + | ||
1686 | + | ||
1687 | + | ||
1688 | + | @Callable(cP) | |
1689 | + | func setI (ic,hN) = if ((toString(cP.caller) != aJ(this, am()))) | |
1690 | + | then gn | |
1691 | + | else [IntegerEntry(ic, hN)] | |
1692 | 1692 | ||
1693 | 1693 | ||
1694 | 1694 | ||
1704 | 1704 | ||
1705 | 1705 | @Callable(cP) | |
1706 | 1706 | func calcPricesWrapperREADONLY (ch,ci,cm) = { | |
1707 | - | let | |
1708 | - | $Tuple2(nil, [toString( | |
1707 | + | let id = cl(ch, ci, cm) | |
1708 | + | $Tuple2(nil, [toString(id[0]), toString(id[1]), toString(id[2])]) | |
1709 | 1709 | } | |
1710 | 1710 | ||
1711 | 1711 | ||
1712 | 1712 | ||
1713 | 1713 | @Callable(cP) | |
1714 | - | func fromX18WrapperREADONLY (M, | |
1714 | + | func fromX18WrapperREADONLY (M,ie) = $Tuple2(nil, L(parseBigIntValue(M), ie)) | |
1715 | 1715 | ||
1716 | 1716 | ||
1717 | 1717 | ||
1726 | 1726 | ||
1727 | 1727 | ||
1728 | 1728 | @Callable(cP) | |
1729 | - | func estimatePutOperationWrapperREADONLY (de,bW,dD,dE,dF,dG, | |
1729 | + | func estimatePutOperationWrapperREADONLY (de,bW,dD,dE,dF,dG,if,dH,dI) = $Tuple2(nil, dC(de, bW, dD, dE, dF, dG, if, dH, dI, true, false, 0, "")) | |
1730 | 1730 | ||
1731 | 1731 | ||
1732 | 1732 | ||
1733 | 1733 | @Callable(cP) | |
1734 | - | func estimateGetOperationWrapperREADONLY (de, | |
1735 | - | let dX = dd(de, | |
1734 | + | func estimateGetOperationWrapperREADONLY (de,ig,dg,if) = { | |
1735 | + | let dX = dd(de, ig, dg, addressFromStringValue(if)) | |
1736 | 1736 | $Tuple2(nil, $Tuple10(dX._1, dX._2, dX._3, dX._4, dX._5, dX._6, dX._7, toString(dX._8), dX._9, dX._10)) | |
1737 | 1737 | } | |
1738 | 1738 | ||
1739 | 1739 | ||
1740 | - | @Verifier( | |
1741 | - | func | |
1742 | - | let | |
1740 | + | @Verifier(ih) | |
1741 | + | func ii () = { | |
1742 | + | let ij = { | |
1743 | 1743 | let gl = gk() | |
1744 | 1744 | if ($isInstanceOf(gl, "ByteVector")) | |
1745 | 1745 | then { | |
1747 | 1747 | gp | |
1748 | 1748 | } | |
1749 | 1749 | else if ($isInstanceOf(gl, "Unit")) | |
1750 | - | then | |
1750 | + | then ih.senderPublicKey | |
1751 | 1751 | else throw("Match error") | |
1752 | 1752 | } | |
1753 | - | let gl = | |
1753 | + | let gl = ih | |
1754 | 1754 | if ($isInstanceOf(gl, "Order")) | |
1755 | 1755 | then { | |
1756 | 1756 | let eZ = gl | |
1757 | - | let | |
1758 | - | let | |
1759 | - | let aF = | |
1760 | - | let aG = | |
1757 | + | let ik = aW() | |
1758 | + | let il = eY(eZ) | |
1759 | + | let aF = il._1 | |
1760 | + | let aG = il._2 | |
1761 | 1761 | let aH = sigVerify(eZ.bodyBytes, eZ.proofs[0], eZ.senderPublicKey) | |
1762 | - | let aI = sigVerify(eZ.bodyBytes, eZ.proofs[1], | |
1762 | + | let aI = sigVerify(eZ.bodyBytes, eZ.proofs[1], ik) | |
1763 | 1763 | if (if (if (aF) | |
1764 | 1764 | then aH | |
1765 | 1765 | else false) | |
1771 | 1771 | else if ($isInstanceOf(gl, "SetScriptTransaction")) | |
1772 | 1772 | then { | |
1773 | 1773 | let cC = gl | |
1774 | - | if (sigVerify( | |
1774 | + | if (sigVerify(ih.bodyBytes, ih.proofs[0], ij)) | |
1775 | 1775 | then true | |
1776 | 1776 | else { | |
1777 | - | let | |
1778 | - | let | |
1779 | - | let | |
1780 | - | if (( | |
1781 | - | then ( | |
1777 | + | let im = blake2b256(value(cC.script)) | |
1778 | + | let in = fromBase64String(value(getString(aQ, aC()))) | |
1779 | + | let io = scriptHash(this) | |
1780 | + | if ((in == im)) | |
1781 | + | then (io != im) | |
1782 | 1782 | else false | |
1783 | 1783 | } | |
1784 | 1784 | } | |
1785 | - | else sigVerify( | |
1785 | + | else sigVerify(ih.bodyBytes, ih.proofs[0], ij) | |
1786 | 1786 | } | |
1787 | 1787 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = 100000000 | |
5 | 5 | ||
6 | 6 | let b = toBigInt(100000000) | |
7 | 7 | ||
8 | 8 | let c = toBigInt(1000000000000000000) | |
9 | 9 | ||
10 | 10 | let d = toBigInt(0) | |
11 | 11 | ||
12 | 12 | let e = toBigInt(0) | |
13 | 13 | ||
14 | 14 | let f = toBigInt(1) | |
15 | 15 | ||
16 | 16 | let g = toBigInt(2) | |
17 | 17 | ||
18 | 18 | let h = toBigInt(3) | |
19 | 19 | ||
20 | 20 | let i = toBigInt(4) | |
21 | 21 | ||
22 | 22 | let j = toBigInt((a - ((a * 1) / a))) | |
23 | 23 | ||
24 | 24 | let k = "WAVES" | |
25 | 25 | ||
26 | 26 | let l = "100" | |
27 | 27 | ||
28 | 28 | let m = "1" | |
29 | 29 | ||
30 | 30 | let n = "__" | |
31 | 31 | ||
32 | 32 | let o = "" | |
33 | 33 | ||
34 | 34 | let p = 1 | |
35 | 35 | ||
36 | 36 | let q = 2 | |
37 | 37 | ||
38 | 38 | let r = 3 | |
39 | 39 | ||
40 | 40 | let s = 4 | |
41 | 41 | ||
42 | 42 | let t = 1 | |
43 | 43 | ||
44 | 44 | let u = 2 | |
45 | 45 | ||
46 | 46 | let v = 3 | |
47 | 47 | ||
48 | 48 | let w = 4 | |
49 | 49 | ||
50 | 50 | let x = 5 | |
51 | 51 | ||
52 | 52 | let y = 6 | |
53 | 53 | ||
54 | 54 | let z = 7 | |
55 | 55 | ||
56 | 56 | let A = 8 | |
57 | 57 | ||
58 | 58 | let B = 9 | |
59 | 59 | ||
60 | 60 | let C = 1 | |
61 | 61 | ||
62 | 62 | let D = 6 | |
63 | 63 | ||
64 | 64 | let E = 7 | |
65 | 65 | ||
66 | 66 | let F = 10 | |
67 | 67 | ||
68 | 68 | let G = fraction(10, a, 10000) | |
69 | 69 | ||
70 | 70 | func H (I,J) = fraction(toBigInt(I), c, toBigInt(J)) | |
71 | 71 | ||
72 | 72 | ||
73 | 73 | func K (I,J) = fraction(I, c, J) | |
74 | 74 | ||
75 | 75 | ||
76 | 76 | func L (M,N) = toInt(fraction(M, toBigInt(N), c)) | |
77 | 77 | ||
78 | 78 | ||
79 | 79 | func O (M,N,P) = toInt(fraction(M, toBigInt(N), c, P)) | |
80 | 80 | ||
81 | 81 | ||
82 | 82 | func Q (I,J) = fraction(I, c, toBigInt(J)) | |
83 | 83 | ||
84 | 84 | ||
85 | 85 | func R (M,N) = fraction(M, toBigInt(N), c) | |
86 | 86 | ||
87 | 87 | ||
88 | 88 | func S (T,U,V) = fraction(T, U, V) | |
89 | 89 | ||
90 | 90 | ||
91 | 91 | func W (M) = if ((d > M)) | |
92 | 92 | then -(M) | |
93 | 93 | else M | |
94 | 94 | ||
95 | 95 | ||
96 | 96 | func X (M) = if ((d > M)) | |
97 | 97 | then -(M) | |
98 | 98 | else M | |
99 | 99 | ||
100 | 100 | ||
101 | 101 | func Y () = "%s__factoryContract" | |
102 | 102 | ||
103 | 103 | ||
104 | 104 | func Z () = "%s__managerPublicKey" | |
105 | 105 | ||
106 | 106 | ||
107 | 107 | func aa () = "%s__pendingManagerPublicKey" | |
108 | 108 | ||
109 | 109 | ||
110 | 110 | func ab () = "%s%s__price__last" | |
111 | 111 | ||
112 | 112 | ||
113 | 113 | func ac (ad,ae) = makeString(["%s%s%d%d__price__history", toString(ad), toString(ae)], n) | |
114 | 114 | ||
115 | 115 | ||
116 | 116 | func af (ag,ah) = ((("%s%s%s__P__" + ag) + "__") + ah) | |
117 | 117 | ||
118 | 118 | ||
119 | 119 | func ai (ag,ah) = ((("%s%s%s__G__" + ag) + "__") + ah) | |
120 | 120 | ||
121 | 121 | ||
122 | 122 | func aj () = "%s__amountAsset" | |
123 | 123 | ||
124 | 124 | ||
125 | 125 | func ak () = "%s__priceAsset" | |
126 | 126 | ||
127 | 127 | ||
128 | 128 | func al () = "%s__amp" | |
129 | 129 | ||
130 | 130 | ||
131 | 131 | func am () = "%s__addonAddr" | |
132 | 132 | ||
133 | 133 | ||
134 | 134 | let an = "%s__fee" | |
135 | 135 | ||
136 | 136 | let ao = valueOrElse(getInteger(this, an), G) | |
137 | 137 | ||
138 | 138 | let ap = makeString(["%s", "dLp"], n) | |
139 | 139 | ||
140 | 140 | let aq = makeString(["%s", "dLpRefreshedHeight"], n) | |
141 | 141 | ||
142 | 142 | let ar = makeString(["%s", "refreshDLpDelay"], n) | |
143 | 143 | ||
144 | 144 | let as = 30 | |
145 | 145 | ||
146 | 146 | let at = valueOrElse(getInteger(this, ar), as) | |
147 | 147 | ||
148 | 148 | func au () = "%s__factoryConfig" | |
149 | 149 | ||
150 | 150 | ||
151 | 151 | func av () = "%s%s__matcher__publicKey" | |
152 | 152 | ||
153 | 153 | ||
154 | 154 | func aw (ax,ay) = (((("%d%d%s__" + ax) + "__") + ay) + "__config") | |
155 | 155 | ||
156 | 156 | ||
157 | 157 | func az (aA) = ("%s%s%s__mappings__baseAsset2internalId__" + aA) | |
158 | 158 | ||
159 | 159 | ||
160 | 160 | func aB () = "%s__shutdown" | |
161 | 161 | ||
162 | 162 | ||
163 | 163 | func aC () = "%s__allowedLpStableScriptHash" | |
164 | 164 | ||
165 | 165 | ||
166 | 166 | func aD () = "%s__feeCollectorAddress" | |
167 | 167 | ||
168 | 168 | ||
169 | 169 | func aE (aF,aG,aH,aI) = throw((((((((("order validation failed: orderValid=" + toString(aF)) + " (") + aG) + ")") + " senderValid=") + toString(aH)) + " matcherValid=") + toString(aI))) | |
170 | 170 | ||
171 | 171 | ||
172 | 172 | func aJ (aK,aL) = valueOrErrorMessage(getString(aK, aL), makeString(["mandatory ", toString(aK), ".", aL, " not defined"], "")) | |
173 | 173 | ||
174 | 174 | ||
175 | 175 | func aM (aK,aL) = valueOrErrorMessage(getInteger(aK, aL), makeString(["mandatory ", toString(aK), ".", aL, " not defined"], "")) | |
176 | 176 | ||
177 | 177 | ||
178 | 178 | func aN (aO) = throw(makeString(["lp_stable.ride:", aO], " ")) | |
179 | 179 | ||
180 | 180 | ||
181 | 181 | func aP (aO) = makeString(["lp_stable.ride:", aO], " ") | |
182 | 182 | ||
183 | 183 | ||
184 | 184 | let aQ = addressFromStringValue(aJ(this, Y())) | |
185 | 185 | ||
186 | 186 | let aR = { | |
187 | 187 | let aS = invoke(aQ, "getInFeeREADONLY", [toString(this)], nil) | |
188 | 188 | if ($isInstanceOf(aS, "Int")) | |
189 | 189 | then aS | |
190 | 190 | else throw(($getType(aS) + " couldn't be cast to Int")) | |
191 | 191 | } | |
192 | 192 | ||
193 | 193 | let aT = { | |
194 | 194 | let aS = invoke(aQ, "getOutFeeREADONLY", [toString(this)], nil) | |
195 | 195 | if ($isInstanceOf(aS, "Int")) | |
196 | 196 | then aS | |
197 | 197 | else throw(($getType(aS) + " couldn't be cast to Int")) | |
198 | 198 | } | |
199 | 199 | ||
200 | 200 | let aU = aJ(this, al()) | |
201 | 201 | ||
202 | 202 | func aV () = valueOrElse(getBoolean(aQ, aB()), false) | |
203 | 203 | ||
204 | 204 | ||
205 | 205 | func aW () = fromBase58String(aJ(aQ, av())) | |
206 | 206 | ||
207 | 207 | ||
208 | 208 | let aX = addressFromStringValue(aJ(aQ, aD())) | |
209 | 209 | ||
210 | 210 | func aY () = { | |
211 | 211 | let aZ = aJ(this, aj()) | |
212 | 212 | let ba = aJ(this, ak()) | |
213 | 213 | let bb = aM(aQ, az(ba)) | |
214 | 214 | let ax = aM(aQ, az(aZ)) | |
215 | 215 | split(aJ(aQ, aw(toString(ax), toString(bb))), n) | |
216 | 216 | } | |
217 | 217 | ||
218 | 218 | ||
219 | 219 | func bc (bd) = if ((bd == k)) | |
220 | 220 | then unit | |
221 | 221 | else fromBase58String(bd) | |
222 | 222 | ||
223 | 223 | ||
224 | 224 | func be (bd) = if ((bd == unit)) | |
225 | 225 | then k | |
226 | 226 | else toBase58String(value(bd)) | |
227 | 227 | ||
228 | 228 | ||
229 | 229 | func bf (bg) = $Tuple9(addressFromStringValue(bg[t]), parseIntValue(bg[u]), fromBase58String(bg[v]), bc(bg[w]), bc(bg[x]), parseIntValue(bg[y]), parseIntValue(bg[z]), fromBase58String(bg[A]), fromBase58String(bg[B])) | |
230 | 230 | ||
231 | 231 | ||
232 | 232 | let bh = bf(aY()) | |
233 | 233 | ||
234 | 234 | let bi = bh | |
235 | 235 | ||
236 | 236 | let bj = bi._1 | |
237 | 237 | ||
238 | 238 | let bk = bi._2 | |
239 | 239 | ||
240 | 240 | let bl = bi._3 | |
241 | 241 | ||
242 | 242 | let bm = bi._4 | |
243 | 243 | ||
244 | 244 | let bn = bi._5 | |
245 | 245 | ||
246 | 246 | let bo = bi._6 | |
247 | 247 | ||
248 | 248 | let bp = bi._7 | |
249 | 249 | ||
250 | 250 | let bq = bi._8 | |
251 | 251 | ||
252 | 252 | let br = bi._9 | |
253 | 253 | ||
254 | 254 | func bs () = split(aJ(aQ, au()), n) | |
255 | 255 | ||
256 | 256 | ||
257 | 257 | let bt = bs() | |
258 | 258 | ||
259 | 259 | let bu = valueOrErrorMessage(addressFromString(bt[C]), "Invalid staking contract address") | |
260 | 260 | ||
261 | 261 | let bv = valueOrErrorMessage(addressFromString(bt[E]), "Invalid slipage contract address") | |
262 | 262 | ||
263 | 263 | let bw = valueOrErrorMessage(addressFromString(bt[F]), "Invalid gwx contract address") | |
264 | 264 | ||
265 | 265 | let bx = valueOrErrorMessage(addressFromString(bt[D]), "Invalid gwx contract address") | |
266 | 266 | ||
267 | 267 | func by (bz,bA,bB,bC,bD,bE,bF,bG,bH,bI) = makeString(["%d%d%d%d%d%d%d%d%d%d", toString(bz), toString(bA), toString(bB), toString(bC), toString(bD), toString(bE), toString(bF), toString(bG), toString(bH), toString(bI)], n) | |
268 | 268 | ||
269 | 269 | ||
270 | 270 | func bJ (bK,bL,bM,bC,bF,bG) = makeString(["%d%d%d%d%d%d", toString(bK), toString(bL), toString(bM), toString(bC), toString(bF), toString(bG)], n) | |
271 | 271 | ||
272 | 272 | ||
273 | 273 | func bN (bO) = if ((bO == "WAVES")) | |
274 | 274 | then wavesBalance(this).available | |
275 | 275 | else assetBalance(this, fromBase58String(bO)) | |
276 | 276 | ||
277 | 277 | ||
278 | 278 | func bP (bQ,bR) = fraction(bQ, c, bR) | |
279 | 279 | ||
280 | 280 | ||
281 | 281 | func bS (bQ,bR,P) = fraction(bQ, c, bR, P) | |
282 | 282 | ||
283 | 283 | ||
284 | 284 | func bT (bU,bV,bW) = { | |
285 | 285 | let bX = fraction((bU - bV), b, bV) | |
286 | 286 | let bY = ((bW - W(bX)) > d) | |
287 | 287 | if (!(bY)) | |
288 | 288 | then throw(("Big slpg: " + toString(bX))) | |
289 | 289 | else $Tuple2(bY, min([bU, bV])) | |
290 | 290 | } | |
291 | 291 | ||
292 | 292 | ||
293 | 293 | func bZ (ca,cb,cc) = { | |
294 | 294 | let bX = fraction(cb, b, ca) | |
295 | 295 | let cd = (cc > bX) | |
296 | 296 | if (if (cd) | |
297 | 297 | then true | |
298 | 298 | else (cb > ca)) | |
299 | 299 | then throw(((((((toString(cb) + " ") + toString(ca)) + " ") + toString(bX)) + " ") + toString(cc))) | |
300 | 300 | else cd | |
301 | 301 | } | |
302 | 302 | ||
303 | 303 | ||
304 | 304 | func ce (cf,cg,ch,ci) = { | |
305 | 305 | let cj = H(ch, cf) | |
306 | 306 | let ck = H(ci, cg) | |
307 | 307 | bP(ck, cj) | |
308 | 308 | } | |
309 | 309 | ||
310 | 310 | ||
311 | 311 | func cl (ch,ci,cm) = { | |
312 | 312 | let cn = bo | |
313 | 313 | let co = bp | |
314 | 314 | let cp = ce(cn, co, ch, ci) | |
315 | 315 | let bR = H(ch, cn) | |
316 | 316 | let bQ = H(ci, co) | |
317 | 317 | let cq = H(cm, a) | |
318 | 318 | let cr = bP(bR, cq) | |
319 | 319 | let cs = bP(bQ, cq) | |
320 | 320 | [cp, cr, cs] | |
321 | 321 | } | |
322 | 322 | ||
323 | 323 | ||
324 | 324 | func ct (ch,ci,cm) = { | |
325 | 325 | let cu = cl(ch, ci, cm) | |
326 | 326 | [L(cu[0], a), L(cu[1], a), L(cu[2], a)] | |
327 | 327 | } | |
328 | 328 | ||
329 | 329 | ||
330 | 330 | func cv (cw,ao) = { | |
331 | 331 | let cx = if ((ao == 0)) | |
332 | 332 | then 0 | |
333 | 333 | else fraction(cw, ao, a) | |
334 | 334 | $Tuple2((cw - cx), cx) | |
335 | 335 | } | |
336 | 336 | ||
337 | 337 | ||
338 | 338 | func cy (cz) = { | |
339 | 339 | let cA = cz[0] | |
340 | 340 | let cB = cz[1] | |
341 | 341 | let cC = (cA + cB) | |
342 | 342 | if ((cC == e)) | |
343 | 343 | then e | |
344 | 344 | else { | |
345 | 345 | let cD = parseIntValue(aU) | |
346 | 346 | let cE = (cD * 2) | |
347 | 347 | let cu = fraction(cA, cB, f) | |
348 | 348 | let cF = fraction(cu, i, f) | |
349 | 349 | let cG = fraction(toBigInt(cE), cC, f) | |
350 | 350 | let cH = toBigInt((cE - 1)) | |
351 | 351 | func cI (cJ) = { | |
352 | 352 | let cK = fraction(cJ, cJ, f) | |
353 | 353 | let cL = fraction(cK, cJ, f) | |
354 | 354 | let cM = fraction(cL, f, cF) | |
355 | 355 | fraction((cG + fraction(cM, g, f)), cJ, (fraction(cH, cJ, f) + fraction(h, cM, f))) | |
356 | 356 | } | |
357 | 357 | ||
358 | 358 | func cN (cO,cP) = if (cO._2) | |
359 | 359 | then cO | |
360 | 360 | else { | |
361 | 361 | let cJ = cO._1 | |
362 | 362 | let cQ = cI(cJ) | |
363 | 363 | let cR = (cQ - value(cJ)) | |
364 | 364 | let cS = if ((e > cR)) | |
365 | 365 | then -(cR) | |
366 | 366 | else cR | |
367 | 367 | if ((f >= cS)) | |
368 | 368 | then $Tuple2(cQ, true) | |
369 | 369 | else $Tuple2(cQ, false) | |
370 | 370 | } | |
371 | 371 | ||
372 | 372 | let cT = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17] | |
373 | 373 | let cU = { | |
374 | 374 | let cV = cT | |
375 | 375 | let cW = size(cV) | |
376 | 376 | let cX = $Tuple2(cC, false) | |
377 | 377 | func cY (cZ,da) = if ((da >= cW)) | |
378 | 378 | then cZ | |
379 | 379 | else cN(cZ, cV[da]) | |
380 | 380 | ||
381 | 381 | func db (cZ,da) = if ((da >= cW)) | |
382 | 382 | then cZ | |
383 | 383 | else throw("List size exceeds 18") | |
384 | 384 | ||
385 | 385 | db(cY(cY(cY(cY(cY(cY(cY(cY(cY(cY(cY(cY(cY(cY(cY(cY(cY(cY(cX, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18) | |
386 | 386 | } | |
387 | 387 | let cJ = cU._1 | |
388 | 388 | let dc = cU._2 | |
389 | 389 | if (dc) | |
390 | 390 | then cJ | |
391 | 391 | else throw(("D calculation error, D = " + toString(cJ))) | |
392 | 392 | } | |
393 | 393 | } | |
394 | 394 | ||
395 | 395 | ||
396 | 396 | func dd (de,df,dg,dh) = { | |
397 | 397 | let di = bl | |
398 | 398 | let dj = toBase58String(value(bm)) | |
399 | 399 | let dk = toBase58String(value(bn)) | |
400 | 400 | let dl = bo | |
401 | 401 | let dm = bp | |
402 | 402 | let dn = toString(bk) | |
403 | 403 | let do = valueOrErrorMessage(assetInfo(di), "Wrong LP id").quantity | |
404 | 404 | if ((toBase58String(di) != df)) | |
405 | 405 | then throw("Wrong pmt asset") | |
406 | 406 | else { | |
407 | 407 | let dp = bN(dj) | |
408 | 408 | let dq = H(dp, dl) | |
409 | 409 | let dr = bN(dk) | |
410 | 410 | let ds = H(dr, dm) | |
411 | 411 | let dt = bP(ds, dq) | |
412 | 412 | let du = L(dt, a) | |
413 | 413 | let dv = H(dg, a) | |
414 | 414 | let dw = H(do, a) | |
415 | 415 | let dx = fraction(dq, dv, dw) | |
416 | 416 | let dy = fraction(ds, dv, dw) | |
417 | 417 | let dz = O(dx, dl, FLOOR) | |
418 | 418 | let dA = O(dy, dm, FLOOR) | |
419 | 419 | let dB = if ((de == "")) | |
420 | 420 | then nil | |
421 | 421 | else [ScriptTransfer(dh, dz, if ((dj == "WAVES")) | |
422 | 422 | then unit | |
423 | 423 | else fromBase58String(dj)), ScriptTransfer(dh, dA, if ((dk == "WAVES")) | |
424 | 424 | then unit | |
425 | 425 | else fromBase58String(dk)), StringEntry(ai(toString(dh), de), bJ(dz, dA, dg, du, height, lastBlock.timestamp)), IntegerEntry(ab(), du), IntegerEntry(ac(height, lastBlock.timestamp), du)] | |
426 | 426 | $Tuple10(dz, dA, dj, dk, dp, dr, do, dt, dn, dB) | |
427 | 427 | } | |
428 | 428 | } | |
429 | 429 | ||
430 | 430 | ||
431 | 431 | func dC (de,bW,dD,dE,dF,dG,dh,dH,dI,dJ,dK,dL,dM) = { | |
432 | 432 | let di = bl | |
433 | 433 | let dN = toBase58String(value(bm)) | |
434 | 434 | let dO = toBase58String(value(bn)) | |
435 | 435 | let dP = bq | |
436 | 436 | let dQ = br | |
437 | 437 | let dR = bo | |
438 | 438 | let dS = bp | |
439 | 439 | let dn = toString(bk) | |
440 | 440 | let dT = valueOrErrorMessage(assetInfo(di), "Wr lp as").quantity | |
441 | 441 | let dp = if (dH) | |
442 | 442 | then bN(dN) | |
443 | 443 | else if (if (dJ) | |
444 | 444 | then (dM == dN) | |
445 | 445 | else false) | |
446 | 446 | then (bN(dN) - dL) | |
447 | 447 | else if (dJ) | |
448 | 448 | then bN(dN) | |
449 | 449 | else (bN(dN) - dD) | |
450 | 450 | let dr = if (dH) | |
451 | 451 | then bN(dO) | |
452 | 452 | else if (if (dJ) | |
453 | 453 | then (dM == dO) | |
454 | 454 | else false) | |
455 | 455 | then (bN(dO) - dL) | |
456 | 456 | else if (dJ) | |
457 | 457 | then bN(dO) | |
458 | 458 | else (bN(dO) - dF) | |
459 | 459 | let dU = H(dD, dR) | |
460 | 460 | let dV = H(dF, dS) | |
461 | 461 | let dW = bP(dV, dU) | |
462 | 462 | let dq = H(dp, dR) | |
463 | 463 | let ds = H(dr, dS) | |
464 | 464 | let cb = cy([dq, ds]) | |
465 | 465 | let dX = if ((dT == 0)) | |
466 | 466 | then { | |
467 | 467 | let ca = cy([(dq + dU), (ds + dV)]) | |
468 | 468 | let dY = if ((ca > cb)) | |
469 | 469 | then true | |
470 | 470 | else throw("D1 should be greater than D0") | |
471 | 471 | if ((dY == dY)) | |
472 | 472 | then { | |
473 | 473 | let dt = d | |
474 | 474 | let dZ = d | |
475 | 475 | let cq = ca | |
476 | 476 | $Tuple5(L(cq, a), L(dU, dR), L(dV, dS), bP((ds + dV), (dq + dU)), dZ) | |
477 | 477 | } | |
478 | 478 | else throw("Strict value is not equal to itself.") | |
479 | 479 | } | |
480 | 480 | else { | |
481 | 481 | let dt = bP(ds, dq) | |
482 | 482 | let ea = fraction(W((dt - dW)), c, dt) | |
483 | 483 | let dZ = H(bW, a) | |
484 | 484 | if (if (if (dK) | |
485 | 485 | then (dt != d) | |
486 | 486 | else false) | |
487 | 487 | then (ea > dZ) | |
488 | 488 | else false) | |
489 | 489 | then throw(((("Price slippage " + toString(ea)) + " > ") + toString(dZ))) | |
490 | 490 | else { | |
491 | 491 | let eb = H(dT, a) | |
492 | 492 | let ec = fraction(dU, bS(ds, dq, CEILING), c, CEILING) | |
493 | 493 | let ed = fraction(dV, c, bS(ds, dq, FLOOR), CEILING) | |
494 | 494 | let ee = if ((ec > dV)) | |
495 | 495 | then $Tuple2(ed, dV) | |
496 | 496 | else $Tuple2(dU, ec) | |
497 | 497 | let ef = ee._1 | |
498 | 498 | let eg = ee._2 | |
499 | 499 | let ca = cy([(dq + ef), (ds + eg)]) | |
500 | 500 | let dY = if ((ca > cb)) | |
501 | 501 | then true | |
502 | 502 | else throw("D1 should be greater than D0") | |
503 | 503 | if ((dY == dY)) | |
504 | 504 | then { | |
505 | 505 | let cq = fraction(eb, (ca - cb), cb) | |
506 | 506 | $Tuple5(O(cq, a, FLOOR), O(ef, dR, CEILING), O(eg, dS, CEILING), dt, dZ) | |
507 | 507 | } | |
508 | 508 | else throw("Strict value is not equal to itself.") | |
509 | 509 | } | |
510 | 510 | } | |
511 | 511 | let eh = dX._1 | |
512 | 512 | let ei = dX._2 | |
513 | 513 | let ej = dX._3 | |
514 | 514 | let du = L(dX._4, a) | |
515 | 515 | let ek = L(dX._5, a) | |
516 | 516 | if ((0 >= eh)) | |
517 | 517 | then throw("LP <= 0") | |
518 | 518 | else { | |
519 | 519 | let el = if (!(dI)) | |
520 | 520 | then 0 | |
521 | 521 | else eh | |
522 | 522 | let em = (dD - ei) | |
523 | 523 | let en = (dF - ej) | |
524 | 524 | let eo = if (if (dJ) | |
525 | 525 | then (dM == dN) | |
526 | 526 | else false) | |
527 | 527 | then $Tuple2(dL, 0) | |
528 | 528 | else if (if (dJ) | |
529 | 529 | then (dM == dO) | |
530 | 530 | else false) | |
531 | 531 | then $Tuple2(0, dL) | |
532 | 532 | else $Tuple2(ei, ej) | |
533 | 533 | let ep = eo._1 | |
534 | 534 | let eq = eo._2 | |
535 | 535 | let er = [IntegerEntry(ab(), du), IntegerEntry(ac(height, lastBlock.timestamp), du), StringEntry(af(dh, de), by(ep, eq, el, du, bW, ek, height, lastBlock.timestamp, em, en))] | |
536 | 536 | $Tuple13(eh, el, du, dp, dr, dT, di, dn, er, em, en, dE, dG) | |
537 | 537 | } | |
538 | 538 | } | |
539 | 539 | ||
540 | 540 | ||
541 | 541 | func es (cz,cP,et) = { | |
542 | 542 | let eu = g | |
543 | 543 | let ev = cz[if ((cP == 0)) | |
544 | 544 | then 1 | |
545 | 545 | else 0] | |
546 | 546 | let ew = parseBigIntValue(l) | |
547 | 547 | let cD = (parseBigIntValue(aU) * ew) | |
548 | 548 | let cC = ev | |
549 | 549 | let cE = (cD * eu) | |
550 | 550 | let ex = (((((et * et) / (ev * eu)) * et) * ew) / (cE * eu)) | |
551 | 551 | let ey = ((cC + ((et * ew) / cE)) - et) | |
552 | 552 | func cN (cO,ez) = { | |
553 | 553 | let eA = cO | |
554 | 554 | let eB = eA._1 | |
555 | 555 | let dc = eA._2 | |
556 | 556 | if ((dc != unit)) | |
557 | 557 | then cO | |
558 | 558 | else { | |
559 | 559 | let eC = (((eB * eB) + ex) / ((g * eB) + ey)) | |
560 | 560 | let eD = X((eC - value(eB))) | |
561 | 561 | if ((f >= eD)) | |
562 | 562 | then $Tuple2(eC, ez) | |
563 | 563 | else $Tuple2(eC, unit) | |
564 | 564 | } | |
565 | 565 | } | |
566 | 566 | ||
567 | 567 | let cT = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14] | |
568 | 568 | let eE = { | |
569 | 569 | let cV = cT | |
570 | 570 | let cW = size(cV) | |
571 | 571 | let cX = $Tuple2(et, unit) | |
572 | 572 | func cY (cZ,da) = if ((da >= cW)) | |
573 | 573 | then cZ | |
574 | 574 | else cN(cZ, cV[da]) | |
575 | 575 | ||
576 | 576 | func db (cZ,da) = if ((da >= cW)) | |
577 | 577 | then cZ | |
578 | 578 | else throw("List size exceeds 15") | |
579 | 579 | ||
580 | 580 | db(cY(cY(cY(cY(cY(cY(cY(cY(cY(cY(cY(cY(cY(cY(cY(cX, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15) | |
581 | 581 | } | |
582 | 582 | let eB = eE._1 | |
583 | 583 | let dc = eE._2 | |
584 | 584 | if ((dc != unit)) | |
585 | 585 | then eB | |
586 | 586 | else throw(("Y calculation error, Y = " + toString(eB))) | |
587 | 587 | } | |
588 | 588 | ||
589 | 589 | ||
590 | 590 | func eF (eG,eH,eI) = { | |
591 | 591 | let eJ = fraction(cy([K(eG, toBigInt(bo)), K(eH, toBigInt(bp))]), c, eI) | |
592 | 592 | if ((eI == e)) | |
593 | 593 | then e | |
594 | 594 | else eJ | |
595 | 595 | } | |
596 | 596 | ||
597 | 597 | ||
598 | 598 | func eK (eL,eM,eN) = { | |
599 | 599 | let eO = (toBigInt(bN(be(bm))) - eL) | |
600 | 600 | let eP = (toBigInt(bN(be(bn))) - eM) | |
601 | 601 | let eQ = (toBigInt(value(assetInfo(bl)).quantity) - eN) | |
602 | 602 | let eR = eF(eO, eP, eQ) | |
603 | 603 | eR | |
604 | 604 | } | |
605 | 605 | ||
606 | 606 | ||
607 | 607 | func eS (eT,eU,eN) = { | |
608 | 608 | let eO = (bN(be(bm)) + eT) | |
609 | 609 | let eP = (bN(be(bn)) + eU) | |
610 | 610 | let eQ = (value(assetInfo(bl)).quantity + eN) | |
611 | 611 | let eJ = eF(toBigInt(eO), toBigInt(eP), toBigInt(eQ)) | |
612 | 612 | let eV = [IntegerEntry(aq, height), StringEntry(ap, toString(eJ))] | |
613 | 613 | $Tuple2(eV, eJ) | |
614 | 614 | } | |
615 | 615 | ||
616 | 616 | ||
617 | 617 | func eW (eX,eJ) = if ((eJ >= eX)) | |
618 | 618 | then true | |
619 | 619 | else aN("updated DLp lower than current DLp") | |
620 | 620 | ||
621 | 621 | ||
622 | 622 | func eY (eZ) = { | |
623 | 623 | let eO = bN(be(bm)) | |
624 | 624 | let eP = bN(be(bn)) | |
625 | 625 | let fa = eZ.amount | |
626 | 626 | let fb = fraction(eZ.amount, eZ.price, a, FLOOR) | |
627 | 627 | let fc = if ((eZ.orderType == Buy)) | |
628 | 628 | then $Tuple2(fa, -(fb)) | |
629 | 629 | else $Tuple2(-(fa), fb) | |
630 | 630 | let eT = fc._1 | |
631 | 631 | let eU = fc._2 | |
632 | 632 | if (if (if (aV()) | |
633 | 633 | then true | |
634 | 634 | else (bk == r)) | |
635 | 635 | then true | |
636 | 636 | else (bk == s)) | |
637 | 637 | then throw("Admin blocked") | |
638 | 638 | else if (if ((eZ.assetPair.amountAsset != bm)) | |
639 | 639 | then true | |
640 | 640 | else (eZ.assetPair.priceAsset != bn)) | |
641 | 641 | then throw("Wr assets") | |
642 | 642 | else { | |
643 | 643 | let fd = parseBigIntValue(valueOrElse(getString(this, ap), "0")) | |
644 | 644 | let fe = eS(eT, eU, 0) | |
645 | 645 | let ff = fe._1 | |
646 | 646 | let fg = fe._2 | |
647 | 647 | let fh = (fg >= fd) | |
648 | 648 | let fi = makeString(["dLp=", toString(fd), " dLpNew=", toString(fg), " amountAssetBalance=", toString(eO), " priceAssetBalance=", toString(eP), " amountAssetBalanceDelta=", toString(eT), " priceAssetBalanceDelta=", toString(eU), " height=", toString(height)], "") | |
649 | 649 | $Tuple2(fh, fi) | |
650 | 650 | } | |
651 | 651 | } | |
652 | 652 | ||
653 | 653 | ||
654 | 654 | func fj (cP) = if ((size(cP.payments) != 1)) | |
655 | 655 | then throw("1 pmnt exp") | |
656 | 656 | else { | |
657 | 657 | let fk = value(cP.payments[0]) | |
658 | 658 | let df = value(fk.assetId) | |
659 | 659 | let dL = fk.amount | |
660 | 660 | let dX = dd(toBase58String(cP.transactionId), toBase58String(df), dL, cP.caller) | |
661 | 661 | let dz = dX._1 | |
662 | 662 | let dA = dX._2 | |
663 | 663 | let dn = parseIntValue(dX._9) | |
664 | 664 | let dB = dX._10 | |
665 | 665 | if (if (aV()) | |
666 | 666 | then true | |
667 | 667 | else (dn == s)) | |
668 | 668 | then throw(("Admin blocked: " + toString(dn))) | |
669 | 669 | else $Tuple5(dz, dA, dL, df, dB) | |
670 | 670 | } | |
671 | 671 | ||
672 | 672 | ||
673 | 673 | func fl (fm,ah,fn,fo,bW,dI,dJ,dK,dL,dM) = { | |
674 | 674 | let dX = dC(ah, bW, value(fn).amount, value(fn).assetId, value(fo).amount, value(fo).assetId, fm, (ah == ""), dI, dJ, dK, dL, dM) | |
675 | 675 | let dn = parseIntValue(dX._8) | |
676 | 676 | if (if (if (aV()) | |
677 | 677 | then true | |
678 | 678 | else (dn == q)) | |
679 | 679 | then true | |
680 | 680 | else (dn == s)) | |
681 | 681 | then throw(("Blocked:" + toString(dn))) | |
682 | 682 | else dX | |
683 | 683 | } | |
684 | 684 | ||
685 | 685 | ||
686 | 686 | func fp (fq,df,dh,ah,fr) = { | |
687 | 687 | let dj = toBase58String(value(bm)) | |
688 | 688 | let dk = toBase58String(value(bn)) | |
689 | 689 | let di = bl | |
690 | 690 | let dR = bo | |
691 | 691 | let dS = bp | |
692 | 692 | let eQ = toBigInt(valueOrErrorMessage(assetInfo(di), "invalid lp asset").quantity) | |
693 | 693 | let fs = if ((eQ > e)) | |
694 | 694 | then true | |
695 | 695 | else throw("initial deposit requires all coins") | |
696 | 696 | if ((fs == fs)) | |
697 | 697 | then { | |
698 | 698 | let dp = bN(dj) | |
699 | 699 | let dr = bN(dk) | |
700 | 700 | let ft = if ((ah == "")) | |
701 | 701 | then $Tuple2(dp, dr) | |
702 | 702 | else if ((df == dj)) | |
703 | 703 | then if ((fq > dp)) | |
704 | 704 | then throw("invalid payment amount") | |
705 | 705 | else $Tuple2((dp - fq), dr) | |
706 | 706 | else if ((df == dk)) | |
707 | 707 | then if ((fq > dr)) | |
708 | 708 | then throw("invalid payment amount") | |
709 | 709 | else $Tuple2(dp, (dr - fq)) | |
710 | 710 | else throw("wrong pmtAssetId") | |
711 | 711 | let fu = ft._1 | |
712 | 712 | let fv = ft._2 | |
713 | 713 | let fw = if ((df == dj)) | |
714 | 714 | then $Tuple2(fq, 0) | |
715 | 715 | else if ((df == dk)) | |
716 | 716 | then $Tuple2(0, fq) | |
717 | 717 | else throw("invalid payment") | |
718 | 718 | let fx = fw._1 | |
719 | 719 | let fy = fw._2 | |
720 | 720 | let fz = if (fr) | |
721 | 721 | then $Tuple3(cv(fx, aR)._1, cv(fy, aR)._1, cv(fq, aR)._2) | |
722 | 722 | else $Tuple3(fx, fy, 0) | |
723 | 723 | let fA = fz._1 | |
724 | 724 | let fB = fz._2 | |
725 | 725 | let cx = fz._3 | |
726 | 726 | let fC = (fu + fA) | |
727 | 727 | let fD = (fv + fB) | |
728 | 728 | let cb = cy([H(fu, bo), H(fv, bp)]) | |
729 | 729 | let ca = cy([H(fC, bo), H(fD, bp)]) | |
730 | 730 | let dY = if ((ca > cb)) | |
731 | 731 | then true | |
732 | 732 | else throw() | |
733 | 733 | if ((dY == dY)) | |
734 | 734 | then { | |
735 | 735 | let fE = fraction(eQ, (ca - cb), cb, FLOOR) | |
736 | 736 | let du = L(bP(H(fD, dS), H(fC, dR)), a) | |
737 | 737 | let er = [IntegerEntry(ab(), du), IntegerEntry(ac(height, lastBlock.timestamp), du), StringEntry(af(dh, ah), by(fx, fy, toInt(fE), du, 0, 0, height, lastBlock.timestamp, 0, 0))] | |
738 | 738 | let fF = fraction(fv, a, fu) | |
739 | 739 | let fG = fraction(fq, a, (fF + a)) | |
740 | 740 | let fH = (fq - fG) | |
741 | 741 | let fI = fraction(eQ, toBigInt(fH), toBigInt(fv)) | |
742 | 742 | let fJ = toInt(fraction((fE - fI), b, fI)) | |
743 | 743 | $Tuple4(toInt(fE), er, cx, fJ) | |
744 | 744 | } | |
745 | 745 | else throw("Strict value is not equal to itself.") | |
746 | 746 | } | |
747 | 747 | else throw("Strict value is not equal to itself.") | |
748 | 748 | } | |
749 | 749 | ||
750 | 750 | ||
751 | 751 | func fK (fL,fM,fN,fm,fO,fP) = { | |
752 | 752 | let di = toBase58String(value(bl)) | |
753 | 753 | let dj = toBase58String(value(bm)) | |
754 | 754 | let dk = toBase58String(value(bn)) | |
755 | 755 | let fQ = bo | |
756 | 756 | let fR = bp | |
757 | 757 | let fS = bk | |
758 | 758 | let dh = if ((fm == bx)) | |
759 | 759 | then fO | |
760 | 760 | else fm | |
761 | 761 | let fk = value(fN[0]) | |
762 | 762 | let df = value(fk.assetId) | |
763 | 763 | let dL = fk.amount | |
764 | 764 | let eR = eK(e, e, e) | |
765 | 765 | if ((eR == eR)) | |
766 | 766 | then { | |
767 | 767 | let de = toBase58String(fP) | |
768 | 768 | if ((di != toBase58String(df))) | |
769 | 769 | then throw("Wrong LP") | |
770 | 770 | else { | |
771 | 771 | let dp = bN(dj) | |
772 | 772 | let dr = bN(dk) | |
773 | 773 | let fT = { | |
774 | 774 | let aS = invoke(this, "getOneTknV2READONLY", [fL, dL], nil) | |
775 | 775 | if ($isInstanceOf(aS, "(Int, Int)")) | |
776 | 776 | then aS | |
777 | 777 | else throw(($getType(aS) + " couldn't be cast to (Int, Int)")) | |
778 | 778 | } | |
779 | 779 | if ((fT == fT)) | |
780 | 780 | then { | |
781 | 781 | let cx = fT._2 | |
782 | 782 | let fU = fT._1 | |
783 | 783 | let fV = if (if ((fM > 0)) | |
784 | 784 | then (fM > fU) | |
785 | 785 | else false) | |
786 | 786 | then aN(makeString(["amount to receive is less than ", toString(fM)], "")) | |
787 | 787 | else fU | |
788 | 788 | let fW = if ((fL == dj)) | |
789 | 789 | then $Tuple4(fV, 0, ((dp - fV) - cx), dr) | |
790 | 790 | else if ((fL == dk)) | |
791 | 791 | then $Tuple4(0, fV, dp, ((dr - fV) - cx)) | |
792 | 792 | else throw("invalid out asset id") | |
793 | 793 | let fX = fW._1 | |
794 | 794 | let fY = fW._2 | |
795 | 795 | let fC = fW._3 | |
796 | 796 | let fD = fW._4 | |
797 | 797 | let fZ = bP(H(fD, fR), H(fC, fQ)) | |
798 | 798 | let ga = L(fZ, a) | |
799 | 799 | let gb = if ((fL == "WAVES")) | |
800 | 800 | then unit | |
801 | 801 | else fromBase58String(fL) | |
802 | 802 | let gc = if ((cx > 0)) | |
803 | 803 | then [ScriptTransfer(aX, cx, gb)] | |
804 | 804 | else nil | |
805 | 805 | let dB = ([ScriptTransfer(dh, fV, gb), StringEntry(ai(toString(dh), de), bJ(fX, fY, dL, ga, height, lastBlock.timestamp)), IntegerEntry(ab(), ga), IntegerEntry(ac(height, lastBlock.timestamp), ga)] ++ gc) | |
806 | 806 | if ((dB == dB)) | |
807 | 807 | then { | |
808 | 808 | let gd = invoke(aQ, "burn", [dL], [AttachedPayment(df, dL)]) | |
809 | 809 | if ((gd == gd)) | |
810 | 810 | then { | |
811 | 811 | let ge = { | |
812 | 812 | let gf = if ((this == aX)) | |
813 | 813 | then 0 | |
814 | 814 | else cx | |
815 | 815 | let gg = if ((bc(fL) == bm)) | |
816 | 816 | then true | |
817 | 817 | else false | |
818 | 818 | if (gg) | |
819 | 819 | then $Tuple2(-((fU + gf)), 0) | |
820 | 820 | else $Tuple2(0, -((fU + gf))) | |
821 | 821 | } | |
822 | 822 | let eT = ge._1 | |
823 | 823 | let eU = ge._2 | |
824 | 824 | let gh = eS(eT, eU, 0) | |
825 | 825 | let gi = gh._1 | |
826 | 826 | let eJ = gh._2 | |
827 | 827 | let gj = eW(eR, eJ) | |
828 | 828 | if ((gj == gj)) | |
829 | 829 | then $Tuple2((dB ++ gi), fV) | |
830 | 830 | else throw("Strict value is not equal to itself.") | |
831 | 831 | } | |
832 | 832 | else throw("Strict value is not equal to itself.") | |
833 | 833 | } | |
834 | 834 | else throw("Strict value is not equal to itself.") | |
835 | 835 | } | |
836 | 836 | else throw("Strict value is not equal to itself.") | |
837 | 837 | } | |
838 | 838 | } | |
839 | 839 | else throw("Strict value is not equal to itself.") | |
840 | 840 | } | |
841 | 841 | ||
842 | 842 | ||
843 | 843 | func gk () = { | |
844 | 844 | let gl = getString(Z()) | |
845 | 845 | if ($isInstanceOf(gl, "String")) | |
846 | 846 | then { | |
847 | 847 | let cC = gl | |
848 | 848 | fromBase58String(cC) | |
849 | 849 | } | |
850 | 850 | else if ($isInstanceOf(gl, "Unit")) | |
851 | 851 | then unit | |
852 | 852 | else throw("Match error") | |
853 | 853 | } | |
854 | 854 | ||
855 | 855 | ||
856 | 856 | func gm () = { | |
857 | 857 | let gl = getString(aa()) | |
858 | 858 | if ($isInstanceOf(gl, "String")) | |
859 | 859 | then { | |
860 | 860 | let cC = gl | |
861 | 861 | fromBase58String(cC) | |
862 | 862 | } | |
863 | 863 | else if ($isInstanceOf(gl, "Unit")) | |
864 | 864 | then unit | |
865 | 865 | else throw("Match error") | |
866 | 866 | } | |
867 | 867 | ||
868 | 868 | ||
869 | 869 | let gn = throw("Permission denied") | |
870 | 870 | ||
871 | 871 | func go (cP) = { | |
872 | 872 | let gl = gk() | |
873 | 873 | if ($isInstanceOf(gl, "ByteVector")) | |
874 | 874 | then { | |
875 | 875 | let gp = gl | |
876 | 876 | (cP.callerPublicKey == gp) | |
877 | 877 | } | |
878 | 878 | else if ($isInstanceOf(gl, "Unit")) | |
879 | 879 | then (cP.caller == this) | |
880 | 880 | else throw("Match error") | |
881 | 881 | } | |
882 | 882 | ||
883 | 883 | ||
884 | 884 | func gq (cP) = { | |
885 | 885 | let gl = gk() | |
886 | 886 | if ($isInstanceOf(gl, "ByteVector")) | |
887 | 887 | then { | |
888 | 888 | let gp = gl | |
889 | 889 | if ((cP.callerPublicKey == gp)) | |
890 | 890 | then true | |
891 | 891 | else gn | |
892 | 892 | } | |
893 | 893 | else if ($isInstanceOf(gl, "Unit")) | |
894 | 894 | then if ((cP.caller == this)) | |
895 | 895 | then true | |
896 | 896 | else gn | |
897 | 897 | else throw("Match error") | |
898 | 898 | } | |
899 | 899 | ||
900 | 900 | ||
901 | 901 | func gr (gs,et,gt) = { | |
902 | 902 | let bg = aY() | |
903 | 903 | let dj = bg[w] | |
904 | 904 | let dk = bg[x] | |
905 | 905 | let eu = g | |
906 | 906 | let ew = parseBigIntValue(l) | |
907 | 907 | let cD = (parseBigIntValue(aU) * ew) | |
908 | 908 | let cz = if ((gs == false)) | |
909 | 909 | then [(toBigInt(bN(dj)) + gt), toBigInt(bN(dk))] | |
910 | 910 | else [(toBigInt(bN(dk)) + gt), toBigInt(bN(dj))] | |
911 | 911 | let ev = cz[0] | |
912 | 912 | let cC = ev | |
913 | 913 | let cE = (cD * eu) | |
914 | 914 | let ex = (((((et * et) / (ev * eu)) * et) * ew) / (cE * eu)) | |
915 | 915 | let ey = ((cC + ((et * ew) / cE)) - et) | |
916 | 916 | func cN (cO,ez) = { | |
917 | 917 | let gu = cO | |
918 | 918 | let eB = gu._1 | |
919 | 919 | let dc = gu._2 | |
920 | 920 | if ((dc != unit)) | |
921 | 921 | then cO | |
922 | 922 | else { | |
923 | 923 | let eC = (((eB * eB) + ex) / ((g * eB) + ey)) | |
924 | 924 | let eD = X((eC - value(eB))) | |
925 | 925 | if ((f >= eD)) | |
926 | 926 | then $Tuple2(eC, ez) | |
927 | 927 | else $Tuple2(eC, unit) | |
928 | 928 | } | |
929 | 929 | } | |
930 | 930 | ||
931 | 931 | let cT = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14] | |
932 | 932 | let gv = { | |
933 | 933 | let cV = cT | |
934 | 934 | let cW = size(cV) | |
935 | 935 | let cX = $Tuple2(et, unit) | |
936 | 936 | func cY (cZ,da) = if ((da >= cW)) | |
937 | 937 | then cZ | |
938 | 938 | else cN(cZ, cV[da]) | |
939 | 939 | ||
940 | 940 | func db (cZ,da) = if ((da >= cW)) | |
941 | 941 | then cZ | |
942 | 942 | else throw("List size exceeds 15") | |
943 | 943 | ||
944 | 944 | db(cY(cY(cY(cY(cY(cY(cY(cY(cY(cY(cY(cY(cY(cY(cY(cX, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15) | |
945 | 945 | } | |
946 | 946 | let eB = gv._1 | |
947 | 947 | let dc = gv._2 | |
948 | 948 | if ((dc != unit)) | |
949 | 949 | then eB | |
950 | 950 | else throw(("Y calculation error, Y = " + toString(eB))) | |
951 | 951 | } | |
952 | 952 | ||
953 | 953 | ||
954 | 954 | @Callable(cP) | |
955 | - | func calculateAmountOutForSwapREADONLY (gw,gs) = { | |
956 | - | let | |
955 | + | func calculateAmountOutForSwapREADONLY (gw,gs,gx) = { | |
956 | + | let gy = if ((gs == false)) | |
957 | 957 | then { | |
958 | - | let | |
958 | + | let gz = aJ(this, ak()) | |
959 | 959 | let gt = (toBigInt(bN(aJ(this, aj()))) + toBigInt(gw)) | |
960 | - | $Tuple2( | |
960 | + | $Tuple2(gz, gt) | |
961 | 961 | } | |
962 | 962 | else { | |
963 | - | let | |
963 | + | let gz = aJ(this, aj()) | |
964 | 964 | let gt = (toBigInt(bN(aJ(this, ak()))) + toBigInt(gw)) | |
965 | - | $Tuple2( | |
965 | + | $Tuple2(gz, gt) | |
966 | 966 | } | |
967 | - | let | |
968 | - | let gt = | |
967 | + | let gz = gy._1 | |
968 | + | let gt = gy._2 | |
969 | 969 | let bg = aY() | |
970 | 970 | let dj = bg[w] | |
971 | 971 | let dk = bg[x] | |
972 | 972 | let cz = [toBigInt(bN(dj)), toBigInt(bN(dk))] | |
973 | 973 | let et = cy(cz) | |
974 | 974 | let eB = gr(gs, et, toBigInt(gw)) | |
975 | - | let | |
976 | - | let | |
977 | - | let | |
978 | - | then [(toBigInt(bN(dj)) + toBigInt(gw)), (toBigInt(bN(dk)) - | |
979 | - | else [(toBigInt(bN(dj)) - | |
980 | - | let | |
981 | - | let dY = if (( | |
975 | + | let gA = ((toBigInt(bN(gz)) - eB) - toBigInt(1)) | |
976 | + | let gB = max([0, toInt(gA)]) | |
977 | + | let gC = if ((gs == false)) | |
978 | + | then [((toBigInt(bN(dj)) + toBigInt(gw)) + toBigInt(gx)), (toBigInt(bN(dk)) - gA)] | |
979 | + | else [(toBigInt(bN(dj)) - gA), ((toBigInt(bN(dk)) + toBigInt(gw)) + toBigInt(gx))] | |
980 | + | let gD = cy(gC) | |
981 | + | let dY = if ((gD >= et)) | |
982 | 982 | then true | |
983 | - | else throw(makeString(["new D is fewer error", toString(et), toString( | |
983 | + | else throw(makeString(["new D is fewer error", toString(et), toString(gD)], "__")) | |
984 | 984 | if ((dY == dY)) | |
985 | - | then $Tuple2(nil, | |
985 | + | then $Tuple2(nil, gB) | |
986 | 986 | else throw("Strict value is not equal to itself.") | |
987 | 987 | } | |
988 | 988 | ||
989 | 989 | ||
990 | 990 | ||
991 | 991 | @Callable(cP) | |
992 | - | func calculateAmountOutForSwapAndSendTokens (gw,gs, | |
993 | - | let | |
992 | + | func calculateAmountOutForSwapAndSendTokens (gw,gs,gE,gF,gx) = { | |
993 | + | let gG = { | |
994 | 994 | let aS = invoke(aQ, "getSwapContractREADONLY", nil, nil) | |
995 | 995 | if ($isInstanceOf(aS, "String")) | |
996 | 996 | then aS | |
997 | 997 | else throw(($getType(aS) + " couldn't be cast to String")) | |
998 | 998 | } | |
999 | - | let | |
999 | + | let gH = [if ((value(cP.payments[0]).amount >= gw)) | |
1000 | 1000 | then true | |
1001 | - | else aN("Wrong amount"), if ((cP.caller == addressFromStringValue( | |
1001 | + | else aN("Wrong amount"), if ((cP.caller == addressFromStringValue(gG))) | |
1002 | 1002 | then true | |
1003 | 1003 | else aN("Permission denied")] | |
1004 | - | if (( | |
1004 | + | if ((gH == gH)) | |
1005 | 1005 | then { | |
1006 | 1006 | let fk = value(cP.payments[0]) | |
1007 | - | let | |
1008 | - | let | |
1007 | + | let gI = be(fk.assetId) | |
1008 | + | let gJ = if ((gs == false)) | |
1009 | 1009 | then { | |
1010 | - | let | |
1011 | - | let gt = (bN( | |
1012 | - | $Tuple2( | |
1010 | + | let gz = aJ(this, ak()) | |
1011 | + | let gt = (bN(gI) - value(cP.payments[0]).amount) | |
1012 | + | $Tuple2(gz, gt) | |
1013 | 1013 | } | |
1014 | 1014 | else { | |
1015 | - | let | |
1016 | - | let gt = (bN( | |
1017 | - | $Tuple2( | |
1015 | + | let gz = aJ(this, aj()) | |
1016 | + | let gt = (bN(gI) - value(cP.payments[0]).amount) | |
1017 | + | $Tuple2(gz, gt) | |
1018 | 1018 | } | |
1019 | - | let | |
1020 | - | let gt = | |
1019 | + | let gz = gJ._1 | |
1020 | + | let gt = gJ._2 | |
1021 | 1021 | let bg = aY() | |
1022 | 1022 | let dj = bg[w] | |
1023 | 1023 | let dk = bg[x] | |
1024 | 1024 | let cz = if ((gs == false)) | |
1025 | 1025 | then [(toBigInt(bN(dj)) - toBigInt(value(cP.payments[0]).amount)), toBigInt(bN(dk))] | |
1026 | 1026 | else [toBigInt(bN(dj)), (toBigInt(bN(dk)) - toBigInt(value(cP.payments[0]).amount))] | |
1027 | 1027 | let et = cy(cz) | |
1028 | 1028 | let eB = gr(gs, et, toBigInt(0)) | |
1029 | - | let | |
1030 | - | let | |
1031 | - | let | |
1029 | + | let gA = ((toBigInt(bN(gz)) - eB) - toBigInt(1)) | |
1030 | + | let gB = max([0, toInt(gA)]) | |
1031 | + | let gK = if ((gB >= gE)) | |
1032 | 1032 | then true | |
1033 | 1033 | else throw("Exchange result is fewer coins than expected") | |
1034 | - | if (( | |
1034 | + | if ((gK == gK)) | |
1035 | 1035 | then { | |
1036 | - | let | |
1037 | - | then [toBigInt(bN(dj)), (toBigInt(bN(dk)) - | |
1038 | - | else [(toBigInt(bN(dj)) - | |
1039 | - | let | |
1040 | - | let dY = if (( | |
1036 | + | let gC = if ((gs == false)) | |
1037 | + | then [(toBigInt(bN(dj)) + toBigInt(gx)), (toBigInt(bN(dk)) - gA)] | |
1038 | + | else [(toBigInt(bN(dj)) - gA), (toBigInt(bN(dk)) + toBigInt(gx))] | |
1039 | + | let gD = cy(gC) | |
1040 | + | let dY = if ((gD >= et)) | |
1041 | 1041 | then true | |
1042 | 1042 | else throw("new D is fewer error") | |
1043 | 1043 | if ((dY == dY)) | |
1044 | - | then $Tuple2([ScriptTransfer(addressFromStringValue( | |
1044 | + | then $Tuple2([ScriptTransfer(addressFromStringValue(gF), gB, bc(gz))], gB) | |
1045 | 1045 | else throw("Strict value is not equal to itself.") | |
1046 | 1046 | } | |
1047 | 1047 | else throw("Strict value is not equal to itself.") | |
1048 | 1048 | } | |
1049 | 1049 | else throw("Strict value is not equal to itself.") | |
1050 | 1050 | } | |
1051 | 1051 | ||
1052 | 1052 | ||
1053 | 1053 | ||
1054 | 1054 | @Callable(cP) | |
1055 | 1055 | func constructor (Y) = { | |
1056 | 1056 | let ex = gq(cP) | |
1057 | 1057 | if ((ex == ex)) | |
1058 | 1058 | then [StringEntry(Y(), Y)] | |
1059 | 1059 | else throw("Strict value is not equal to itself.") | |
1060 | 1060 | } | |
1061 | 1061 | ||
1062 | 1062 | ||
1063 | 1063 | ||
1064 | 1064 | @Callable(cP) | |
1065 | - | func setManager ( | |
1065 | + | func setManager (gL) = { | |
1066 | 1066 | let ex = gq(cP) | |
1067 | 1067 | if ((ex == ex)) | |
1068 | 1068 | then { | |
1069 | - | let | |
1070 | - | if (( | |
1071 | - | then [StringEntry(aa(), | |
1069 | + | let gM = fromBase58String(gL) | |
1070 | + | if ((gM == gM)) | |
1071 | + | then [StringEntry(aa(), gL)] | |
1072 | 1072 | else throw("Strict value is not equal to itself.") | |
1073 | 1073 | } | |
1074 | 1074 | else throw("Strict value is not equal to itself.") | |
1075 | 1075 | } | |
1076 | 1076 | ||
1077 | 1077 | ||
1078 | 1078 | ||
1079 | 1079 | @Callable(cP) | |
1080 | 1080 | func confirmManager () = { | |
1081 | 1081 | let cu = gm() | |
1082 | - | let | |
1082 | + | let gN = if (isDefined(cu)) | |
1083 | 1083 | then true | |
1084 | 1084 | else throw("No pending manager") | |
1085 | - | if (( | |
1085 | + | if ((gN == gN)) | |
1086 | 1086 | then { | |
1087 | - | let | |
1087 | + | let gO = if ((cP.callerPublicKey == value(cu))) | |
1088 | 1088 | then true | |
1089 | 1089 | else throw("You are not pending manager") | |
1090 | - | if (( | |
1090 | + | if ((gO == gO)) | |
1091 | 1091 | then [StringEntry(Z(), toBase58String(value(cu))), DeleteEntry(aa())] | |
1092 | 1092 | else throw("Strict value is not equal to itself.") | |
1093 | 1093 | } | |
1094 | 1094 | else throw("Strict value is not equal to itself.") | |
1095 | 1095 | } | |
1096 | 1096 | ||
1097 | 1097 | ||
1098 | 1098 | ||
1099 | 1099 | @Callable(cP) | |
1100 | - | func put ( | |
1101 | - | let | |
1102 | - | let | |
1103 | - | let | |
1104 | - | if ((0 > | |
1100 | + | func put (gP,gQ) = { | |
1101 | + | let gR = bs() | |
1102 | + | let gS = valueOrErrorMessage(addressFromString(gR[C]), "Wr st addr") | |
1103 | + | let gT = valueOrErrorMessage(addressFromString(gR[E]), "Wr sl addr") | |
1104 | + | if ((0 > gP)) | |
1105 | 1105 | then throw("Wrong slippage") | |
1106 | 1106 | else if ((size(cP.payments) != 2)) | |
1107 | 1107 | then throw("2 pmnts expd") | |
1108 | 1108 | else { | |
1109 | - | let | |
1110 | - | let | |
1111 | - | let eO = (toBigInt(bN(be(bm))) - | |
1109 | + | let gU = toBigInt(value(cP.payments[0]).amount) | |
1110 | + | let gV = toBigInt(value(cP.payments[1]).amount) | |
1111 | + | let eO = (toBigInt(bN(be(bm))) - gU) | |
1112 | 1112 | if ((eO == eO)) | |
1113 | 1113 | then { | |
1114 | - | let eP = (toBigInt(bN(be(bn))) - | |
1114 | + | let eP = (toBigInt(bN(be(bn))) - gV) | |
1115 | 1115 | if ((eP == eP)) | |
1116 | 1116 | then { | |
1117 | 1117 | let eQ = toBigInt(value(assetInfo(bl)).quantity) | |
1118 | 1118 | if ((eQ == eQ)) | |
1119 | 1119 | then { | |
1120 | - | let eR = eK( | |
1120 | + | let eR = eK(gU, gV, toBigInt(0)) | |
1121 | 1121 | if ((eR == eR)) | |
1122 | 1122 | then { | |
1123 | - | let | |
1124 | - | let el = | |
1125 | - | let | |
1126 | - | let dB = | |
1127 | - | let em = | |
1128 | - | let en = | |
1129 | - | let dj = | |
1130 | - | let dk = | |
1123 | + | let gW = fl(toString(cP.caller), toBase58String(cP.transactionId), AttachedPayment(value(cP.payments[0]).assetId, value(cP.payments[0]).amount), cP.payments[1], gP, true, false, true, 0, "") | |
1124 | + | let el = gW._2 | |
1125 | + | let gX = gW._7 | |
1126 | + | let dB = gW._9 | |
1127 | + | let em = gW._10 | |
1128 | + | let en = gW._11 | |
1129 | + | let dj = gW._12 | |
1130 | + | let dk = gW._13 | |
1131 | 1131 | let dX = invoke(aQ, "emit", [el], nil) | |
1132 | 1132 | if ((dX == dX)) | |
1133 | 1133 | then { | |
1134 | - | let | |
1134 | + | let gY = { | |
1135 | 1135 | let gl = dX | |
1136 | 1136 | if ($isInstanceOf(gl, "Address")) | |
1137 | 1137 | then { | |
1138 | - | let | |
1139 | - | invoke( | |
1138 | + | let gZ = gl | |
1139 | + | invoke(gZ, "emit", [el], nil) | |
1140 | 1140 | } | |
1141 | 1141 | else unit | |
1142 | 1142 | } | |
1143 | - | if (( | |
1143 | + | if ((gY == gY)) | |
1144 | 1144 | then { | |
1145 | - | let | |
1146 | - | then invoke( | |
1145 | + | let ha = if ((em > 0)) | |
1146 | + | then invoke(gT, "put", nil, [AttachedPayment(dj, em)]) | |
1147 | 1147 | else nil | |
1148 | - | if (( | |
1148 | + | if ((ha == ha)) | |
1149 | 1149 | then { | |
1150 | - | let | |
1151 | - | then invoke( | |
1150 | + | let hb = if ((en > 0)) | |
1151 | + | then invoke(gT, "put", nil, [AttachedPayment(dk, en)]) | |
1152 | 1152 | else nil | |
1153 | - | if (( | |
1153 | + | if ((hb == hb)) | |
1154 | 1154 | then { | |
1155 | - | let | |
1155 | + | let hc = if (gQ) | |
1156 | 1156 | then { | |
1157 | - | let | |
1158 | - | if (( | |
1157 | + | let hd = invoke(gS, "stake", nil, [AttachedPayment(gX, el)]) | |
1158 | + | if ((hd == hd)) | |
1159 | 1159 | then nil | |
1160 | 1160 | else throw("Strict value is not equal to itself.") | |
1161 | 1161 | } | |
1162 | - | else [ScriptTransfer(cP.caller, el, | |
1163 | - | let | |
1164 | - | let gi = | |
1165 | - | let eJ = | |
1166 | - | let | |
1162 | + | else [ScriptTransfer(cP.caller, el, gX)] | |
1163 | + | let he = eS(0, 0, 0) | |
1164 | + | let gi = he._1 | |
1165 | + | let eJ = he._2 | |
1166 | + | let hf = if ((eJ >= eR)) | |
1167 | 1167 | then true | |
1168 | 1168 | else aN(makeString(["updated DLp lower than current DLp", toString(eO), toString(eP), toString(eQ), toString(eR), toString(eJ), toString(em), toString(en)], " ")) | |
1169 | - | if (( | |
1169 | + | if ((hf == hf)) | |
1170 | 1170 | then { | |
1171 | - | let | |
1172 | - | if (( | |
1173 | - | then ((dB ++ | |
1171 | + | let hg = value(assetInfo(bl)).quantity | |
1172 | + | if ((hg == hg)) | |
1173 | + | then ((dB ++ hc) ++ gi) | |
1174 | 1174 | else throw("Strict value is not equal to itself.") | |
1175 | 1175 | } | |
1176 | 1176 | else throw("Strict value is not equal to itself.") | |
1177 | 1177 | } | |
1178 | 1178 | else throw("Strict value is not equal to itself.") | |
1179 | 1179 | } | |
1180 | 1180 | else throw("Strict value is not equal to itself.") | |
1181 | 1181 | } | |
1182 | 1182 | else throw("Strict value is not equal to itself.") | |
1183 | 1183 | } | |
1184 | 1184 | else throw("Strict value is not equal to itself.") | |
1185 | 1185 | } | |
1186 | 1186 | else throw("Strict value is not equal to itself.") | |
1187 | 1187 | } | |
1188 | 1188 | else throw("Strict value is not equal to itself.") | |
1189 | 1189 | } | |
1190 | 1190 | else throw("Strict value is not equal to itself.") | |
1191 | 1191 | } | |
1192 | 1192 | else throw("Strict value is not equal to itself.") | |
1193 | 1193 | } | |
1194 | 1194 | } | |
1195 | 1195 | ||
1196 | 1196 | ||
1197 | 1197 | ||
1198 | 1198 | @Callable(cP) | |
1199 | - | func putOneTknV2 (fM, | |
1200 | - | let | |
1199 | + | func putOneTknV2 (fM,gQ) = { | |
1200 | + | let hh = { | |
1201 | 1201 | let aS = invoke(aQ, "isPoolOneTokenOperationsDisabledREADONLY", [toString(this)], nil) | |
1202 | 1202 | if ($isInstanceOf(aS, "Boolean")) | |
1203 | 1203 | then aS | |
1204 | 1204 | else throw(($getType(aS) + " couldn't be cast to Boolean")) | |
1205 | 1205 | } | |
1206 | - | let | |
1206 | + | let hi = if (if (if (aV()) | |
1207 | 1207 | then true | |
1208 | 1208 | else (bk == q)) | |
1209 | 1209 | then true | |
1210 | 1210 | else (bk == s)) | |
1211 | 1211 | then true | |
1212 | - | else | |
1213 | - | let | |
1212 | + | else hh | |
1213 | + | let gH = [if (if (!(hi)) | |
1214 | 1214 | then true | |
1215 | 1215 | else go(cP)) | |
1216 | 1216 | then true | |
1217 | 1217 | else aN("put operation is blocked by admin"), if ((size(cP.payments) == 1)) | |
1218 | 1218 | then true | |
1219 | 1219 | else aN("exactly 1 payment are expected")] | |
1220 | - | if (( | |
1220 | + | if ((gH == gH)) | |
1221 | 1221 | then { | |
1222 | 1222 | let dj = toBase58String(value(bm)) | |
1223 | 1223 | let dk = toBase58String(value(bn)) | |
1224 | 1224 | let di = bl | |
1225 | 1225 | let fQ = bo | |
1226 | 1226 | let fR = bp | |
1227 | 1227 | let dh = if ((cP.caller == this)) | |
1228 | 1228 | then cP.originCaller | |
1229 | 1229 | else cP.caller | |
1230 | 1230 | let fk = value(cP.payments[0]) | |
1231 | 1231 | let df = toBase58String(value(fk.assetId)) | |
1232 | 1232 | let dL = fk.amount | |
1233 | 1233 | let eR = if ((fk.assetId == bm)) | |
1234 | 1234 | then eK(toBigInt(dL), toBigInt(0), toBigInt(0)) | |
1235 | 1235 | else eK(toBigInt(0), toBigInt(dL), toBigInt(0)) | |
1236 | 1236 | if ((eR == eR)) | |
1237 | 1237 | then { | |
1238 | - | let | |
1239 | - | if (( | |
1238 | + | let hj = fp(dL, df, toString(dh), toBase58String(cP.transactionId), true) | |
1239 | + | if ((hj == hj)) | |
1240 | 1240 | then { | |
1241 | - | let cx = | |
1242 | - | let dB = | |
1243 | - | let | |
1241 | + | let cx = hj._3 | |
1242 | + | let dB = hj._2 | |
1243 | + | let hk = hj._1 | |
1244 | 1244 | let el = if (if ((fM > 0)) | |
1245 | - | then (fM > | |
1245 | + | then (fM > hk) | |
1246 | 1246 | else false) | |
1247 | 1247 | then aN(makeString(["amount to receive is less than ", toString(fM)], "")) | |
1248 | - | else | |
1249 | - | let | |
1250 | - | if (( | |
1248 | + | else hk | |
1249 | + | let gW = invoke(aQ, "emit", [el], nil) | |
1250 | + | if ((gW == gW)) | |
1251 | 1251 | then { | |
1252 | - | let | |
1253 | - | let gl = | |
1252 | + | let gY = { | |
1253 | + | let gl = gW | |
1254 | 1254 | if ($isInstanceOf(gl, "Address")) | |
1255 | 1255 | then { | |
1256 | - | let | |
1257 | - | invoke( | |
1256 | + | let gZ = gl | |
1257 | + | invoke(gZ, "emit", [el], nil) | |
1258 | 1258 | } | |
1259 | 1259 | else unit | |
1260 | 1260 | } | |
1261 | - | if (( | |
1261 | + | if ((gY == gY)) | |
1262 | 1262 | then { | |
1263 | - | let | |
1263 | + | let hc = if (gQ) | |
1264 | 1264 | then { | |
1265 | - | let | |
1266 | - | if (( | |
1265 | + | let hd = invoke(bu, "stake", nil, [AttachedPayment(di, el)]) | |
1266 | + | if ((hd == hd)) | |
1267 | 1267 | then nil | |
1268 | 1268 | else throw("Strict value is not equal to itself.") | |
1269 | 1269 | } | |
1270 | 1270 | else [ScriptTransfer(cP.caller, el, di)] | |
1271 | 1271 | let gc = if ((cx > 0)) | |
1272 | 1272 | then [ScriptTransfer(aX, cx, fromBase58String(df))] | |
1273 | 1273 | else nil | |
1274 | - | let | |
1274 | + | let hl = if ((this == aX)) | |
1275 | 1275 | then $Tuple2(0, 0) | |
1276 | 1276 | else { | |
1277 | - | let | |
1277 | + | let hm = if ((fk.assetId == bm)) | |
1278 | 1278 | then true | |
1279 | 1279 | else false | |
1280 | - | if ( | |
1280 | + | if (hm) | |
1281 | 1281 | then $Tuple2(-(cx), 0) | |
1282 | 1282 | else $Tuple2(0, -(cx)) | |
1283 | 1283 | } | |
1284 | - | let eT = | |
1285 | - | let eU = | |
1286 | - | let | |
1287 | - | let gi = | |
1288 | - | let eJ = | |
1284 | + | let eT = hl._1 | |
1285 | + | let eU = hl._2 | |
1286 | + | let hn = eS(eT, eU, 0) | |
1287 | + | let gi = hn._1 | |
1288 | + | let eJ = hn._2 | |
1289 | 1289 | let gj = eW(eR, eJ) | |
1290 | 1290 | if ((gj == gj)) | |
1291 | - | then $Tuple2((((dB ++ | |
1291 | + | then $Tuple2((((dB ++ hc) ++ gc) ++ gi), el) | |
1292 | 1292 | else throw("Strict value is not equal to itself.") | |
1293 | 1293 | } | |
1294 | 1294 | else throw("Strict value is not equal to itself.") | |
1295 | 1295 | } | |
1296 | 1296 | else throw("Strict value is not equal to itself.") | |
1297 | 1297 | } | |
1298 | 1298 | else throw("Strict value is not equal to itself.") | |
1299 | 1299 | } | |
1300 | 1300 | else throw("Strict value is not equal to itself.") | |
1301 | 1301 | } | |
1302 | 1302 | else throw("Strict value is not equal to itself.") | |
1303 | 1303 | } | |
1304 | 1304 | ||
1305 | 1305 | ||
1306 | 1306 | ||
1307 | 1307 | @Callable(cP) | |
1308 | - | func putForFree ( | |
1308 | + | func putForFree (ho) = if ((0 > ho)) | |
1309 | 1309 | then throw("Wrong slpg") | |
1310 | 1310 | else if ((size(cP.payments) != 2)) | |
1311 | 1311 | then throw("2 pmnts expd") | |
1312 | 1312 | else { | |
1313 | - | let | |
1314 | - | let dB = | |
1315 | - | let | |
1316 | - | let | |
1317 | - | let eR = eK( | |
1313 | + | let hp = fl(toString(cP.caller), toBase58String(cP.transactionId), AttachedPayment(value(cP.payments[0]).assetId, value(cP.payments[0]).amount), cP.payments[1], ho, false, false, true, 0, "") | |
1314 | + | let dB = hp._9 | |
1315 | + | let gU = toBigInt(value(cP.payments[0]).amount) | |
1316 | + | let gV = toBigInt(value(cP.payments[1]).amount) | |
1317 | + | let eR = eK(gU, gV, toBigInt(0)) | |
1318 | 1318 | if ((eR == eR)) | |
1319 | 1319 | then { | |
1320 | - | let | |
1321 | - | let gi = | |
1322 | - | let eJ = | |
1320 | + | let hq = eS(0, 0, 0) | |
1321 | + | let gi = hq._1 | |
1322 | + | let eJ = hq._2 | |
1323 | 1323 | let gj = eW(eR, eJ) | |
1324 | 1324 | if ((gj == gj)) | |
1325 | 1325 | then (dB ++ gi) | |
1326 | 1326 | else throw("Strict value is not equal to itself.") | |
1327 | 1327 | } | |
1328 | 1328 | else throw("Strict value is not equal to itself.") | |
1329 | 1329 | } | |
1330 | 1330 | ||
1331 | 1331 | ||
1332 | 1332 | ||
1333 | 1333 | @Callable(cP) | |
1334 | 1334 | func get () = { | |
1335 | 1335 | let eR = eK(toBigInt(0), toBigInt(0), toBigInt(0)) | |
1336 | 1336 | if ((eR == eR)) | |
1337 | 1337 | then { | |
1338 | 1338 | let dX = fj(cP) | |
1339 | - | let | |
1339 | + | let hr = dX._1 | |
1340 | 1340 | let dA = dX._2 | |
1341 | 1341 | let dL = dX._3 | |
1342 | 1342 | let df = dX._4 | |
1343 | 1343 | let dB = dX._5 | |
1344 | 1344 | let ey = invoke(aQ, "burn", [dL], [AttachedPayment(df, dL)]) | |
1345 | 1345 | if ((ey == ey)) | |
1346 | 1346 | then { | |
1347 | - | let | |
1348 | - | let gi = | |
1349 | - | let eJ = | |
1347 | + | let hs = eS(-(hr), -(dA), 0) | |
1348 | + | let gi = hs._1 | |
1349 | + | let eJ = hs._2 | |
1350 | 1350 | let gj = eW(eR, eJ) | |
1351 | 1351 | if ((gj == gj)) | |
1352 | 1352 | then (dB ++ gi) | |
1353 | 1353 | else throw("Strict value is not equal to itself.") | |
1354 | 1354 | } | |
1355 | 1355 | else throw("Strict value is not equal to itself.") | |
1356 | 1356 | } | |
1357 | 1357 | else throw("Strict value is not equal to itself.") | |
1358 | 1358 | } | |
1359 | 1359 | ||
1360 | 1360 | ||
1361 | 1361 | ||
1362 | 1362 | @Callable(cP) | |
1363 | 1363 | func getOneTknV2 (fL,fM) = { | |
1364 | - | let | |
1364 | + | let hh = { | |
1365 | 1365 | let aS = invoke(aQ, "isPoolOneTokenOperationsDisabledREADONLY", [toString(this)], nil) | |
1366 | 1366 | if ($isInstanceOf(aS, "Boolean")) | |
1367 | 1367 | then aS | |
1368 | 1368 | else throw(($getType(aS) + " couldn't be cast to Boolean")) | |
1369 | 1369 | } | |
1370 | - | let | |
1370 | + | let ht = if (if (aV()) | |
1371 | 1371 | then true | |
1372 | 1372 | else (bk == s)) | |
1373 | 1373 | then true | |
1374 | - | else | |
1375 | - | let | |
1374 | + | else hh | |
1375 | + | let gH = [if (if (!(ht)) | |
1376 | 1376 | then true | |
1377 | 1377 | else go(cP)) | |
1378 | 1378 | then true | |
1379 | 1379 | else aN("get operation is blocked by admin"), if ((size(cP.payments) == 1)) | |
1380 | 1380 | then true | |
1381 | 1381 | else aN("exactly 1 payment are expected")] | |
1382 | - | if (( | |
1382 | + | if ((gH == gH)) | |
1383 | 1383 | then { | |
1384 | - | let | |
1385 | - | let dB = | |
1386 | - | let fV = | |
1384 | + | let hu = fK(fL, fM, cP.payments, cP.caller, cP.originCaller, cP.transactionId) | |
1385 | + | let dB = hu._1 | |
1386 | + | let fV = hu._2 | |
1387 | 1387 | $Tuple2(dB, fV) | |
1388 | 1388 | } | |
1389 | 1389 | else throw("Strict value is not equal to itself.") | |
1390 | 1390 | } | |
1391 | 1391 | ||
1392 | 1392 | ||
1393 | 1393 | ||
1394 | 1394 | @Callable(cP) | |
1395 | 1395 | func refreshDLp () = { | |
1396 | - | let | |
1397 | - | let | |
1396 | + | let hv = valueOrElse(getInteger(aq), 0) | |
1397 | + | let hw = if (((height - hv) >= at)) | |
1398 | 1398 | then unit | |
1399 | 1399 | else aN(makeString([toString(at), " blocks have not passed since the previous call"], "")) | |
1400 | - | if (( | |
1400 | + | if ((hw == hw)) | |
1401 | 1401 | then { | |
1402 | 1402 | let fd = valueOrErrorMessage(parseBigInt(valueOrElse(getString(this, ap), "0")), aP("invalid dLp")) | |
1403 | - | let | |
1404 | - | let | |
1405 | - | let eJ = | |
1403 | + | let hx = eS(0, 0, 0) | |
1404 | + | let hy = hx._1 | |
1405 | + | let eJ = hx._2 | |
1406 | 1406 | let eV = if ((fd != eJ)) | |
1407 | - | then | |
1407 | + | then hy | |
1408 | 1408 | else aN("nothing to refresh") | |
1409 | 1409 | $Tuple2(eV, toString(eJ)) | |
1410 | 1410 | } | |
1411 | 1411 | else throw("Strict value is not equal to itself.") | |
1412 | 1412 | } | |
1413 | 1413 | ||
1414 | 1414 | ||
1415 | 1415 | ||
1416 | 1416 | @Callable(cP) | |
1417 | - | func getOneTknV2READONLY (fL, | |
1417 | + | func getOneTknV2READONLY (fL,hz) = { | |
1418 | 1418 | let dj = toBase58String(value(bm)) | |
1419 | 1419 | let dk = toBase58String(value(bn)) | |
1420 | 1420 | let di = toBase58String(value(bl)) | |
1421 | 1421 | let cz = [toBigInt(bN(dj)), toBigInt(bN(dk))] | |
1422 | 1422 | let eI = toBigInt(valueOrErrorMessage(assetInfo(fromBase58String(di)), "invalid lp asset").quantity) | |
1423 | 1423 | let cb = cy(cz) | |
1424 | - | let ca = (cb - fraction(toBigInt( | |
1425 | - | let | |
1424 | + | let ca = (cb - fraction(toBigInt(hz), cb, eI)) | |
1425 | + | let hA = if ((fL == dj)) | |
1426 | 1426 | then 0 | |
1427 | 1427 | else if ((fL == dk)) | |
1428 | 1428 | then 1 | |
1429 | 1429 | else throw("invalid out asset id") | |
1430 | - | let | |
1431 | - | let | |
1432 | - | let | |
1433 | - | let | |
1434 | - | let fU = | |
1435 | - | let cx = | |
1430 | + | let hB = es(cz, hA, ca) | |
1431 | + | let gA = (cz[hA] - hB) | |
1432 | + | let gB = max([0, toInt((gA - f))]) | |
1433 | + | let hC = cv(gB, aT) | |
1434 | + | let fU = hC._1 | |
1435 | + | let cx = hC._2 | |
1436 | 1436 | $Tuple2(nil, $Tuple2(fU, cx)) | |
1437 | 1437 | } | |
1438 | 1438 | ||
1439 | 1439 | ||
1440 | 1440 | ||
1441 | 1441 | @Callable(cP) | |
1442 | - | func getOneTknV2WithBonusREADONLY (fL, | |
1442 | + | func getOneTknV2WithBonusREADONLY (fL,hz) = { | |
1443 | 1443 | let dj = toBase58String(value(bm)) | |
1444 | 1444 | let dk = toBase58String(value(bn)) | |
1445 | 1445 | let di = toBase58String(value(bl)) | |
1446 | 1446 | let dp = bN(dj) | |
1447 | 1447 | let dr = bN(dk) | |
1448 | - | let | |
1449 | - | let aS = invoke(this, "getOneTknV2READONLY", [fL, | |
1448 | + | let hD = { | |
1449 | + | let aS = invoke(this, "getOneTknV2READONLY", [fL, hz], nil) | |
1450 | 1450 | if ($isInstanceOf(aS, "(Int, Int)")) | |
1451 | 1451 | then aS | |
1452 | 1452 | else throw(($getType(aS) + " couldn't be cast to (Int, Int)")) | |
1453 | 1453 | } | |
1454 | - | let fU = | |
1455 | - | let cx = | |
1456 | - | let dX = dd("", di, | |
1454 | + | let fU = hD._1 | |
1455 | + | let cx = hD._2 | |
1456 | + | let dX = dd("", di, hz, this) | |
1457 | 1457 | let dz = dX._1 | |
1458 | 1458 | let dA = dX._2 | |
1459 | - | let | |
1460 | - | let fJ = if (( | |
1459 | + | let hE = (dz + dA) | |
1460 | + | let fJ = if ((hE == 0)) | |
1461 | 1461 | then if ((fU == 0)) | |
1462 | 1462 | then 0 | |
1463 | 1463 | else throw("bonus calculation error") | |
1464 | - | else fraction((fU - | |
1464 | + | else fraction((fU - hE), a, hE) | |
1465 | 1465 | $Tuple2(nil, $Tuple3(fU, cx, fJ)) | |
1466 | 1466 | } | |
1467 | 1467 | ||
1468 | 1468 | ||
1469 | 1469 | ||
1470 | 1470 | @Callable(cP) | |
1471 | - | func getNoLess ( | |
1471 | + | func getNoLess (hF,hG) = { | |
1472 | 1472 | let dX = fj(cP) | |
1473 | 1473 | let dz = dX._1 | |
1474 | 1474 | let dA = dX._2 | |
1475 | 1475 | let dL = dX._3 | |
1476 | 1476 | let df = dX._4 | |
1477 | 1477 | let dB = dX._5 | |
1478 | - | if (( | |
1479 | - | then throw(((("Failed: " + toString(dz)) + " < ") + toString( | |
1480 | - | else if (( | |
1481 | - | then throw(((("Failed: " + toString(dA)) + " < ") + toString( | |
1478 | + | if ((hF > dz)) | |
1479 | + | then throw(((("Failed: " + toString(dz)) + " < ") + toString(hF))) | |
1480 | + | else if ((hG > dA)) | |
1481 | + | then throw(((("Failed: " + toString(dA)) + " < ") + toString(hG))) | |
1482 | 1482 | else { | |
1483 | 1483 | let eR = eK(toBigInt(0), toBigInt(0), toBigInt(0)) | |
1484 | 1484 | if ((eR == eR)) | |
1485 | 1485 | then { | |
1486 | - | let | |
1487 | - | if (( | |
1486 | + | let hH = invoke(aQ, "burn", [dL], [AttachedPayment(df, dL)]) | |
1487 | + | if ((hH == hH)) | |
1488 | 1488 | then { | |
1489 | - | let | |
1490 | - | let gi = | |
1491 | - | let eJ = | |
1489 | + | let hI = eS(-(dz), -(dA), 0) | |
1490 | + | let gi = hI._1 | |
1491 | + | let eJ = hI._2 | |
1492 | 1492 | let gj = eW(eR, eJ) | |
1493 | 1493 | if ((gj == gj)) | |
1494 | 1494 | then (dB ++ gi) | |
1495 | 1495 | else throw("Strict value is not equal to itself.") | |
1496 | 1496 | } | |
1497 | 1497 | else throw("Strict value is not equal to itself.") | |
1498 | 1498 | } | |
1499 | 1499 | else throw("Strict value is not equal to itself.") | |
1500 | 1500 | } | |
1501 | 1501 | } | |
1502 | 1502 | ||
1503 | 1503 | ||
1504 | 1504 | ||
1505 | 1505 | @Callable(cP) | |
1506 | 1506 | func unstakeAndGet (cw) = { | |
1507 | - | let | |
1507 | + | let hJ = if ((size(cP.payments) != 0)) | |
1508 | 1508 | then throw("No pmnts expd") | |
1509 | 1509 | else true | |
1510 | - | if (( | |
1510 | + | if ((hJ == hJ)) | |
1511 | 1511 | then { | |
1512 | - | let | |
1513 | - | let | |
1514 | - | let | |
1512 | + | let hK = bs() | |
1513 | + | let gX = bl | |
1514 | + | let hL = valueOrErrorMessage(addressFromString(hK[C]), "Wr st addr") | |
1515 | 1515 | let eR = eK(toBigInt(0), toBigInt(0), toBigInt(0)) | |
1516 | 1516 | if ((eR == eR)) | |
1517 | 1517 | then { | |
1518 | - | let | |
1519 | - | if (( | |
1518 | + | let hM = invoke(hL, "unstake", [toBase58String(gX), cw], nil) | |
1519 | + | if ((hM == hM)) | |
1520 | 1520 | then { | |
1521 | - | let dX = dd(toBase58String(cP.transactionId), toBase58String( | |
1521 | + | let dX = dd(toBase58String(cP.transactionId), toBase58String(gX), cw, cP.caller) | |
1522 | 1522 | let dz = dX._1 | |
1523 | 1523 | let dA = dX._2 | |
1524 | 1524 | let dn = parseIntValue(dX._9) | |
1525 | 1525 | let dB = dX._10 | |
1526 | - | let | |
1526 | + | let hN = if (if (aV()) | |
1527 | 1527 | then true | |
1528 | 1528 | else (dn == s)) | |
1529 | 1529 | then throw(("Blocked: " + toString(dn))) | |
1530 | 1530 | else true | |
1531 | - | if (( | |
1531 | + | if ((hN == hN)) | |
1532 | 1532 | then { | |
1533 | - | let | |
1534 | - | if (( | |
1533 | + | let hO = invoke(aQ, "burn", [cw], [AttachedPayment(gX, cw)]) | |
1534 | + | if ((hO == hO)) | |
1535 | 1535 | then { | |
1536 | - | let | |
1537 | - | let gi = | |
1538 | - | let eJ = | |
1536 | + | let hP = eS(-(dz), -(dA), 0) | |
1537 | + | let gi = hP._1 | |
1538 | + | let eJ = hP._2 | |
1539 | 1539 | let gj = eW(eR, eJ) | |
1540 | 1540 | if ((gj == gj)) | |
1541 | 1541 | then (dB ++ gi) | |
1542 | 1542 | else throw("Strict value is not equal to itself.") | |
1543 | 1543 | } | |
1544 | 1544 | else throw("Strict value is not equal to itself.") | |
1545 | 1545 | } | |
1546 | 1546 | else throw("Strict value is not equal to itself.") | |
1547 | 1547 | } | |
1548 | 1548 | else throw("Strict value is not equal to itself.") | |
1549 | 1549 | } | |
1550 | 1550 | else throw("Strict value is not equal to itself.") | |
1551 | 1551 | } | |
1552 | 1552 | else throw("Strict value is not equal to itself.") | |
1553 | 1553 | } | |
1554 | 1554 | ||
1555 | 1555 | ||
1556 | 1556 | ||
1557 | 1557 | @Callable(cP) | |
1558 | - | func unstakeAndGetNoLess ( | |
1559 | - | let | |
1558 | + | func unstakeAndGetNoLess (hQ,hR,hG) = { | |
1559 | + | let ht = if (aV()) | |
1560 | 1560 | then true | |
1561 | 1561 | else (bk == s) | |
1562 | - | let | |
1562 | + | let gH = [if (!(ht)) | |
1563 | 1563 | then true | |
1564 | 1564 | else throw("get operation is blocked by admin"), if ((size(cP.payments) == 0)) | |
1565 | 1565 | then true | |
1566 | 1566 | else throw("no payments are expected")] | |
1567 | - | if (( | |
1567 | + | if ((gH == gH)) | |
1568 | 1568 | then { | |
1569 | 1569 | let eR = eK(toBigInt(0), toBigInt(0), toBigInt(0)) | |
1570 | 1570 | if ((eR == eR)) | |
1571 | 1571 | then { | |
1572 | - | let | |
1573 | - | if (( | |
1572 | + | let hM = invoke(bu, "unstake", [toBase58String(bl), hQ], nil) | |
1573 | + | if ((hM == hM)) | |
1574 | 1574 | then { | |
1575 | - | let | |
1576 | - | let dz = | |
1577 | - | let dA = | |
1578 | - | let dB = | |
1579 | - | let | |
1575 | + | let hS = dd(toBase58String(cP.transactionId), toBase58String(bl), hQ, cP.caller) | |
1576 | + | let dz = hS._1 | |
1577 | + | let dA = hS._2 | |
1578 | + | let dB = hS._10 | |
1579 | + | let hT = [if ((dz >= hR)) | |
1580 | 1580 | then true | |
1581 | - | else throw(makeString(["amount asset amount to receive is less than ", toString( | |
1581 | + | else throw(makeString(["amount asset amount to receive is less than ", toString(hR)], "")), if ((dA >= hG)) | |
1582 | 1582 | then true | |
1583 | - | else throw(makeString(["price asset amount to receive is less than ", toString( | |
1584 | - | if (( | |
1583 | + | else throw(makeString(["price asset amount to receive is less than ", toString(hG)], ""))] | |
1584 | + | if ((hT == hT)) | |
1585 | 1585 | then { | |
1586 | - | let | |
1587 | - | if (( | |
1586 | + | let hH = invoke(aQ, "burn", [hQ], [AttachedPayment(bl, hQ)]) | |
1587 | + | if ((hH == hH)) | |
1588 | 1588 | then { | |
1589 | - | let | |
1590 | - | let gi = | |
1591 | - | let eJ = | |
1589 | + | let hU = eS(-(dz), -(dA), 0) | |
1590 | + | let gi = hU._1 | |
1591 | + | let eJ = hU._2 | |
1592 | 1592 | let gj = eW(eR, eJ) | |
1593 | 1593 | if ((gj == gj)) | |
1594 | 1594 | then (dB ++ gi) | |
1595 | 1595 | else throw("Strict value is not equal to itself.") | |
1596 | 1596 | } | |
1597 | 1597 | else throw("Strict value is not equal to itself.") | |
1598 | 1598 | } | |
1599 | 1599 | else throw("Strict value is not equal to itself.") | |
1600 | 1600 | } | |
1601 | 1601 | else throw("Strict value is not equal to itself.") | |
1602 | 1602 | } | |
1603 | 1603 | else throw("Strict value is not equal to itself.") | |
1604 | 1604 | } | |
1605 | 1605 | else throw("Strict value is not equal to itself.") | |
1606 | 1606 | } | |
1607 | 1607 | ||
1608 | 1608 | ||
1609 | 1609 | ||
1610 | 1610 | @Callable(cP) | |
1611 | - | func unstakeAndGetOneTknV2 ( | |
1612 | - | let | |
1611 | + | func unstakeAndGetOneTknV2 (hQ,fL,fM) = { | |
1612 | + | let hh = { | |
1613 | 1613 | let aS = invoke(aQ, "isPoolOneTokenOperationsDisabledREADONLY", [toString(this)], nil) | |
1614 | 1614 | if ($isInstanceOf(aS, "Boolean")) | |
1615 | 1615 | then aS | |
1616 | 1616 | else throw(($getType(aS) + " couldn't be cast to Boolean")) | |
1617 | 1617 | } | |
1618 | - | let | |
1618 | + | let ht = if (if (aV()) | |
1619 | 1619 | then true | |
1620 | 1620 | else (bk == s)) | |
1621 | 1621 | then true | |
1622 | - | else | |
1623 | - | let | |
1622 | + | else hh | |
1623 | + | let gH = [if (if (!(ht)) | |
1624 | 1624 | then true | |
1625 | 1625 | else go(cP)) | |
1626 | 1626 | then true | |
1627 | 1627 | else aN("get operation is blocked by admin"), if ((size(cP.payments) == 0)) | |
1628 | 1628 | then true | |
1629 | 1629 | else aN("no payments are expected")] | |
1630 | - | if (( | |
1630 | + | if ((gH == gH)) | |
1631 | 1631 | then { | |
1632 | - | let | |
1633 | - | let | |
1634 | - | let | |
1635 | - | let | |
1636 | - | if (( | |
1632 | + | let hK = bs() | |
1633 | + | let gX = bl | |
1634 | + | let hL = valueOrErrorMessage(addressFromString(hK[C]), "Wr st addr") | |
1635 | + | let hM = invoke(hL, "unstake", [toBase58String(gX), hQ], nil) | |
1636 | + | if ((hM == hM)) | |
1637 | 1637 | then { | |
1638 | - | let | |
1639 | - | let dB = | |
1640 | - | let fV = | |
1638 | + | let hV = fK(fL, fM, [AttachedPayment(gX, hQ)], cP.caller, cP.originCaller, cP.transactionId) | |
1639 | + | let dB = hV._1 | |
1640 | + | let fV = hV._2 | |
1641 | 1641 | $Tuple2(dB, fV) | |
1642 | 1642 | } | |
1643 | 1643 | else throw("Strict value is not equal to itself.") | |
1644 | 1644 | } | |
1645 | 1645 | else throw("Strict value is not equal to itself.") | |
1646 | 1646 | } | |
1647 | 1647 | ||
1648 | 1648 | ||
1649 | 1649 | ||
1650 | 1650 | @Callable(cP) | |
1651 | - | func putOneTknV2WithBonusREADONLY (hV,hW) = { | |
1652 | - | let hX = fp(hV, hW, "", "", true) | |
1653 | - | let fE = hX._1 | |
1654 | - | let dB = hX._2 | |
1655 | - | let cx = hX._3 | |
1656 | - | let fJ = hX._4 | |
1657 | - | $Tuple2(nil, $Tuple3(fE, cx, fJ)) | |
1658 | - | } | |
1659 | - | ||
1660 | - | ||
1661 | - | ||
1662 | - | @Callable(cP) | |
1663 | - | func putOneTknV2WithoutTakeFeeREADONLY (hV,hW) = { | |
1664 | - | let hY = fp(hV, hW, "", "", false) | |
1651 | + | func putOneTknV2WithBonusREADONLY (hW,hX) = { | |
1652 | + | let hY = fp(hW, hX, "", "", true) | |
1665 | 1653 | let fE = hY._1 | |
1666 | 1654 | let dB = hY._2 | |
1667 | 1655 | let cx = hY._3 | |
1668 | 1656 | let fJ = hY._4 | |
1669 | 1657 | $Tuple2(nil, $Tuple3(fE, cx, fJ)) | |
1670 | 1658 | } | |
1671 | 1659 | ||
1672 | 1660 | ||
1673 | 1661 | ||
1674 | 1662 | @Callable(cP) | |
1675 | - | func activate (hZ,ia) = if ((toString(cP.caller) != toString(aQ))) | |
1676 | - | then throw("denied") | |
1677 | - | else $Tuple2([StringEntry(aj(), hZ), StringEntry(ak(), ia)], "success") | |
1663 | + | func putOneTknV2WithoutTakeFeeREADONLY (hW,hX) = { | |
1664 | + | let hZ = fp(hW, hX, "", "", false) | |
1665 | + | let fE = hZ._1 | |
1666 | + | let dB = hZ._2 | |
1667 | + | let cx = hZ._3 | |
1668 | + | let fJ = hZ._4 | |
1669 | + | $Tuple2(nil, $Tuple3(fE, cx, fJ)) | |
1670 | + | } | |
1678 | 1671 | ||
1679 | 1672 | ||
1680 | 1673 | ||
1681 | 1674 | @Callable(cP) | |
1682 | - | func | |
1683 | - | then | |
1684 | - | else [StringEntry( | |
1675 | + | func activate (ia,ib) = if ((toString(cP.caller) != toString(aQ))) | |
1676 | + | then throw("denied") | |
1677 | + | else $Tuple2([StringEntry(aj(), ia), StringEntry(ak(), ib)], "success") | |
1685 | 1678 | ||
1686 | 1679 | ||
1687 | 1680 | ||
1688 | 1681 | @Callable(cP) | |
1689 | - | func | |
1682 | + | func setS (ic,hN) = if ((toString(cP.caller) != aJ(this, am()))) | |
1690 | 1683 | then gn | |
1691 | - | else [IntegerEntry(ib, hM)] | |
1684 | + | else [StringEntry(ic, hN)] | |
1685 | + | ||
1686 | + | ||
1687 | + | ||
1688 | + | @Callable(cP) | |
1689 | + | func setI (ic,hN) = if ((toString(cP.caller) != aJ(this, am()))) | |
1690 | + | then gn | |
1691 | + | else [IntegerEntry(ic, hN)] | |
1692 | 1692 | ||
1693 | 1693 | ||
1694 | 1694 | ||
1695 | 1695 | @Callable(cP) | |
1696 | 1696 | func getPoolConfigWrapperREADONLY () = $Tuple2(nil, aY()) | |
1697 | 1697 | ||
1698 | 1698 | ||
1699 | 1699 | ||
1700 | 1700 | @Callable(cP) | |
1701 | 1701 | func getAccBalanceWrapperREADONLY (bO) = $Tuple2(nil, bN(bO)) | |
1702 | 1702 | ||
1703 | 1703 | ||
1704 | 1704 | ||
1705 | 1705 | @Callable(cP) | |
1706 | 1706 | func calcPricesWrapperREADONLY (ch,ci,cm) = { | |
1707 | - | let | |
1708 | - | $Tuple2(nil, [toString( | |
1707 | + | let id = cl(ch, ci, cm) | |
1708 | + | $Tuple2(nil, [toString(id[0]), toString(id[1]), toString(id[2])]) | |
1709 | 1709 | } | |
1710 | 1710 | ||
1711 | 1711 | ||
1712 | 1712 | ||
1713 | 1713 | @Callable(cP) | |
1714 | - | func fromX18WrapperREADONLY (M, | |
1714 | + | func fromX18WrapperREADONLY (M,ie) = $Tuple2(nil, L(parseBigIntValue(M), ie)) | |
1715 | 1715 | ||
1716 | 1716 | ||
1717 | 1717 | ||
1718 | 1718 | @Callable(cP) | |
1719 | 1719 | func toX18WrapperREADONLY (I,J) = $Tuple2(nil, toString(H(I, J))) | |
1720 | 1720 | ||
1721 | 1721 | ||
1722 | 1722 | ||
1723 | 1723 | @Callable(cP) | |
1724 | 1724 | func calcPriceBigIntWrapperREADONLY (bQ,bR) = $Tuple2(nil, toString(bP(parseBigIntValue(bQ), parseBigIntValue(bR)))) | |
1725 | 1725 | ||
1726 | 1726 | ||
1727 | 1727 | ||
1728 | 1728 | @Callable(cP) | |
1729 | - | func estimatePutOperationWrapperREADONLY (de,bW,dD,dE,dF,dG, | |
1729 | + | func estimatePutOperationWrapperREADONLY (de,bW,dD,dE,dF,dG,if,dH,dI) = $Tuple2(nil, dC(de, bW, dD, dE, dF, dG, if, dH, dI, true, false, 0, "")) | |
1730 | 1730 | ||
1731 | 1731 | ||
1732 | 1732 | ||
1733 | 1733 | @Callable(cP) | |
1734 | - | func estimateGetOperationWrapperREADONLY (de, | |
1735 | - | let dX = dd(de, | |
1734 | + | func estimateGetOperationWrapperREADONLY (de,ig,dg,if) = { | |
1735 | + | let dX = dd(de, ig, dg, addressFromStringValue(if)) | |
1736 | 1736 | $Tuple2(nil, $Tuple10(dX._1, dX._2, dX._3, dX._4, dX._5, dX._6, dX._7, toString(dX._8), dX._9, dX._10)) | |
1737 | 1737 | } | |
1738 | 1738 | ||
1739 | 1739 | ||
1740 | - | @Verifier( | |
1741 | - | func | |
1742 | - | let | |
1740 | + | @Verifier(ih) | |
1741 | + | func ii () = { | |
1742 | + | let ij = { | |
1743 | 1743 | let gl = gk() | |
1744 | 1744 | if ($isInstanceOf(gl, "ByteVector")) | |
1745 | 1745 | then { | |
1746 | 1746 | let gp = gl | |
1747 | 1747 | gp | |
1748 | 1748 | } | |
1749 | 1749 | else if ($isInstanceOf(gl, "Unit")) | |
1750 | - | then | |
1750 | + | then ih.senderPublicKey | |
1751 | 1751 | else throw("Match error") | |
1752 | 1752 | } | |
1753 | - | let gl = | |
1753 | + | let gl = ih | |
1754 | 1754 | if ($isInstanceOf(gl, "Order")) | |
1755 | 1755 | then { | |
1756 | 1756 | let eZ = gl | |
1757 | - | let | |
1758 | - | let | |
1759 | - | let aF = | |
1760 | - | let aG = | |
1757 | + | let ik = aW() | |
1758 | + | let il = eY(eZ) | |
1759 | + | let aF = il._1 | |
1760 | + | let aG = il._2 | |
1761 | 1761 | let aH = sigVerify(eZ.bodyBytes, eZ.proofs[0], eZ.senderPublicKey) | |
1762 | - | let aI = sigVerify(eZ.bodyBytes, eZ.proofs[1], | |
1762 | + | let aI = sigVerify(eZ.bodyBytes, eZ.proofs[1], ik) | |
1763 | 1763 | if (if (if (aF) | |
1764 | 1764 | then aH | |
1765 | 1765 | else false) | |
1766 | 1766 | then aI | |
1767 | 1767 | else false) | |
1768 | 1768 | then true | |
1769 | 1769 | else aE(aF, aG, aH, aI) | |
1770 | 1770 | } | |
1771 | 1771 | else if ($isInstanceOf(gl, "SetScriptTransaction")) | |
1772 | 1772 | then { | |
1773 | 1773 | let cC = gl | |
1774 | - | if (sigVerify( | |
1774 | + | if (sigVerify(ih.bodyBytes, ih.proofs[0], ij)) | |
1775 | 1775 | then true | |
1776 | 1776 | else { | |
1777 | - | let | |
1778 | - | let | |
1779 | - | let | |
1780 | - | if (( | |
1781 | - | then ( | |
1777 | + | let im = blake2b256(value(cC.script)) | |
1778 | + | let in = fromBase64String(value(getString(aQ, aC()))) | |
1779 | + | let io = scriptHash(this) | |
1780 | + | if ((in == im)) | |
1781 | + | then (io != im) | |
1782 | 1782 | else false | |
1783 | 1783 | } | |
1784 | 1784 | } | |
1785 | - | else sigVerify( | |
1785 | + | else sigVerify(ih.bodyBytes, ih.proofs[0], ij) | |
1786 | 1786 | } | |
1787 | 1787 |
github/deemru/w8io/026f985 338.40 ms ◑