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