tx · BWctxADPfWjZAJCkLM6nbjfLo6asgTVjYqyTyyrspLAi 3N8sfbgCJCsLbcWYRiVKm6ivccPLMsQmVDx: -0.03000000 Waves 2022.11.07 10:38 [2306431] smart account 3N8sfbgCJCsLbcWYRiVKm6ivccPLMsQmVDx > SELF 0.00000000 Waves
{ "type": 13, "id": "BWctxADPfWjZAJCkLM6nbjfLo6asgTVjYqyTyyrspLAi", "fee": 3000000, "feeAssetId": null, "timestamp": 1667806657598, "version": 1, "sender": "3N8sfbgCJCsLbcWYRiVKm6ivccPLMsQmVDx", "senderPublicKey": "G4Ha5wvhDpHGy5koVJsmfWC2zwF89jXDUmWBb28mRyrr", "proofs": [ "5aYikFZHouTNYHXaSawDmF8Brqgib631Wwb9yDNYpUtEDkELKw31X9KUdjDLP5Nxbsup4ooP7WoVLzHm7cTRvjBS" ], "script": "base64:BgL1JggCEgMKAQgSABIECgIBBBIDCgEBEgQKAgEEEgQKAggBEgQKAggBEgQKAggBEgUKAwEIARIAEgQKAgEBEgMKAQESBQoDAQEBEgQKAggIEgASAwoBCBIFCgMBAQESBAoCAQESBAoCCAESBAoCCAgSCwoJCAEBAgECCAQEEgYKBAgIAQgSABIDCgEBEgMKAQESBAoCCAEiCmxQZGVjaW1hbHMiBnNjYWxlOCIMc2NhbGU4QmlnSW50IgdzY2FsZTE4Igp6ZXJvQmlnSW50IgRiaWcwIgRiaWcxIgRiaWcyIgt3YXZlc1N0cmluZyIDU0VQIgpQb29sQWN0aXZlIg9Qb29sUHV0RGlzYWJsZWQiE1Bvb2xNYXRjaGVyRGlzYWJsZWQiDFBvb2xTaHV0ZG93biIOaWR4UG9vbEFkZHJlc3MiDWlkeFBvb2xTdGF0dXMiEGlkeFBvb2xMUEFzc2V0SWQiDWlkeEFtdEFzc2V0SWQiD2lkeFByaWNlQXNzZXRJZCIOaWR4QW10QXNzZXREY20iEGlkeFByaWNlQXNzZXREY20iDmlkeElBbXRBc3NldElkIhBpZHhJUHJpY2VBc3NldElkIg1pZ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QABAgUCZHECBU9yZGVyBAJjUgUCZHEEAmZHCQECYUcABAJhdQkBAmNRAQUCY1IEAmF2CQD0AwMIBQJjUglib2R5Qnl0ZXMJAJEDAggFAmNSBnByb29mcwAACAUCY1IPc2VuZGVyUHVibGljS2V5BAJhdwkA9AMDCAUCY1IJYm9keUJ5dGVzCQCRAwIIBQJjUgZwcm9vZnMAAQUCZkcDAwMFAmF1BQJhdgcFAmF3BwYJAQJhdAMFAmF1BQJhdgUCYXcDCQABAgUCZHECFFNldFNjcmlwdFRyYW5zYWN0aW9uBAJlcgUCZHEEAmZICQD2AwEJAQV2YWx1ZQEIBQJlcgZzY3JpcHQEAmZJCQDbBAEJAQV2YWx1ZQEJAJ0IAgUCYUQJAQJhcgAEAmZKCQDxBwEFBHRoaXMDAwkAAAIFAmZJBQJmSAkBAiE9AgUCZkoFAmZIBwYJAPQDAwgFAmZECWJvZHlCeXRlcwkAkQMCCAUCZkQGcHJvb2ZzAAAFAmZGCQD0AwMIBQJmRAlib2R5Qnl0ZXMJAJEDAggFAmZEBnByb29mcwAABQJmRq+655Q=", "chainId": 84, "height": 2306431, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: EcUVyUsMbjbEoiGazRHiRGbQg3qDsrnV9E2qW5kJxpna Next: Gshs8AobPhsBQbTWamkwYdgXX83qQyigBbB5Pqm8xobe Diff:
Old | New | Differences | |
---|---|---|---|
107 | 107 | ||
108 | 108 | let ac = "%s__fee" | |
109 | 109 | ||
110 | - | let ad = fraction( | |
110 | + | let ad = fraction(10, b, 10000) | |
111 | 111 | ||
112 | 112 | let ae = valueOrElse(getInteger(this, ac), ad) | |
113 | 113 | ||
981 | 981 | ||
982 | 982 | ||
983 | 983 | @Callable(df) | |
984 | - | func activate (fn,fo) = if ((toString(df.caller) != toString(aD))) | |
984 | + | func unstakeAndGetNoLess (fe,fn,fk) = { | |
985 | + | let eY = if (aF()) | |
986 | + | then true | |
987 | + | else (aS == n) | |
988 | + | let ea = [if (!(eY)) | |
989 | + | then true | |
990 | + | else throw("get operation is blocked by admin"), if ((size(df.payments) == 0)) | |
991 | + | then true | |
992 | + | else throw("no payments are expected")] | |
993 | + | if ((ea == ea)) | |
994 | + | then { | |
995 | + | let ff = invoke(aZ, "unstake", [toBase58String(aT), fe], nil) | |
996 | + | if ((ff == ff)) | |
997 | + | then { | |
998 | + | let cA = bN(toBase58String(df.transactionId), toBase58String(aT), fe, df.caller) | |
999 | + | let cg = cA._1 | |
1000 | + | let ch = cA._2 | |
1001 | + | let ci = cA._10 | |
1002 | + | let fo = [if ((cg >= fn)) | |
1003 | + | then true | |
1004 | + | else throw(makeString(["amount asset amount to receive is less than ", toString(fn)], "")), if ((ch >= fk)) | |
1005 | + | then true | |
1006 | + | else throw(makeString(["price asset amount to receive is less than ", toString(fk)], ""))] | |
1007 | + | if ((fo == fo)) | |
1008 | + | then { | |
1009 | + | let fi = invoke(aD, "burn", [fe], [AttachedPayment(aT, fe)]) | |
1010 | + | if ((fi == fi)) | |
1011 | + | then ci | |
1012 | + | else throw("Strict value is not equal to itself.") | |
1013 | + | } | |
1014 | + | else throw("Strict value is not equal to itself.") | |
1015 | + | } | |
1016 | + | else throw("Strict value is not equal to itself.") | |
1017 | + | } | |
1018 | + | else throw("Strict value is not equal to itself.") | |
1019 | + | } | |
1020 | + | ||
1021 | + | ||
1022 | + | ||
1023 | + | @Callable(df) | |
1024 | + | func activate (fp,fq) = if ((toString(df.caller) != toString(aD))) | |
985 | 1025 | then throw("permissions denied") | |
986 | - | else $Tuple2([StringEntry(aa(), | |
1026 | + | else $Tuple2([StringEntry(aa(), fp), StringEntry(ab(), fq)], "success") | |
987 | 1027 | ||
988 | 1028 | ||
989 | 1029 | ||
1043 | 1083 | let cu = bE[w] | |
1044 | 1084 | let bF = parseIntValue(bE[t]) | |
1045 | 1085 | let bG = parseIntValue(bE[u]) | |
1046 | - | let | |
1086 | + | let fr = valueOrErrorMessage(assetInfo(bR), (("Asset " + toBase58String(bR)) + " doesn't exist")).quantity | |
1047 | 1087 | let cU = bq(cS) | |
1048 | 1088 | let cV = bq(cT) | |
1049 | - | let | |
1089 | + | let fs = if ((fr == 0)) | |
1050 | 1090 | then [e, e, e] | |
1051 | - | else bC(cU, cV, | |
1091 | + | else bC(cU, cV, fr) | |
1052 | 1092 | let cb = 0 | |
1053 | - | let | |
1054 | - | let | |
1055 | - | let | |
1056 | - | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d", toString(cU), toString(cV), toString( | |
1093 | + | let ft = G(fs[1], b) | |
1094 | + | let fu = G(fs[2], b) | |
1095 | + | let fv = value(getInteger(aD, ap(toString(this)))) | |
1096 | + | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d", toString(cU), toString(cV), toString(fr), toString(cb), toString(ft), toString(fu), toString(fv)], j)) | |
1057 | 1097 | } | |
1058 | 1098 | ||
1059 | 1099 | ||
1069 | 1109 | let bF = parseIntValue(bE[t]) | |
1070 | 1110 | let bG = parseIntValue(bE[u]) | |
1071 | 1111 | let bU = bE[p] | |
1072 | - | let | |
1112 | + | let fr = valueOrErrorMessage(assetInfo(bR), (("Asset " + toBase58String(bR)) + " doesn't exist")).quantity | |
1073 | 1113 | let cU = bq(cr) | |
1074 | 1114 | let cV = bq(cs) | |
1075 | 1115 | let bA = D(cU, bF) | |
1076 | 1116 | let bB = D(cV, bG) | |
1077 | - | let ca = if (( | |
1117 | + | let ca = if ((fr == 0)) | |
1078 | 1118 | then e | |
1079 | 1119 | else bs(bB, bA) | |
1080 | 1120 | let cx = D(cl, bF) | |
1082 | 1122 | let cn = G(cy, bG) | |
1083 | 1123 | let dl = cj("", 500000, cl, bS, cn, bT, "", true, false) | |
1084 | 1124 | let cI = dl._1 | |
1085 | - | let | |
1125 | + | let fw = dl._3 | |
1086 | 1126 | let bW = dl._4 | |
1087 | 1127 | let bY = dl._5 | |
1088 | 1128 | let bV = dl._6 | |
1102 | 1142 | let bF = parseIntValue(bE[t]) | |
1103 | 1143 | let bG = parseIntValue(bE[u]) | |
1104 | 1144 | let bU = bE[p] | |
1105 | - | let | |
1106 | - | let | |
1107 | - | let | |
1108 | - | let | |
1109 | - | let | |
1110 | - | let ca = if (( | |
1145 | + | let fr = valueOrErrorMessage(assetInfo(bR), (("Asset " + toBase58String(bR)) + " doesn't exist")).quantity | |
1146 | + | let fx = bq(cr) | |
1147 | + | let fy = bq(cs) | |
1148 | + | let fz = D(fx, bF) | |
1149 | + | let fA = D(fy, bG) | |
1150 | + | let ca = if ((fr == 0)) | |
1111 | 1151 | then e | |
1112 | - | else bs( | |
1152 | + | else bs(fA, fz) | |
1113 | 1153 | let cy = D(cn, bG) | |
1114 | 1154 | let cx = fraction(cy, d, ca) | |
1115 | 1155 | let cl = G(cx, bF) | |
1116 | 1156 | let dl = cj("", 500000, cl, bS, cn, bT, "", true, false) | |
1117 | 1157 | let cI = dl._1 | |
1118 | - | let | |
1158 | + | let fw = dl._3 | |
1119 | 1159 | let bW = dl._4 | |
1120 | 1160 | let bY = dl._5 | |
1121 | 1161 | let bV = dl._6 | |
1125 | 1165 | ||
1126 | 1166 | ||
1127 | 1167 | @Callable(df) | |
1128 | - | func evaluateGetREADONLY ( | |
1129 | - | let cA = bN("", | |
1168 | + | func evaluateGetREADONLY (fB,fC) = { | |
1169 | + | let cA = bN("", fB, fC, this) | |
1130 | 1170 | let cg = cA._1 | |
1131 | 1171 | let ch = cA._2 | |
1132 | 1172 | let bW = cA._5 | |
1138 | 1178 | } | |
1139 | 1179 | ||
1140 | 1180 | ||
1141 | - | @Verifier( | |
1142 | - | func | |
1143 | - | let | |
1181 | + | @Verifier(fD) | |
1182 | + | func fE () = { | |
1183 | + | let fF = { | |
1144 | 1184 | let dq = eq() | |
1145 | 1185 | if ($isInstanceOf(dq, "ByteVector")) | |
1146 | 1186 | then { | |
1148 | 1188 | ev | |
1149 | 1189 | } | |
1150 | 1190 | else if ($isInstanceOf(dq, "Unit")) | |
1151 | - | then | |
1191 | + | then fD.senderPublicKey | |
1152 | 1192 | else throw("Match error") | |
1153 | 1193 | } | |
1154 | - | let dq = | |
1194 | + | let dq = fD | |
1155 | 1195 | if ($isInstanceOf(dq, "Order")) | |
1156 | 1196 | then { | |
1157 | 1197 | let cR = dq | |
1158 | - | let | |
1198 | + | let fG = aG() | |
1159 | 1199 | let au = cQ(cR) | |
1160 | 1200 | let av = sigVerify(cR.bodyBytes, cR.proofs[0], cR.senderPublicKey) | |
1161 | - | let aw = sigVerify(cR.bodyBytes, cR.proofs[1], | |
1201 | + | let aw = sigVerify(cR.bodyBytes, cR.proofs[1], fG) | |
1162 | 1202 | if (if (if (au) | |
1163 | 1203 | then av | |
1164 | 1204 | else false) | |
1170 | 1210 | else if ($isInstanceOf(dq, "SetScriptTransaction")) | |
1171 | 1211 | then { | |
1172 | 1212 | let er = dq | |
1173 | - | let | |
1174 | - | let | |
1175 | - | let | |
1176 | - | if (if (( | |
1177 | - | then ( | |
1213 | + | let fH = blake2b256(value(er.script)) | |
1214 | + | let fI = fromBase64String(value(getString(aD, ar()))) | |
1215 | + | let fJ = scriptHash(this) | |
1216 | + | if (if ((fI == fH)) | |
1217 | + | then (fJ != fH) | |
1178 | 1218 | else false) | |
1179 | 1219 | then true | |
1180 | - | else sigVerify( | |
1220 | + | else sigVerify(fD.bodyBytes, fD.proofs[0], fF) | |
1181 | 1221 | } | |
1182 | - | else sigVerify( | |
1222 | + | else sigVerify(fD.bodyBytes, fD.proofs[0], fF) | |
1183 | 1223 | } | |
1184 | 1224 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = 8 | |
5 | 5 | ||
6 | 6 | let b = 100000000 | |
7 | 7 | ||
8 | 8 | let c = toBigInt(100000000) | |
9 | 9 | ||
10 | 10 | let d = toBigInt(1000000000000000000) | |
11 | 11 | ||
12 | 12 | let e = toBigInt(0) | |
13 | 13 | ||
14 | 14 | let f = toBigInt(0) | |
15 | 15 | ||
16 | 16 | let g = toBigInt(1) | |
17 | 17 | ||
18 | 18 | let h = toBigInt(2) | |
19 | 19 | ||
20 | 20 | let i = "WAVES" | |
21 | 21 | ||
22 | 22 | let j = "__" | |
23 | 23 | ||
24 | 24 | let k = 1 | |
25 | 25 | ||
26 | 26 | let l = 2 | |
27 | 27 | ||
28 | 28 | let m = 3 | |
29 | 29 | ||
30 | 30 | let n = 4 | |
31 | 31 | ||
32 | 32 | let o = 1 | |
33 | 33 | ||
34 | 34 | let p = 2 | |
35 | 35 | ||
36 | 36 | let q = 3 | |
37 | 37 | ||
38 | 38 | let r = 4 | |
39 | 39 | ||
40 | 40 | let s = 5 | |
41 | 41 | ||
42 | 42 | let t = 6 | |
43 | 43 | ||
44 | 44 | let u = 7 | |
45 | 45 | ||
46 | 46 | let v = 8 | |
47 | 47 | ||
48 | 48 | let w = 9 | |
49 | 49 | ||
50 | 50 | let x = 10 | |
51 | 51 | ||
52 | 52 | let y = 1 | |
53 | 53 | ||
54 | 54 | let z = 2 | |
55 | 55 | ||
56 | 56 | let A = 3 | |
57 | 57 | ||
58 | 58 | let B = 1 | |
59 | 59 | ||
60 | 60 | let C = 7 | |
61 | 61 | ||
62 | 62 | func D (E,F) = fraction(toBigInt(E), d, toBigInt(F)) | |
63 | 63 | ||
64 | 64 | ||
65 | 65 | func G (H,I) = toInt(fraction(H, toBigInt(I), d)) | |
66 | 66 | ||
67 | 67 | ||
68 | 68 | func J (K,L,M) = fraction(K, L, M) | |
69 | 69 | ||
70 | 70 | ||
71 | 71 | func N (H) = if ((0 > H)) | |
72 | 72 | then -(H) | |
73 | 73 | else H | |
74 | 74 | ||
75 | 75 | ||
76 | 76 | func O (H) = if ((e > H)) | |
77 | 77 | then -(H) | |
78 | 78 | else H | |
79 | 79 | ||
80 | 80 | ||
81 | 81 | func P () = "%s__factoryContract" | |
82 | 82 | ||
83 | 83 | ||
84 | 84 | func Q () = "%s__managerPublicKey" | |
85 | 85 | ||
86 | 86 | ||
87 | 87 | func R () = "%s__pendingManagerPublicKey" | |
88 | 88 | ||
89 | 89 | ||
90 | 90 | func S () = "%s%s__price__last" | |
91 | 91 | ||
92 | 92 | ||
93 | 93 | func T (U,V) = makeString(["%s%s%d%d__price__history", toString(U), toString(V)], j) | |
94 | 94 | ||
95 | 95 | ||
96 | 96 | func W (X,Y) = ((("%s%s%s__P__" + X) + "__") + Y) | |
97 | 97 | ||
98 | 98 | ||
99 | 99 | func Z (X,Y) = ((("%s%s%s__G__" + X) + "__") + Y) | |
100 | 100 | ||
101 | 101 | ||
102 | 102 | func aa () = "%s__amountAsset" | |
103 | 103 | ||
104 | 104 | ||
105 | 105 | func ab () = "%s__priceAsset" | |
106 | 106 | ||
107 | 107 | ||
108 | 108 | let ac = "%s__fee" | |
109 | 109 | ||
110 | - | let ad = fraction( | |
110 | + | let ad = fraction(10, b, 10000) | |
111 | 111 | ||
112 | 112 | let ae = valueOrElse(getInteger(this, ac), ad) | |
113 | 113 | ||
114 | 114 | func af () = "%s__factoryConfig" | |
115 | 115 | ||
116 | 116 | ||
117 | 117 | func ag () = "%s%s__matcher__publicKey" | |
118 | 118 | ||
119 | 119 | ||
120 | 120 | func ah (ai) = (("%s%s%s__" + ai) + "__mappings__poolContract2LpAsset") | |
121 | 121 | ||
122 | 122 | ||
123 | 123 | func aj (ak,al) = (((("%d%d%s__" + ak) + "__") + al) + "__config") | |
124 | 124 | ||
125 | 125 | ||
126 | 126 | func am (an) = ("%s%s%s__mappings__baseAsset2internalId__" + an) | |
127 | 127 | ||
128 | 128 | ||
129 | 129 | func ao () = "%s__shutdown" | |
130 | 130 | ||
131 | 131 | ||
132 | 132 | func ap (aq) = ("%s%s__poolWeight__" + aq) | |
133 | 133 | ||
134 | 134 | ||
135 | 135 | func ar () = "%s__allowedLpScriptHash" | |
136 | 136 | ||
137 | 137 | ||
138 | 138 | let as = "%s__feeCollectorAddress" | |
139 | 139 | ||
140 | 140 | func at (au,av,aw) = throw(((((("order validation failed: orderValid=" + toString(au)) + " senderValid=") + toString(av)) + " matcherValid=") + toString(aw))) | |
141 | 141 | ||
142 | 142 | ||
143 | 143 | func ax (ay,az) = valueOrErrorMessage(getString(ay, az), makeString(["mandatory ", toString(ay), ".", az, " is not defined"], "")) | |
144 | 144 | ||
145 | 145 | ||
146 | 146 | func aA (ay,az) = valueOrErrorMessage(getInteger(ay, az), makeString(["mandatory ", toString(ay), ".", az, " is not defined"], "")) | |
147 | 147 | ||
148 | 148 | ||
149 | 149 | func aB (aC) = throw(makeString(["lp.ride:", aC], " ")) | |
150 | 150 | ||
151 | 151 | ||
152 | 152 | let aD = addressFromStringValue(ax(this, P())) | |
153 | 153 | ||
154 | 154 | let aE = addressFromStringValue(ax(aD, as)) | |
155 | 155 | ||
156 | 156 | func aF () = valueOrElse(getBoolean(aD, ao()), false) | |
157 | 157 | ||
158 | 158 | ||
159 | 159 | func aG () = fromBase58String(ax(aD, ag())) | |
160 | 160 | ||
161 | 161 | ||
162 | 162 | func aH () = { | |
163 | 163 | let aI = ax(this, aa()) | |
164 | 164 | let aJ = ax(this, ab()) | |
165 | 165 | let al = aA(aD, am(aJ)) | |
166 | 166 | let ak = aA(aD, am(aI)) | |
167 | 167 | split(ax(aD, aj(toString(ak), toString(al))), j) | |
168 | 168 | } | |
169 | 169 | ||
170 | 170 | ||
171 | 171 | func aK (aL) = if ((aL == i)) | |
172 | 172 | then unit | |
173 | 173 | else fromBase58String(aL) | |
174 | 174 | ||
175 | 175 | ||
176 | 176 | func aM (aL) = if ((aL == unit)) | |
177 | 177 | then i | |
178 | 178 | else toBase58String(value(aL)) | |
179 | 179 | ||
180 | 180 | ||
181 | 181 | func aN (aO) = $Tuple7(addressFromStringValue(aO[o]), parseIntValue(aO[p]), fromBase58String(aO[q]), aK(aO[r]), aK(aO[s]), parseIntValue(aO[t]), parseIntValue(aO[u])) | |
182 | 182 | ||
183 | 183 | ||
184 | 184 | let aP = aN(aH()) | |
185 | 185 | ||
186 | 186 | let aQ = aP | |
187 | 187 | ||
188 | 188 | let aR = aQ._1 | |
189 | 189 | ||
190 | 190 | let aS = aQ._2 | |
191 | 191 | ||
192 | 192 | let aT = aQ._3 | |
193 | 193 | ||
194 | 194 | let aU = aQ._4 | |
195 | 195 | ||
196 | 196 | let aV = aQ._5 | |
197 | 197 | ||
198 | 198 | let aW = aQ._6 | |
199 | 199 | ||
200 | 200 | let aX = aQ._7 | |
201 | 201 | ||
202 | 202 | func aY () = split(ax(aD, af()), j) | |
203 | 203 | ||
204 | 204 | ||
205 | 205 | let aZ = valueOrErrorMessage(addressFromString(aY()[B]), "incorrect staking address") | |
206 | 206 | ||
207 | 207 | let ba = valueOrErrorMessage(addressFromString(aY()[C]), "incorrect staking address") | |
208 | 208 | ||
209 | 209 | func bb (bc,bd,be,bf,bg,bh,bi,bj,bk,bl) = makeString(["%d%d%d%d%d%d%d%d%d%d", toString(bc), toString(bd), toString(be), toString(bf), toString(bg), toString(bh), toString(bi), toString(bj), toString(bk), toString(bl)], j) | |
210 | 210 | ||
211 | 211 | ||
212 | 212 | func bm (bn,bo,bp,bf,bi,bj) = makeString(["%d%d%d%d%d%d", toString(bn), toString(bo), toString(bp), toString(bf), toString(bi), toString(bj)], j) | |
213 | 213 | ||
214 | 214 | ||
215 | 215 | func bq (br) = if ((br == "WAVES")) | |
216 | 216 | then wavesBalance(this).available | |
217 | 217 | else assetBalance(this, fromBase58String(br)) | |
218 | 218 | ||
219 | 219 | ||
220 | 220 | func bs (bt,bu) = fraction(bt, d, bu) | |
221 | 221 | ||
222 | 222 | ||
223 | 223 | func bv (bw,bx,by,bz) = { | |
224 | 224 | let bA = D(by, bw) | |
225 | 225 | let bB = D(bz, bx) | |
226 | 226 | bs(bB, bA) | |
227 | 227 | } | |
228 | 228 | ||
229 | 229 | ||
230 | 230 | func bC (by,bz,bD) = { | |
231 | 231 | let bE = aH() | |
232 | 232 | let bF = parseIntValue(bE[t]) | |
233 | 233 | let bG = parseIntValue(bE[u]) | |
234 | 234 | let bH = bv(bF, bG, by, bz) | |
235 | 235 | let bu = D(by, bF) | |
236 | 236 | let bt = D(bz, bG) | |
237 | 237 | let bI = D(bD, b) | |
238 | 238 | let bJ = bs(bu, bI) | |
239 | 239 | let bK = bs(bt, bI) | |
240 | 240 | [bH, bJ, bK] | |
241 | 241 | } | |
242 | 242 | ||
243 | 243 | ||
244 | 244 | func bL (by,bz,bD) = { | |
245 | 245 | let bM = bC(by, bz, bD) | |
246 | 246 | [G(bM[0], b), G(bM[1], b), G(bM[2], b)] | |
247 | 247 | } | |
248 | 248 | ||
249 | 249 | ||
250 | 250 | func bN (bO,bP,bQ,X) = { | |
251 | 251 | let bE = aH() | |
252 | 252 | let bR = bE[q] | |
253 | 253 | let bS = bE[r] | |
254 | 254 | let bT = bE[s] | |
255 | 255 | let bw = parseIntValue(bE[t]) | |
256 | 256 | let bx = parseIntValue(bE[u]) | |
257 | 257 | let bU = bE[p] | |
258 | 258 | let bV = valueOrErrorMessage(assetInfo(fromBase58String(bR)), (("Asset " + bR) + " doesn't exist")).quantity | |
259 | 259 | if ((bR != bP)) | |
260 | 260 | then throw("Invalid asset passed.") | |
261 | 261 | else { | |
262 | 262 | let bW = bq(bS) | |
263 | 263 | let bX = D(bW, bw) | |
264 | 264 | let bY = bq(bT) | |
265 | 265 | let bZ = D(bY, bx) | |
266 | 266 | let ca = bs(bZ, bX) | |
267 | 267 | let cb = G(ca, b) | |
268 | 268 | let cc = D(bQ, b) | |
269 | 269 | let cd = D(bV, b) | |
270 | 270 | let ce = fraction(bX, cc, cd) | |
271 | 271 | let cf = fraction(bZ, cc, cd) | |
272 | 272 | let cg = G(ce, bw) | |
273 | 273 | let ch = G(cf, bx) | |
274 | 274 | let ci = if ((bO == "")) | |
275 | 275 | then nil | |
276 | 276 | else [ScriptTransfer(X, cg, if ((bS == "WAVES")) | |
277 | 277 | then unit | |
278 | 278 | else fromBase58String(bS)), ScriptTransfer(X, ch, if ((bT == "WAVES")) | |
279 | 279 | then unit | |
280 | 280 | else fromBase58String(bT)), StringEntry(Z(toString(X), bO), bm(cg, ch, bQ, cb, height, lastBlock.timestamp)), IntegerEntry(S(), cb), IntegerEntry(T(height, lastBlock.timestamp), cb)] | |
281 | 281 | $Tuple10(cg, ch, bS, bT, bW, bY, bV, ca, bU, ci) | |
282 | 282 | } | |
283 | 283 | } | |
284 | 284 | ||
285 | 285 | ||
286 | 286 | func cj (bO,ck,cl,cm,cn,co,X,cp,cq) = { | |
287 | 287 | let bE = aH() | |
288 | 288 | let bR = fromBase58String(bE[q]) | |
289 | 289 | let cr = bE[r] | |
290 | 290 | let cs = bE[s] | |
291 | 291 | let ct = bE[v] | |
292 | 292 | let cu = bE[w] | |
293 | 293 | let bF = parseIntValue(bE[t]) | |
294 | 294 | let bG = parseIntValue(bE[u]) | |
295 | 295 | let bU = bE[p] | |
296 | 296 | let bV = valueOrErrorMessage(assetInfo(bR), (("Asset " + toBase58String(bR)) + " doesn't exist")).quantity | |
297 | 297 | let cv = toBase58String(valueOrElse(cm, fromBase58String("WAVES"))) | |
298 | 298 | let cw = toBase58String(valueOrElse(co, fromBase58String("WAVES"))) | |
299 | 299 | if (if ((cr != cv)) | |
300 | 300 | then true | |
301 | 301 | else (cs != cw)) | |
302 | 302 | then throw("Invalid amt or price asset passed.") | |
303 | 303 | else { | |
304 | 304 | let bW = if (cp) | |
305 | 305 | then bq(cr) | |
306 | 306 | else (bq(cr) - cl) | |
307 | 307 | let bY = if (cp) | |
308 | 308 | then bq(cs) | |
309 | 309 | else (bq(cs) - cn) | |
310 | 310 | let cx = D(cl, bF) | |
311 | 311 | let cy = D(cn, bG) | |
312 | 312 | let cz = bs(cy, cx) | |
313 | 313 | let bX = D(bW, bF) | |
314 | 314 | let bZ = D(bY, bG) | |
315 | 315 | let cA = if ((bV == 0)) | |
316 | 316 | then { | |
317 | 317 | let ca = e | |
318 | 318 | let cB = e | |
319 | 319 | let bI = pow((cx * cy), 0, toBigInt(5), 1, 0, DOWN) | |
320 | 320 | $Tuple5(G(bI, b), G(cx, bF), G(cy, bG), bs((bZ + cy), (bX + cx)), cB) | |
321 | 321 | } | |
322 | 322 | else { | |
323 | 323 | let ca = bs(bZ, bX) | |
324 | 324 | let cB = fraction(O((ca - cz)), d, ca) | |
325 | 325 | let cC = D(ck, b) | |
326 | 326 | if (if ((ca != e)) | |
327 | 327 | then (cB > cC) | |
328 | 328 | else false) | |
329 | 329 | then throw(((("Price slippage " + toString(cB)) + " exceeded the passed limit of ") + toString(cC))) | |
330 | 330 | else { | |
331 | 331 | let cd = D(bV, b) | |
332 | 332 | let cD = fraction(cx, ca, d) | |
333 | 333 | let cE = fraction(cy, d, ca) | |
334 | 334 | let cF = if ((cD > cy)) | |
335 | 335 | then $Tuple2(cE, cy) | |
336 | 336 | else $Tuple2(cx, cD) | |
337 | 337 | let cG = cF._1 | |
338 | 338 | let cH = cF._2 | |
339 | 339 | let bI = fraction(cd, cH, bZ) | |
340 | 340 | $Tuple5(G(bI, b), G(cG, bF), G(cH, bG), ca, cB) | |
341 | 341 | } | |
342 | 342 | } | |
343 | 343 | let cI = cA._1 | |
344 | 344 | let cJ = cA._2 | |
345 | 345 | let cK = cA._3 | |
346 | 346 | let cb = G(cA._4, b) | |
347 | 347 | let cL = G(cA._5, b) | |
348 | 348 | if ((0 >= cI)) | |
349 | 349 | then throw("Invalid calculations. LP calculated is less than zero.") | |
350 | 350 | else { | |
351 | 351 | let cM = if (!(cq)) | |
352 | 352 | then 0 | |
353 | 353 | else cI | |
354 | 354 | let cN = (cl - cJ) | |
355 | 355 | let cO = (cn - cK) | |
356 | 356 | let cP = [IntegerEntry(S(), cb), IntegerEntry(T(height, lastBlock.timestamp), cb), StringEntry(W(X, bO), bb(cJ, cK, cM, cb, ck, cL, height, lastBlock.timestamp, cN, cO))] | |
357 | 357 | $Tuple13(cI, cM, cb, bW, bY, bV, bR, bU, cP, cN, cO, cm, co) | |
358 | 358 | } | |
359 | 359 | } | |
360 | 360 | } | |
361 | 361 | ||
362 | 362 | ||
363 | 363 | func cQ (cR) = { | |
364 | 364 | let bE = aH() | |
365 | 365 | let cS = bE[r] | |
366 | 366 | let cT = bE[s] | |
367 | 367 | let bU = parseIntValue(bE[p]) | |
368 | 368 | let bF = parseIntValue(bE[t]) | |
369 | 369 | let bG = parseIntValue(bE[u]) | |
370 | 370 | let cU = bq(cS) | |
371 | 371 | let cV = bq(cT) | |
372 | 372 | let ca = if ((cR.orderType == Buy)) | |
373 | 373 | then bv(bF, bG, (cU + cR.amount), cV) | |
374 | 374 | else bv(bF, bG, (cU - cR.amount), cV) | |
375 | 375 | let cb = G(ca, b) | |
376 | 376 | if (if (if (aF()) | |
377 | 377 | then true | |
378 | 378 | else (bU == m)) | |
379 | 379 | then true | |
380 | 380 | else (bU == n)) | |
381 | 381 | then throw("Exchange operations disabled") | |
382 | 382 | else { | |
383 | 383 | let cW = cR.assetPair.amountAsset | |
384 | 384 | let cX = if ((cW == unit)) | |
385 | 385 | then "WAVES" | |
386 | 386 | else toBase58String(value(cW)) | |
387 | 387 | let cY = cR.assetPair.priceAsset | |
388 | 388 | let cZ = if ((cY == unit)) | |
389 | 389 | then "WAVES" | |
390 | 390 | else toBase58String(value(cY)) | |
391 | 391 | if (if ((cX != cS)) | |
392 | 392 | then true | |
393 | 393 | else (cZ != cT)) | |
394 | 394 | then throw("Wrong order assets.") | |
395 | 395 | else { | |
396 | 396 | let da = cR.price | |
397 | 397 | let db = fraction(b, bG, bF) | |
398 | 398 | let dc = J(da, b, db) | |
399 | 399 | let dd = if ((cR.orderType == Buy)) | |
400 | 400 | then (cb >= dc) | |
401 | 401 | else (dc >= cb) | |
402 | 402 | true | |
403 | 403 | } | |
404 | 404 | } | |
405 | 405 | } | |
406 | 406 | ||
407 | 407 | ||
408 | 408 | func de (df) = if ((size(df.payments) != 1)) | |
409 | 409 | then throw("exactly 1 payment is expected") | |
410 | 410 | else { | |
411 | 411 | let dg = value(df.payments[0]) | |
412 | 412 | let bP = value(dg.assetId) | |
413 | 413 | let dh = dg.amount | |
414 | 414 | let cA = bN(toBase58String(df.transactionId), toBase58String(bP), dh, df.caller) | |
415 | 415 | let cg = cA._1 | |
416 | 416 | let ch = cA._2 | |
417 | 417 | let bU = parseIntValue(cA._9) | |
418 | 418 | let ci = cA._10 | |
419 | 419 | if (if (aF()) | |
420 | 420 | then true | |
421 | 421 | else (bU == n)) | |
422 | 422 | then throw(("Get operation is blocked by admin. Status = " + toString(bU))) | |
423 | 423 | else $Tuple5(cg, ch, dh, bP, ci) | |
424 | 424 | } | |
425 | 425 | ||
426 | 426 | ||
427 | 427 | func di (df,ck,cq) = if ((size(df.payments) != 2)) | |
428 | 428 | then throw("exactly 2 payments are expected") | |
429 | 429 | else { | |
430 | 430 | let dj = value(df.payments[0]) | |
431 | 431 | let dk = value(df.payments[1]) | |
432 | 432 | let dl = cj(toBase58String(df.transactionId), ck, dj.amount, dj.assetId, dk.amount, dk.assetId, toString(df.caller), false, cq) | |
433 | 433 | let bU = parseIntValue(dl._8) | |
434 | 434 | if (if (if (aF()) | |
435 | 435 | then true | |
436 | 436 | else (bU == l)) | |
437 | 437 | then true | |
438 | 438 | else (bU == n)) | |
439 | 439 | then throw(("Put operation is blocked by admin. Status = " + toString(bU))) | |
440 | 440 | else dl | |
441 | 441 | } | |
442 | 442 | ||
443 | 443 | ||
444 | 444 | func dm (dn) = { | |
445 | 445 | let do = invoke(aD, "emit", [dn], nil) | |
446 | 446 | if ((do == do)) | |
447 | 447 | then { | |
448 | 448 | let dp = { | |
449 | 449 | let dq = do | |
450 | 450 | if ($isInstanceOf(dq, "Address")) | |
451 | 451 | then { | |
452 | 452 | let dr = dq | |
453 | 453 | invoke(dr, "emit", [dn], nil) | |
454 | 454 | } | |
455 | 455 | else unit | |
456 | 456 | } | |
457 | 457 | if ((dp == dp)) | |
458 | 458 | then dn | |
459 | 459 | else throw("Strict value is not equal to itself.") | |
460 | 460 | } | |
461 | 461 | else throw("Strict value is not equal to itself.") | |
462 | 462 | } | |
463 | 463 | ||
464 | 464 | ||
465 | 465 | func ds (dn) = { | |
466 | 466 | let dt = fraction(dn, ae, b) | |
467 | 467 | $Tuple2((dn - dt), dt) | |
468 | 468 | } | |
469 | 469 | ||
470 | 470 | ||
471 | 471 | func du (dv,dw,X,Y) = { | |
472 | 472 | let dx = (Y == unit) | |
473 | 473 | let dy = bq(aM(aU)) | |
474 | 474 | let dz = bq(aM(aV)) | |
475 | 475 | let dA = if ((dw == aU)) | |
476 | 476 | then true | |
477 | 477 | else if ((dw == aV)) | |
478 | 478 | then false | |
479 | 479 | else aB("invalid asset") | |
480 | 480 | let dB = if (dx) | |
481 | 481 | then $Tuple2(dy, dz) | |
482 | 482 | else if (dA) | |
483 | 483 | then $Tuple2((dy - dv), dz) | |
484 | 484 | else $Tuple2(dy, (dz - dv)) | |
485 | 485 | let dC = dB._1 | |
486 | 486 | let dD = dB._2 | |
487 | 487 | let dE = if (dA) | |
488 | 488 | then $Tuple2(dv, 0) | |
489 | 489 | else $Tuple2(0, dv) | |
490 | 490 | let dF = dE._1 | |
491 | 491 | let dG = dE._2 | |
492 | 492 | let dH = ds(dF)._1 | |
493 | 493 | let dI = ds(dG)._1 | |
494 | 494 | let dJ = ds(dv) | |
495 | 495 | let dK = dJ._1 | |
496 | 496 | let dt = dJ._2 | |
497 | 497 | let dL = (dC + dH) | |
498 | 498 | let dM = (dD + dI) | |
499 | 499 | let dN = bs(D(dM, aX), D(dL, aW)) | |
500 | 500 | let dO = G(dN, b) | |
501 | 501 | let dP = if (dA) | |
502 | 502 | then dC | |
503 | 503 | else dD | |
504 | 504 | let dQ = toBigInt(dP) | |
505 | 505 | let dR = toBigInt(valueOrErrorMessage(assetInfo(aT), (("asset " + toBase58String(aT)) + " doesn't exist")).quantity) | |
506 | 506 | let dS = if ((dR > f)) | |
507 | 507 | then true | |
508 | 508 | else aB("initial deposit requires all coins") | |
509 | 509 | if ((dS == dS)) | |
510 | 510 | then { | |
511 | 511 | let dT = toBigInt(dK) | |
512 | 512 | let dU = max([0, toInt(((dR * (sqrtBigInt((d + ((dT * d) / dQ)), 18, 18, DOWN) - d)) / d))]) | |
513 | 513 | let cP = if (dx) | |
514 | 514 | then nil | |
515 | 515 | else [IntegerEntry(S(), dO), IntegerEntry(T(height, lastBlock.timestamp), dO), StringEntry(W(toString(value(X)), toBase58String(value(Y))), bb(dF, dG, dU, dO, 0, 0, height, lastBlock.timestamp, 0, 0))] | |
516 | 516 | let dV = bs(D(dD, aX), D(dC, aW)) | |
517 | 517 | let dW = G(dV, b) | |
518 | 518 | let dX = N((((dO - dW) * b) / dW)) | |
519 | 519 | $Tuple4(dU, cP, dt, dX) | |
520 | 520 | } | |
521 | 521 | else throw("Strict value is not equal to itself.") | |
522 | 522 | } | |
523 | 523 | ||
524 | 524 | ||
525 | 525 | func dY (dZ,dK,dw,X,Y) = { | |
526 | 526 | let dx = (Y == unit) | |
527 | 527 | let ea = [if ((dw == aT)) | |
528 | 528 | then true | |
529 | 529 | else aB("invalid lp asset")] | |
530 | 530 | if ((ea == ea)) | |
531 | 531 | then { | |
532 | 532 | let eb = if ((dZ == aU)) | |
533 | 533 | then true | |
534 | 534 | else if ((dZ == aV)) | |
535 | 535 | then false | |
536 | 536 | else aB("invalid asset") | |
537 | 537 | let ec = if (eb) | |
538 | 538 | then toBigInt(bq(aM(aU))) | |
539 | 539 | else toBigInt(bq(aM(aV))) | |
540 | 540 | let ed = bq(aM(aU)) | |
541 | 541 | let ee = bq(aM(aV)) | |
542 | 542 | let ef = if (eb) | |
543 | 543 | then ed | |
544 | 544 | else ee | |
545 | 545 | let eg = toBigInt(ef) | |
546 | 546 | let dR = toBigInt(valueOrErrorMessage(assetInfo(aT), (("asset " + toBase58String(aT)) + " doesn't exist")).quantity) | |
547 | 547 | let eh = toBigInt(dK) | |
548 | 548 | let ei = max([0, toInt(((ec * (d - pow((d - ((eh * d) / dR)), 18, h, 0, 18, DOWN))) / d))]) | |
549 | 549 | let ej = ds(ei) | |
550 | 550 | let ek = ej._1 | |
551 | 551 | let dt = ej._2 | |
552 | 552 | let el = if (eb) | |
553 | 553 | then $Tuple4(ek, 0, (ed - ei), ee) | |
554 | 554 | else $Tuple4(0, ek, ed, (ee - ei)) | |
555 | 555 | let em = el._1 | |
556 | 556 | let en = el._2 | |
557 | 557 | let eo = el._3 | |
558 | 558 | let ep = el._4 | |
559 | 559 | let dN = bs(D(ep, aX), D(eo, aW)) | |
560 | 560 | let dO = G(dN, b) | |
561 | 561 | let cP = if (dx) | |
562 | 562 | then nil | |
563 | 563 | else [StringEntry(Z(toString(value(X)), toBase58String(value(Y))), bm(em, en, dK, dO, height, lastBlock.timestamp)), IntegerEntry(S(), dO), IntegerEntry(T(height, lastBlock.timestamp), dO)] | |
564 | 564 | let dV = bs(D(ee, aX), D(ed, aW)) | |
565 | 565 | let dW = G(dV, b) | |
566 | 566 | let dX = N((((dO - dW) * b) / dW)) | |
567 | 567 | $Tuple4(ek, cP, dt, dX) | |
568 | 568 | } | |
569 | 569 | else throw("Strict value is not equal to itself.") | |
570 | 570 | } | |
571 | 571 | ||
572 | 572 | ||
573 | 573 | func eq () = { | |
574 | 574 | let dq = getString(Q()) | |
575 | 575 | if ($isInstanceOf(dq, "String")) | |
576 | 576 | then { | |
577 | 577 | let er = dq | |
578 | 578 | fromBase58String(er) | |
579 | 579 | } | |
580 | 580 | else if ($isInstanceOf(dq, "Unit")) | |
581 | 581 | then unit | |
582 | 582 | else throw("Match error") | |
583 | 583 | } | |
584 | 584 | ||
585 | 585 | ||
586 | 586 | func es () = { | |
587 | 587 | let dq = getString(R()) | |
588 | 588 | if ($isInstanceOf(dq, "String")) | |
589 | 589 | then { | |
590 | 590 | let er = dq | |
591 | 591 | fromBase58String(er) | |
592 | 592 | } | |
593 | 593 | else if ($isInstanceOf(dq, "Unit")) | |
594 | 594 | then unit | |
595 | 595 | else throw("Match error") | |
596 | 596 | } | |
597 | 597 | ||
598 | 598 | ||
599 | 599 | func et (df) = { | |
600 | 600 | let eu = throw("Permission denied") | |
601 | 601 | let dq = eq() | |
602 | 602 | if ($isInstanceOf(dq, "ByteVector")) | |
603 | 603 | then { | |
604 | 604 | let ev = dq | |
605 | 605 | if ((df.callerPublicKey == ev)) | |
606 | 606 | then true | |
607 | 607 | else eu | |
608 | 608 | } | |
609 | 609 | else if ($isInstanceOf(dq, "Unit")) | |
610 | 610 | then if ((df.caller == this)) | |
611 | 611 | then true | |
612 | 612 | else eu | |
613 | 613 | else throw("Match error") | |
614 | 614 | } | |
615 | 615 | ||
616 | 616 | ||
617 | 617 | @Callable(df) | |
618 | 618 | func setManager (ew) = { | |
619 | 619 | let ex = et(df) | |
620 | 620 | if ((ex == ex)) | |
621 | 621 | then { | |
622 | 622 | let ey = fromBase58String(ew) | |
623 | 623 | if ((ey == ey)) | |
624 | 624 | then [StringEntry(R(), ew)] | |
625 | 625 | else throw("Strict value is not equal to itself.") | |
626 | 626 | } | |
627 | 627 | else throw("Strict value is not equal to itself.") | |
628 | 628 | } | |
629 | 629 | ||
630 | 630 | ||
631 | 631 | ||
632 | 632 | @Callable(df) | |
633 | 633 | func confirmManager () = { | |
634 | 634 | let ez = es() | |
635 | 635 | let eA = if (isDefined(ez)) | |
636 | 636 | then true | |
637 | 637 | else throw("No pending manager") | |
638 | 638 | if ((eA == eA)) | |
639 | 639 | then { | |
640 | 640 | let eB = if ((df.callerPublicKey == value(ez))) | |
641 | 641 | then true | |
642 | 642 | else throw("You are not pending manager") | |
643 | 643 | if ((eB == eB)) | |
644 | 644 | then [StringEntry(Q(), toBase58String(value(ez))), DeleteEntry(R())] | |
645 | 645 | else throw("Strict value is not equal to itself.") | |
646 | 646 | } | |
647 | 647 | else throw("Strict value is not equal to itself.") | |
648 | 648 | } | |
649 | 649 | ||
650 | 650 | ||
651 | 651 | ||
652 | 652 | @Callable(df) | |
653 | 653 | func put (ck,eC) = if ((0 > ck)) | |
654 | 654 | then throw("Invalid slippageTolerance passed") | |
655 | 655 | else { | |
656 | 656 | let dl = di(df, ck, true) | |
657 | 657 | let cM = dl._2 | |
658 | 658 | let bR = dl._7 | |
659 | 659 | let ci = dl._9 | |
660 | 660 | let cN = dl._10 | |
661 | 661 | let cO = dl._11 | |
662 | 662 | let eD = dl._12 | |
663 | 663 | let eE = dl._13 | |
664 | 664 | let do = invoke(aD, "emit", [cM], nil) | |
665 | 665 | if ((do == do)) | |
666 | 666 | then { | |
667 | 667 | let dp = { | |
668 | 668 | let dq = do | |
669 | 669 | if ($isInstanceOf(dq, "Address")) | |
670 | 670 | then { | |
671 | 671 | let dr = dq | |
672 | 672 | invoke(dr, "emit", [cM], nil) | |
673 | 673 | } | |
674 | 674 | else unit | |
675 | 675 | } | |
676 | 676 | if ((dp == dp)) | |
677 | 677 | then { | |
678 | 678 | let eF = if ((cN > 0)) | |
679 | 679 | then invoke(ba, "put", nil, [AttachedPayment(eD, cN)]) | |
680 | 680 | else nil | |
681 | 681 | if ((eF == eF)) | |
682 | 682 | then { | |
683 | 683 | let eG = if ((cO > 0)) | |
684 | 684 | then invoke(ba, "put", nil, [AttachedPayment(eE, cO)]) | |
685 | 685 | else nil | |
686 | 686 | if ((eG == eG)) | |
687 | 687 | then { | |
688 | 688 | let eH = if (eC) | |
689 | 689 | then { | |
690 | 690 | let eI = invoke(aZ, "stake", nil, [AttachedPayment(bR, cM)]) | |
691 | 691 | if ((eI == eI)) | |
692 | 692 | then nil | |
693 | 693 | else throw("Strict value is not equal to itself.") | |
694 | 694 | } | |
695 | 695 | else [ScriptTransfer(df.caller, cM, bR)] | |
696 | 696 | (ci ++ eH) | |
697 | 697 | } | |
698 | 698 | else throw("Strict value is not equal to itself.") | |
699 | 699 | } | |
700 | 700 | else throw("Strict value is not equal to itself.") | |
701 | 701 | } | |
702 | 702 | else throw("Strict value is not equal to itself.") | |
703 | 703 | } | |
704 | 704 | else throw("Strict value is not equal to itself.") | |
705 | 705 | } | |
706 | 706 | ||
707 | 707 | ||
708 | 708 | ||
709 | 709 | @Callable(df) | |
710 | 710 | func putForFree (eJ) = if ((0 > eJ)) | |
711 | 711 | then throw("Invalid value passed") | |
712 | 712 | else { | |
713 | 713 | let dl = di(df, eJ, false) | |
714 | 714 | dl._9 | |
715 | 715 | } | |
716 | 716 | ||
717 | 717 | ||
718 | 718 | ||
719 | 719 | @Callable(df) | |
720 | 720 | func putOneTkn (eK,eL) = { | |
721 | 721 | let eM = { | |
722 | 722 | let eN = invoke(aD, "isPoolOneTokenOperationsDisabledREADONLY", [toString(this)], nil) | |
723 | 723 | if ($isInstanceOf(eN, "Boolean")) | |
724 | 724 | then eN | |
725 | 725 | else throw(($getType(eN) + " couldn't be cast to Boolean")) | |
726 | 726 | } | |
727 | 727 | let eO = if (if (if (aF()) | |
728 | 728 | then true | |
729 | 729 | else (aS == l)) | |
730 | 730 | then true | |
731 | 731 | else (aS == n)) | |
732 | 732 | then true | |
733 | 733 | else eM | |
734 | 734 | let ea = [if (!(eO)) | |
735 | 735 | then true | |
736 | 736 | else aB("put operation is blocked by admin"), if ((size(df.payments) == 1)) | |
737 | 737 | then true | |
738 | 738 | else aB("exactly 1 payment are expected")] | |
739 | 739 | if ((ea == ea)) | |
740 | 740 | then { | |
741 | 741 | let eP = df.payments[0] | |
742 | 742 | let dw = eP.assetId | |
743 | 743 | let dv = eP.amount | |
744 | 744 | let X = df.caller | |
745 | 745 | let Y = df.transactionId | |
746 | 746 | let eQ = du(dv, dw, X, Y) | |
747 | 747 | let eR = eQ._1 | |
748 | 748 | let cP = eQ._2 | |
749 | 749 | let dt = eQ._3 | |
750 | 750 | let eS = eQ._4 | |
751 | 751 | let eT = if (if ((eK > 0)) | |
752 | 752 | then (eK > eR) | |
753 | 753 | else false) | |
754 | 754 | then aB(makeString(["amount to receive is less than ", toString(eK)], "")) | |
755 | 755 | else eR | |
756 | 756 | let do = dm(eT) | |
757 | 757 | if ((do == do)) | |
758 | 758 | then { | |
759 | 759 | let eH = if (eL) | |
760 | 760 | then { | |
761 | 761 | let eU = invoke(aZ, "stake", nil, [AttachedPayment(aT, eT)]) | |
762 | 762 | if ((eU == eU)) | |
763 | 763 | then nil | |
764 | 764 | else throw("Strict value is not equal to itself.") | |
765 | 765 | } | |
766 | 766 | else [ScriptTransfer(df.caller, eT, aT)] | |
767 | 767 | let eV = if ((dt > 0)) | |
768 | 768 | then [ScriptTransfer(aE, dt, dw)] | |
769 | 769 | else nil | |
770 | 770 | $Tuple2(((cP ++ eH) ++ eV), eT) | |
771 | 771 | } | |
772 | 772 | else throw("Strict value is not equal to itself.") | |
773 | 773 | } | |
774 | 774 | else throw("Strict value is not equal to itself.") | |
775 | 775 | } | |
776 | 776 | ||
777 | 777 | ||
778 | 778 | ||
779 | 779 | @Callable(df) | |
780 | 780 | func putOneTknREADONLY (dw,dv) = { | |
781 | 781 | let eW = du(dv, aK(dw), unit, unit) | |
782 | 782 | let eR = eW._1 | |
783 | 783 | let cP = eW._2 | |
784 | 784 | let dt = eW._3 | |
785 | 785 | let eS = eW._4 | |
786 | 786 | $Tuple2(nil, $Tuple3(eR, dt, eS)) | |
787 | 787 | } | |
788 | 788 | ||
789 | 789 | ||
790 | 790 | ||
791 | 791 | @Callable(df) | |
792 | 792 | func getOneTkn (eX,eK) = { | |
793 | 793 | let eM = { | |
794 | 794 | let eN = invoke(aD, "isPoolOneTokenOperationsDisabledREADONLY", [toString(this)], nil) | |
795 | 795 | if ($isInstanceOf(eN, "Boolean")) | |
796 | 796 | then eN | |
797 | 797 | else throw(($getType(eN) + " couldn't be cast to Boolean")) | |
798 | 798 | } | |
799 | 799 | let eY = if (if (aF()) | |
800 | 800 | then true | |
801 | 801 | else (aS == n)) | |
802 | 802 | then true | |
803 | 803 | else eM | |
804 | 804 | let ea = [if (!(eY)) | |
805 | 805 | then true | |
806 | 806 | else aB("get operation is blocked by admin"), if ((size(df.payments) == 1)) | |
807 | 807 | then true | |
808 | 808 | else aB("exactly 1 payment are expected")] | |
809 | 809 | if ((ea == ea)) | |
810 | 810 | then { | |
811 | 811 | let dZ = aK(eX) | |
812 | 812 | let eP = df.payments[0] | |
813 | 813 | let dw = eP.assetId | |
814 | 814 | let dK = eP.amount | |
815 | 815 | let X = df.caller | |
816 | 816 | let Y = df.transactionId | |
817 | 817 | let eZ = dY(dZ, dK, dw, X, Y) | |
818 | 818 | let fa = eZ._1 | |
819 | 819 | let cP = eZ._2 | |
820 | 820 | let dt = eZ._3 | |
821 | 821 | let eS = eZ._4 | |
822 | 822 | let dn = if (if ((eK > 0)) | |
823 | 823 | then (eK > fa) | |
824 | 824 | else false) | |
825 | 825 | then aB(makeString(["amount to receive is less than ", toString(eK)], "")) | |
826 | 826 | else fa | |
827 | 827 | let fb = invoke(aD, "burn", [dK], [AttachedPayment(dw, dK)]) | |
828 | 828 | if ((fb == fb)) | |
829 | 829 | then { | |
830 | 830 | let fc = [ScriptTransfer(X, dn, dZ)] | |
831 | 831 | let eV = if ((dt > 0)) | |
832 | 832 | then [ScriptTransfer(aE, dt, dZ)] | |
833 | 833 | else nil | |
834 | 834 | $Tuple2(((cP ++ fc) ++ eV), dn) | |
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 | ||
843 | 843 | @Callable(df) | |
844 | 844 | func getOneTknREADONLY (dZ,dK) = { | |
845 | 845 | let fd = dY(aK(dZ), dK, aT, unit, unit) | |
846 | 846 | let fa = fd._1 | |
847 | 847 | let cP = fd._2 | |
848 | 848 | let dt = fd._3 | |
849 | 849 | let eS = fd._4 | |
850 | 850 | $Tuple2(nil, $Tuple3(fa, dt, eS)) | |
851 | 851 | } | |
852 | 852 | ||
853 | 853 | ||
854 | 854 | ||
855 | 855 | @Callable(df) | |
856 | 856 | func unstakeAndGetOneTkn (fe,eX,eK) = { | |
857 | 857 | let eM = { | |
858 | 858 | let eN = invoke(aD, "isPoolOneTokenOperationsDisabledREADONLY", [toString(this)], nil) | |
859 | 859 | if ($isInstanceOf(eN, "Boolean")) | |
860 | 860 | then eN | |
861 | 861 | else throw(($getType(eN) + " couldn't be cast to Boolean")) | |
862 | 862 | } | |
863 | 863 | let eY = if (if (aF()) | |
864 | 864 | then true | |
865 | 865 | else (aS == n)) | |
866 | 866 | then true | |
867 | 867 | else eM | |
868 | 868 | let ea = [if (!(eY)) | |
869 | 869 | then true | |
870 | 870 | else aB("get operation is blocked by admin"), if ((size(df.payments) == 0)) | |
871 | 871 | then true | |
872 | 872 | else aB("no payments are expected")] | |
873 | 873 | if ((ea == ea)) | |
874 | 874 | then { | |
875 | 875 | let dZ = aK(eX) | |
876 | 876 | let X = df.caller | |
877 | 877 | let Y = df.transactionId | |
878 | 878 | let ff = invoke(aZ, "unstake", [toBase58String(aT), fe], nil) | |
879 | 879 | if ((ff == ff)) | |
880 | 880 | then { | |
881 | 881 | let fg = dY(dZ, fe, aT, X, Y) | |
882 | 882 | let fa = fg._1 | |
883 | 883 | let cP = fg._2 | |
884 | 884 | let dt = fg._3 | |
885 | 885 | let eS = fg._4 | |
886 | 886 | let dn = if (if ((eK > 0)) | |
887 | 887 | then (eK > fa) | |
888 | 888 | else false) | |
889 | 889 | then aB(makeString(["amount to receive is less than ", toString(eK)], "")) | |
890 | 890 | else fa | |
891 | 891 | let fb = invoke(aD, "burn", [fe], [AttachedPayment(aT, fe)]) | |
892 | 892 | if ((fb == fb)) | |
893 | 893 | then { | |
894 | 894 | let fc = [ScriptTransfer(df.caller, dn, dZ)] | |
895 | 895 | let eV = if ((dt > 0)) | |
896 | 896 | then [ScriptTransfer(aE, dt, dZ)] | |
897 | 897 | else nil | |
898 | 898 | $Tuple2(((cP ++ fc) ++ eV), dn) | |
899 | 899 | } | |
900 | 900 | else throw("Strict value is not equal to itself.") | |
901 | 901 | } | |
902 | 902 | else throw("Strict value is not equal to itself.") | |
903 | 903 | } | |
904 | 904 | else throw("Strict value is not equal to itself.") | |
905 | 905 | } | |
906 | 906 | ||
907 | 907 | ||
908 | 908 | ||
909 | 909 | @Callable(df) | |
910 | 910 | func get () = { | |
911 | 911 | let cA = de(df) | |
912 | 912 | let fh = cA._1 | |
913 | 913 | let ch = cA._2 | |
914 | 914 | let dh = cA._3 | |
915 | 915 | let bP = cA._4 | |
916 | 916 | let ci = cA._5 | |
917 | 917 | let fi = invoke(aD, "burn", [dh], [AttachedPayment(bP, dh)]) | |
918 | 918 | if ((fi == fi)) | |
919 | 919 | then ci | |
920 | 920 | else throw("Strict value is not equal to itself.") | |
921 | 921 | } | |
922 | 922 | ||
923 | 923 | ||
924 | 924 | ||
925 | 925 | @Callable(df) | |
926 | 926 | func getNoLess (fj,fk) = { | |
927 | 927 | let cA = de(df) | |
928 | 928 | let cg = cA._1 | |
929 | 929 | let ch = cA._2 | |
930 | 930 | let dh = cA._3 | |
931 | 931 | let bP = cA._4 | |
932 | 932 | let ci = cA._5 | |
933 | 933 | if ((fj > cg)) | |
934 | 934 | then throw(((("noLessThenAmtAsset failed: " + toString(cg)) + " < ") + toString(fj))) | |
935 | 935 | else if ((fk > ch)) | |
936 | 936 | then throw(((("noLessThenPriceAsset failed: " + toString(ch)) + " < ") + toString(fk))) | |
937 | 937 | else { | |
938 | 938 | let fi = invoke(aD, "burn", [dh], [AttachedPayment(bP, dh)]) | |
939 | 939 | if ((fi == fi)) | |
940 | 940 | then ci | |
941 | 941 | else throw("Strict value is not equal to itself.") | |
942 | 942 | } | |
943 | 943 | } | |
944 | 944 | ||
945 | 945 | ||
946 | 946 | ||
947 | 947 | @Callable(df) | |
948 | 948 | func unstakeAndGet (dn) = { | |
949 | 949 | let fl = if ((size(df.payments) != 0)) | |
950 | 950 | then throw("No payments are expected") | |
951 | 951 | else true | |
952 | 952 | if ((fl == fl)) | |
953 | 953 | then { | |
954 | 954 | let bE = aH() | |
955 | 955 | let bR = fromBase58String(bE[q]) | |
956 | 956 | let ff = invoke(aZ, "unstake", [toBase58String(bR), dn], nil) | |
957 | 957 | if ((ff == ff)) | |
958 | 958 | then { | |
959 | 959 | let cA = bN(toBase58String(df.transactionId), toBase58String(bR), dn, df.caller) | |
960 | 960 | let bU = parseIntValue(cA._9) | |
961 | 961 | let ci = cA._10 | |
962 | 962 | let fm = if (if (aF()) | |
963 | 963 | then true | |
964 | 964 | else (bU == n)) | |
965 | 965 | then throw(("Get operation is blocked by admin. Status = " + toString(bU))) | |
966 | 966 | else true | |
967 | 967 | if ((fm == fm)) | |
968 | 968 | then { | |
969 | 969 | let fi = invoke(aD, "burn", [dn], [AttachedPayment(bR, dn)]) | |
970 | 970 | if ((fi == fi)) | |
971 | 971 | then ci | |
972 | 972 | else throw("Strict value is not equal to itself.") | |
973 | 973 | } | |
974 | 974 | else throw("Strict value is not equal to itself.") | |
975 | 975 | } | |
976 | 976 | else throw("Strict value is not equal to itself.") | |
977 | 977 | } | |
978 | 978 | else throw("Strict value is not equal to itself.") | |
979 | 979 | } | |
980 | 980 | ||
981 | 981 | ||
982 | 982 | ||
983 | 983 | @Callable(df) | |
984 | - | func activate (fn,fo) = if ((toString(df.caller) != toString(aD))) | |
984 | + | func unstakeAndGetNoLess (fe,fn,fk) = { | |
985 | + | let eY = if (aF()) | |
986 | + | then true | |
987 | + | else (aS == n) | |
988 | + | let ea = [if (!(eY)) | |
989 | + | then true | |
990 | + | else throw("get operation is blocked by admin"), if ((size(df.payments) == 0)) | |
991 | + | then true | |
992 | + | else throw("no payments are expected")] | |
993 | + | if ((ea == ea)) | |
994 | + | then { | |
995 | + | let ff = invoke(aZ, "unstake", [toBase58String(aT), fe], nil) | |
996 | + | if ((ff == ff)) | |
997 | + | then { | |
998 | + | let cA = bN(toBase58String(df.transactionId), toBase58String(aT), fe, df.caller) | |
999 | + | let cg = cA._1 | |
1000 | + | let ch = cA._2 | |
1001 | + | let ci = cA._10 | |
1002 | + | let fo = [if ((cg >= fn)) | |
1003 | + | then true | |
1004 | + | else throw(makeString(["amount asset amount to receive is less than ", toString(fn)], "")), if ((ch >= fk)) | |
1005 | + | then true | |
1006 | + | else throw(makeString(["price asset amount to receive is less than ", toString(fk)], ""))] | |
1007 | + | if ((fo == fo)) | |
1008 | + | then { | |
1009 | + | let fi = invoke(aD, "burn", [fe], [AttachedPayment(aT, fe)]) | |
1010 | + | if ((fi == fi)) | |
1011 | + | then ci | |
1012 | + | else throw("Strict value is not equal to itself.") | |
1013 | + | } | |
1014 | + | else throw("Strict value is not equal to itself.") | |
1015 | + | } | |
1016 | + | else throw("Strict value is not equal to itself.") | |
1017 | + | } | |
1018 | + | else throw("Strict value is not equal to itself.") | |
1019 | + | } | |
1020 | + | ||
1021 | + | ||
1022 | + | ||
1023 | + | @Callable(df) | |
1024 | + | func activate (fp,fq) = if ((toString(df.caller) != toString(aD))) | |
985 | 1025 | then throw("permissions denied") | |
986 | - | else $Tuple2([StringEntry(aa(), | |
1026 | + | else $Tuple2([StringEntry(aa(), fp), StringEntry(ab(), fq)], "success") | |
987 | 1027 | ||
988 | 1028 | ||
989 | 1029 | ||
990 | 1030 | @Callable(df) | |
991 | 1031 | func getPoolConfigWrapperREADONLY () = $Tuple2(nil, aH()) | |
992 | 1032 | ||
993 | 1033 | ||
994 | 1034 | ||
995 | 1035 | @Callable(df) | |
996 | 1036 | func getAccBalanceWrapperREADONLY (br) = $Tuple2(nil, bq(br)) | |
997 | 1037 | ||
998 | 1038 | ||
999 | 1039 | ||
1000 | 1040 | @Callable(df) | |
1001 | 1041 | func calcPricesWrapperREADONLY (by,bz,bD) = { | |
1002 | 1042 | let bM = bC(by, bz, bD) | |
1003 | 1043 | $Tuple2(nil, [toString(bM[0]), toString(bM[1]), toString(bM[2])]) | |
1004 | 1044 | } | |
1005 | 1045 | ||
1006 | 1046 | ||
1007 | 1047 | ||
1008 | 1048 | @Callable(df) | |
1009 | 1049 | func toX18WrapperREADONLY (E,F) = $Tuple2(nil, toString(D(E, F))) | |
1010 | 1050 | ||
1011 | 1051 | ||
1012 | 1052 | ||
1013 | 1053 | @Callable(df) | |
1014 | 1054 | func fromX18WrapperREADONLY (H,I) = $Tuple2(nil, G(parseBigIntValue(H), I)) | |
1015 | 1055 | ||
1016 | 1056 | ||
1017 | 1057 | ||
1018 | 1058 | @Callable(df) | |
1019 | 1059 | func calcPriceBigIntWrapperREADONLY (bt,bu) = $Tuple2(nil, toString(bs(parseBigIntValue(bt), parseBigIntValue(bu)))) | |
1020 | 1060 | ||
1021 | 1061 | ||
1022 | 1062 | ||
1023 | 1063 | @Callable(df) | |
1024 | 1064 | func estimatePutOperationWrapperREADONLY (bO,ck,cl,cm,cn,co,X,cp,cq) = $Tuple2(nil, cj(bO, ck, cl, cm, cn, co, X, cp, cq)) | |
1025 | 1065 | ||
1026 | 1066 | ||
1027 | 1067 | ||
1028 | 1068 | @Callable(df) | |
1029 | 1069 | func estimateGetOperationWrapperREADONLY (bO,bP,bQ,X) = { | |
1030 | 1070 | let cA = bN(bO, bP, bQ, addressFromStringValue(X)) | |
1031 | 1071 | $Tuple2(nil, $Tuple10(cA._1, cA._2, cA._3, cA._4, cA._5, cA._6, cA._7, toString(cA._8), cA._9, cA._10)) | |
1032 | 1072 | } | |
1033 | 1073 | ||
1034 | 1074 | ||
1035 | 1075 | ||
1036 | 1076 | @Callable(df) | |
1037 | 1077 | func statsREADONLY () = { | |
1038 | 1078 | let bE = aH() | |
1039 | 1079 | let bR = fromBase58String(bE[q]) | |
1040 | 1080 | let cS = bE[r] | |
1041 | 1081 | let cT = bE[s] | |
1042 | 1082 | let ct = bE[v] | |
1043 | 1083 | let cu = bE[w] | |
1044 | 1084 | let bF = parseIntValue(bE[t]) | |
1045 | 1085 | let bG = parseIntValue(bE[u]) | |
1046 | - | let | |
1086 | + | let fr = valueOrErrorMessage(assetInfo(bR), (("Asset " + toBase58String(bR)) + " doesn't exist")).quantity | |
1047 | 1087 | let cU = bq(cS) | |
1048 | 1088 | let cV = bq(cT) | |
1049 | - | let | |
1089 | + | let fs = if ((fr == 0)) | |
1050 | 1090 | then [e, e, e] | |
1051 | - | else bC(cU, cV, | |
1091 | + | else bC(cU, cV, fr) | |
1052 | 1092 | let cb = 0 | |
1053 | - | let | |
1054 | - | let | |
1055 | - | let | |
1056 | - | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d", toString(cU), toString(cV), toString( | |
1093 | + | let ft = G(fs[1], b) | |
1094 | + | let fu = G(fs[2], b) | |
1095 | + | let fv = value(getInteger(aD, ap(toString(this)))) | |
1096 | + | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d", toString(cU), toString(cV), toString(fr), toString(cb), toString(ft), toString(fu), toString(fv)], j)) | |
1057 | 1097 | } | |
1058 | 1098 | ||
1059 | 1099 | ||
1060 | 1100 | ||
1061 | 1101 | @Callable(df) | |
1062 | 1102 | func evaluatePutByAmountAssetREADONLY (cl) = { | |
1063 | 1103 | let bE = aH() | |
1064 | 1104 | let bR = fromBase58String(bE[q]) | |
1065 | 1105 | let cr = bE[r] | |
1066 | 1106 | let bS = fromBase58String(cr) | |
1067 | 1107 | let cs = bE[s] | |
1068 | 1108 | let bT = fromBase58String(cs) | |
1069 | 1109 | let bF = parseIntValue(bE[t]) | |
1070 | 1110 | let bG = parseIntValue(bE[u]) | |
1071 | 1111 | let bU = bE[p] | |
1072 | - | let | |
1112 | + | let fr = valueOrErrorMessage(assetInfo(bR), (("Asset " + toBase58String(bR)) + " doesn't exist")).quantity | |
1073 | 1113 | let cU = bq(cr) | |
1074 | 1114 | let cV = bq(cs) | |
1075 | 1115 | let bA = D(cU, bF) | |
1076 | 1116 | let bB = D(cV, bG) | |
1077 | - | let ca = if (( | |
1117 | + | let ca = if ((fr == 0)) | |
1078 | 1118 | then e | |
1079 | 1119 | else bs(bB, bA) | |
1080 | 1120 | let cx = D(cl, bF) | |
1081 | 1121 | let cy = fraction(cx, ca, d) | |
1082 | 1122 | let cn = G(cy, bG) | |
1083 | 1123 | let dl = cj("", 500000, cl, bS, cn, bT, "", true, false) | |
1084 | 1124 | let cI = dl._1 | |
1085 | - | let | |
1125 | + | let fw = dl._3 | |
1086 | 1126 | let bW = dl._4 | |
1087 | 1127 | let bY = dl._5 | |
1088 | 1128 | let bV = dl._6 | |
1089 | 1129 | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d", toString(cI), toString(G(ca, b)), toString(bW), toString(bY), toString(bV), bU, toString(cl), toString(cn)], j)) | |
1090 | 1130 | } | |
1091 | 1131 | ||
1092 | 1132 | ||
1093 | 1133 | ||
1094 | 1134 | @Callable(df) | |
1095 | 1135 | func evaluatePutByPriceAssetREADONLY (cn) = { | |
1096 | 1136 | let bE = aH() | |
1097 | 1137 | let bR = fromBase58String(bE[q]) | |
1098 | 1138 | let cr = bE[r] | |
1099 | 1139 | let bS = fromBase58String(cr) | |
1100 | 1140 | let cs = bE[s] | |
1101 | 1141 | let bT = fromBase58String(cs) | |
1102 | 1142 | let bF = parseIntValue(bE[t]) | |
1103 | 1143 | let bG = parseIntValue(bE[u]) | |
1104 | 1144 | let bU = bE[p] | |
1105 | - | let | |
1106 | - | let | |
1107 | - | let | |
1108 | - | let | |
1109 | - | let | |
1110 | - | let ca = if (( | |
1145 | + | let fr = valueOrErrorMessage(assetInfo(bR), (("Asset " + toBase58String(bR)) + " doesn't exist")).quantity | |
1146 | + | let fx = bq(cr) | |
1147 | + | let fy = bq(cs) | |
1148 | + | let fz = D(fx, bF) | |
1149 | + | let fA = D(fy, bG) | |
1150 | + | let ca = if ((fr == 0)) | |
1111 | 1151 | then e | |
1112 | - | else bs( | |
1152 | + | else bs(fA, fz) | |
1113 | 1153 | let cy = D(cn, bG) | |
1114 | 1154 | let cx = fraction(cy, d, ca) | |
1115 | 1155 | let cl = G(cx, bF) | |
1116 | 1156 | let dl = cj("", 500000, cl, bS, cn, bT, "", true, false) | |
1117 | 1157 | let cI = dl._1 | |
1118 | - | let | |
1158 | + | let fw = dl._3 | |
1119 | 1159 | let bW = dl._4 | |
1120 | 1160 | let bY = dl._5 | |
1121 | 1161 | let bV = dl._6 | |
1122 | 1162 | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d", toString(cI), toString(G(ca, b)), toString(bW), toString(bY), toString(bV), bU, toString(cl), toString(cn)], j)) | |
1123 | 1163 | } | |
1124 | 1164 | ||
1125 | 1165 | ||
1126 | 1166 | ||
1127 | 1167 | @Callable(df) | |
1128 | - | func evaluateGetREADONLY ( | |
1129 | - | let cA = bN("", | |
1168 | + | func evaluateGetREADONLY (fB,fC) = { | |
1169 | + | let cA = bN("", fB, fC, this) | |
1130 | 1170 | let cg = cA._1 | |
1131 | 1171 | let ch = cA._2 | |
1132 | 1172 | let bW = cA._5 | |
1133 | 1173 | let bY = cA._6 | |
1134 | 1174 | let bV = cA._7 | |
1135 | 1175 | let cb = cA._8 | |
1136 | 1176 | let bU = parseIntValue(cA._9) | |
1137 | 1177 | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d", toString(cg), toString(ch), toString(bW), toString(bY), toString(bV), toString(cb), toString(bU)], j)) | |
1138 | 1178 | } | |
1139 | 1179 | ||
1140 | 1180 | ||
1141 | - | @Verifier( | |
1142 | - | func | |
1143 | - | let | |
1181 | + | @Verifier(fD) | |
1182 | + | func fE () = { | |
1183 | + | let fF = { | |
1144 | 1184 | let dq = eq() | |
1145 | 1185 | if ($isInstanceOf(dq, "ByteVector")) | |
1146 | 1186 | then { | |
1147 | 1187 | let ev = dq | |
1148 | 1188 | ev | |
1149 | 1189 | } | |
1150 | 1190 | else if ($isInstanceOf(dq, "Unit")) | |
1151 | - | then | |
1191 | + | then fD.senderPublicKey | |
1152 | 1192 | else throw("Match error") | |
1153 | 1193 | } | |
1154 | - | let dq = | |
1194 | + | let dq = fD | |
1155 | 1195 | if ($isInstanceOf(dq, "Order")) | |
1156 | 1196 | then { | |
1157 | 1197 | let cR = dq | |
1158 | - | let | |
1198 | + | let fG = aG() | |
1159 | 1199 | let au = cQ(cR) | |
1160 | 1200 | let av = sigVerify(cR.bodyBytes, cR.proofs[0], cR.senderPublicKey) | |
1161 | - | let aw = sigVerify(cR.bodyBytes, cR.proofs[1], | |
1201 | + | let aw = sigVerify(cR.bodyBytes, cR.proofs[1], fG) | |
1162 | 1202 | if (if (if (au) | |
1163 | 1203 | then av | |
1164 | 1204 | else false) | |
1165 | 1205 | then aw | |
1166 | 1206 | else false) | |
1167 | 1207 | then true | |
1168 | 1208 | else at(au, av, aw) | |
1169 | 1209 | } | |
1170 | 1210 | else if ($isInstanceOf(dq, "SetScriptTransaction")) | |
1171 | 1211 | then { | |
1172 | 1212 | let er = dq | |
1173 | - | let | |
1174 | - | let | |
1175 | - | let | |
1176 | - | if (if (( | |
1177 | - | then ( | |
1213 | + | let fH = blake2b256(value(er.script)) | |
1214 | + | let fI = fromBase64String(value(getString(aD, ar()))) | |
1215 | + | let fJ = scriptHash(this) | |
1216 | + | if (if ((fI == fH)) | |
1217 | + | then (fJ != fH) | |
1178 | 1218 | else false) | |
1179 | 1219 | then true | |
1180 | - | else sigVerify( | |
1220 | + | else sigVerify(fD.bodyBytes, fD.proofs[0], fF) | |
1181 | 1221 | } | |
1182 | - | else sigVerify( | |
1222 | + | else sigVerify(fD.bodyBytes, fD.proofs[0], fF) | |
1183 | 1223 | } | |
1184 | 1224 |
github/deemru/w8io/026f985 118.94 ms ◑