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