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