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