tx · 54CZLDCgVHrgGpa5uHB5BXC5Geb1HYrXtQt8SMbTpDNx 3Mz51suw3H98TBYJHSra1k2uSYQMv2vUkzt: -0.03600000 Waves 2022.06.06 23:39 [2084983] smart account 3Mz51suw3H98TBYJHSra1k2uSYQMv2vUkzt > SELF 0.00000000 Waves
{ "type": 13, "id": "54CZLDCgVHrgGpa5uHB5BXC5Geb1HYrXtQt8SMbTpDNx", "fee": 3600000, "feeAssetId": null, "timestamp": 1654548013875, "version": 1, "sender": "3Mz51suw3H98TBYJHSra1k2uSYQMv2vUkzt", "senderPublicKey": "8RPibCyjGbPr7troJPW7WTXkrbynj8HwkrckopSZoYVn", "proofs": [ "5ixDHjBmc8GTLwwezvpcsfsAyDMdCefTXGGoEGABXpanedXfykS7f62SqjzrqM6GfdwPTZ4MTKhAi9Y3QRG8fN8w" ], "script": "base64:AAIFAAAAAAAAEo8IAhIDCgEIEgMKAQgSABIECgIBBBIHCgUBAQEBBBIDCgEBEgASBwoFAQEBCAESBAoCAQESAwoBARIECgIICBIECgIICBIECgIIARIAEgMKAQgSBQoDAQEBEgQKAggBEgQKAgEBEgQKAggIEgsKCQgBAQIBAggEBBIGCgQICAEIGgoKAUESBWRlbGF5GgcKAUISAnQxGgwKAUMSB29yaWdWYWwaEgoBRBINb3JpZ1NjYWxlTXVsdBoHCgFFEgJmMRoICgFGEgN2YWwaFAoBRxIPcmVzdWx0U2NhbGVNdWx0GgcKAUgSAnRzGggKAUkSA2FtdBoNCgFKEghyZXNTY2FsZRoNCgFLEghjdXJTY2FsZRoICgFMEgNhYnMaBwoBTRICZmMaCAoBThIDbXBrGgkKAU8SBHBtcGsaBwoBUBICcGwaBwoBURICcGgaBgoBUhIBaBoGCgFTEgF0GggKAVQSA3BhdRoHCgFVEgJ1YRoJCgFWEgR0eElkGggKAVcSA2dhdRoHCgFYEgJhYRoHCgFZEgJwYRoICgFaEgNhbXAaCwoBYRIGc2NhbGU4GggKAmFBEgJtcBoJCgJhQhIDZ3BjGgs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", "chainId": 84, "height": 2084983, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: C484A7DPDaRJEqhvW9bet9MHSAxLUuTSKtfFxbhqqU2d Next: 62d83Zvmpq7eF9FjcGYKqtzQkVeTziJzH9mqowoE4Zuk Diff:
Old | New | Differences | |
---|---|---|---|
190 | 190 | ||
191 | 191 | func bg (bh,bi,bj) = { | |
192 | 192 | let be = fraction(bi, b, bh) | |
193 | - | if ((be == be)) | |
194 | - | then { | |
195 | - | let bk = throw("after diff error") | |
196 | - | if ((bk == bk)) | |
197 | - | then { | |
198 | - | let bl = (bj > be) | |
199 | - | if (if (bl) | |
200 | - | then true | |
201 | - | else (bi > bh)) | |
202 | - | then throw(((((((toString(bi) + " ") + toString(bh)) + " ") + toString(be)) + " ") + toString(bj))) | |
203 | - | else bl | |
204 | - | } | |
205 | - | else throw("Strict value is not equal to itself.") | |
206 | - | } | |
207 | - | else throw("Strict value is not equal to itself.") | |
193 | + | let bk = (bj > be) | |
194 | + | if (if (bk) | |
195 | + | then true | |
196 | + | else (bi > bh)) | |
197 | + | then throw(((((((toString(bi) + " ") + toString(bh)) + " ") + toString(be)) + " ") + toString(bj))) | |
198 | + | else bk | |
208 | 199 | } | |
209 | 200 | ||
210 | 201 | ||
211 | - | func bm (bn,bo,bp,bq) = { | |
202 | + | func bl (bm,bn,bo,bp) = { | |
203 | + | let bq = B(bo, bm) | |
212 | 204 | let br = B(bp, bn) | |
213 | - | let bs = B(bq, bo) | |
214 | - | aX(bs, br) | |
205 | + | aX(br, bq) | |
215 | 206 | } | |
216 | 207 | ||
217 | 208 | ||
218 | - | func | |
219 | - | let | |
220 | - | let | |
221 | - | let | |
222 | - | let | |
223 | - | let aZ = B( | |
224 | - | let aY = B( | |
225 | - | let | |
226 | - | let | |
227 | - | let | |
228 | - | [ | |
209 | + | func bs (bo,bp,bt) = { | |
210 | + | let bu = aB() | |
211 | + | let bv = parseIntValue(bu[t]) | |
212 | + | let bw = parseIntValue(bu[u]) | |
213 | + | let bx = bl(bv, bw, bo, bp) | |
214 | + | let aZ = B(bo, bv) | |
215 | + | let aY = B(bp, bw) | |
216 | + | let by = B(bt, a) | |
217 | + | let bz = aX(aZ, by) | |
218 | + | let bA = aX(aY, by) | |
219 | + | [bx, bz, bA] | |
229 | 220 | } | |
230 | 221 | ||
231 | 222 | ||
232 | - | func | |
233 | - | let | |
234 | - | [E( | |
223 | + | func bB (bo,bp,bt) = { | |
224 | + | let bC = bs(bo, bp, bt) | |
225 | + | [E(bC[0], a), E(bC[1], a), E(bC[2], a)] | |
235 | 226 | } | |
236 | 227 | ||
237 | 228 | ||
238 | - | func | |
239 | - | let | |
240 | - | let | |
241 | - | let | |
242 | - | let | |
243 | - | let | |
244 | - | let | |
245 | - | let | |
246 | - | let | |
247 | - | if (( | |
229 | + | func bD (bE,bF,bG,bH) = { | |
230 | + | let bu = aB() | |
231 | + | let bI = bu[q] | |
232 | + | let bJ = bu[r] | |
233 | + | let bK = bu[s] | |
234 | + | let bL = parseIntValue(bu[t]) | |
235 | + | let bM = parseIntValue(bu[u]) | |
236 | + | let bN = bu[p] | |
237 | + | let bO = valueOrErrorMessage(assetInfo(fromBase58String(bI)), "Wrong LP id").quantity | |
238 | + | if ((bI != bF)) | |
248 | 239 | then throw("Wrong pmt asset") | |
249 | 240 | else { | |
250 | - | let bQ = aV(bK) | |
251 | - | let bR = B(bQ, bM) | |
252 | - | let bS = aV(bL) | |
253 | - | let bT = B(bS, bN) | |
254 | - | let bU = aX(bT, bR) | |
255 | - | let bV = E(bU, a) | |
256 | - | let bW = B(bH, a) | |
257 | - | let bX = B(bP, a) | |
258 | - | let bY = fraction(bR, bW, bX) | |
259 | - | let bZ = fraction(bT, bW, bX) | |
241 | + | let bP = aV(bJ) | |
242 | + | let bQ = B(bP, bL) | |
243 | + | let bR = aV(bK) | |
244 | + | let bS = B(bR, bM) | |
245 | + | let bT = aX(bS, bQ) | |
246 | + | let bU = E(bT, a) | |
247 | + | let bV = B(bG, a) | |
248 | + | let bW = B(bO, a) | |
249 | + | let bX = fraction(bQ, bV, bW) | |
250 | + | let bY = fraction(bS, bV, bW) | |
251 | + | let bZ = E(bX, bL) | |
260 | 252 | let ca = E(bY, bM) | |
261 | - | let cb = E(bZ, bN) | |
262 | - | let cc = if ((bF == "")) | |
253 | + | let cb = if ((bE == "")) | |
263 | 254 | then nil | |
264 | - | else [ScriptTransfer( | |
255 | + | else [ScriptTransfer(bH, bZ, if ((bJ == "WAVES")) | |
265 | 256 | then unit | |
266 | - | else fromBase58String( | |
257 | + | else fromBase58String(bJ)), ScriptTransfer(bH, ca, if ((bK == "WAVES")) | |
267 | 258 | then unit | |
268 | - | else fromBase58String( | |
269 | - | $Tuple10(ca, | |
259 | + | else fromBase58String(bK)), StringEntry(W(toString(bH), bE), aR(bZ, ca, bG, bU, height, lastBlock.timestamp)), IntegerEntry(P(), bU), IntegerEntry(Q(height, lastBlock.timestamp), bU)] | |
260 | + | $Tuple10(bZ, ca, bJ, bK, bP, bR, bO, bT, bN, cb) | |
270 | 261 | } | |
271 | 262 | } | |
272 | 263 | ||
273 | 264 | ||
274 | - | func cd (bF,bd,ce,cf,cg,ch,bI,ci,cj,ck,cl,cm) = { | |
275 | - | let bv = aB() | |
276 | - | let bJ = fromBase58String(bv[q]) | |
277 | - | let cn = bv[r] | |
278 | - | let co = bv[s] | |
279 | - | let cp = bv[v] | |
280 | - | let cq = bv[w] | |
281 | - | let cr = parseIntValue(bv[t]) | |
282 | - | let cs = parseIntValue(bv[u]) | |
283 | - | let bO = bv[p] | |
284 | - | let ct = valueOrErrorMessage(assetInfo(bJ), "Wr lp as").quantity | |
285 | - | let bQ = if (ci) | |
265 | + | func cc (bE,bd,cd,ce,cf,cg,bH,ch,ci,cj,ck,cl) = { | |
266 | + | let bu = aB() | |
267 | + | let bI = fromBase58String(bu[q]) | |
268 | + | let cm = bu[r] | |
269 | + | let cn = bu[s] | |
270 | + | let co = bu[v] | |
271 | + | let cp = bu[w] | |
272 | + | let cq = parseIntValue(bu[t]) | |
273 | + | let cr = parseIntValue(bu[u]) | |
274 | + | let bN = bu[p] | |
275 | + | let cs = valueOrErrorMessage(assetInfo(bI), "Wr lp as").quantity | |
276 | + | let bP = if (ch) | |
277 | + | then aV(cm) | |
278 | + | else if (if (cj) | |
279 | + | then (cl == cm) | |
280 | + | else false) | |
281 | + | then (aV(cm) - ck) | |
282 | + | else if (cj) | |
283 | + | then aV(cm) | |
284 | + | else (aV(cm) - cd) | |
285 | + | let bR = if (ch) | |
286 | 286 | then aV(cn) | |
287 | - | else if (if ( | |
288 | - | then ( | |
287 | + | else if (if (cj) | |
288 | + | then (cl == cn) | |
289 | 289 | else false) | |
290 | - | then (aV(cn) - | |
291 | - | else if ( | |
290 | + | then (aV(cn) - ck) | |
291 | + | else if (cj) | |
292 | 292 | then aV(cn) | |
293 | - | else (aV(cn) - ce) | |
294 | - | let bS = if (ci) | |
295 | - | then aV(co) | |
296 | - | else if (if (ck) | |
297 | - | then (cm == co) | |
298 | - | else false) | |
299 | - | then (aV(co) - cl) | |
300 | - | else if (ck) | |
301 | - | then aV(co) | |
302 | - | else (aV(co) - cg) | |
303 | - | let cu = B(ce, cr) | |
304 | - | let cv = B(cg, cs) | |
305 | - | let cw = aX(cv, cu) | |
306 | - | let bR = B(bQ, cr) | |
307 | - | let bT = B(bS, cs) | |
308 | - | let cx = if ((ct == 0)) | |
293 | + | else (aV(cn) - cf) | |
294 | + | let ct = B(cd, cq) | |
295 | + | let cu = B(cf, cr) | |
296 | + | let cv = aX(cu, ct) | |
297 | + | let bQ = B(bP, cq) | |
298 | + | let bS = B(bR, cr) | |
299 | + | let cw = if ((cs == 0)) | |
309 | 300 | then { | |
310 | - | let | |
311 | - | let | |
312 | - | let | |
313 | - | $Tuple5(E( | |
301 | + | let bT = d | |
302 | + | let cx = d | |
303 | + | let by = pow((ct * cu), 0, toBigInt(5), 1, 0, DOWN) | |
304 | + | $Tuple5(E(by, a), E(ct, cq), E(cu, cr), aX((bS + cu), (bQ + ct)), cx) | |
314 | 305 | } | |
315 | 306 | else { | |
316 | - | let | |
317 | - | let | |
318 | - | let | |
319 | - | if (if (( | |
320 | - | then ( | |
307 | + | let bT = aX(bS, bQ) | |
308 | + | let cy = fraction(L((bT - cv)), c, bT) | |
309 | + | let cx = B(bd, a) | |
310 | + | if (if ((bT != d)) | |
311 | + | then (cy > cx) | |
321 | 312 | else false) | |
322 | - | then throw(((("Price slippage " + toString( | |
313 | + | then throw(((("Price slippage " + toString(cy)) + " > ") + toString(cx))) | |
323 | 314 | else { | |
324 | - | let | |
325 | - | let | |
326 | - | let | |
327 | - | let | |
328 | - | then $Tuple2( | |
329 | - | else $Tuple2( | |
330 | - | let | |
331 | - | let | |
332 | - | let | |
333 | - | $Tuple5(E( | |
315 | + | let cz = B(cs, a) | |
316 | + | let cA = fraction(ct, bT, c) | |
317 | + | let cB = fraction(cu, c, bT) | |
318 | + | let cC = if ((cA > cu)) | |
319 | + | then $Tuple2(cB, cu) | |
320 | + | else $Tuple2(ct, cA) | |
321 | + | let cD = cC._1 | |
322 | + | let cE = cC._2 | |
323 | + | let by = fraction(cz, cE, bS) | |
324 | + | $Tuple5(E(by, a), E(cD, cq), E(cE, cr), bT, cx) | |
334 | 325 | } | |
335 | 326 | } | |
336 | - | let | |
337 | - | let | |
338 | - | let | |
339 | - | let | |
340 | - | let | |
341 | - | if ((0 >= | |
327 | + | let cF = cw._1 | |
328 | + | let cG = cw._2 | |
329 | + | let cH = cw._3 | |
330 | + | let bU = E(cw._4, a) | |
331 | + | let cI = E(cw._5, a) | |
332 | + | if ((0 >= cF)) | |
342 | 333 | then throw("LP <= 0") | |
343 | 334 | else { | |
344 | - | let | |
335 | + | let cJ = if (!(ci)) | |
345 | 336 | then 0 | |
346 | - | else | |
347 | - | let | |
348 | - | let | |
349 | - | let | |
350 | - | then ( | |
337 | + | else cF | |
338 | + | let cK = (cd - cG) | |
339 | + | let cL = (cf - cH) | |
340 | + | let cM = if (if (cj) | |
341 | + | then (cl == cm) | |
351 | 342 | else false) | |
352 | - | then $Tuple2( | |
353 | - | else if (if ( | |
354 | - | then ( | |
343 | + | then $Tuple2(ck, 0) | |
344 | + | else if (if (cj) | |
345 | + | then (cl == cn) | |
355 | 346 | else false) | |
356 | - | then $Tuple2(0, | |
357 | - | else $Tuple2( | |
358 | - | let | |
359 | - | let | |
360 | - | let | |
361 | - | $Tuple13( | |
347 | + | then $Tuple2(0, ck) | |
348 | + | else $Tuple2(cG, cH) | |
349 | + | let cN = cM._1 | |
350 | + | let cO = cM._2 | |
351 | + | let cP = [IntegerEntry(P(), bU), IntegerEntry(Q(height, lastBlock.timestamp), bU), StringEntry(T(bH, bE), aG(cN, cO, cJ, bU, bd, cI, height, lastBlock.timestamp, cK, cL))] | |
352 | + | $Tuple13(cF, cJ, bU, bP, bR, cs, bI, bN, cP, cK, cL, ce, cg) | |
362 | 353 | } | |
363 | 354 | } | |
364 | 355 | ||
365 | 356 | ||
366 | - | func cR (cS) = { | |
367 | - | let bv = aB() | |
368 | - | let cT = bv[r] | |
369 | - | let cU = bv[s] | |
370 | - | let bO = parseIntValue(bv[p]) | |
371 | - | let bw = parseIntValue(bv[t]) | |
372 | - | let bx = parseIntValue(bv[u]) | |
357 | + | func cQ (cR) = { | |
358 | + | let bu = aB() | |
359 | + | let cS = bu[r] | |
360 | + | let cT = bu[s] | |
361 | + | let bN = parseIntValue(bu[p]) | |
362 | + | let bv = parseIntValue(bu[t]) | |
363 | + | let bw = parseIntValue(bu[u]) | |
364 | + | let cU = aV(cS) | |
373 | 365 | let cV = aV(cT) | |
374 | - | let cW = aV(cU) | |
375 | - | let bU = if ((cS.orderType == Buy)) | |
376 | - | then bm(bw, bx, (cV + cS.amount), cW) | |
377 | - | else bm(bw, bx, (cV - cS.amount), cW) | |
378 | - | let bV = E(bU, a) | |
366 | + | let bT = if ((cR.orderType == Buy)) | |
367 | + | then bl(bv, bw, (cU + cR.amount), cV) | |
368 | + | else bl(bv, bw, (cU - cR.amount), cV) | |
369 | + | let bU = E(bT, a) | |
379 | 370 | if (if (if (az()) | |
380 | 371 | then true | |
381 | - | else ( | |
372 | + | else (bN == m)) | |
382 | 373 | then true | |
383 | - | else ( | |
374 | + | else (bN == n)) | |
384 | 375 | then throw("Admin blocked") | |
385 | 376 | else { | |
386 | - | let | |
387 | - | let | |
377 | + | let cW = cR.assetPair.amountAsset | |
378 | + | let cX = if ((cW == unit)) | |
388 | 379 | then "WAVES" | |
389 | - | else toBase58String(value( | |
390 | - | let | |
391 | - | let | |
380 | + | else toBase58String(value(cW)) | |
381 | + | let cY = cR.assetPair.priceAsset | |
382 | + | let cZ = if ((cY == unit)) | |
392 | 383 | then "WAVES" | |
393 | - | else toBase58String(value( | |
394 | - | if (if (( | |
384 | + | else toBase58String(value(cY)) | |
385 | + | if (if ((cX != cS)) | |
395 | 386 | then true | |
396 | - | else ( | |
387 | + | else (cZ != cT)) | |
397 | 388 | then throw("Wr assets") | |
398 | 389 | else { | |
399 | - | let | |
400 | - | let | |
401 | - | let | |
402 | - | let | |
403 | - | then ( | |
404 | - | else ( | |
390 | + | let da = cR.price | |
391 | + | let cr = fraction(a, bw, bv) | |
392 | + | let db = H(da, a, cr) | |
393 | + | let dc = if ((cR.orderType == Buy)) | |
394 | + | then (bU >= db) | |
395 | + | else (db >= bU) | |
405 | 396 | true | |
406 | 397 | } | |
407 | 398 | } | |
408 | 399 | } | |
409 | 400 | ||
410 | 401 | ||
411 | - | func | |
402 | + | func dd (de) = if ((size(de.payments) != 1)) | |
412 | 403 | then throw("1 pmnt exp") | |
413 | 404 | else { | |
414 | - | let | |
415 | - | let | |
416 | - | let | |
417 | - | let | |
418 | - | let | |
419 | - | let | |
420 | - | let | |
421 | - | let | |
405 | + | let df = value(de.payments[0]) | |
406 | + | let bF = value(df.assetId) | |
407 | + | let ck = df.amount | |
408 | + | let cw = bD(toBase58String(de.transactionId), toBase58String(bF), ck, de.caller) | |
409 | + | let bZ = cw._1 | |
410 | + | let ca = cw._2 | |
411 | + | let bN = parseIntValue(cw._9) | |
412 | + | let cb = cw._10 | |
422 | 413 | if (if (az()) | |
423 | 414 | then true | |
424 | - | else ( | |
425 | - | then throw(("Admin blocked: " + toString( | |
426 | - | else $Tuple5(ca, | |
415 | + | else (bN == n)) | |
416 | + | then throw(("Admin blocked: " + toString(bN))) | |
417 | + | else $Tuple5(bZ, ca, ck, bF, cb) | |
427 | 418 | } | |
428 | 419 | ||
429 | 420 | ||
430 | - | func | |
431 | - | let | |
432 | - | let | |
421 | + | func dg (ac,V,dh,di,bd,ci,cj,ck,cl) = { | |
422 | + | let cw = cc(V, bd, value(dh).amount, value(dh).assetId, value(di).amount, value(di).assetId, ac, false, ci, cj, ck, cl) | |
423 | + | let bN = parseIntValue(cw._8) | |
433 | 424 | if (if (if (az()) | |
434 | 425 | then true | |
435 | - | else ( | |
426 | + | else (bN == l)) | |
436 | 427 | then true | |
437 | - | else ( | |
438 | - | then throw(("Blocked:" + toString( | |
439 | - | else | |
428 | + | else (bN == n)) | |
429 | + | then throw(("Blocked:" + toString(bN))) | |
430 | + | else cw | |
440 | 431 | } | |
441 | 432 | ||
442 | 433 | ||
443 | - | func | |
434 | + | func dj () = { | |
444 | 435 | let ar = getString(N()) | |
445 | 436 | if ($isInstanceOf(ar, "String")) | |
446 | 437 | then { | |
447 | - | let | |
448 | - | fromBase58String( | |
438 | + | let dk = ar | |
439 | + | fromBase58String(dk) | |
449 | 440 | } | |
450 | 441 | else if ($isInstanceOf(ar, "Unit")) | |
451 | 442 | then unit | |
453 | 444 | } | |
454 | 445 | ||
455 | 446 | ||
456 | - | func | |
447 | + | func dl () = { | |
457 | 448 | let ar = getString(O()) | |
458 | 449 | if ($isInstanceOf(ar, "String")) | |
459 | 450 | then { | |
460 | - | let | |
461 | - | fromBase58String( | |
451 | + | let dk = ar | |
452 | + | fromBase58String(dk) | |
462 | 453 | } | |
463 | 454 | else if ($isInstanceOf(ar, "Unit")) | |
464 | 455 | then unit | |
466 | 457 | } | |
467 | 458 | ||
468 | 459 | ||
469 | - | let | |
460 | + | let dm = throw("Permission denied") | |
470 | 461 | ||
471 | - | func | |
472 | - | let ar = | |
462 | + | func dn (de) = { | |
463 | + | let ar = dj() | |
473 | 464 | if ($isInstanceOf(ar, "ByteVector")) | |
474 | 465 | then { | |
475 | - | let | |
476 | - | if (( | |
466 | + | let do = ar | |
467 | + | if ((de.callerPublicKey == do)) | |
477 | 468 | then true | |
478 | - | else | |
469 | + | else dm | |
479 | 470 | } | |
480 | 471 | else if ($isInstanceOf(ar, "Unit")) | |
481 | - | then if (( | |
472 | + | then if ((de.caller == this)) | |
482 | 473 | then true | |
483 | - | else | |
474 | + | else dm | |
484 | 475 | else throw("Match error") | |
485 | 476 | } | |
486 | 477 | ||
487 | 478 | ||
488 | - | @Callable( | |
479 | + | @Callable(de) | |
489 | 480 | func constructor (M) = { | |
490 | - | let | |
491 | - | if (( | |
481 | + | let dp = dn(de) | |
482 | + | if ((dp == dp)) | |
492 | 483 | then [StringEntry(M(), M)] | |
493 | 484 | else throw("Strict value is not equal to itself.") | |
494 | 485 | } | |
495 | 486 | ||
496 | 487 | ||
497 | 488 | ||
498 | - | @Callable( | |
499 | - | func setManager ( | |
500 | - | let | |
501 | - | if (( | |
489 | + | @Callable(de) | |
490 | + | func setManager (dq) = { | |
491 | + | let dp = dn(de) | |
492 | + | if ((dp == dp)) | |
502 | 493 | then { | |
503 | - | let | |
504 | - | if (( | |
505 | - | then [StringEntry(O(), | |
494 | + | let dr = fromBase58String(dq) | |
495 | + | if ((dr == dr)) | |
496 | + | then [StringEntry(O(), dq)] | |
506 | 497 | else throw("Strict value is not equal to itself.") | |
507 | 498 | } | |
508 | 499 | else throw("Strict value is not equal to itself.") | |
510 | 501 | ||
511 | 502 | ||
512 | 503 | ||
513 | - | @Callable( | |
504 | + | @Callable(de) | |
514 | 505 | func confirmManager () = { | |
515 | - | let | |
516 | - | let | |
506 | + | let bC = dl() | |
507 | + | let ds = if (isDefined(bC)) | |
517 | 508 | then true | |
518 | 509 | else throw("No pending manager") | |
519 | - | if (( | |
510 | + | if ((ds == ds)) | |
520 | 511 | then { | |
521 | - | let | |
512 | + | let dt = if ((de.callerPublicKey == value(bC))) | |
522 | 513 | then true | |
523 | 514 | else throw("You are not pending manager") | |
524 | - | if (( | |
525 | - | then [StringEntry(N(), toBase58String(value( | |
515 | + | if ((dt == dt)) | |
516 | + | then [StringEntry(N(), toBase58String(value(bC))), DeleteEntry(O())] | |
526 | 517 | else throw("Strict value is not equal to itself.") | |
527 | 518 | } | |
528 | 519 | else throw("Strict value is not equal to itself.") | |
530 | 521 | ||
531 | 522 | ||
532 | 523 | ||
533 | - | @Callable( | |
534 | - | func put (dv | |
535 | - | let | |
536 | - | let | |
537 | - | let | |
538 | - | if ((0 > | |
524 | + | @Callable(de) | |
525 | + | func put (du,dv) = { | |
526 | + | let dw = aF() | |
527 | + | let dx = valueOrErrorMessage(addressFromString(dw[x]), "Wr st addr") | |
528 | + | let dy = valueOrErrorMessage(addressFromString(dw[y]), "Wr sl addr") | |
529 | + | if ((0 > du)) | |
539 | 530 | then throw("Wrong slippage") | |
540 | - | else if ((size( | |
531 | + | else if ((size(de.payments) != 2)) | |
541 | 532 | then throw("2 pmnts expd") | |
542 | 533 | else { | |
543 | - | let | |
544 | - | let | |
545 | - | let | |
546 | - | let | |
547 | - | let | |
548 | - | let | |
549 | - | let | |
550 | - | let | |
551 | - | let | |
552 | - | if (( | |
534 | + | let dz = dg(toString(de.caller), toBase58String(de.transactionId), AttachedPayment(value(de.payments[0]).assetId, value(de.payments[0]).amount), de.payments[1], du, true, false, 0, "") | |
535 | + | let cJ = dz._2 | |
536 | + | let dA = dz._7 | |
537 | + | let cb = dz._9 | |
538 | + | let cK = dz._10 | |
539 | + | let cL = dz._11 | |
540 | + | let bJ = dz._12 | |
541 | + | let bK = dz._13 | |
542 | + | let cw = invoke(ax, "emit", [cJ], nil) | |
543 | + | if ((cw == cw)) | |
553 | 544 | then { | |
554 | - | let | |
555 | - | let ar = | |
545 | + | let dB = { | |
546 | + | let ar = cw | |
556 | 547 | if ($isInstanceOf(ar, "Address")) | |
557 | 548 | then { | |
558 | - | let | |
559 | - | invoke( | |
549 | + | let dC = ar | |
550 | + | invoke(dC, "emit", [cJ], nil) | |
560 | 551 | } | |
561 | 552 | else unit | |
562 | 553 | } | |
563 | - | if (( | |
554 | + | if ((dB == dB)) | |
564 | 555 | then { | |
565 | - | let | |
566 | - | then invoke( | |
556 | + | let dD = if ((cK > 0)) | |
557 | + | then invoke(dy, "put", nil, [AttachedPayment(bJ, cK)]) | |
567 | 558 | else nil | |
568 | - | if (( | |
559 | + | if ((dD == dD)) | |
569 | 560 | then { | |
570 | - | let | |
571 | - | then invoke( | |
561 | + | let dE = if ((cL > 0)) | |
562 | + | then invoke(dy, "put", nil, [AttachedPayment(bK, cL)]) | |
572 | 563 | else nil | |
573 | - | if (( | |
564 | + | if ((dE == dE)) | |
574 | 565 | then { | |
575 | - | let | |
566 | + | let dF = if (dv) | |
576 | 567 | then { | |
577 | - | let | |
578 | - | if (( | |
568 | + | let dG = invoke(dx, "stake", nil, [AttachedPayment(dA, cJ)]) | |
569 | + | if ((dG == dG)) | |
579 | 570 | then nil | |
580 | 571 | else throw("Strict value is not equal to itself.") | |
581 | 572 | } | |
582 | - | else [ScriptTransfer( | |
583 | - | ( | |
573 | + | else [ScriptTransfer(de.caller, cJ, dA)] | |
574 | + | (cb ++ dF) | |
584 | 575 | } | |
585 | 576 | else throw("Strict value is not equal to itself.") | |
586 | 577 | } | |
594 | 585 | ||
595 | 586 | ||
596 | 587 | ||
597 | - | @Callable(df) | |
598 | - | func putOneTkn (dI,dJ,dK,bd,dw) = { | |
599 | - | let bv = aF() | |
600 | - | let dy = valueOrErrorMessage(addressFromString(bv[x]), "Wr st addr") | |
601 | - | let dz = valueOrErrorMessage(addressFromString(bv[y]), "Wr sl addr") | |
602 | - | let dL = valueOrErrorMessage(addressFromString(bv[z]), "Wr gwx addr") | |
603 | - | let dM = aB() | |
604 | - | let bK = dM[r] | |
605 | - | let bL = dM[s] | |
606 | - | let bM = parseIntValue(dM[t]) | |
607 | - | let bN = parseIntValue(dM[u]) | |
608 | - | let dN = valueOrElse(getString(this, aa()), "") | |
609 | - | let bI = if ((dN == toString(df.caller))) | |
610 | - | then df.originCaller | |
611 | - | else df.caller | |
612 | - | let dO = valueOrErrorMessage(addressFromString(valueOrErrorMessage(getString(aa()), "no addons")), "addon address in not valid") | |
613 | - | let dP = reentrantInvoke(dO, "ensureCanPutOneTkn", [toString(bI)], nil) | |
614 | - | if ((dP == dP)) | |
615 | - | then { | |
616 | - | let dQ = throw("after check") | |
617 | - | if ((dQ == dQ)) | |
618 | - | then if (if (if (if ((0 >= bd)) | |
619 | - | then true | |
620 | - | else (0 >= dI)) | |
621 | - | then true | |
622 | - | else (0 >= dJ)) | |
623 | - | then true | |
624 | - | else (0 >= dK)) | |
625 | - | then throw("Wrong params") | |
626 | - | else if ((size(df.payments) != 1)) | |
627 | - | then throw("1 pmnt expd") | |
588 | + | @Callable(de) | |
589 | + | func putOneTkn (dH,dI,dJ,bd,dv) = { | |
590 | + | let bu = aF() | |
591 | + | let dx = valueOrErrorMessage(addressFromString(bu[x]), "Wr st addr") | |
592 | + | let dy = valueOrErrorMessage(addressFromString(bu[y]), "Wr sl addr") | |
593 | + | let dK = valueOrErrorMessage(addressFromString(bu[z]), "Wr gwx addr") | |
594 | + | let dL = aB() | |
595 | + | let bJ = dL[r] | |
596 | + | let bK = dL[s] | |
597 | + | let bL = parseIntValue(dL[t]) | |
598 | + | let bM = parseIntValue(dL[u]) | |
599 | + | let dM = valueOrElse(getString(this, aa()), "") | |
600 | + | let bH = if ((dM == toString(de.caller))) | |
601 | + | then de.originCaller | |
602 | + | else de.caller | |
603 | + | let dN = valueOrErrorMessage(addressFromString(valueOrErrorMessage(getString(aa()), "no addons")), "addon address in not valid") | |
604 | + | let dO = reentrantInvoke(dN, "ensureCanGetOrPutOneTkn", [toString(bH)], nil) | |
605 | + | if ((dO == dO)) | |
606 | + | then if (if (if (if ((0 >= bd)) | |
607 | + | then true | |
608 | + | else (0 >= dH)) | |
609 | + | then true | |
610 | + | else (0 >= dI)) | |
611 | + | then true | |
612 | + | else (0 >= dJ)) | |
613 | + | then throw("Wrong params") | |
614 | + | else if ((size(de.payments) != 1)) | |
615 | + | then throw("1 pmnt expd") | |
616 | + | else { | |
617 | + | let df = value(de.payments[0]) | |
618 | + | let bF = toBase58String(value(df.assetId)) | |
619 | + | let ck = df.amount | |
620 | + | if (if (if ((dH > ck)) | |
621 | + | then true | |
622 | + | else (dI > ck)) | |
623 | + | then true | |
624 | + | else (10000000 > ck)) | |
625 | + | then throw("Wrong pmt amt") | |
628 | 626 | else { | |
629 | - | let dg = value(df.payments[0]) | |
630 | - | let bG = toBase58String(value(dg.assetId)) | |
631 | - | let cl = dg.amount | |
632 | - | if (if (if ((dI > cl)) | |
633 | - | then true | |
634 | - | else (dJ > cl)) | |
635 | - | then true | |
636 | - | else (10000000 > cl)) | |
637 | - | then throw("Wrong pmt amt") | |
638 | - | else { | |
639 | - | let bQ = aV(bK) | |
640 | - | let bS = aV(bL) | |
641 | - | let dR = if ((bG == bK)) | |
642 | - | then $Tuple6((bQ - cl), bS, (cl - dI), dJ, 0, 0) | |
643 | - | else if ((bG == bL)) | |
644 | - | then $Tuple6(bQ, (bS - cl), 0, 0, (cl - dJ), dI) | |
645 | - | else throw("wrong pmtAssetId") | |
646 | - | let dS = dR._1 | |
647 | - | let dT = dR._2 | |
648 | - | let dU = dR._3 | |
649 | - | let dV = dR._4 | |
650 | - | let dW = dR._5 | |
651 | - | let dX = dR._6 | |
652 | - | let bi = invoke(dL, "calcD", [toString(dS), toString(dT), ay, g, h], nil) | |
653 | - | let dY = throw("error after D0") | |
654 | - | if ((dY == dY)) | |
627 | + | let bP = aV(bJ) | |
628 | + | let bR = aV(bK) | |
629 | + | let dP = if ((bF == bJ)) | |
630 | + | then $Tuple6((bP - ck), bR, (ck - dH), dI, 0, 0) | |
631 | + | else if ((bF == bK)) | |
632 | + | then $Tuple6(bP, (bR - ck), 0, 0, (ck - dI), dH) | |
633 | + | else throw("wrong pmtAssetId") | |
634 | + | let dQ = dP._1 | |
635 | + | let dR = dP._2 | |
636 | + | let dS = dP._3 | |
637 | + | let dT = dP._4 | |
638 | + | let dU = dP._5 | |
639 | + | let dV = dP._6 | |
640 | + | let bi = invoke(dK, "calcD", [toString(dQ), toString(dR), ay, g, h], nil) | |
641 | + | let bh = invoke(dK, "calcD", [toString(toBigInt(((dQ + dS) - dV))), toString(toBigInt(((dR + dU) - dT))), ay, g, h], nil) | |
642 | + | let dW = bg(parseBigIntValue(aq(bh)), parseBigIntValue(aq(bi)), f) | |
643 | + | if ((dW == dW)) | |
644 | + | then { | |
645 | + | let dX = dg(toString(de.caller), toBase58String(de.transactionId), AttachedPayment(fromBase58String(bJ), dH), AttachedPayment(fromBase58String(bK), dI), bd, true, true, ck, bF) | |
646 | + | let dY = dX._2 | |
647 | + | let dA = dX._7 | |
648 | + | let cb = dX._9 | |
649 | + | let cK = dX._10 | |
650 | + | let cL = dX._11 | |
651 | + | let dZ = ba(toBigInt(dY), toBigInt(dJ), toBigInt(bd)) | |
652 | + | let cJ = toInt(dZ._2) | |
653 | + | let dz = invoke(ax, "emit", [cJ], nil) | |
654 | + | if ((dz == dz)) | |
655 | 655 | then { | |
656 | - | let bh = invoke(dL, "calcD", [toString(toBigInt(((dS + dU) - dX))), toString(toBigInt(((dT + dW) - dV))), ay, g, h], nil) | |
657 | - | let dZ = throw("error after D1") | |
658 | - | if ((dZ == dZ)) | |
656 | + | let dB = { | |
657 | + | let ar = dz | |
658 | + | if ($isInstanceOf(ar, "Address")) | |
659 | + | then { | |
660 | + | let dC = ar | |
661 | + | invoke(dC, "emit", [cJ], nil) | |
662 | + | } | |
663 | + | else unit | |
664 | + | } | |
665 | + | if ((dB == dB)) | |
659 | 666 | then { | |
660 | - | let ea = bg(parseBigIntValue(aq(bh)), parseBigIntValue(aq(bi)), f) | |
661 | - | if ((ea == ea)) | |
667 | + | let dD = if ((cK > 0)) | |
668 | + | then invoke(dy, "put", nil, [AttachedPayment(fromBase58String(bJ), cK)]) | |
669 | + | else nil | |
670 | + | if ((dD == dD)) | |
662 | 671 | then { | |
663 | - | let eb = dh(toString(df.caller), toBase58String(df.transactionId), AttachedPayment(fromBase58String(bK), dI), AttachedPayment(fromBase58String(bL), dJ), bd, true, true, cl, bG) | |
664 | - | let ec = eb._2 | |
665 | - | let dB = eb._7 | |
666 | - | let cc = eb._9 | |
667 | - | let cL = eb._10 | |
668 | - | let cM = eb._11 | |
669 | - | let ed = ba(toBigInt(ec), toBigInt(dK), toBigInt(bd)) | |
670 | - | let cK = toInt(ed._2) | |
671 | - | let dA = invoke(ax, "emit", [cK], nil) | |
672 | - | if ((dA == dA)) | |
672 | + | let dE = if ((cL > 0)) | |
673 | + | then invoke(dy, "put", nil, [AttachedPayment(fromBase58String(bK), cL)]) | |
674 | + | else nil | |
675 | + | if ((dE == dE)) | |
673 | 676 | then { | |
674 | - | let dC = { | |
675 | - | let ar = dA | |
676 | - | if ($isInstanceOf(ar, "Address")) | |
677 | - | then { | |
678 | - | let dD = ar | |
679 | - | invoke(dD, "emit", [cK], nil) | |
680 | - | } | |
681 | - | else unit | |
682 | - | } | |
683 | - | if ((dC == dC)) | |
677 | + | let dF = if (dv) | |
684 | 678 | then { | |
685 | - | let dE = if ((cL > 0)) | |
686 | - | then invoke(dz, "put", nil, [AttachedPayment(fromBase58String(bK), cL)]) | |
687 | - | else nil | |
688 | - | if ((dE == dE)) | |
689 | - | then { | |
690 | - | let dF = if ((cM > 0)) | |
691 | - | then invoke(dz, "put", nil, [AttachedPayment(fromBase58String(bL), cM)]) | |
692 | - | else nil | |
693 | - | if ((dF == dF)) | |
694 | - | then { | |
695 | - | let dG = if (dw) | |
696 | - | then { | |
697 | - | let dH = invoke(dy, "stake", nil, [AttachedPayment(dB, cK)]) | |
698 | - | if ((dH == dH)) | |
699 | - | then nil | |
700 | - | else throw("Strict value is not equal to itself.") | |
701 | - | } | |
702 | - | else [ScriptTransfer(df.caller, cK, dB)] | |
703 | - | (cc ++ dG) | |
704 | - | } | |
705 | - | else throw("Strict value is not equal to itself.") | |
706 | - | } | |
679 | + | let dG = invoke(dx, "stake", nil, [AttachedPayment(dA, cJ)]) | |
680 | + | if ((dG == dG)) | |
681 | + | then nil | |
707 | 682 | else throw("Strict value is not equal to itself.") | |
708 | 683 | } | |
709 | - | else throw("Strict value is not equal to itself.") | |
684 | + | else [ScriptTransfer(de.caller, cJ, dA)] | |
685 | + | (cb ++ dF) | |
710 | 686 | } | |
711 | 687 | else throw("Strict value is not equal to itself.") | |
712 | 688 | } | |
716 | 692 | } | |
717 | 693 | else throw("Strict value is not equal to itself.") | |
718 | 694 | } | |
695 | + | else throw("Strict value is not equal to itself.") | |
719 | 696 | } | |
720 | - | else throw("Strict value is not equal to itself.") | |
721 | - | } | |
697 | + | } | |
722 | 698 | else throw("Strict value is not equal to itself.") | |
723 | 699 | } | |
724 | 700 | ||
725 | 701 | ||
726 | 702 | ||
727 | - | @Callable( | |
728 | - | func putForFree ( | |
703 | + | @Callable(de) | |
704 | + | func putForFree (ea) = if ((0 > ea)) | |
729 | 705 | then throw("Wrong slpg") | |
730 | - | else if ((size( | |
706 | + | else if ((size(de.payments) != 2)) | |
731 | 707 | then throw("2 pmnts expd") | |
732 | 708 | else { | |
733 | - | let | |
734 | - | | |
709 | + | let dX = dg(toString(de.caller), toBase58String(de.transactionId), AttachedPayment(value(de.payments[0]).assetId, value(de.payments[0]).amount), de.payments[1], ea, false, false, 0, "") | |
710 | + | dX._9 | |
735 | 711 | } | |
736 | 712 | ||
737 | 713 | ||
738 | 714 | ||
739 | - | @Callable( | |
715 | + | @Callable(de) | |
740 | 716 | func get () = { | |
741 | - | let | |
742 | - | let | |
743 | - | let | |
744 | - | let | |
745 | - | let | |
746 | - | let | |
747 | - | let | |
748 | - | if (( | |
749 | - | then | |
717 | + | let cw = dd(de) | |
718 | + | let eb = cw._1 | |
719 | + | let ca = cw._2 | |
720 | + | let ck = cw._3 | |
721 | + | let bF = cw._4 | |
722 | + | let cb = cw._5 | |
723 | + | let ec = invoke(ax, "burn", [ck], [AttachedPayment(bF, ck)]) | |
724 | + | if ((ec == ec)) | |
725 | + | then cb | |
750 | 726 | else throw("Strict value is not equal to itself.") | |
751 | 727 | } | |
752 | 728 | ||
753 | 729 | ||
754 | 730 | ||
755 | - | @Callable( | |
756 | - | func getOneTkn ( | |
731 | + | @Callable(de) | |
732 | + | func getOneTkn (ed,ee,ef,eg,bd) = if ((size(de.payments) != 1)) | |
757 | 733 | then throw("1 pmnt expd") | |
758 | 734 | else { | |
759 | - | let | |
760 | - | let | |
761 | - | let | |
762 | - | let | |
763 | - | let | |
764 | - | let | |
765 | - | let | |
766 | - | let | |
767 | - | let | |
768 | - | let | |
769 | - | let | |
770 | - | let | |
771 | - | then | |
772 | - | else | |
773 | - | let | |
774 | - | let | |
775 | - | let | |
776 | - | let | |
777 | - | let | |
778 | - | if (( | |
779 | - | then if ((1000000000 > | |
735 | + | let bu = aB() | |
736 | + | let bI = bu[q] | |
737 | + | let bJ = bu[r] | |
738 | + | let bK = bu[s] | |
739 | + | let bL = parseIntValue(bu[t]) | |
740 | + | let bM = parseIntValue(bu[u]) | |
741 | + | let bN = bu[p] | |
742 | + | let dw = aF() | |
743 | + | let dK = valueOrErrorMessage(addressFromString(dw[z]), "Wr sl addr") | |
744 | + | let df = value(de.payments[0]) | |
745 | + | let dM = valueOrElse(getString(this, aa()), "") | |
746 | + | let bH = if ((dM == toString(de.caller))) | |
747 | + | then de.originCaller | |
748 | + | else de.caller | |
749 | + | let bE = toBase58String(de.transactionId) | |
750 | + | let bF = value(df.assetId) | |
751 | + | let ck = df.amount | |
752 | + | let dN = valueOrErrorMessage(addressFromString(valueOrErrorMessage(getString(aa()), "no addons")), "addon address in not valid") | |
753 | + | let dO = reentrantInvoke(dN, "ensureCanGetOrPutOneTkn", [toString(bH)], nil) | |
754 | + | if ((dO == dO)) | |
755 | + | then if ((1000000000 > ck)) | |
780 | 756 | then throw("Min pmt 10 LP") | |
781 | 757 | else if (if (if ((0 > bd)) | |
782 | 758 | then true | |
783 | - | else (0 > | |
759 | + | else (0 > ed)) | |
784 | 760 | then true | |
785 | - | else (0 > | |
761 | + | else (0 > ef)) | |
786 | 762 | then throw("Wrong params") | |
787 | - | else if (( | |
763 | + | else if ((bI != toBase58String(bF))) | |
788 | 764 | then throw("Wrong LP") | |
789 | 765 | else { | |
790 | - | let | |
791 | - | let | |
792 | - | let | |
793 | - | let | |
794 | - | let | |
795 | - | let | |
796 | - | then $Tuple7(( | |
797 | - | else if (( | |
798 | - | then $Tuple7(( | |
766 | + | let cw = bD(toBase58String(de.transactionId), toBase58String(bF), ck, de.caller) | |
767 | + | let eh = cw._1 | |
768 | + | let ei = cw._2 | |
769 | + | let bP = aV(bJ) | |
770 | + | let bR = aV(bK) | |
771 | + | let ej = if ((eg == bJ)) | |
772 | + | then $Tuple7((bP - eh), (bR - ei), ed, ei, 0, 0, (eh + ed)) | |
773 | + | else if ((eg == bK)) | |
774 | + | then $Tuple7((bP - eh), (bR - ei), 0, 0, ed, eh, (ei + ed)) | |
799 | 775 | else throw("wrong outAssetId") | |
800 | - | let | |
801 | - | let | |
802 | - | let | |
803 | - | let | |
804 | - | let | |
805 | - | let | |
806 | - | let | |
807 | - | if (if ((0 > | |
776 | + | let dQ = ej._1 | |
777 | + | let dR = ej._2 | |
778 | + | let dS = ej._3 | |
779 | + | let dT = ej._4 | |
780 | + | let dU = ej._5 | |
781 | + | let dV = ej._6 | |
782 | + | let ek = ej._7 | |
783 | + | if (if ((0 > dS)) | |
808 | 784 | then true | |
809 | - | else (0 > | |
785 | + | else (0 > dU)) | |
810 | 786 | then throw("Wrong calc") | |
811 | 787 | else { | |
812 | - | let bi = invoke( | |
813 | - | let bh = invoke( | |
814 | - | let | |
815 | - | if (( | |
788 | + | let bi = invoke(dK, "calcD", [toString(dQ), toString(dR), ay, g, h], nil) | |
789 | + | let bh = invoke(dK, "calcD", [toString(((dQ - dS) + dV)), toString(((dR + dT) - dU)), ay, g, h], nil) | |
790 | + | let dW = bg(parseBigIntValue(aq(bh)), parseBigIntValue(aq(bi)), f) | |
791 | + | if ((dW == dW)) | |
816 | 792 | then { | |
817 | - | let | |
818 | - | if (( | |
793 | + | let el = ba(toBigInt(ek), toBigInt(ef), toBigInt(bd)) | |
794 | + | if ((el == el)) | |
819 | 795 | then { | |
820 | - | let | |
821 | - | then $Tuple2(toInt( | |
822 | - | else $Tuple2(0, toInt( | |
823 | - | let | |
824 | - | let | |
825 | - | let | |
826 | - | let | |
827 | - | let | |
796 | + | let em = if ((eg == bJ)) | |
797 | + | then $Tuple2(toInt(el._2), 0) | |
798 | + | else $Tuple2(0, toInt(el._2)) | |
799 | + | let en = em._1 | |
800 | + | let eo = em._2 | |
801 | + | let ep = aX(B(bR, bM), B(bP, bL)) | |
802 | + | let eq = E(ep, a) | |
803 | + | let cb = [ScriptTransfer(bH, (en + eo), if ((eg == "WAVES")) | |
828 | 804 | then unit | |
829 | - | else fromBase58String( | |
830 | - | if (( | |
805 | + | else fromBase58String(eg)), StringEntry(W(toString(bH), bE), aR(en, eo, ck, eq, height, lastBlock.timestamp)), IntegerEntry(P(), eq), IntegerEntry(Q(height, lastBlock.timestamp), eq)] | |
806 | + | if ((cb == cb)) | |
831 | 807 | then { | |
832 | - | let | |
833 | - | if (( | |
834 | - | then | |
808 | + | let er = invoke(ax, "burn", [ck], [AttachedPayment(bF, ck)]) | |
809 | + | if ((er == er)) | |
810 | + | then cb | |
835 | 811 | else throw("Strict value is not equal to itself.") | |
836 | 812 | } | |
837 | 813 | else throw("Strict value is not equal to itself.") | |
846 | 822 | ||
847 | 823 | ||
848 | 824 | ||
849 | - | @Callable( | |
850 | - | func getNoLess ( | |
851 | - | let | |
852 | - | let | |
853 | - | let | |
854 | - | let | |
855 | - | let | |
856 | - | let | |
857 | - | if (( | |
858 | - | then throw(((("Failed: " + toString( | |
859 | - | else if (( | |
860 | - | then throw(((("Failed: " + toString( | |
825 | + | @Callable(de) | |
826 | + | func getNoLess (es,et) = { | |
827 | + | let cw = dd(de) | |
828 | + | let bZ = cw._1 | |
829 | + | let ca = cw._2 | |
830 | + | let ck = cw._3 | |
831 | + | let bF = cw._4 | |
832 | + | let cb = cw._5 | |
833 | + | if ((es > bZ)) | |
834 | + | then throw(((("Failed: " + toString(bZ)) + " < ") + toString(es))) | |
835 | + | else if ((et > ca)) | |
836 | + | then throw(((("Failed: " + toString(ca)) + " < ") + toString(et))) | |
861 | 837 | else { | |
862 | - | let | |
863 | - | if (( | |
864 | - | then | |
838 | + | let eu = invoke(ax, "burn", [ck], [AttachedPayment(bF, ck)]) | |
839 | + | if ((eu == eu)) | |
840 | + | then cb | |
865 | 841 | else throw("Strict value is not equal to itself.") | |
866 | 842 | } | |
867 | 843 | } | |
868 | 844 | ||
869 | 845 | ||
870 | 846 | ||
871 | - | @Callable( | |
872 | - | func unstakeAndGet ( | |
873 | - | let | |
847 | + | @Callable(de) | |
848 | + | func unstakeAndGet (ev) = { | |
849 | + | let ew = if ((size(de.payments) != 0)) | |
874 | 850 | then throw("No pmnts expd") | |
875 | 851 | else true | |
876 | - | if (( | |
852 | + | if ((ew == ew)) | |
877 | 853 | then { | |
878 | - | let | |
879 | - | let | |
880 | - | let | |
881 | - | let | |
882 | - | let | |
883 | - | if (( | |
854 | + | let bu = aB() | |
855 | + | let ex = aF() | |
856 | + | let dA = fromBase58String(bu[q]) | |
857 | + | let ey = valueOrErrorMessage(addressFromString(ex[x]), "Wr st addr") | |
858 | + | let ez = invoke(ey, "unstake", [toBase58String(dA), ev], nil) | |
859 | + | if ((ez == ez)) | |
884 | 860 | then { | |
885 | - | let | |
886 | - | let | |
887 | - | let | |
888 | - | let | |
861 | + | let cw = bD(toBase58String(de.transactionId), toBase58String(dA), ev, de.caller) | |
862 | + | let bN = parseIntValue(cw._9) | |
863 | + | let cb = cw._10 | |
864 | + | let eA = if (if (az()) | |
889 | 865 | then true | |
890 | - | else ( | |
891 | - | then throw(("Blocked: " + toString( | |
866 | + | else (bN == n)) | |
867 | + | then throw(("Blocked: " + toString(bN))) | |
892 | 868 | else true | |
893 | - | if (( | |
869 | + | if ((eA == eA)) | |
894 | 870 | then { | |
895 | - | let | |
896 | - | if (( | |
897 | - | then | |
871 | + | let eB = invoke(ax, "burn", [ev], [AttachedPayment(dA, ev)]) | |
872 | + | if ((eB == eB)) | |
873 | + | then cb | |
898 | 874 | else throw("Strict value is not equal to itself.") | |
899 | 875 | } | |
900 | 876 | else throw("Strict value is not equal to itself.") | |
906 | 882 | ||
907 | 883 | ||
908 | 884 | ||
909 | - | @Callable( | |
910 | - | func activate ( | |
885 | + | @Callable(de) | |
886 | + | func activate (eC,eD) = if ((toString(de.caller) != toString(ax))) | |
911 | 887 | then throw("denied") | |
912 | - | else $Tuple2([StringEntry(X(), | |
888 | + | else $Tuple2([StringEntry(X(), eC), StringEntry(Y(), eD)], "success") | |
913 | 889 | ||
914 | 890 | ||
915 | 891 | ||
916 | - | @Callable( | |
917 | - | func setS ( | |
918 | - | then | |
919 | - | else [StringEntry( | |
892 | + | @Callable(de) | |
893 | + | func setS (eE,eA) = if ((toString(de.caller) != at(this, aa()))) | |
894 | + | then dm | |
895 | + | else [StringEntry(eE, eA)] | |
920 | 896 | ||
921 | 897 | ||
922 | 898 | ||
923 | - | @Callable( | |
924 | - | func setI ( | |
925 | - | then | |
926 | - | else [IntegerEntry( | |
899 | + | @Callable(de) | |
900 | + | func setI (eE,eA) = if ((toString(de.caller) != at(this, aa()))) | |
901 | + | then dm | |
902 | + | else [IntegerEntry(eE, eA)] | |
927 | 903 | ||
928 | 904 | ||
929 | 905 | ||
930 | - | @Callable( | |
906 | + | @Callable(de) | |
931 | 907 | func getPoolConfigWrapperREADONLY () = $Tuple2(nil, aB()) | |
932 | 908 | ||
933 | 909 | ||
934 | 910 | ||
935 | - | @Callable( | |
911 | + | @Callable(de) | |
936 | 912 | func getAccBalanceWrapperREADONLY (aW) = $Tuple2(nil, aV(aW)) | |
937 | 913 | ||
938 | 914 | ||
939 | 915 | ||
940 | - | @Callable( | |
941 | - | func calcPricesWrapperREADONLY (bp, | |
942 | - | let | |
943 | - | $Tuple2(nil, [toString( | |
916 | + | @Callable(de) | |
917 | + | func calcPricesWrapperREADONLY (bo,bp,bt) = { | |
918 | + | let eF = bs(bo, bp, bt) | |
919 | + | $Tuple2(nil, [toString(eF[0]), toString(eF[1]), toString(eF[2])]) | |
944 | 920 | } | |
945 | 921 | ||
946 | 922 | ||
947 | 923 | ||
948 | - | @Callable( | |
949 | - | func fromX18WrapperREADONLY (F, | |
924 | + | @Callable(de) | |
925 | + | func fromX18WrapperREADONLY (F,eG) = $Tuple2(nil, E(parseBigIntValue(F), eG)) | |
950 | 926 | ||
951 | 927 | ||
952 | 928 | ||
953 | - | @Callable( | |
929 | + | @Callable(de) | |
954 | 930 | func toX18WrapperREADONLY (C,D) = $Tuple2(nil, toString(B(C, D))) | |
955 | 931 | ||
956 | 932 | ||
957 | 933 | ||
958 | - | @Callable( | |
934 | + | @Callable(de) | |
959 | 935 | func calcPriceBigIntWrapperREADONLY (aY,aZ) = $Tuple2(nil, toString(aX(parseBigIntValue(aY), parseBigIntValue(aZ)))) | |
960 | 936 | ||
961 | 937 | ||
962 | 938 | ||
963 | - | @Callable( | |
964 | - | func estimatePutOperationWrapperREADONLY ( | |
939 | + | @Callable(de) | |
940 | + | func estimatePutOperationWrapperREADONLY (bE,bd,cd,ce,cf,cg,eH,ch,ci) = $Tuple2(nil, cc(bE, bd, cd, ce, cf, cg, eH, ch, ci, false, 0, "")) | |
965 | 941 | ||
966 | 942 | ||
967 | 943 | ||
968 | - | @Callable( | |
969 | - | func estimateGetOperationWrapperREADONLY ( | |
970 | - | let | |
971 | - | $Tuple2(nil, $Tuple10( | |
944 | + | @Callable(de) | |
945 | + | func estimateGetOperationWrapperREADONLY (bE,eI,bG,eH) = { | |
946 | + | let cw = bD(bE, eI, bG, addressFromStringValue(eH)) | |
947 | + | $Tuple2(nil, $Tuple10(cw._1, cw._2, cw._3, cw._4, cw._5, cw._6, cw._7, toString(cw._8), cw._9, cw._10)) | |
972 | 948 | } | |
973 | 949 | ||
974 | 950 | ||
975 | - | @Verifier( | |
976 | - | func | |
977 | - | let ar = | |
951 | + | @Verifier(eJ) | |
952 | + | func eK () = { | |
953 | + | let ar = eJ | |
978 | 954 | if ($isInstanceOf(ar, "Order")) | |
979 | 955 | then { | |
980 | - | let | |
981 | - | let | |
982 | - | let an = cR | |
983 | - | let | |
984 | - | let | |
956 | + | let cR = ar | |
957 | + | let eL = aA() | |
958 | + | let an = cQ(cR) | |
959 | + | let eM = sigVerify(cR.bodyBytes, cR.proofs[0], cR.senderPublicKey) | |
960 | + | let eN = sigVerify(cR.bodyBytes, cR.proofs[1], eL) | |
985 | 961 | if (if (if (an) | |
986 | - | then | |
962 | + | then eM | |
987 | 963 | else false) | |
988 | - | then | |
964 | + | then eN | |
989 | 965 | else false) | |
990 | 966 | then true | |
991 | - | else am(an, | |
967 | + | else am(an, eM, eN) | |
992 | 968 | } | |
993 | 969 | else { | |
994 | - | let | |
995 | - | let | |
996 | - | if ($isInstanceOf( | |
970 | + | let eO = { | |
971 | + | let eP = dj() | |
972 | + | if ($isInstanceOf(eP, "ByteVector")) | |
997 | 973 | then { | |
998 | - | let | |
999 | - | | |
974 | + | let do = eP | |
975 | + | do | |
1000 | 976 | } | |
1001 | - | else if ($isInstanceOf( | |
1002 | - | then | |
977 | + | else if ($isInstanceOf(eP, "Unit")) | |
978 | + | then eJ.senderPublicKey | |
1003 | 979 | else throw("Match error") | |
1004 | 980 | } | |
1005 | - | sigVerify( | |
981 | + | sigVerify(eJ.bodyBytes, eJ.proofs[0], eO) | |
1006 | 982 | } | |
1007 | 983 | } | |
1008 | 984 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
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 = "%s__delay" | |
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 | func ab (ac) = makeString(["%s%s__lastGetOneTknCall", ac], i) | |
106 | 106 | ||
107 | 107 | ||
108 | 108 | func ad (ac) = makeString(["%s%s__lastPutOneTknCall", ac], i) | |
109 | 109 | ||
110 | 110 | ||
111 | 111 | func ae () = "%s__factoryConfig" | |
112 | 112 | ||
113 | 113 | ||
114 | 114 | func af () = "%s%s__matcher__publicKey" | |
115 | 115 | ||
116 | 116 | ||
117 | 117 | func ag (ah,ai) = (((("%d%d%s__" + ah) + "__") + ai) + "__config") | |
118 | 118 | ||
119 | 119 | ||
120 | 120 | func aj (ak) = ("%s%s%s__mappings__baseAsset2internalId__" + ak) | |
121 | 121 | ||
122 | 122 | ||
123 | 123 | func al () = "%s__shutdown" | |
124 | 124 | ||
125 | 125 | ||
126 | 126 | func am (an,ao,ap) = throw(((((("Failed: ordValid=" + toString(an)) + " sndrValid=") + toString(ao)) + " mtchrValid=") + toString(ap))) | |
127 | 127 | ||
128 | 128 | ||
129 | 129 | func aq (F) = { | |
130 | 130 | let ar = F | |
131 | 131 | if ($isInstanceOf(ar, "String")) | |
132 | 132 | then { | |
133 | 133 | let as = ar | |
134 | 134 | as | |
135 | 135 | } | |
136 | 136 | else throw("fail cast to String") | |
137 | 137 | } | |
138 | 138 | ||
139 | 139 | ||
140 | 140 | func at (au,av) = valueOrErrorMessage(getString(au, av), makeString(["mandatory ", toString(au), ".", av, " not defined"], "")) | |
141 | 141 | ||
142 | 142 | ||
143 | 143 | func aw (au,av) = valueOrErrorMessage(getInteger(au, av), makeString(["mandatory ", toString(au), ".", av, " not defined"], "")) | |
144 | 144 | ||
145 | 145 | ||
146 | 146 | let ax = addressFromStringValue(at(this, M())) | |
147 | 147 | ||
148 | 148 | let ay = at(this, Z()) | |
149 | 149 | ||
150 | 150 | func az () = valueOrElse(getBoolean(ax, al()), false) | |
151 | 151 | ||
152 | 152 | ||
153 | 153 | func aA () = fromBase58String(at(ax, af())) | |
154 | 154 | ||
155 | 155 | ||
156 | 156 | func aB () = { | |
157 | 157 | let aC = at(this, X()) | |
158 | 158 | let aD = at(this, Y()) | |
159 | 159 | let aE = aw(ax, aj(aD)) | |
160 | 160 | let ah = aw(ax, aj(aC)) | |
161 | 161 | split(at(ax, ag(toString(ah), toString(aE))), i) | |
162 | 162 | } | |
163 | 163 | ||
164 | 164 | ||
165 | 165 | func aF () = split(at(ax, ae()), i) | |
166 | 166 | ||
167 | 167 | ||
168 | 168 | func aG (aH,aI,aJ,aK,aL,aM,aN,aO,aP,aQ) = makeString(["%d%d%d%d%d%d%d%d%d%d", toString(aH), toString(aI), toString(aJ), toString(aK), toString(aL), toString(aM), toString(aN), toString(aO), toString(aP), toString(aQ)], i) | |
169 | 169 | ||
170 | 170 | ||
171 | 171 | func aR (aS,aT,aU,aK,aN,aO) = makeString(["%d%d%d%d%d%d", toString(aS), toString(aT), toString(aU), toString(aK), toString(aN), toString(aO)], i) | |
172 | 172 | ||
173 | 173 | ||
174 | 174 | func aV (aW) = if ((aW == "WAVES")) | |
175 | 175 | then wavesBalance(this).available | |
176 | 176 | else assetBalance(this, fromBase58String(aW)) | |
177 | 177 | ||
178 | 178 | ||
179 | 179 | func aX (aY,aZ) = fraction(aY, c, aZ) | |
180 | 180 | ||
181 | 181 | ||
182 | 182 | func ba (bb,bc,bd) = { | |
183 | 183 | let be = fraction((bb - bc), b, bc) | |
184 | 184 | let bf = ((bd - L(be)) > d) | |
185 | 185 | if (!(bf)) | |
186 | 186 | then throw(("Big slpg: " + toString(be))) | |
187 | 187 | else $Tuple2(bf, min([bb, bc])) | |
188 | 188 | } | |
189 | 189 | ||
190 | 190 | ||
191 | 191 | func bg (bh,bi,bj) = { | |
192 | 192 | let be = fraction(bi, b, bh) | |
193 | - | if ((be == be)) | |
194 | - | then { | |
195 | - | let bk = throw("after diff error") | |
196 | - | if ((bk == bk)) | |
197 | - | then { | |
198 | - | let bl = (bj > be) | |
199 | - | if (if (bl) | |
200 | - | then true | |
201 | - | else (bi > bh)) | |
202 | - | then throw(((((((toString(bi) + " ") + toString(bh)) + " ") + toString(be)) + " ") + toString(bj))) | |
203 | - | else bl | |
204 | - | } | |
205 | - | else throw("Strict value is not equal to itself.") | |
206 | - | } | |
207 | - | else throw("Strict value is not equal to itself.") | |
193 | + | let bk = (bj > be) | |
194 | + | if (if (bk) | |
195 | + | then true | |
196 | + | else (bi > bh)) | |
197 | + | then throw(((((((toString(bi) + " ") + toString(bh)) + " ") + toString(be)) + " ") + toString(bj))) | |
198 | + | else bk | |
208 | 199 | } | |
209 | 200 | ||
210 | 201 | ||
211 | - | func bm (bn,bo,bp,bq) = { | |
202 | + | func bl (bm,bn,bo,bp) = { | |
203 | + | let bq = B(bo, bm) | |
212 | 204 | let br = B(bp, bn) | |
213 | - | let bs = B(bq, bo) | |
214 | - | aX(bs, br) | |
205 | + | aX(br, bq) | |
215 | 206 | } | |
216 | 207 | ||
217 | 208 | ||
218 | - | func | |
219 | - | let | |
220 | - | let | |
221 | - | let | |
222 | - | let | |
223 | - | let aZ = B( | |
224 | - | let aY = B( | |
225 | - | let | |
226 | - | let | |
227 | - | let | |
228 | - | [ | |
209 | + | func bs (bo,bp,bt) = { | |
210 | + | let bu = aB() | |
211 | + | let bv = parseIntValue(bu[t]) | |
212 | + | let bw = parseIntValue(bu[u]) | |
213 | + | let bx = bl(bv, bw, bo, bp) | |
214 | + | let aZ = B(bo, bv) | |
215 | + | let aY = B(bp, bw) | |
216 | + | let by = B(bt, a) | |
217 | + | let bz = aX(aZ, by) | |
218 | + | let bA = aX(aY, by) | |
219 | + | [bx, bz, bA] | |
229 | 220 | } | |
230 | 221 | ||
231 | 222 | ||
232 | - | func | |
233 | - | let | |
234 | - | [E( | |
223 | + | func bB (bo,bp,bt) = { | |
224 | + | let bC = bs(bo, bp, bt) | |
225 | + | [E(bC[0], a), E(bC[1], a), E(bC[2], a)] | |
235 | 226 | } | |
236 | 227 | ||
237 | 228 | ||
238 | - | func | |
239 | - | let | |
240 | - | let | |
241 | - | let | |
242 | - | let | |
243 | - | let | |
244 | - | let | |
245 | - | let | |
246 | - | let | |
247 | - | if (( | |
229 | + | func bD (bE,bF,bG,bH) = { | |
230 | + | let bu = aB() | |
231 | + | let bI = bu[q] | |
232 | + | let bJ = bu[r] | |
233 | + | let bK = bu[s] | |
234 | + | let bL = parseIntValue(bu[t]) | |
235 | + | let bM = parseIntValue(bu[u]) | |
236 | + | let bN = bu[p] | |
237 | + | let bO = valueOrErrorMessage(assetInfo(fromBase58String(bI)), "Wrong LP id").quantity | |
238 | + | if ((bI != bF)) | |
248 | 239 | then throw("Wrong pmt asset") | |
249 | 240 | else { | |
250 | - | let bQ = aV(bK) | |
251 | - | let bR = B(bQ, bM) | |
252 | - | let bS = aV(bL) | |
253 | - | let bT = B(bS, bN) | |
254 | - | let bU = aX(bT, bR) | |
255 | - | let bV = E(bU, a) | |
256 | - | let bW = B(bH, a) | |
257 | - | let bX = B(bP, a) | |
258 | - | let bY = fraction(bR, bW, bX) | |
259 | - | let bZ = fraction(bT, bW, bX) | |
241 | + | let bP = aV(bJ) | |
242 | + | let bQ = B(bP, bL) | |
243 | + | let bR = aV(bK) | |
244 | + | let bS = B(bR, bM) | |
245 | + | let bT = aX(bS, bQ) | |
246 | + | let bU = E(bT, a) | |
247 | + | let bV = B(bG, a) | |
248 | + | let bW = B(bO, a) | |
249 | + | let bX = fraction(bQ, bV, bW) | |
250 | + | let bY = fraction(bS, bV, bW) | |
251 | + | let bZ = E(bX, bL) | |
260 | 252 | let ca = E(bY, bM) | |
261 | - | let cb = E(bZ, bN) | |
262 | - | let cc = if ((bF == "")) | |
253 | + | let cb = if ((bE == "")) | |
263 | 254 | then nil | |
264 | - | else [ScriptTransfer( | |
255 | + | else [ScriptTransfer(bH, bZ, if ((bJ == "WAVES")) | |
265 | 256 | then unit | |
266 | - | else fromBase58String( | |
257 | + | else fromBase58String(bJ)), ScriptTransfer(bH, ca, if ((bK == "WAVES")) | |
267 | 258 | then unit | |
268 | - | else fromBase58String( | |
269 | - | $Tuple10(ca, | |
259 | + | else fromBase58String(bK)), StringEntry(W(toString(bH), bE), aR(bZ, ca, bG, bU, height, lastBlock.timestamp)), IntegerEntry(P(), bU), IntegerEntry(Q(height, lastBlock.timestamp), bU)] | |
260 | + | $Tuple10(bZ, ca, bJ, bK, bP, bR, bO, bT, bN, cb) | |
270 | 261 | } | |
271 | 262 | } | |
272 | 263 | ||
273 | 264 | ||
274 | - | func cd (bF,bd,ce,cf,cg,ch,bI,ci,cj,ck,cl,cm) = { | |
275 | - | let bv = aB() | |
276 | - | let bJ = fromBase58String(bv[q]) | |
277 | - | let cn = bv[r] | |
278 | - | let co = bv[s] | |
279 | - | let cp = bv[v] | |
280 | - | let cq = bv[w] | |
281 | - | let cr = parseIntValue(bv[t]) | |
282 | - | let cs = parseIntValue(bv[u]) | |
283 | - | let bO = bv[p] | |
284 | - | let ct = valueOrErrorMessage(assetInfo(bJ), "Wr lp as").quantity | |
285 | - | let bQ = if (ci) | |
265 | + | func cc (bE,bd,cd,ce,cf,cg,bH,ch,ci,cj,ck,cl) = { | |
266 | + | let bu = aB() | |
267 | + | let bI = fromBase58String(bu[q]) | |
268 | + | let cm = bu[r] | |
269 | + | let cn = bu[s] | |
270 | + | let co = bu[v] | |
271 | + | let cp = bu[w] | |
272 | + | let cq = parseIntValue(bu[t]) | |
273 | + | let cr = parseIntValue(bu[u]) | |
274 | + | let bN = bu[p] | |
275 | + | let cs = valueOrErrorMessage(assetInfo(bI), "Wr lp as").quantity | |
276 | + | let bP = if (ch) | |
277 | + | then aV(cm) | |
278 | + | else if (if (cj) | |
279 | + | then (cl == cm) | |
280 | + | else false) | |
281 | + | then (aV(cm) - ck) | |
282 | + | else if (cj) | |
283 | + | then aV(cm) | |
284 | + | else (aV(cm) - cd) | |
285 | + | let bR = if (ch) | |
286 | 286 | then aV(cn) | |
287 | - | else if (if ( | |
288 | - | then ( | |
287 | + | else if (if (cj) | |
288 | + | then (cl == cn) | |
289 | 289 | else false) | |
290 | - | then (aV(cn) - | |
291 | - | else if ( | |
290 | + | then (aV(cn) - ck) | |
291 | + | else if (cj) | |
292 | 292 | then aV(cn) | |
293 | - | else (aV(cn) - ce) | |
294 | - | let bS = if (ci) | |
295 | - | then aV(co) | |
296 | - | else if (if (ck) | |
297 | - | then (cm == co) | |
298 | - | else false) | |
299 | - | then (aV(co) - cl) | |
300 | - | else if (ck) | |
301 | - | then aV(co) | |
302 | - | else (aV(co) - cg) | |
303 | - | let cu = B(ce, cr) | |
304 | - | let cv = B(cg, cs) | |
305 | - | let cw = aX(cv, cu) | |
306 | - | let bR = B(bQ, cr) | |
307 | - | let bT = B(bS, cs) | |
308 | - | let cx = if ((ct == 0)) | |
293 | + | else (aV(cn) - cf) | |
294 | + | let ct = B(cd, cq) | |
295 | + | let cu = B(cf, cr) | |
296 | + | let cv = aX(cu, ct) | |
297 | + | let bQ = B(bP, cq) | |
298 | + | let bS = B(bR, cr) | |
299 | + | let cw = if ((cs == 0)) | |
309 | 300 | then { | |
310 | - | let | |
311 | - | let | |
312 | - | let | |
313 | - | $Tuple5(E( | |
301 | + | let bT = d | |
302 | + | let cx = d | |
303 | + | let by = pow((ct * cu), 0, toBigInt(5), 1, 0, DOWN) | |
304 | + | $Tuple5(E(by, a), E(ct, cq), E(cu, cr), aX((bS + cu), (bQ + ct)), cx) | |
314 | 305 | } | |
315 | 306 | else { | |
316 | - | let | |
317 | - | let | |
318 | - | let | |
319 | - | if (if (( | |
320 | - | then ( | |
307 | + | let bT = aX(bS, bQ) | |
308 | + | let cy = fraction(L((bT - cv)), c, bT) | |
309 | + | let cx = B(bd, a) | |
310 | + | if (if ((bT != d)) | |
311 | + | then (cy > cx) | |
321 | 312 | else false) | |
322 | - | then throw(((("Price slippage " + toString( | |
313 | + | then throw(((("Price slippage " + toString(cy)) + " > ") + toString(cx))) | |
323 | 314 | else { | |
324 | - | let | |
325 | - | let | |
326 | - | let | |
327 | - | let | |
328 | - | then $Tuple2( | |
329 | - | else $Tuple2( | |
330 | - | let | |
331 | - | let | |
332 | - | let | |
333 | - | $Tuple5(E( | |
315 | + | let cz = B(cs, a) | |
316 | + | let cA = fraction(ct, bT, c) | |
317 | + | let cB = fraction(cu, c, bT) | |
318 | + | let cC = if ((cA > cu)) | |
319 | + | then $Tuple2(cB, cu) | |
320 | + | else $Tuple2(ct, cA) | |
321 | + | let cD = cC._1 | |
322 | + | let cE = cC._2 | |
323 | + | let by = fraction(cz, cE, bS) | |
324 | + | $Tuple5(E(by, a), E(cD, cq), E(cE, cr), bT, cx) | |
334 | 325 | } | |
335 | 326 | } | |
336 | - | let | |
337 | - | let | |
338 | - | let | |
339 | - | let | |
340 | - | let | |
341 | - | if ((0 >= | |
327 | + | let cF = cw._1 | |
328 | + | let cG = cw._2 | |
329 | + | let cH = cw._3 | |
330 | + | let bU = E(cw._4, a) | |
331 | + | let cI = E(cw._5, a) | |
332 | + | if ((0 >= cF)) | |
342 | 333 | then throw("LP <= 0") | |
343 | 334 | else { | |
344 | - | let | |
335 | + | let cJ = if (!(ci)) | |
345 | 336 | then 0 | |
346 | - | else | |
347 | - | let | |
348 | - | let | |
349 | - | let | |
350 | - | then ( | |
337 | + | else cF | |
338 | + | let cK = (cd - cG) | |
339 | + | let cL = (cf - cH) | |
340 | + | let cM = if (if (cj) | |
341 | + | then (cl == cm) | |
351 | 342 | else false) | |
352 | - | then $Tuple2( | |
353 | - | else if (if ( | |
354 | - | then ( | |
343 | + | then $Tuple2(ck, 0) | |
344 | + | else if (if (cj) | |
345 | + | then (cl == cn) | |
355 | 346 | else false) | |
356 | - | then $Tuple2(0, | |
357 | - | else $Tuple2( | |
358 | - | let | |
359 | - | let | |
360 | - | let | |
361 | - | $Tuple13( | |
347 | + | then $Tuple2(0, ck) | |
348 | + | else $Tuple2(cG, cH) | |
349 | + | let cN = cM._1 | |
350 | + | let cO = cM._2 | |
351 | + | let cP = [IntegerEntry(P(), bU), IntegerEntry(Q(height, lastBlock.timestamp), bU), StringEntry(T(bH, bE), aG(cN, cO, cJ, bU, bd, cI, height, lastBlock.timestamp, cK, cL))] | |
352 | + | $Tuple13(cF, cJ, bU, bP, bR, cs, bI, bN, cP, cK, cL, ce, cg) | |
362 | 353 | } | |
363 | 354 | } | |
364 | 355 | ||
365 | 356 | ||
366 | - | func cR (cS) = { | |
367 | - | let bv = aB() | |
368 | - | let cT = bv[r] | |
369 | - | let cU = bv[s] | |
370 | - | let bO = parseIntValue(bv[p]) | |
371 | - | let bw = parseIntValue(bv[t]) | |
372 | - | let bx = parseIntValue(bv[u]) | |
357 | + | func cQ (cR) = { | |
358 | + | let bu = aB() | |
359 | + | let cS = bu[r] | |
360 | + | let cT = bu[s] | |
361 | + | let bN = parseIntValue(bu[p]) | |
362 | + | let bv = parseIntValue(bu[t]) | |
363 | + | let bw = parseIntValue(bu[u]) | |
364 | + | let cU = aV(cS) | |
373 | 365 | let cV = aV(cT) | |
374 | - | let cW = aV(cU) | |
375 | - | let bU = if ((cS.orderType == Buy)) | |
376 | - | then bm(bw, bx, (cV + cS.amount), cW) | |
377 | - | else bm(bw, bx, (cV - cS.amount), cW) | |
378 | - | let bV = E(bU, a) | |
366 | + | let bT = if ((cR.orderType == Buy)) | |
367 | + | then bl(bv, bw, (cU + cR.amount), cV) | |
368 | + | else bl(bv, bw, (cU - cR.amount), cV) | |
369 | + | let bU = E(bT, a) | |
379 | 370 | if (if (if (az()) | |
380 | 371 | then true | |
381 | - | else ( | |
372 | + | else (bN == m)) | |
382 | 373 | then true | |
383 | - | else ( | |
374 | + | else (bN == n)) | |
384 | 375 | then throw("Admin blocked") | |
385 | 376 | else { | |
386 | - | let | |
387 | - | let | |
377 | + | let cW = cR.assetPair.amountAsset | |
378 | + | let cX = if ((cW == unit)) | |
388 | 379 | then "WAVES" | |
389 | - | else toBase58String(value( | |
390 | - | let | |
391 | - | let | |
380 | + | else toBase58String(value(cW)) | |
381 | + | let cY = cR.assetPair.priceAsset | |
382 | + | let cZ = if ((cY == unit)) | |
392 | 383 | then "WAVES" | |
393 | - | else toBase58String(value( | |
394 | - | if (if (( | |
384 | + | else toBase58String(value(cY)) | |
385 | + | if (if ((cX != cS)) | |
395 | 386 | then true | |
396 | - | else ( | |
387 | + | else (cZ != cT)) | |
397 | 388 | then throw("Wr assets") | |
398 | 389 | else { | |
399 | - | let | |
400 | - | let | |
401 | - | let | |
402 | - | let | |
403 | - | then ( | |
404 | - | else ( | |
390 | + | let da = cR.price | |
391 | + | let cr = fraction(a, bw, bv) | |
392 | + | let db = H(da, a, cr) | |
393 | + | let dc = if ((cR.orderType == Buy)) | |
394 | + | then (bU >= db) | |
395 | + | else (db >= bU) | |
405 | 396 | true | |
406 | 397 | } | |
407 | 398 | } | |
408 | 399 | } | |
409 | 400 | ||
410 | 401 | ||
411 | - | func | |
402 | + | func dd (de) = if ((size(de.payments) != 1)) | |
412 | 403 | then throw("1 pmnt exp") | |
413 | 404 | else { | |
414 | - | let | |
415 | - | let | |
416 | - | let | |
417 | - | let | |
418 | - | let | |
419 | - | let | |
420 | - | let | |
421 | - | let | |
405 | + | let df = value(de.payments[0]) | |
406 | + | let bF = value(df.assetId) | |
407 | + | let ck = df.amount | |
408 | + | let cw = bD(toBase58String(de.transactionId), toBase58String(bF), ck, de.caller) | |
409 | + | let bZ = cw._1 | |
410 | + | let ca = cw._2 | |
411 | + | let bN = parseIntValue(cw._9) | |
412 | + | let cb = cw._10 | |
422 | 413 | if (if (az()) | |
423 | 414 | then true | |
424 | - | else ( | |
425 | - | then throw(("Admin blocked: " + toString( | |
426 | - | else $Tuple5(ca, | |
415 | + | else (bN == n)) | |
416 | + | then throw(("Admin blocked: " + toString(bN))) | |
417 | + | else $Tuple5(bZ, ca, ck, bF, cb) | |
427 | 418 | } | |
428 | 419 | ||
429 | 420 | ||
430 | - | func | |
431 | - | let | |
432 | - | let | |
421 | + | func dg (ac,V,dh,di,bd,ci,cj,ck,cl) = { | |
422 | + | let cw = cc(V, bd, value(dh).amount, value(dh).assetId, value(di).amount, value(di).assetId, ac, false, ci, cj, ck, cl) | |
423 | + | let bN = parseIntValue(cw._8) | |
433 | 424 | if (if (if (az()) | |
434 | 425 | then true | |
435 | - | else ( | |
426 | + | else (bN == l)) | |
436 | 427 | then true | |
437 | - | else ( | |
438 | - | then throw(("Blocked:" + toString( | |
439 | - | else | |
428 | + | else (bN == n)) | |
429 | + | then throw(("Blocked:" + toString(bN))) | |
430 | + | else cw | |
440 | 431 | } | |
441 | 432 | ||
442 | 433 | ||
443 | - | func | |
434 | + | func dj () = { | |
444 | 435 | let ar = getString(N()) | |
445 | 436 | if ($isInstanceOf(ar, "String")) | |
446 | 437 | then { | |
447 | - | let | |
448 | - | fromBase58String( | |
438 | + | let dk = ar | |
439 | + | fromBase58String(dk) | |
449 | 440 | } | |
450 | 441 | else if ($isInstanceOf(ar, "Unit")) | |
451 | 442 | then unit | |
452 | 443 | else throw("Match error") | |
453 | 444 | } | |
454 | 445 | ||
455 | 446 | ||
456 | - | func | |
447 | + | func dl () = { | |
457 | 448 | let ar = getString(O()) | |
458 | 449 | if ($isInstanceOf(ar, "String")) | |
459 | 450 | then { | |
460 | - | let | |
461 | - | fromBase58String( | |
451 | + | let dk = ar | |
452 | + | fromBase58String(dk) | |
462 | 453 | } | |
463 | 454 | else if ($isInstanceOf(ar, "Unit")) | |
464 | 455 | then unit | |
465 | 456 | else throw("Match error") | |
466 | 457 | } | |
467 | 458 | ||
468 | 459 | ||
469 | - | let | |
460 | + | let dm = throw("Permission denied") | |
470 | 461 | ||
471 | - | func | |
472 | - | let ar = | |
462 | + | func dn (de) = { | |
463 | + | let ar = dj() | |
473 | 464 | if ($isInstanceOf(ar, "ByteVector")) | |
474 | 465 | then { | |
475 | - | let | |
476 | - | if (( | |
466 | + | let do = ar | |
467 | + | if ((de.callerPublicKey == do)) | |
477 | 468 | then true | |
478 | - | else | |
469 | + | else dm | |
479 | 470 | } | |
480 | 471 | else if ($isInstanceOf(ar, "Unit")) | |
481 | - | then if (( | |
472 | + | then if ((de.caller == this)) | |
482 | 473 | then true | |
483 | - | else | |
474 | + | else dm | |
484 | 475 | else throw("Match error") | |
485 | 476 | } | |
486 | 477 | ||
487 | 478 | ||
488 | - | @Callable( | |
479 | + | @Callable(de) | |
489 | 480 | func constructor (M) = { | |
490 | - | let | |
491 | - | if (( | |
481 | + | let dp = dn(de) | |
482 | + | if ((dp == dp)) | |
492 | 483 | then [StringEntry(M(), M)] | |
493 | 484 | else throw("Strict value is not equal to itself.") | |
494 | 485 | } | |
495 | 486 | ||
496 | 487 | ||
497 | 488 | ||
498 | - | @Callable( | |
499 | - | func setManager ( | |
500 | - | let | |
501 | - | if (( | |
489 | + | @Callable(de) | |
490 | + | func setManager (dq) = { | |
491 | + | let dp = dn(de) | |
492 | + | if ((dp == dp)) | |
502 | 493 | then { | |
503 | - | let | |
504 | - | if (( | |
505 | - | then [StringEntry(O(), | |
494 | + | let dr = fromBase58String(dq) | |
495 | + | if ((dr == dr)) | |
496 | + | then [StringEntry(O(), dq)] | |
506 | 497 | else throw("Strict value is not equal to itself.") | |
507 | 498 | } | |
508 | 499 | else throw("Strict value is not equal to itself.") | |
509 | 500 | } | |
510 | 501 | ||
511 | 502 | ||
512 | 503 | ||
513 | - | @Callable( | |
504 | + | @Callable(de) | |
514 | 505 | func confirmManager () = { | |
515 | - | let | |
516 | - | let | |
506 | + | let bC = dl() | |
507 | + | let ds = if (isDefined(bC)) | |
517 | 508 | then true | |
518 | 509 | else throw("No pending manager") | |
519 | - | if (( | |
510 | + | if ((ds == ds)) | |
520 | 511 | then { | |
521 | - | let | |
512 | + | let dt = if ((de.callerPublicKey == value(bC))) | |
522 | 513 | then true | |
523 | 514 | else throw("You are not pending manager") | |
524 | - | if (( | |
525 | - | then [StringEntry(N(), toBase58String(value( | |
515 | + | if ((dt == dt)) | |
516 | + | then [StringEntry(N(), toBase58String(value(bC))), DeleteEntry(O())] | |
526 | 517 | else throw("Strict value is not equal to itself.") | |
527 | 518 | } | |
528 | 519 | else throw("Strict value is not equal to itself.") | |
529 | 520 | } | |
530 | 521 | ||
531 | 522 | ||
532 | 523 | ||
533 | - | @Callable( | |
534 | - | func put (dv | |
535 | - | let | |
536 | - | let | |
537 | - | let | |
538 | - | if ((0 > | |
524 | + | @Callable(de) | |
525 | + | func put (du,dv) = { | |
526 | + | let dw = aF() | |
527 | + | let dx = valueOrErrorMessage(addressFromString(dw[x]), "Wr st addr") | |
528 | + | let dy = valueOrErrorMessage(addressFromString(dw[y]), "Wr sl addr") | |
529 | + | if ((0 > du)) | |
539 | 530 | then throw("Wrong slippage") | |
540 | - | else if ((size( | |
531 | + | else if ((size(de.payments) != 2)) | |
541 | 532 | then throw("2 pmnts expd") | |
542 | 533 | else { | |
543 | - | let | |
544 | - | let | |
545 | - | let | |
546 | - | let | |
547 | - | let | |
548 | - | let | |
549 | - | let | |
550 | - | let | |
551 | - | let | |
552 | - | if (( | |
534 | + | let dz = dg(toString(de.caller), toBase58String(de.transactionId), AttachedPayment(value(de.payments[0]).assetId, value(de.payments[0]).amount), de.payments[1], du, true, false, 0, "") | |
535 | + | let cJ = dz._2 | |
536 | + | let dA = dz._7 | |
537 | + | let cb = dz._9 | |
538 | + | let cK = dz._10 | |
539 | + | let cL = dz._11 | |
540 | + | let bJ = dz._12 | |
541 | + | let bK = dz._13 | |
542 | + | let cw = invoke(ax, "emit", [cJ], nil) | |
543 | + | if ((cw == cw)) | |
553 | 544 | then { | |
554 | - | let | |
555 | - | let ar = | |
545 | + | let dB = { | |
546 | + | let ar = cw | |
556 | 547 | if ($isInstanceOf(ar, "Address")) | |
557 | 548 | then { | |
558 | - | let | |
559 | - | invoke( | |
549 | + | let dC = ar | |
550 | + | invoke(dC, "emit", [cJ], nil) | |
560 | 551 | } | |
561 | 552 | else unit | |
562 | 553 | } | |
563 | - | if (( | |
554 | + | if ((dB == dB)) | |
564 | 555 | then { | |
565 | - | let | |
566 | - | then invoke( | |
556 | + | let dD = if ((cK > 0)) | |
557 | + | then invoke(dy, "put", nil, [AttachedPayment(bJ, cK)]) | |
567 | 558 | else nil | |
568 | - | if (( | |
559 | + | if ((dD == dD)) | |
569 | 560 | then { | |
570 | - | let | |
571 | - | then invoke( | |
561 | + | let dE = if ((cL > 0)) | |
562 | + | then invoke(dy, "put", nil, [AttachedPayment(bK, cL)]) | |
572 | 563 | else nil | |
573 | - | if (( | |
564 | + | if ((dE == dE)) | |
574 | 565 | then { | |
575 | - | let | |
566 | + | let dF = if (dv) | |
576 | 567 | then { | |
577 | - | let | |
578 | - | if (( | |
568 | + | let dG = invoke(dx, "stake", nil, [AttachedPayment(dA, cJ)]) | |
569 | + | if ((dG == dG)) | |
579 | 570 | then nil | |
580 | 571 | else throw("Strict value is not equal to itself.") | |
581 | 572 | } | |
582 | - | else [ScriptTransfer( | |
583 | - | ( | |
573 | + | else [ScriptTransfer(de.caller, cJ, dA)] | |
574 | + | (cb ++ dF) | |
584 | 575 | } | |
585 | 576 | else throw("Strict value is not equal to itself.") | |
586 | 577 | } | |
587 | 578 | else throw("Strict value is not equal to itself.") | |
588 | 579 | } | |
589 | 580 | else throw("Strict value is not equal to itself.") | |
590 | 581 | } | |
591 | 582 | else throw("Strict value is not equal to itself.") | |
592 | 583 | } | |
593 | 584 | } | |
594 | 585 | ||
595 | 586 | ||
596 | 587 | ||
597 | - | @Callable(df) | |
598 | - | func putOneTkn (dI,dJ,dK,bd,dw) = { | |
599 | - | let bv = aF() | |
600 | - | let dy = valueOrErrorMessage(addressFromString(bv[x]), "Wr st addr") | |
601 | - | let dz = valueOrErrorMessage(addressFromString(bv[y]), "Wr sl addr") | |
602 | - | let dL = valueOrErrorMessage(addressFromString(bv[z]), "Wr gwx addr") | |
603 | - | let dM = aB() | |
604 | - | let bK = dM[r] | |
605 | - | let bL = dM[s] | |
606 | - | let bM = parseIntValue(dM[t]) | |
607 | - | let bN = parseIntValue(dM[u]) | |
608 | - | let dN = valueOrElse(getString(this, aa()), "") | |
609 | - | let bI = if ((dN == toString(df.caller))) | |
610 | - | then df.originCaller | |
611 | - | else df.caller | |
612 | - | let dO = valueOrErrorMessage(addressFromString(valueOrErrorMessage(getString(aa()), "no addons")), "addon address in not valid") | |
613 | - | let dP = reentrantInvoke(dO, "ensureCanPutOneTkn", [toString(bI)], nil) | |
614 | - | if ((dP == dP)) | |
615 | - | then { | |
616 | - | let dQ = throw("after check") | |
617 | - | if ((dQ == dQ)) | |
618 | - | then if (if (if (if ((0 >= bd)) | |
619 | - | then true | |
620 | - | else (0 >= dI)) | |
621 | - | then true | |
622 | - | else (0 >= dJ)) | |
623 | - | then true | |
624 | - | else (0 >= dK)) | |
625 | - | then throw("Wrong params") | |
626 | - | else if ((size(df.payments) != 1)) | |
627 | - | then throw("1 pmnt expd") | |
588 | + | @Callable(de) | |
589 | + | func putOneTkn (dH,dI,dJ,bd,dv) = { | |
590 | + | let bu = aF() | |
591 | + | let dx = valueOrErrorMessage(addressFromString(bu[x]), "Wr st addr") | |
592 | + | let dy = valueOrErrorMessage(addressFromString(bu[y]), "Wr sl addr") | |
593 | + | let dK = valueOrErrorMessage(addressFromString(bu[z]), "Wr gwx addr") | |
594 | + | let dL = aB() | |
595 | + | let bJ = dL[r] | |
596 | + | let bK = dL[s] | |
597 | + | let bL = parseIntValue(dL[t]) | |
598 | + | let bM = parseIntValue(dL[u]) | |
599 | + | let dM = valueOrElse(getString(this, aa()), "") | |
600 | + | let bH = if ((dM == toString(de.caller))) | |
601 | + | then de.originCaller | |
602 | + | else de.caller | |
603 | + | let dN = valueOrErrorMessage(addressFromString(valueOrErrorMessage(getString(aa()), "no addons")), "addon address in not valid") | |
604 | + | let dO = reentrantInvoke(dN, "ensureCanGetOrPutOneTkn", [toString(bH)], nil) | |
605 | + | if ((dO == dO)) | |
606 | + | then if (if (if (if ((0 >= bd)) | |
607 | + | then true | |
608 | + | else (0 >= dH)) | |
609 | + | then true | |
610 | + | else (0 >= dI)) | |
611 | + | then true | |
612 | + | else (0 >= dJ)) | |
613 | + | then throw("Wrong params") | |
614 | + | else if ((size(de.payments) != 1)) | |
615 | + | then throw("1 pmnt expd") | |
616 | + | else { | |
617 | + | let df = value(de.payments[0]) | |
618 | + | let bF = toBase58String(value(df.assetId)) | |
619 | + | let ck = df.amount | |
620 | + | if (if (if ((dH > ck)) | |
621 | + | then true | |
622 | + | else (dI > ck)) | |
623 | + | then true | |
624 | + | else (10000000 > ck)) | |
625 | + | then throw("Wrong pmt amt") | |
628 | 626 | else { | |
629 | - | let dg = value(df.payments[0]) | |
630 | - | let bG = toBase58String(value(dg.assetId)) | |
631 | - | let cl = dg.amount | |
632 | - | if (if (if ((dI > cl)) | |
633 | - | then true | |
634 | - | else (dJ > cl)) | |
635 | - | then true | |
636 | - | else (10000000 > cl)) | |
637 | - | then throw("Wrong pmt amt") | |
638 | - | else { | |
639 | - | let bQ = aV(bK) | |
640 | - | let bS = aV(bL) | |
641 | - | let dR = if ((bG == bK)) | |
642 | - | then $Tuple6((bQ - cl), bS, (cl - dI), dJ, 0, 0) | |
643 | - | else if ((bG == bL)) | |
644 | - | then $Tuple6(bQ, (bS - cl), 0, 0, (cl - dJ), dI) | |
645 | - | else throw("wrong pmtAssetId") | |
646 | - | let dS = dR._1 | |
647 | - | let dT = dR._2 | |
648 | - | let dU = dR._3 | |
649 | - | let dV = dR._4 | |
650 | - | let dW = dR._5 | |
651 | - | let dX = dR._6 | |
652 | - | let bi = invoke(dL, "calcD", [toString(dS), toString(dT), ay, g, h], nil) | |
653 | - | let dY = throw("error after D0") | |
654 | - | if ((dY == dY)) | |
627 | + | let bP = aV(bJ) | |
628 | + | let bR = aV(bK) | |
629 | + | let dP = if ((bF == bJ)) | |
630 | + | then $Tuple6((bP - ck), bR, (ck - dH), dI, 0, 0) | |
631 | + | else if ((bF == bK)) | |
632 | + | then $Tuple6(bP, (bR - ck), 0, 0, (ck - dI), dH) | |
633 | + | else throw("wrong pmtAssetId") | |
634 | + | let dQ = dP._1 | |
635 | + | let dR = dP._2 | |
636 | + | let dS = dP._3 | |
637 | + | let dT = dP._4 | |
638 | + | let dU = dP._5 | |
639 | + | let dV = dP._6 | |
640 | + | let bi = invoke(dK, "calcD", [toString(dQ), toString(dR), ay, g, h], nil) | |
641 | + | let bh = invoke(dK, "calcD", [toString(toBigInt(((dQ + dS) - dV))), toString(toBigInt(((dR + dU) - dT))), ay, g, h], nil) | |
642 | + | let dW = bg(parseBigIntValue(aq(bh)), parseBigIntValue(aq(bi)), f) | |
643 | + | if ((dW == dW)) | |
644 | + | then { | |
645 | + | let dX = dg(toString(de.caller), toBase58String(de.transactionId), AttachedPayment(fromBase58String(bJ), dH), AttachedPayment(fromBase58String(bK), dI), bd, true, true, ck, bF) | |
646 | + | let dY = dX._2 | |
647 | + | let dA = dX._7 | |
648 | + | let cb = dX._9 | |
649 | + | let cK = dX._10 | |
650 | + | let cL = dX._11 | |
651 | + | let dZ = ba(toBigInt(dY), toBigInt(dJ), toBigInt(bd)) | |
652 | + | let cJ = toInt(dZ._2) | |
653 | + | let dz = invoke(ax, "emit", [cJ], nil) | |
654 | + | if ((dz == dz)) | |
655 | 655 | then { | |
656 | - | let bh = invoke(dL, "calcD", [toString(toBigInt(((dS + dU) - dX))), toString(toBigInt(((dT + dW) - dV))), ay, g, h], nil) | |
657 | - | let dZ = throw("error after D1") | |
658 | - | if ((dZ == dZ)) | |
656 | + | let dB = { | |
657 | + | let ar = dz | |
658 | + | if ($isInstanceOf(ar, "Address")) | |
659 | + | then { | |
660 | + | let dC = ar | |
661 | + | invoke(dC, "emit", [cJ], nil) | |
662 | + | } | |
663 | + | else unit | |
664 | + | } | |
665 | + | if ((dB == dB)) | |
659 | 666 | then { | |
660 | - | let ea = bg(parseBigIntValue(aq(bh)), parseBigIntValue(aq(bi)), f) | |
661 | - | if ((ea == ea)) | |
667 | + | let dD = if ((cK > 0)) | |
668 | + | then invoke(dy, "put", nil, [AttachedPayment(fromBase58String(bJ), cK)]) | |
669 | + | else nil | |
670 | + | if ((dD == dD)) | |
662 | 671 | then { | |
663 | - | let eb = dh(toString(df.caller), toBase58String(df.transactionId), AttachedPayment(fromBase58String(bK), dI), AttachedPayment(fromBase58String(bL), dJ), bd, true, true, cl, bG) | |
664 | - | let ec = eb._2 | |
665 | - | let dB = eb._7 | |
666 | - | let cc = eb._9 | |
667 | - | let cL = eb._10 | |
668 | - | let cM = eb._11 | |
669 | - | let ed = ba(toBigInt(ec), toBigInt(dK), toBigInt(bd)) | |
670 | - | let cK = toInt(ed._2) | |
671 | - | let dA = invoke(ax, "emit", [cK], nil) | |
672 | - | if ((dA == dA)) | |
672 | + | let dE = if ((cL > 0)) | |
673 | + | then invoke(dy, "put", nil, [AttachedPayment(fromBase58String(bK), cL)]) | |
674 | + | else nil | |
675 | + | if ((dE == dE)) | |
673 | 676 | then { | |
674 | - | let dC = { | |
675 | - | let ar = dA | |
676 | - | if ($isInstanceOf(ar, "Address")) | |
677 | - | then { | |
678 | - | let dD = ar | |
679 | - | invoke(dD, "emit", [cK], nil) | |
680 | - | } | |
681 | - | else unit | |
682 | - | } | |
683 | - | if ((dC == dC)) | |
677 | + | let dF = if (dv) | |
684 | 678 | then { | |
685 | - | let dE = if ((cL > 0)) | |
686 | - | then invoke(dz, "put", nil, [AttachedPayment(fromBase58String(bK), cL)]) | |
687 | - | else nil | |
688 | - | if ((dE == dE)) | |
689 | - | then { | |
690 | - | let dF = if ((cM > 0)) | |
691 | - | then invoke(dz, "put", nil, [AttachedPayment(fromBase58String(bL), cM)]) | |
692 | - | else nil | |
693 | - | if ((dF == dF)) | |
694 | - | then { | |
695 | - | let dG = if (dw) | |
696 | - | then { | |
697 | - | let dH = invoke(dy, "stake", nil, [AttachedPayment(dB, cK)]) | |
698 | - | if ((dH == dH)) | |
699 | - | then nil | |
700 | - | else throw("Strict value is not equal to itself.") | |
701 | - | } | |
702 | - | else [ScriptTransfer(df.caller, cK, dB)] | |
703 | - | (cc ++ dG) | |
704 | - | } | |
705 | - | else throw("Strict value is not equal to itself.") | |
706 | - | } | |
679 | + | let dG = invoke(dx, "stake", nil, [AttachedPayment(dA, cJ)]) | |
680 | + | if ((dG == dG)) | |
681 | + | then nil | |
707 | 682 | else throw("Strict value is not equal to itself.") | |
708 | 683 | } | |
709 | - | else throw("Strict value is not equal to itself.") | |
684 | + | else [ScriptTransfer(de.caller, cJ, dA)] | |
685 | + | (cb ++ dF) | |
710 | 686 | } | |
711 | 687 | else throw("Strict value is not equal to itself.") | |
712 | 688 | } | |
713 | 689 | else throw("Strict value is not equal to itself.") | |
714 | 690 | } | |
715 | 691 | else throw("Strict value is not equal to itself.") | |
716 | 692 | } | |
717 | 693 | else throw("Strict value is not equal to itself.") | |
718 | 694 | } | |
695 | + | else throw("Strict value is not equal to itself.") | |
719 | 696 | } | |
720 | - | else throw("Strict value is not equal to itself.") | |
721 | - | } | |
697 | + | } | |
722 | 698 | else throw("Strict value is not equal to itself.") | |
723 | 699 | } | |
724 | 700 | ||
725 | 701 | ||
726 | 702 | ||
727 | - | @Callable( | |
728 | - | func putForFree ( | |
703 | + | @Callable(de) | |
704 | + | func putForFree (ea) = if ((0 > ea)) | |
729 | 705 | then throw("Wrong slpg") | |
730 | - | else if ((size( | |
706 | + | else if ((size(de.payments) != 2)) | |
731 | 707 | then throw("2 pmnts expd") | |
732 | 708 | else { | |
733 | - | let | |
734 | - | | |
709 | + | let dX = dg(toString(de.caller), toBase58String(de.transactionId), AttachedPayment(value(de.payments[0]).assetId, value(de.payments[0]).amount), de.payments[1], ea, false, false, 0, "") | |
710 | + | dX._9 | |
735 | 711 | } | |
736 | 712 | ||
737 | 713 | ||
738 | 714 | ||
739 | - | @Callable( | |
715 | + | @Callable(de) | |
740 | 716 | func get () = { | |
741 | - | let | |
742 | - | let | |
743 | - | let | |
744 | - | let | |
745 | - | let | |
746 | - | let | |
747 | - | let | |
748 | - | if (( | |
749 | - | then | |
717 | + | let cw = dd(de) | |
718 | + | let eb = cw._1 | |
719 | + | let ca = cw._2 | |
720 | + | let ck = cw._3 | |
721 | + | let bF = cw._4 | |
722 | + | let cb = cw._5 | |
723 | + | let ec = invoke(ax, "burn", [ck], [AttachedPayment(bF, ck)]) | |
724 | + | if ((ec == ec)) | |
725 | + | then cb | |
750 | 726 | else throw("Strict value is not equal to itself.") | |
751 | 727 | } | |
752 | 728 | ||
753 | 729 | ||
754 | 730 | ||
755 | - | @Callable( | |
756 | - | func getOneTkn ( | |
731 | + | @Callable(de) | |
732 | + | func getOneTkn (ed,ee,ef,eg,bd) = if ((size(de.payments) != 1)) | |
757 | 733 | then throw("1 pmnt expd") | |
758 | 734 | else { | |
759 | - | let | |
760 | - | let | |
761 | - | let | |
762 | - | let | |
763 | - | let | |
764 | - | let | |
765 | - | let | |
766 | - | let | |
767 | - | let | |
768 | - | let | |
769 | - | let | |
770 | - | let | |
771 | - | then | |
772 | - | else | |
773 | - | let | |
774 | - | let | |
775 | - | let | |
776 | - | let | |
777 | - | let | |
778 | - | if (( | |
779 | - | then if ((1000000000 > | |
735 | + | let bu = aB() | |
736 | + | let bI = bu[q] | |
737 | + | let bJ = bu[r] | |
738 | + | let bK = bu[s] | |
739 | + | let bL = parseIntValue(bu[t]) | |
740 | + | let bM = parseIntValue(bu[u]) | |
741 | + | let bN = bu[p] | |
742 | + | let dw = aF() | |
743 | + | let dK = valueOrErrorMessage(addressFromString(dw[z]), "Wr sl addr") | |
744 | + | let df = value(de.payments[0]) | |
745 | + | let dM = valueOrElse(getString(this, aa()), "") | |
746 | + | let bH = if ((dM == toString(de.caller))) | |
747 | + | then de.originCaller | |
748 | + | else de.caller | |
749 | + | let bE = toBase58String(de.transactionId) | |
750 | + | let bF = value(df.assetId) | |
751 | + | let ck = df.amount | |
752 | + | let dN = valueOrErrorMessage(addressFromString(valueOrErrorMessage(getString(aa()), "no addons")), "addon address in not valid") | |
753 | + | let dO = reentrantInvoke(dN, "ensureCanGetOrPutOneTkn", [toString(bH)], nil) | |
754 | + | if ((dO == dO)) | |
755 | + | then if ((1000000000 > ck)) | |
780 | 756 | then throw("Min pmt 10 LP") | |
781 | 757 | else if (if (if ((0 > bd)) | |
782 | 758 | then true | |
783 | - | else (0 > | |
759 | + | else (0 > ed)) | |
784 | 760 | then true | |
785 | - | else (0 > | |
761 | + | else (0 > ef)) | |
786 | 762 | then throw("Wrong params") | |
787 | - | else if (( | |
763 | + | else if ((bI != toBase58String(bF))) | |
788 | 764 | then throw("Wrong LP") | |
789 | 765 | else { | |
790 | - | let | |
791 | - | let | |
792 | - | let | |
793 | - | let | |
794 | - | let | |
795 | - | let | |
796 | - | then $Tuple7(( | |
797 | - | else if (( | |
798 | - | then $Tuple7(( | |
766 | + | let cw = bD(toBase58String(de.transactionId), toBase58String(bF), ck, de.caller) | |
767 | + | let eh = cw._1 | |
768 | + | let ei = cw._2 | |
769 | + | let bP = aV(bJ) | |
770 | + | let bR = aV(bK) | |
771 | + | let ej = if ((eg == bJ)) | |
772 | + | then $Tuple7((bP - eh), (bR - ei), ed, ei, 0, 0, (eh + ed)) | |
773 | + | else if ((eg == bK)) | |
774 | + | then $Tuple7((bP - eh), (bR - ei), 0, 0, ed, eh, (ei + ed)) | |
799 | 775 | else throw("wrong outAssetId") | |
800 | - | let | |
801 | - | let | |
802 | - | let | |
803 | - | let | |
804 | - | let | |
805 | - | let | |
806 | - | let | |
807 | - | if (if ((0 > | |
776 | + | let dQ = ej._1 | |
777 | + | let dR = ej._2 | |
778 | + | let dS = ej._3 | |
779 | + | let dT = ej._4 | |
780 | + | let dU = ej._5 | |
781 | + | let dV = ej._6 | |
782 | + | let ek = ej._7 | |
783 | + | if (if ((0 > dS)) | |
808 | 784 | then true | |
809 | - | else (0 > | |
785 | + | else (0 > dU)) | |
810 | 786 | then throw("Wrong calc") | |
811 | 787 | else { | |
812 | - | let bi = invoke( | |
813 | - | let bh = invoke( | |
814 | - | let | |
815 | - | if (( | |
788 | + | let bi = invoke(dK, "calcD", [toString(dQ), toString(dR), ay, g, h], nil) | |
789 | + | let bh = invoke(dK, "calcD", [toString(((dQ - dS) + dV)), toString(((dR + dT) - dU)), ay, g, h], nil) | |
790 | + | let dW = bg(parseBigIntValue(aq(bh)), parseBigIntValue(aq(bi)), f) | |
791 | + | if ((dW == dW)) | |
816 | 792 | then { | |
817 | - | let | |
818 | - | if (( | |
793 | + | let el = ba(toBigInt(ek), toBigInt(ef), toBigInt(bd)) | |
794 | + | if ((el == el)) | |
819 | 795 | then { | |
820 | - | let | |
821 | - | then $Tuple2(toInt( | |
822 | - | else $Tuple2(0, toInt( | |
823 | - | let | |
824 | - | let | |
825 | - | let | |
826 | - | let | |
827 | - | let | |
796 | + | let em = if ((eg == bJ)) | |
797 | + | then $Tuple2(toInt(el._2), 0) | |
798 | + | else $Tuple2(0, toInt(el._2)) | |
799 | + | let en = em._1 | |
800 | + | let eo = em._2 | |
801 | + | let ep = aX(B(bR, bM), B(bP, bL)) | |
802 | + | let eq = E(ep, a) | |
803 | + | let cb = [ScriptTransfer(bH, (en + eo), if ((eg == "WAVES")) | |
828 | 804 | then unit | |
829 | - | else fromBase58String( | |
830 | - | if (( | |
805 | + | else fromBase58String(eg)), StringEntry(W(toString(bH), bE), aR(en, eo, ck, eq, height, lastBlock.timestamp)), IntegerEntry(P(), eq), IntegerEntry(Q(height, lastBlock.timestamp), eq)] | |
806 | + | if ((cb == cb)) | |
831 | 807 | then { | |
832 | - | let | |
833 | - | if (( | |
834 | - | then | |
808 | + | let er = invoke(ax, "burn", [ck], [AttachedPayment(bF, ck)]) | |
809 | + | if ((er == er)) | |
810 | + | then cb | |
835 | 811 | else throw("Strict value is not equal to itself.") | |
836 | 812 | } | |
837 | 813 | else throw("Strict value is not equal to itself.") | |
838 | 814 | } | |
839 | 815 | else throw("Strict value is not equal to itself.") | |
840 | 816 | } | |
841 | 817 | else throw("Strict value is not equal to itself.") | |
842 | 818 | } | |
843 | 819 | } | |
844 | 820 | else throw("Strict value is not equal to itself.") | |
845 | 821 | } | |
846 | 822 | ||
847 | 823 | ||
848 | 824 | ||
849 | - | @Callable( | |
850 | - | func getNoLess ( | |
851 | - | let | |
852 | - | let | |
853 | - | let | |
854 | - | let | |
855 | - | let | |
856 | - | let | |
857 | - | if (( | |
858 | - | then throw(((("Failed: " + toString( | |
859 | - | else if (( | |
860 | - | then throw(((("Failed: " + toString( | |
825 | + | @Callable(de) | |
826 | + | func getNoLess (es,et) = { | |
827 | + | let cw = dd(de) | |
828 | + | let bZ = cw._1 | |
829 | + | let ca = cw._2 | |
830 | + | let ck = cw._3 | |
831 | + | let bF = cw._4 | |
832 | + | let cb = cw._5 | |
833 | + | if ((es > bZ)) | |
834 | + | then throw(((("Failed: " + toString(bZ)) + " < ") + toString(es))) | |
835 | + | else if ((et > ca)) | |
836 | + | then throw(((("Failed: " + toString(ca)) + " < ") + toString(et))) | |
861 | 837 | else { | |
862 | - | let | |
863 | - | if (( | |
864 | - | then | |
838 | + | let eu = invoke(ax, "burn", [ck], [AttachedPayment(bF, ck)]) | |
839 | + | if ((eu == eu)) | |
840 | + | then cb | |
865 | 841 | else throw("Strict value is not equal to itself.") | |
866 | 842 | } | |
867 | 843 | } | |
868 | 844 | ||
869 | 845 | ||
870 | 846 | ||
871 | - | @Callable( | |
872 | - | func unstakeAndGet ( | |
873 | - | let | |
847 | + | @Callable(de) | |
848 | + | func unstakeAndGet (ev) = { | |
849 | + | let ew = if ((size(de.payments) != 0)) | |
874 | 850 | then throw("No pmnts expd") | |
875 | 851 | else true | |
876 | - | if (( | |
852 | + | if ((ew == ew)) | |
877 | 853 | then { | |
878 | - | let | |
879 | - | let | |
880 | - | let | |
881 | - | let | |
882 | - | let | |
883 | - | if (( | |
854 | + | let bu = aB() | |
855 | + | let ex = aF() | |
856 | + | let dA = fromBase58String(bu[q]) | |
857 | + | let ey = valueOrErrorMessage(addressFromString(ex[x]), "Wr st addr") | |
858 | + | let ez = invoke(ey, "unstake", [toBase58String(dA), ev], nil) | |
859 | + | if ((ez == ez)) | |
884 | 860 | then { | |
885 | - | let | |
886 | - | let | |
887 | - | let | |
888 | - | let | |
861 | + | let cw = bD(toBase58String(de.transactionId), toBase58String(dA), ev, de.caller) | |
862 | + | let bN = parseIntValue(cw._9) | |
863 | + | let cb = cw._10 | |
864 | + | let eA = if (if (az()) | |
889 | 865 | then true | |
890 | - | else ( | |
891 | - | then throw(("Blocked: " + toString( | |
866 | + | else (bN == n)) | |
867 | + | then throw(("Blocked: " + toString(bN))) | |
892 | 868 | else true | |
893 | - | if (( | |
869 | + | if ((eA == eA)) | |
894 | 870 | then { | |
895 | - | let | |
896 | - | if (( | |
897 | - | then | |
871 | + | let eB = invoke(ax, "burn", [ev], [AttachedPayment(dA, ev)]) | |
872 | + | if ((eB == eB)) | |
873 | + | then cb | |
898 | 874 | else throw("Strict value is not equal to itself.") | |
899 | 875 | } | |
900 | 876 | else throw("Strict value is not equal to itself.") | |
901 | 877 | } | |
902 | 878 | else throw("Strict value is not equal to itself.") | |
903 | 879 | } | |
904 | 880 | else throw("Strict value is not equal to itself.") | |
905 | 881 | } | |
906 | 882 | ||
907 | 883 | ||
908 | 884 | ||
909 | - | @Callable( | |
910 | - | func activate ( | |
885 | + | @Callable(de) | |
886 | + | func activate (eC,eD) = if ((toString(de.caller) != toString(ax))) | |
911 | 887 | then throw("denied") | |
912 | - | else $Tuple2([StringEntry(X(), | |
888 | + | else $Tuple2([StringEntry(X(), eC), StringEntry(Y(), eD)], "success") | |
913 | 889 | ||
914 | 890 | ||
915 | 891 | ||
916 | - | @Callable( | |
917 | - | func setS ( | |
918 | - | then | |
919 | - | else [StringEntry( | |
892 | + | @Callable(de) | |
893 | + | func setS (eE,eA) = if ((toString(de.caller) != at(this, aa()))) | |
894 | + | then dm | |
895 | + | else [StringEntry(eE, eA)] | |
920 | 896 | ||
921 | 897 | ||
922 | 898 | ||
923 | - | @Callable( | |
924 | - | func setI ( | |
925 | - | then | |
926 | - | else [IntegerEntry( | |
899 | + | @Callable(de) | |
900 | + | func setI (eE,eA) = if ((toString(de.caller) != at(this, aa()))) | |
901 | + | then dm | |
902 | + | else [IntegerEntry(eE, eA)] | |
927 | 903 | ||
928 | 904 | ||
929 | 905 | ||
930 | - | @Callable( | |
906 | + | @Callable(de) | |
931 | 907 | func getPoolConfigWrapperREADONLY () = $Tuple2(nil, aB()) | |
932 | 908 | ||
933 | 909 | ||
934 | 910 | ||
935 | - | @Callable( | |
911 | + | @Callable(de) | |
936 | 912 | func getAccBalanceWrapperREADONLY (aW) = $Tuple2(nil, aV(aW)) | |
937 | 913 | ||
938 | 914 | ||
939 | 915 | ||
940 | - | @Callable( | |
941 | - | func calcPricesWrapperREADONLY (bp, | |
942 | - | let | |
943 | - | $Tuple2(nil, [toString( | |
916 | + | @Callable(de) | |
917 | + | func calcPricesWrapperREADONLY (bo,bp,bt) = { | |
918 | + | let eF = bs(bo, bp, bt) | |
919 | + | $Tuple2(nil, [toString(eF[0]), toString(eF[1]), toString(eF[2])]) | |
944 | 920 | } | |
945 | 921 | ||
946 | 922 | ||
947 | 923 | ||
948 | - | @Callable( | |
949 | - | func fromX18WrapperREADONLY (F, | |
924 | + | @Callable(de) | |
925 | + | func fromX18WrapperREADONLY (F,eG) = $Tuple2(nil, E(parseBigIntValue(F), eG)) | |
950 | 926 | ||
951 | 927 | ||
952 | 928 | ||
953 | - | @Callable( | |
929 | + | @Callable(de) | |
954 | 930 | func toX18WrapperREADONLY (C,D) = $Tuple2(nil, toString(B(C, D))) | |
955 | 931 | ||
956 | 932 | ||
957 | 933 | ||
958 | - | @Callable( | |
934 | + | @Callable(de) | |
959 | 935 | func calcPriceBigIntWrapperREADONLY (aY,aZ) = $Tuple2(nil, toString(aX(parseBigIntValue(aY), parseBigIntValue(aZ)))) | |
960 | 936 | ||
961 | 937 | ||
962 | 938 | ||
963 | - | @Callable( | |
964 | - | func estimatePutOperationWrapperREADONLY ( | |
939 | + | @Callable(de) | |
940 | + | func estimatePutOperationWrapperREADONLY (bE,bd,cd,ce,cf,cg,eH,ch,ci) = $Tuple2(nil, cc(bE, bd, cd, ce, cf, cg, eH, ch, ci, false, 0, "")) | |
965 | 941 | ||
966 | 942 | ||
967 | 943 | ||
968 | - | @Callable( | |
969 | - | func estimateGetOperationWrapperREADONLY ( | |
970 | - | let | |
971 | - | $Tuple2(nil, $Tuple10( | |
944 | + | @Callable(de) | |
945 | + | func estimateGetOperationWrapperREADONLY (bE,eI,bG,eH) = { | |
946 | + | let cw = bD(bE, eI, bG, addressFromStringValue(eH)) | |
947 | + | $Tuple2(nil, $Tuple10(cw._1, cw._2, cw._3, cw._4, cw._5, cw._6, cw._7, toString(cw._8), cw._9, cw._10)) | |
972 | 948 | } | |
973 | 949 | ||
974 | 950 | ||
975 | - | @Verifier( | |
976 | - | func | |
977 | - | let ar = | |
951 | + | @Verifier(eJ) | |
952 | + | func eK () = { | |
953 | + | let ar = eJ | |
978 | 954 | if ($isInstanceOf(ar, "Order")) | |
979 | 955 | then { | |
980 | - | let | |
981 | - | let | |
982 | - | let an = cR | |
983 | - | let | |
984 | - | let | |
956 | + | let cR = ar | |
957 | + | let eL = aA() | |
958 | + | let an = cQ(cR) | |
959 | + | let eM = sigVerify(cR.bodyBytes, cR.proofs[0], cR.senderPublicKey) | |
960 | + | let eN = sigVerify(cR.bodyBytes, cR.proofs[1], eL) | |
985 | 961 | if (if (if (an) | |
986 | - | then | |
962 | + | then eM | |
987 | 963 | else false) | |
988 | - | then | |
964 | + | then eN | |
989 | 965 | else false) | |
990 | 966 | then true | |
991 | - | else am(an, | |
967 | + | else am(an, eM, eN) | |
992 | 968 | } | |
993 | 969 | else { | |
994 | - | let | |
995 | - | let | |
996 | - | if ($isInstanceOf( | |
970 | + | let eO = { | |
971 | + | let eP = dj() | |
972 | + | if ($isInstanceOf(eP, "ByteVector")) | |
997 | 973 | then { | |
998 | - | let | |
999 | - | | |
974 | + | let do = eP | |
975 | + | do | |
1000 | 976 | } | |
1001 | - | else if ($isInstanceOf( | |
1002 | - | then | |
977 | + | else if ($isInstanceOf(eP, "Unit")) | |
978 | + | then eJ.senderPublicKey | |
1003 | 979 | else throw("Match error") | |
1004 | 980 | } | |
1005 | - | sigVerify( | |
981 | + | sigVerify(eJ.bodyBytes, eJ.proofs[0], eO) | |
1006 | 982 | } | |
1007 | 983 | } | |
1008 | 984 |
github/deemru/w8io/026f985 290.63 ms ◑