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