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