tx · DRTDeYvxP5pVPV7brnqazaDrFNvyEnQxvoBACkSpt3MX 3N4QFkEYPsR9D54c1pHRQzqRARjubXcbGuA: -0.02500000 Waves 2023.07.05 12:00 [2652405] smart account 3N4QFkEYPsR9D54c1pHRQzqRARjubXcbGuA > SELF 0.00000000 Waves
{ "type": 13, "id": "DRTDeYvxP5pVPV7brnqazaDrFNvyEnQxvoBACkSpt3MX", "fee": 2500000, "feeAssetId": null, "timestamp": 1688547702110, "version": 1, "sender": "3N4QFkEYPsR9D54c1pHRQzqRARjubXcbGuA", "senderPublicKey": "8nr9XxGKmrRg6E6Zss6YPynBYEFbCf39Z2D9WvVuUgzY", "proofs": [ "45FfhNvPFhu2KooGsAnx8WM7JShBC1sgxTH9rLrUErtMgR7zmEza7rQkTB8nEyocPgsf8jfpxrSyBfPcFF8HHYwK" ], "script": "base64:BwIqCAISAwoBAhIGCgQCAQEBEgMKAQISAwoBAhIECgICAhIECgICAhIDCgECKgADU0VQAgJfXwANQ09OVFJBQ1RfTkFNRQIPY2FsY3VsYXRvci5yaWRlAAZTQ0FMRTgAgMLXLwAHUEVORElORwIHUEVORElORwAIRklOSVNIRUQCCEZJTklTSEVEAAVXQVZFUwIFV0FWRVMBB3dyYXBFcnIBAXMJAKwCAgkArAICBQ1DT05UUkFDVF9OQU1FAgI6IAUBcwEIdGhyb3dFcnIBAXMJAAIBCQEHd3JhcEVycgEFAXMBD2Fzc2V0SWRUb1N0cmluZwEHYXNzZXRJZAQHJG1hdGNoMAUHYXNzZXRJZAMJAAECBQckbWF0Y2gwAgpCeXRlVmVjdG9yBAFiBQckbWF0Y2gwCQDYBAEFAWIDCQABAgUHJG1hdGNoMAIEVW5pdAUFV0FWRVMJAAIBAgtNYXRjaCBlcnJvcgEDYWJzAQFuAwkAZgIAAAUBbgkBAS0BBQFuBQFuARFrZXlGYWN0b3J5QWRkcmVzcwAJALkJAgkAzAgCAgIlcwkAzAgCAgdmYWN0b3J5BQNuaWwFA1NFUAETa2V5TWFu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AQIkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuAQJ0eAEGdmVyaWZ5AAQJcHVibGljS2V5BAckbWF0Y2gwCQEZZ2V0TWFuYWdlclB1YmxpY0tleU9yVW5pdAADCQABAgUHJG1hdGNoMAIKQnl0ZVZlY3RvcgQDcHViBQckbWF0Y2gwBQNwdWIIBQJ0eA9zZW5kZXJQdWJsaWNLZXkJAPQDAwgFAnR4CWJvZHlCeXRlcwkAkQMCCAUCdHgGcHJvb2ZzAAAFCXB1YmxpY0tledufz6s=", "chainId": 84, "height": 2652405, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 7W2zqLr3b8Ep1zAyTgxFPman8UCZMY7wkDR1C8i9iSLZ Next: 2vR8ERZxpps5k958HXZ4WrVupTxnExYJJu8xUSqPVFi9 Diff:
Old | New | Differences | |
---|---|---|---|
322 | 322 | let aX = ((aS - aW) + aV) | |
323 | 323 | let aY = ((aT - aV) + aW) | |
324 | 324 | let aZ = (aM + aY) | |
325 | - | let ba = (aE + 1) | |
326 | - | let bb = valueOrErrorMessage(assetInfo(Y), g("invalid lpAsset info")).quantity | |
327 | - | let bc = fraction(aZ, c, bb) | |
328 | - | let bd = valueOrElse(getInteger(U, I()), 0) | |
329 | - | let be = (bb - bd) | |
330 | - | let bf = max([0, fraction(bd, bc, c)]) | |
331 | - | let bg = if ((size(ah.payments) > 0)) | |
325 | + | let ba = (aL + aX) | |
326 | + | let bb = (aE + 1) | |
327 | + | let bc = valueOrErrorMessage(assetInfo(Y), g("invalid lpAsset info")).quantity | |
328 | + | let bd = fraction(aZ, c, bc) | |
329 | + | let be = valueOrElse(getInteger(U, I()), 0) | |
330 | + | let bf = (bc - be) | |
331 | + | let bg = max([0, fraction(be, bd, c)]) | |
332 | + | let bh = if ((size(ah.payments) > 0)) | |
332 | 333 | then ah.payments[0] | |
333 | 334 | else unit | |
334 | - | let | |
335 | - | let | |
336 | - | let | |
335 | + | let bi = value(bh).amount | |
336 | + | let bj = value(bh).assetId | |
337 | + | let bk = if (if ((bg == 0)) | |
337 | 338 | then true | |
338 | - | else if (if (( | |
339 | - | then ( | |
339 | + | else if (if ((bh != unit)) | |
340 | + | then (bj == unit) | |
340 | 341 | else false) | |
341 | - | then ( | |
342 | + | then (bi >= bg) | |
342 | 343 | else false) | |
343 | 344 | then true | |
344 | - | else i(("invalid payments, payment amount min: " + toString( | |
345 | - | if (( | |
345 | + | else i(("invalid payments, payment amount min: " + toString(bg))) | |
346 | + | if ((bk == bk)) | |
346 | 347 | then { | |
347 | - | let | |
348 | - | then [ScriptTransfer(U, | |
348 | + | let bl = if ((bh != unit)) | |
349 | + | then [ScriptTransfer(U, bi, bj)] | |
349 | 350 | else nil | |
350 | - | let aA = [invoke(U, "integerEntry", [z(), | |
351 | - | $Tuple2( | |
351 | + | let aA = [invoke(U, "integerEntry", [z(), bb], nil), invoke(U, "integerEntry", [A(bb), bd], nil), invoke(U, "integerEntry", [C(bb), (aJ + 1)], nil), invoke(U, "burn", [be], nil), invoke(U, "integerEntry", [I(), 0], nil), invoke(U, "integerEntry", [u(unit), aZ], nil), invoke(U, "integerEntry", [v(unit), ba], nil)] | |
352 | + | $Tuple2(bl, aA) | |
352 | 353 | } | |
353 | 354 | else throw("Strict value is not equal to itself.") | |
354 | 355 | } | |
367 | 368 | let x = Address(aw) | |
368 | 369 | let aE = valueOrErrorMessage(getInteger(U, z()), g("invalid period")) | |
369 | 370 | let aH = valueOrErrorMessage(getInteger(U, A(aE)), g("invalid price")) | |
370 | - | let | |
371 | + | let bm = if ((size(ah.payments) == 1)) | |
371 | 372 | then ah.payments[0] | |
372 | 373 | else i("invalid payments") | |
373 | - | let | |
374 | - | then ( | |
374 | + | let bn = if (if ((bm.assetId == unit)) | |
375 | + | then (bm.amount > 0) | |
375 | 376 | else false) | |
376 | - | then $Tuple2( | |
377 | + | then $Tuple2(bm.amount, bm.assetId) | |
377 | 378 | else i("invalid payment amount") | |
378 | - | let | |
379 | - | let | |
379 | + | let bi = bn._1 | |
380 | + | let bj = bn._2 | |
380 | 381 | let N = if ((aH > 0)) | |
381 | - | then fraction( | |
382 | + | then fraction(bi, c, aH) | |
382 | 383 | else 0 | |
383 | - | let | |
384 | - | let | |
385 | - | let aA = [invoke(U, "integerEntry", [u(unit), ( | |
386 | - | $Tuple2( | |
384 | + | let bo = valueOrElse(getInteger(U, u(unit)), 0) | |
385 | + | let bl = [ScriptTransfer(ac, bi, bj)] | |
386 | + | let aA = [invoke(U, "integerEntry", [u(unit), (bo + bi)], nil), invoke(U, "reissue", [N], nil), invoke(U, "transferAsset", [aw, N, Y], nil)] | |
387 | + | $Tuple2(bl, aA) | |
387 | 388 | } | |
388 | 389 | else throw("Strict value is not equal to itself.") | |
389 | 390 | } | |
397 | 398 | then { | |
398 | 399 | let x = Address(aw) | |
399 | 400 | let aE = valueOrErrorMessage(getInteger(U, z()), g("invalid period")) | |
400 | - | let | |
401 | + | let bm = if ((size(ah.payments) == 1)) | |
401 | 402 | then ah.payments[0] | |
402 | 403 | else i(g("invalid payments")) | |
403 | - | let | |
404 | + | let bj = if ((bm.assetId == Y)) | |
404 | 405 | then Y | |
405 | 406 | else i("invalid payment asset") | |
406 | - | let | |
407 | - | then | |
407 | + | let bi = if ((bm.amount > 0)) | |
408 | + | then bm.amount | |
408 | 409 | else i("invalid payment amount") | |
409 | - | let | |
410 | - | let | |
411 | - | let aA = [invoke(U, "integerEntry", [I(), ( | |
410 | + | let bp = valueOrElse(getInteger(U, I()), 0) | |
411 | + | let bl = [ScriptTransfer(U, bi, bj)] | |
412 | + | let aA = [invoke(U, "integerEntry", [I(), (bp + bi)], nil), invoke(U, "stringEntry", [J(x, ah.transactionId), L(d, bi, (aE + 1), unit)], nil)] | |
412 | 413 | if ((aA == aA)) | |
413 | - | then $Tuple2( | |
414 | + | then $Tuple2(bl, aA) | |
414 | 415 | else throw("Strict value is not equal to itself.") | |
415 | 416 | } | |
416 | 417 | else throw("Strict value is not equal to itself.") | |
424 | 425 | if ((ax == ax)) | |
425 | 426 | then { | |
426 | 427 | let x = Address(aw) | |
427 | - | let | |
428 | + | let bq = valueOrErrorMessage(getString(U, J(x, K)), g("invalid withdrawal request")) | |
428 | 429 | let aE = valueOrErrorMessage(getInteger(U, z()), g("invalid period")) | |
429 | - | let | |
430 | - | let M = | |
431 | - | let N = | |
432 | - | let O = | |
433 | - | let P = | |
430 | + | let br = R(bq) | |
431 | + | let M = br._1 | |
432 | + | let N = br._2 | |
433 | + | let O = br._3 | |
434 | + | let P = br._4 | |
434 | 435 | let aK = [if ((M == d)) | |
435 | 436 | then true | |
436 | 437 | else i("invalid withdrawal request status"), if ((O > aE)) | |
438 | 439 | else i("invalid withdrawal request period")] | |
439 | 440 | if ((aK == aK)) | |
440 | 441 | then { | |
441 | - | let | |
442 | - | let aA = [invoke(U, "integerEntry", [I(), if (( | |
443 | - | then ( | |
442 | + | let bp = valueOrErrorMessage(getInteger(U, I()), g("invalid total withdrawal amount")) | |
443 | + | let aA = [invoke(U, "integerEntry", [I(), if ((bp >= N)) | |
444 | + | then (bp - N) | |
444 | 445 | else i("invalid withdrawal amount")], nil), invoke(U, "deleteEntry", [J(x, K)], nil), invoke(U, "transferAsset", [aw, N, Y], nil)] | |
445 | 446 | if ((aA == aA)) | |
446 | 447 | then $Tuple2(nil, aA) | |
460 | 461 | then { | |
461 | 462 | let x = Address(aw) | |
462 | 463 | let aE = valueOrErrorMessage(getInteger(U, z()), g("invalid period")) | |
463 | - | let | |
464 | - | let | |
465 | - | let M = | |
466 | - | let N = | |
467 | - | let O = | |
468 | - | let P = | |
464 | + | let bq = valueOrErrorMessage(getString(U, J(x, K)), g("invalid withdrawal request")) | |
465 | + | let bs = R(bq) | |
466 | + | let M = bs._1 | |
467 | + | let N = bs._2 | |
468 | + | let O = bs._3 | |
469 | + | let P = bs._4 | |
469 | 470 | if ((M == e)) | |
470 | 471 | then i("invalid withdrawal request status") | |
471 | 472 | else if ((O > aE)) | |
472 | 473 | then i("invalid withdrawal request period") | |
473 | 474 | else { | |
474 | - | let | |
475 | - | let | |
476 | - | then fraction(N, | |
475 | + | let bt = valueOrErrorMessage(getInteger(U, A(O)), g("invalid price")) | |
476 | + | let bu = if ((bt > 0)) | |
477 | + | then fraction(N, bt, c) | |
477 | 478 | else 0 | |
478 | - | let aA = [invoke(U, "stringEntry", [J(x, K), L(e, N, O, ah.transactionId)], nil), invoke(U, "transferWaves", [aw, | |
479 | + | let aA = [invoke(U, "stringEntry", [J(x, K), L(e, N, O, ah.transactionId)], nil), invoke(U, "transferWaves", [aw, bu], nil)] | |
479 | 480 | $Tuple2(nil, aA) | |
480 | 481 | } | |
481 | 482 | } | |
496 | 497 | let aH = valueOrErrorMessage(getInteger(U, A(aE)), g("invalid price")) | |
497 | 498 | let aI = valueOrErrorMessage(getInteger(U, F()), g("invalid next block to process")) | |
498 | 499 | let aJ = ((aG + aF) - 1) | |
499 | - | let | |
500 | - | let | |
500 | + | let bv = 40 | |
501 | + | let bw = if (if (if ((height >= aI)) | |
501 | 502 | then if ((aI >= aG)) | |
502 | 503 | then true | |
503 | 504 | else (aE == 0) | |
504 | 505 | else false) | |
505 | 506 | then (aJ >= aI) | |
506 | 507 | else false) | |
507 | - | then min([((aJ - aI) + 1), | |
508 | + | then min([((aJ - aI) + 1), bv]) | |
508 | 509 | else i(g("invalid target block")) | |
509 | - | let | |
510 | - | let | |
511 | - | let | |
512 | - | func | |
513 | - | then | |
510 | + | let bx = valueOrErrorMessage(getInteger(U, E()), g("invalid block processing reward")) | |
511 | + | let by = (bx / bw) | |
512 | + | let bz = (bx - (by * bw)) | |
513 | + | func bA (bB,bC) = if ((bC >= bw)) | |
514 | + | then bB | |
514 | 515 | else { | |
515 | - | let | |
516 | - | let | |
517 | - | let | |
518 | - | let | |
519 | - | let ay = valueOrElse(getInteger(U, w( | |
520 | - | let | |
521 | - | then ( | |
522 | - | else | |
516 | + | let bD = (aI + bC) | |
517 | + | let bE = valueOrErrorMessage(blockInfoByHeight(bD), g("invalid block info")) | |
518 | + | let bF = valueOrErrorMessage(ak(bE.rewards, aa), g(("invalid treasury reward for height " + toString(bD)))) | |
519 | + | let bG = bE.generator | |
520 | + | let ay = valueOrElse(getInteger(U, w(bG)), 0) | |
521 | + | let bH = if ((bC == (bw - 1))) | |
522 | + | then (by + bz) | |
523 | + | else by | |
523 | 524 | let N = if ((aH > 0)) | |
524 | - | then fraction(( | |
525 | + | then fraction((bF - bH), c, aH) | |
525 | 526 | else 0 | |
526 | - | let | |
527 | - | if (( | |
527 | + | let bI = [invoke(U, "stringEntry", [G(bD), makeString([toBase58String(ah.transactionId), toString(aE), toString(bG), toBase58String(aw), toString(bF), toString(bH), toString(N)], a)], nil), invoke(U, "integerEntry", [w(bG), (ay + N)], nil)] | |
528 | + | if ((bI == bI)) | |
528 | 529 | then { | |
529 | - | let | |
530 | - | let | |
531 | - | let | |
532 | - | $Tuple2(( | |
530 | + | let bJ = bB | |
531 | + | let bK = bJ._1 | |
532 | + | let bL = bJ._2 | |
533 | + | $Tuple2((bK + N), (bL + bF)) | |
533 | 534 | } | |
534 | 535 | else throw("Strict value is not equal to itself.") | |
535 | 536 | } | |
536 | 537 | ||
537 | - | let | |
538 | - | let | |
539 | - | let | |
540 | - | let | |
541 | - | let | |
542 | - | func | |
543 | - | then | |
544 | - | else | |
538 | + | let bM = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39] | |
539 | + | let bN = { | |
540 | + | let bO = bM | |
541 | + | let bP = size(bO) | |
542 | + | let bQ = $Tuple2(0, 0) | |
543 | + | func bR (bS,bT) = if ((bT >= bP)) | |
544 | + | then bS | |
545 | + | else bA(bS, bO[bT]) | |
545 | 546 | ||
546 | - | func | |
547 | - | then | |
547 | + | func bU (bS,bT) = if ((bT >= bP)) | |
548 | + | then bS | |
548 | 549 | else throw("List size exceeds 40") | |
549 | 550 | ||
550 | - | | |
551 | + | bU(bR(bR(bR(bR(bR(bR(bR(bR(bR(bR(bR(bR(bR(bR(bR(bR(bR(bR(bR(bR(bR(bR(bR(bR(bR(bR(bR(bR(bR(bR(bR(bR(bR(bR(bR(bR(bR(bR(bR(bR(bQ, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30), 31), 32), 33), 34), 35), 36), 37), 38), 39), 40) | |
551 | 552 | } | |
552 | - | if (( | |
553 | + | if ((bN == bN)) | |
553 | 554 | then { | |
554 | - | let | |
555 | - | let | |
556 | - | let | |
557 | - | let | |
558 | - | let | |
559 | - | if (( | |
555 | + | let bV = bN._2 | |
556 | + | let bW = bN._1 | |
557 | + | let bX = (bV - bx) | |
558 | + | let bo = valueOrElse(getInteger(U, u(unit)), 0) | |
559 | + | let bl = [invoke(U, "reissue", [bW], nil), invoke(U, "integerEntry", [F(), (aI + bw)], nil), invoke(U, "transferFromProxyTreasury", [ac.bytes, bX], nil), invoke(U, "transferFromProxyTreasury", [aw, bx], nil), invoke(U, "integerEntry", [u(unit), (bo + bX)], nil)] | |
560 | + | if ((bl == bl)) | |
560 | 561 | then $Tuple2(nil, unit) | |
561 | 562 | else throw("Strict value is not equal to itself.") | |
562 | 563 | } | |
566 | 567 | } | |
567 | 568 | ||
568 | 569 | ||
569 | - | @Verifier( | |
570 | - | func | |
571 | - | let | |
570 | + | @Verifier(bY) | |
571 | + | func bZ () = { | |
572 | + | let ca = { | |
572 | 573 | let l = ad() | |
573 | 574 | if ($isInstanceOf(l, "ByteVector")) | |
574 | 575 | then { | |
575 | 576 | let af = l | |
576 | 577 | af | |
577 | 578 | } | |
578 | - | else | |
579 | + | else bY.senderPublicKey | |
579 | 580 | } | |
580 | - | sigVerify( | |
581 | + | sigVerify(bY.bodyBytes, bY.proofs[0], ca) | |
581 | 582 | } | |
582 | 583 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 7 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "__" | |
5 | 5 | ||
6 | 6 | let b = "calculator.ride" | |
7 | 7 | ||
8 | 8 | let c = 100000000 | |
9 | 9 | ||
10 | 10 | let d = "PENDING" | |
11 | 11 | ||
12 | 12 | let e = "FINISHED" | |
13 | 13 | ||
14 | 14 | let f = "WAVES" | |
15 | 15 | ||
16 | 16 | func g (h) = ((b + ": ") + h) | |
17 | 17 | ||
18 | 18 | ||
19 | 19 | func i (h) = throw(g(h)) | |
20 | 20 | ||
21 | 21 | ||
22 | 22 | func j (k) = { | |
23 | 23 | let l = k | |
24 | 24 | if ($isInstanceOf(l, "ByteVector")) | |
25 | 25 | then { | |
26 | 26 | let m = l | |
27 | 27 | toBase58String(m) | |
28 | 28 | } | |
29 | 29 | else if ($isInstanceOf(l, "Unit")) | |
30 | 30 | then f | |
31 | 31 | else throw("Match error") | |
32 | 32 | } | |
33 | 33 | ||
34 | 34 | ||
35 | 35 | func n (o) = if ((0 > o)) | |
36 | 36 | then -(o) | |
37 | 37 | else o | |
38 | 38 | ||
39 | 39 | ||
40 | 40 | func p () = makeString(["%s", "factory"], a) | |
41 | 41 | ||
42 | 42 | ||
43 | 43 | func q () = makeString(["%s", "managerPublicKey"], a) | |
44 | 44 | ||
45 | 45 | ||
46 | 46 | func r () = makeString(["%s", "lpAssetId"], a) | |
47 | 47 | ||
48 | 48 | ||
49 | 49 | func s () = makeString(["%s", "proxyTreasury"], a) | |
50 | 50 | ||
51 | 51 | ||
52 | 52 | func t () = makeString(["%s", "mainTreasury"], a) | |
53 | 53 | ||
54 | 54 | ||
55 | 55 | func u (k) = makeString(["%s%s", "invested", j(k)], a) | |
56 | 56 | ||
57 | 57 | ||
58 | 58 | func v (k) = makeString(["%s%s", "donated", j(k)], a) | |
59 | 59 | ||
60 | 60 | ||
61 | 61 | func w (x) = makeString(["%s%s", "available", toString(x)], a) | |
62 | 62 | ||
63 | 63 | ||
64 | 64 | func y (x) = makeString(["%s%s", "claimed", toString(x)], a) | |
65 | 65 | ||
66 | 66 | ||
67 | 67 | func z () = makeString(["%s", "currentPeriod"], a) | |
68 | 68 | ||
69 | 69 | ||
70 | 70 | func A (B) = makeString(["%s%d", "price", toString(B)], a) | |
71 | 71 | ||
72 | 72 | ||
73 | 73 | func C (B) = makeString(["%s%d", "startHeight", toString(B)], a) | |
74 | 74 | ||
75 | 75 | ||
76 | 76 | func D () = "%s__periodLength" | |
77 | 77 | ||
78 | 78 | ||
79 | 79 | func E () = "%s__blockProcessingReward" | |
80 | 80 | ||
81 | 81 | ||
82 | 82 | func F () = "%s__nextBlockToProcess" | |
83 | 83 | ||
84 | 84 | ||
85 | 85 | func G (H) = makeString(["%s%d", "blockProcessed", toString(H)], a) | |
86 | 86 | ||
87 | 87 | ||
88 | 88 | func I () = "%s__withdrawal" | |
89 | 89 | ||
90 | 90 | ||
91 | 91 | func J (x,K) = makeString(["%s%s%s", "withdrawal", toString(x), toBase58String(K)], a) | |
92 | 92 | ||
93 | 93 | ||
94 | 94 | func L (M,N,O,P) = { | |
95 | 95 | let Q = { | |
96 | 96 | let l = P | |
97 | 97 | if ($isInstanceOf(l, "ByteVector")) | |
98 | 98 | then { | |
99 | 99 | let m = l | |
100 | 100 | toBase58String(m) | |
101 | 101 | } | |
102 | 102 | else if ($isInstanceOf(l, "Unit")) | |
103 | 103 | then "SOON" | |
104 | 104 | else throw("Match error") | |
105 | 105 | } | |
106 | 106 | makeString(["%s%d%d%s", M, toString(N), toString(O), Q], a) | |
107 | 107 | } | |
108 | 108 | ||
109 | 109 | ||
110 | 110 | func R (h) = { | |
111 | 111 | let S = split(h, a) | |
112 | 112 | if ((size(S) == 5)) | |
113 | 113 | then { | |
114 | 114 | let M = S[1] | |
115 | 115 | let N = valueOrErrorMessage(parseInt(S[2]), g("invalid lpAssetAmount")) | |
116 | 116 | let O = valueOrErrorMessage(parseInt(S[3]), g("invalid targetPeriod")) | |
117 | 117 | let P = S[4] | |
118 | 118 | $Tuple4(M, N, O, P) | |
119 | 119 | } | |
120 | 120 | else i("invalid withdrawal request value") | |
121 | 121 | } | |
122 | 122 | ||
123 | 123 | ||
124 | 124 | let T = { | |
125 | 125 | let l = getString(this, p()) | |
126 | 126 | if ($isInstanceOf(l, "String")) | |
127 | 127 | then { | |
128 | 128 | let h = l | |
129 | 129 | addressFromString(h) | |
130 | 130 | } | |
131 | 131 | else if ($isInstanceOf(l, "Unit")) | |
132 | 132 | then unit | |
133 | 133 | else throw("Match error") | |
134 | 134 | } | |
135 | 135 | ||
136 | 136 | let U = valueOrErrorMessage(T, g("invalid factory address")) | |
137 | 137 | ||
138 | 138 | let V = { | |
139 | 139 | let l = T | |
140 | 140 | if ($isInstanceOf(l, "Address")) | |
141 | 141 | then { | |
142 | 142 | let W = l | |
143 | 143 | let X = getString(W, r()) | |
144 | 144 | if ($isInstanceOf(X, "String")) | |
145 | 145 | then { | |
146 | 146 | let h = X | |
147 | 147 | fromBase58String(h) | |
148 | 148 | } | |
149 | 149 | else if ($isInstanceOf(X, "Unit")) | |
150 | 150 | then unit | |
151 | 151 | else throw("Match error") | |
152 | 152 | } | |
153 | 153 | else if ($isInstanceOf(l, "Unit")) | |
154 | 154 | then unit | |
155 | 155 | else throw("Match error") | |
156 | 156 | } | |
157 | 157 | ||
158 | 158 | let Y = valueOrErrorMessage(V, g("invalid lpAssetId")) | |
159 | 159 | ||
160 | 160 | let Z = { | |
161 | 161 | let l = T | |
162 | 162 | if ($isInstanceOf(l, "Address")) | |
163 | 163 | then { | |
164 | 164 | let W = l | |
165 | 165 | let X = getString(W, s()) | |
166 | 166 | if ($isInstanceOf(X, "String")) | |
167 | 167 | then { | |
168 | 168 | let h = X | |
169 | 169 | addressFromString(h) | |
170 | 170 | } | |
171 | 171 | else if ($isInstanceOf(X, "Unit")) | |
172 | 172 | then unit | |
173 | 173 | else throw("Match error") | |
174 | 174 | } | |
175 | 175 | else if ($isInstanceOf(l, "Unit")) | |
176 | 176 | then unit | |
177 | 177 | else throw("Match error") | |
178 | 178 | } | |
179 | 179 | ||
180 | 180 | let aa = valueOrErrorMessage(Z, g("invalid proxy treasury address")) | |
181 | 181 | ||
182 | 182 | let ab = { | |
183 | 183 | let l = T | |
184 | 184 | if ($isInstanceOf(l, "Address")) | |
185 | 185 | then { | |
186 | 186 | let W = l | |
187 | 187 | let X = getString(W, t()) | |
188 | 188 | if ($isInstanceOf(X, "String")) | |
189 | 189 | then { | |
190 | 190 | let h = X | |
191 | 191 | addressFromString(h) | |
192 | 192 | } | |
193 | 193 | else if ($isInstanceOf(X, "Unit")) | |
194 | 194 | then unit | |
195 | 195 | else throw("Match error") | |
196 | 196 | } | |
197 | 197 | else if ($isInstanceOf(l, "Unit")) | |
198 | 198 | then unit | |
199 | 199 | else throw("Match error") | |
200 | 200 | } | |
201 | 201 | ||
202 | 202 | let ac = valueOrErrorMessage(ab, g("invalid main treasury address")) | |
203 | 203 | ||
204 | 204 | func ad () = { | |
205 | 205 | let l = T | |
206 | 206 | if ($isInstanceOf(l, "Address")) | |
207 | 207 | then { | |
208 | 208 | let ae = l | |
209 | 209 | let X = getString(ae, q()) | |
210 | 210 | if ($isInstanceOf(X, "String")) | |
211 | 211 | then { | |
212 | 212 | let af = X | |
213 | 213 | fromBase58String(af) | |
214 | 214 | } | |
215 | 215 | else unit | |
216 | 216 | } | |
217 | 217 | else unit | |
218 | 218 | } | |
219 | 219 | ||
220 | 220 | ||
221 | 221 | func ag (ah,ai) = if ((ah.caller == ai)) | |
222 | 222 | then true | |
223 | 223 | else i("permission denied") | |
224 | 224 | ||
225 | 225 | ||
226 | 226 | func aj (ah) = ag(ah, U) | |
227 | 227 | ||
228 | 228 | ||
229 | 229 | func ak (al,am) = { | |
230 | 230 | let h = size(al) | |
231 | 231 | let an = al[0] | |
232 | 232 | let ao = an._1 | |
233 | 233 | let ap = an._2 | |
234 | 234 | let aq = al[1] | |
235 | 235 | let ar = aq._1 | |
236 | 236 | let as = aq._2 | |
237 | 237 | let at = al[2] | |
238 | 238 | let au = at._1 | |
239 | 239 | let av = at._2 | |
240 | 240 | if (if ((h > 0)) | |
241 | 241 | then (ao == am) | |
242 | 242 | else false) | |
243 | 243 | then ap | |
244 | 244 | else if (if ((h > 1)) | |
245 | 245 | then (ar == am) | |
246 | 246 | else false) | |
247 | 247 | then as | |
248 | 248 | else if (if ((h > 2)) | |
249 | 249 | then (au == am) | |
250 | 250 | else false) | |
251 | 251 | then av | |
252 | 252 | else unit | |
253 | 253 | } | |
254 | 254 | ||
255 | 255 | ||
256 | 256 | @Callable(ah) | |
257 | 257 | func claimLP (aw) = { | |
258 | 258 | let ax = aj(ah) | |
259 | 259 | if ((ax == ax)) | |
260 | 260 | then { | |
261 | 261 | let x = Address(aw) | |
262 | 262 | let ay = valueOrElse(getInteger(U, w(x)), 0) | |
263 | 263 | let az = valueOrElse(getInteger(U, y(x)), 0) | |
264 | 264 | let aA = if ((ay > 0)) | |
265 | 265 | then [invoke(U, "transferAsset", [aw, ay, Y], nil), invoke(U, "integerEntry", [w(x), 0], nil), invoke(U, "integerEntry", [y(x), (az + ay)], nil)] | |
266 | 266 | else i("nothing to claim") | |
267 | 267 | $Tuple2(nil, aA) | |
268 | 268 | } | |
269 | 269 | else throw("Strict value is not equal to itself.") | |
270 | 270 | } | |
271 | 271 | ||
272 | 272 | ||
273 | 273 | ||
274 | 274 | @Callable(ah) | |
275 | 275 | func finalize (aw,aB,aC,aD) = { | |
276 | 276 | let ax = aj(ah) | |
277 | 277 | if ((ax == ax)) | |
278 | 278 | then { | |
279 | 279 | let aE = valueOrErrorMessage(getInteger(U, z()), g("invalid period")) | |
280 | 280 | let aF = valueOrErrorMessage(getInteger(U, D()), g("invalid period length")) | |
281 | 281 | let aG = valueOrErrorMessage(getInteger(U, C(aE)), g("invalid start height")) | |
282 | 282 | let aH = valueOrErrorMessage(getInteger(U, A(aE)), g("invalid price")) | |
283 | 283 | let aI = valueOrErrorMessage(getInteger(U, F()), g("invalid next block to process")) | |
284 | 284 | let aJ = ((aG + aF) - 1) | |
285 | 285 | let aK = [if ((ah.originCaller == ac)) | |
286 | 286 | then true | |
287 | 287 | else i("permission denied"), if ((aI > aJ)) | |
288 | 288 | then true | |
289 | 289 | else i("unprocessed blocks"), if ((aB >= 0)) | |
290 | 290 | then true | |
291 | 291 | else i("invalid new treasury volume"), if ((aC >= 0)) | |
292 | 292 | then true | |
293 | 293 | else i("invalid PWR managers bonus"), if (if ((aD >= -(c))) | |
294 | 294 | then (c >= aD) | |
295 | 295 | else false) | |
296 | 296 | then true | |
297 | 297 | else i("invalid treasury volume diff allocation coefficient")] | |
298 | 298 | if ((aK == aK)) | |
299 | 299 | then { | |
300 | 300 | let aL = valueOrElse(getInteger(U, v(unit)), 0) | |
301 | 301 | let aM = valueOrElse(getInteger(U, u(unit)), 0) | |
302 | 302 | let aN = (aL + aM) | |
303 | 303 | let aO = (aB - aN) | |
304 | 304 | let aP = if (if ((aO > 0)) | |
305 | 305 | then (aO >= aC) | |
306 | 306 | else false) | |
307 | 307 | then aC | |
308 | 308 | else 0 | |
309 | 309 | let aQ = (aO - aP) | |
310 | 310 | let aR = if ((aN > 0)) | |
311 | 311 | then fraction(aL, c, aN) | |
312 | 312 | else 0 | |
313 | 313 | let aS = fraction(aQ, aR, c) | |
314 | 314 | let aT = (aQ - aS) | |
315 | 315 | let aU = n(aD) | |
316 | 316 | let aV = fraction(aT, if ((0 > aD)) | |
317 | 317 | then aU | |
318 | 318 | else 0, c) | |
319 | 319 | let aW = fraction(aS, if ((aD > 0)) | |
320 | 320 | then aU | |
321 | 321 | else 0, c) | |
322 | 322 | let aX = ((aS - aW) + aV) | |
323 | 323 | let aY = ((aT - aV) + aW) | |
324 | 324 | let aZ = (aM + aY) | |
325 | - | let ba = (aE + 1) | |
326 | - | let bb = valueOrErrorMessage(assetInfo(Y), g("invalid lpAsset info")).quantity | |
327 | - | let bc = fraction(aZ, c, bb) | |
328 | - | let bd = valueOrElse(getInteger(U, I()), 0) | |
329 | - | let be = (bb - bd) | |
330 | - | let bf = max([0, fraction(bd, bc, c)]) | |
331 | - | let bg = if ((size(ah.payments) > 0)) | |
325 | + | let ba = (aL + aX) | |
326 | + | let bb = (aE + 1) | |
327 | + | let bc = valueOrErrorMessage(assetInfo(Y), g("invalid lpAsset info")).quantity | |
328 | + | let bd = fraction(aZ, c, bc) | |
329 | + | let be = valueOrElse(getInteger(U, I()), 0) | |
330 | + | let bf = (bc - be) | |
331 | + | let bg = max([0, fraction(be, bd, c)]) | |
332 | + | let bh = if ((size(ah.payments) > 0)) | |
332 | 333 | then ah.payments[0] | |
333 | 334 | else unit | |
334 | - | let | |
335 | - | let | |
336 | - | let | |
335 | + | let bi = value(bh).amount | |
336 | + | let bj = value(bh).assetId | |
337 | + | let bk = if (if ((bg == 0)) | |
337 | 338 | then true | |
338 | - | else if (if (( | |
339 | - | then ( | |
339 | + | else if (if ((bh != unit)) | |
340 | + | then (bj == unit) | |
340 | 341 | else false) | |
341 | - | then ( | |
342 | + | then (bi >= bg) | |
342 | 343 | else false) | |
343 | 344 | then true | |
344 | - | else i(("invalid payments, payment amount min: " + toString( | |
345 | - | if (( | |
345 | + | else i(("invalid payments, payment amount min: " + toString(bg))) | |
346 | + | if ((bk == bk)) | |
346 | 347 | then { | |
347 | - | let | |
348 | - | then [ScriptTransfer(U, | |
348 | + | let bl = if ((bh != unit)) | |
349 | + | then [ScriptTransfer(U, bi, bj)] | |
349 | 350 | else nil | |
350 | - | let aA = [invoke(U, "integerEntry", [z(), | |
351 | - | $Tuple2( | |
351 | + | let aA = [invoke(U, "integerEntry", [z(), bb], nil), invoke(U, "integerEntry", [A(bb), bd], nil), invoke(U, "integerEntry", [C(bb), (aJ + 1)], nil), invoke(U, "burn", [be], nil), invoke(U, "integerEntry", [I(), 0], nil), invoke(U, "integerEntry", [u(unit), aZ], nil), invoke(U, "integerEntry", [v(unit), ba], nil)] | |
352 | + | $Tuple2(bl, aA) | |
352 | 353 | } | |
353 | 354 | else throw("Strict value is not equal to itself.") | |
354 | 355 | } | |
355 | 356 | else throw("Strict value is not equal to itself.") | |
356 | 357 | } | |
357 | 358 | else throw("Strict value is not equal to itself.") | |
358 | 359 | } | |
359 | 360 | ||
360 | 361 | ||
361 | 362 | ||
362 | 363 | @Callable(ah) | |
363 | 364 | func invest (aw) = { | |
364 | 365 | let ax = aj(ah) | |
365 | 366 | if ((ax == ax)) | |
366 | 367 | then { | |
367 | 368 | let x = Address(aw) | |
368 | 369 | let aE = valueOrErrorMessage(getInteger(U, z()), g("invalid period")) | |
369 | 370 | let aH = valueOrErrorMessage(getInteger(U, A(aE)), g("invalid price")) | |
370 | - | let | |
371 | + | let bm = if ((size(ah.payments) == 1)) | |
371 | 372 | then ah.payments[0] | |
372 | 373 | else i("invalid payments") | |
373 | - | let | |
374 | - | then ( | |
374 | + | let bn = if (if ((bm.assetId == unit)) | |
375 | + | then (bm.amount > 0) | |
375 | 376 | else false) | |
376 | - | then $Tuple2( | |
377 | + | then $Tuple2(bm.amount, bm.assetId) | |
377 | 378 | else i("invalid payment amount") | |
378 | - | let | |
379 | - | let | |
379 | + | let bi = bn._1 | |
380 | + | let bj = bn._2 | |
380 | 381 | let N = if ((aH > 0)) | |
381 | - | then fraction( | |
382 | + | then fraction(bi, c, aH) | |
382 | 383 | else 0 | |
383 | - | let | |
384 | - | let | |
385 | - | let aA = [invoke(U, "integerEntry", [u(unit), ( | |
386 | - | $Tuple2( | |
384 | + | let bo = valueOrElse(getInteger(U, u(unit)), 0) | |
385 | + | let bl = [ScriptTransfer(ac, bi, bj)] | |
386 | + | let aA = [invoke(U, "integerEntry", [u(unit), (bo + bi)], nil), invoke(U, "reissue", [N], nil), invoke(U, "transferAsset", [aw, N, Y], nil)] | |
387 | + | $Tuple2(bl, aA) | |
387 | 388 | } | |
388 | 389 | else throw("Strict value is not equal to itself.") | |
389 | 390 | } | |
390 | 391 | ||
391 | 392 | ||
392 | 393 | ||
393 | 394 | @Callable(ah) | |
394 | 395 | func withdraw (aw) = { | |
395 | 396 | let ax = aj(ah) | |
396 | 397 | if ((ax == ax)) | |
397 | 398 | then { | |
398 | 399 | let x = Address(aw) | |
399 | 400 | let aE = valueOrErrorMessage(getInteger(U, z()), g("invalid period")) | |
400 | - | let | |
401 | + | let bm = if ((size(ah.payments) == 1)) | |
401 | 402 | then ah.payments[0] | |
402 | 403 | else i(g("invalid payments")) | |
403 | - | let | |
404 | + | let bj = if ((bm.assetId == Y)) | |
404 | 405 | then Y | |
405 | 406 | else i("invalid payment asset") | |
406 | - | let | |
407 | - | then | |
407 | + | let bi = if ((bm.amount > 0)) | |
408 | + | then bm.amount | |
408 | 409 | else i("invalid payment amount") | |
409 | - | let | |
410 | - | let | |
411 | - | let aA = [invoke(U, "integerEntry", [I(), ( | |
410 | + | let bp = valueOrElse(getInteger(U, I()), 0) | |
411 | + | let bl = [ScriptTransfer(U, bi, bj)] | |
412 | + | let aA = [invoke(U, "integerEntry", [I(), (bp + bi)], nil), invoke(U, "stringEntry", [J(x, ah.transactionId), L(d, bi, (aE + 1), unit)], nil)] | |
412 | 413 | if ((aA == aA)) | |
413 | - | then $Tuple2( | |
414 | + | then $Tuple2(bl, aA) | |
414 | 415 | else throw("Strict value is not equal to itself.") | |
415 | 416 | } | |
416 | 417 | else throw("Strict value is not equal to itself.") | |
417 | 418 | } | |
418 | 419 | ||
419 | 420 | ||
420 | 421 | ||
421 | 422 | @Callable(ah) | |
422 | 423 | func cancelWithdraw (aw,K) = { | |
423 | 424 | let ax = aj(ah) | |
424 | 425 | if ((ax == ax)) | |
425 | 426 | then { | |
426 | 427 | let x = Address(aw) | |
427 | - | let | |
428 | + | let bq = valueOrErrorMessage(getString(U, J(x, K)), g("invalid withdrawal request")) | |
428 | 429 | let aE = valueOrErrorMessage(getInteger(U, z()), g("invalid period")) | |
429 | - | let | |
430 | - | let M = | |
431 | - | let N = | |
432 | - | let O = | |
433 | - | let P = | |
430 | + | let br = R(bq) | |
431 | + | let M = br._1 | |
432 | + | let N = br._2 | |
433 | + | let O = br._3 | |
434 | + | let P = br._4 | |
434 | 435 | let aK = [if ((M == d)) | |
435 | 436 | then true | |
436 | 437 | else i("invalid withdrawal request status"), if ((O > aE)) | |
437 | 438 | then true | |
438 | 439 | else i("invalid withdrawal request period")] | |
439 | 440 | if ((aK == aK)) | |
440 | 441 | then { | |
441 | - | let | |
442 | - | let aA = [invoke(U, "integerEntry", [I(), if (( | |
443 | - | then ( | |
442 | + | let bp = valueOrErrorMessage(getInteger(U, I()), g("invalid total withdrawal amount")) | |
443 | + | let aA = [invoke(U, "integerEntry", [I(), if ((bp >= N)) | |
444 | + | then (bp - N) | |
444 | 445 | else i("invalid withdrawal amount")], nil), invoke(U, "deleteEntry", [J(x, K)], nil), invoke(U, "transferAsset", [aw, N, Y], nil)] | |
445 | 446 | if ((aA == aA)) | |
446 | 447 | then $Tuple2(nil, aA) | |
447 | 448 | else throw("Strict value is not equal to itself.") | |
448 | 449 | } | |
449 | 450 | else throw("Strict value is not equal to itself.") | |
450 | 451 | } | |
451 | 452 | else throw("Strict value is not equal to itself.") | |
452 | 453 | } | |
453 | 454 | ||
454 | 455 | ||
455 | 456 | ||
456 | 457 | @Callable(ah) | |
457 | 458 | func claimWaves (aw,K) = { | |
458 | 459 | let ax = aj(ah) | |
459 | 460 | if ((ax == ax)) | |
460 | 461 | then { | |
461 | 462 | let x = Address(aw) | |
462 | 463 | let aE = valueOrErrorMessage(getInteger(U, z()), g("invalid period")) | |
463 | - | let | |
464 | - | let | |
465 | - | let M = | |
466 | - | let N = | |
467 | - | let O = | |
468 | - | let P = | |
464 | + | let bq = valueOrErrorMessage(getString(U, J(x, K)), g("invalid withdrawal request")) | |
465 | + | let bs = R(bq) | |
466 | + | let M = bs._1 | |
467 | + | let N = bs._2 | |
468 | + | let O = bs._3 | |
469 | + | let P = bs._4 | |
469 | 470 | if ((M == e)) | |
470 | 471 | then i("invalid withdrawal request status") | |
471 | 472 | else if ((O > aE)) | |
472 | 473 | then i("invalid withdrawal request period") | |
473 | 474 | else { | |
474 | - | let | |
475 | - | let | |
476 | - | then fraction(N, | |
475 | + | let bt = valueOrErrorMessage(getInteger(U, A(O)), g("invalid price")) | |
476 | + | let bu = if ((bt > 0)) | |
477 | + | then fraction(N, bt, c) | |
477 | 478 | else 0 | |
478 | - | let aA = [invoke(U, "stringEntry", [J(x, K), L(e, N, O, ah.transactionId)], nil), invoke(U, "transferWaves", [aw, | |
479 | + | let aA = [invoke(U, "stringEntry", [J(x, K), L(e, N, O, ah.transactionId)], nil), invoke(U, "transferWaves", [aw, bu], nil)] | |
479 | 480 | $Tuple2(nil, aA) | |
480 | 481 | } | |
481 | 482 | } | |
482 | 483 | else throw("Strict value is not equal to itself.") | |
483 | 484 | } | |
484 | 485 | ||
485 | 486 | ||
486 | 487 | ||
487 | 488 | @Callable(ah) | |
488 | 489 | func processBlocks (aw) = { | |
489 | 490 | let ax = aj(ah) | |
490 | 491 | if ((ax == ax)) | |
491 | 492 | then { | |
492 | 493 | let x = Address(aw) | |
493 | 494 | let aE = valueOrErrorMessage(getInteger(U, z()), g("invalid period")) | |
494 | 495 | let aF = valueOrErrorMessage(getInteger(U, D()), g("invalid period length")) | |
495 | 496 | let aG = valueOrErrorMessage(getInteger(U, C(aE)), g("invalid start height")) | |
496 | 497 | let aH = valueOrErrorMessage(getInteger(U, A(aE)), g("invalid price")) | |
497 | 498 | let aI = valueOrErrorMessage(getInteger(U, F()), g("invalid next block to process")) | |
498 | 499 | let aJ = ((aG + aF) - 1) | |
499 | - | let | |
500 | - | let | |
500 | + | let bv = 40 | |
501 | + | let bw = if (if (if ((height >= aI)) | |
501 | 502 | then if ((aI >= aG)) | |
502 | 503 | then true | |
503 | 504 | else (aE == 0) | |
504 | 505 | else false) | |
505 | 506 | then (aJ >= aI) | |
506 | 507 | else false) | |
507 | - | then min([((aJ - aI) + 1), | |
508 | + | then min([((aJ - aI) + 1), bv]) | |
508 | 509 | else i(g("invalid target block")) | |
509 | - | let | |
510 | - | let | |
511 | - | let | |
512 | - | func | |
513 | - | then | |
510 | + | let bx = valueOrErrorMessage(getInteger(U, E()), g("invalid block processing reward")) | |
511 | + | let by = (bx / bw) | |
512 | + | let bz = (bx - (by * bw)) | |
513 | + | func bA (bB,bC) = if ((bC >= bw)) | |
514 | + | then bB | |
514 | 515 | else { | |
515 | - | let | |
516 | - | let | |
517 | - | let | |
518 | - | let | |
519 | - | let ay = valueOrElse(getInteger(U, w( | |
520 | - | let | |
521 | - | then ( | |
522 | - | else | |
516 | + | let bD = (aI + bC) | |
517 | + | let bE = valueOrErrorMessage(blockInfoByHeight(bD), g("invalid block info")) | |
518 | + | let bF = valueOrErrorMessage(ak(bE.rewards, aa), g(("invalid treasury reward for height " + toString(bD)))) | |
519 | + | let bG = bE.generator | |
520 | + | let ay = valueOrElse(getInteger(U, w(bG)), 0) | |
521 | + | let bH = if ((bC == (bw - 1))) | |
522 | + | then (by + bz) | |
523 | + | else by | |
523 | 524 | let N = if ((aH > 0)) | |
524 | - | then fraction(( | |
525 | + | then fraction((bF - bH), c, aH) | |
525 | 526 | else 0 | |
526 | - | let | |
527 | - | if (( | |
527 | + | let bI = [invoke(U, "stringEntry", [G(bD), makeString([toBase58String(ah.transactionId), toString(aE), toString(bG), toBase58String(aw), toString(bF), toString(bH), toString(N)], a)], nil), invoke(U, "integerEntry", [w(bG), (ay + N)], nil)] | |
528 | + | if ((bI == bI)) | |
528 | 529 | then { | |
529 | - | let | |
530 | - | let | |
531 | - | let | |
532 | - | $Tuple2(( | |
530 | + | let bJ = bB | |
531 | + | let bK = bJ._1 | |
532 | + | let bL = bJ._2 | |
533 | + | $Tuple2((bK + N), (bL + bF)) | |
533 | 534 | } | |
534 | 535 | else throw("Strict value is not equal to itself.") | |
535 | 536 | } | |
536 | 537 | ||
537 | - | let | |
538 | - | let | |
539 | - | let | |
540 | - | let | |
541 | - | let | |
542 | - | func | |
543 | - | then | |
544 | - | else | |
538 | + | let bM = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39] | |
539 | + | let bN = { | |
540 | + | let bO = bM | |
541 | + | let bP = size(bO) | |
542 | + | let bQ = $Tuple2(0, 0) | |
543 | + | func bR (bS,bT) = if ((bT >= bP)) | |
544 | + | then bS | |
545 | + | else bA(bS, bO[bT]) | |
545 | 546 | ||
546 | - | func | |
547 | - | then | |
547 | + | func bU (bS,bT) = if ((bT >= bP)) | |
548 | + | then bS | |
548 | 549 | else throw("List size exceeds 40") | |
549 | 550 | ||
550 | - | | |
551 | + | bU(bR(bR(bR(bR(bR(bR(bR(bR(bR(bR(bR(bR(bR(bR(bR(bR(bR(bR(bR(bR(bR(bR(bR(bR(bR(bR(bR(bR(bR(bR(bR(bR(bR(bR(bR(bR(bR(bR(bR(bR(bQ, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30), 31), 32), 33), 34), 35), 36), 37), 38), 39), 40) | |
551 | 552 | } | |
552 | - | if (( | |
553 | + | if ((bN == bN)) | |
553 | 554 | then { | |
554 | - | let | |
555 | - | let | |
556 | - | let | |
557 | - | let | |
558 | - | let | |
559 | - | if (( | |
555 | + | let bV = bN._2 | |
556 | + | let bW = bN._1 | |
557 | + | let bX = (bV - bx) | |
558 | + | let bo = valueOrElse(getInteger(U, u(unit)), 0) | |
559 | + | let bl = [invoke(U, "reissue", [bW], nil), invoke(U, "integerEntry", [F(), (aI + bw)], nil), invoke(U, "transferFromProxyTreasury", [ac.bytes, bX], nil), invoke(U, "transferFromProxyTreasury", [aw, bx], nil), invoke(U, "integerEntry", [u(unit), (bo + bX)], nil)] | |
560 | + | if ((bl == bl)) | |
560 | 561 | then $Tuple2(nil, unit) | |
561 | 562 | else throw("Strict value is not equal to itself.") | |
562 | 563 | } | |
563 | 564 | else throw("Strict value is not equal to itself.") | |
564 | 565 | } | |
565 | 566 | else throw("Strict value is not equal to itself.") | |
566 | 567 | } | |
567 | 568 | ||
568 | 569 | ||
569 | - | @Verifier( | |
570 | - | func | |
571 | - | let | |
570 | + | @Verifier(bY) | |
571 | + | func bZ () = { | |
572 | + | let ca = { | |
572 | 573 | let l = ad() | |
573 | 574 | if ($isInstanceOf(l, "ByteVector")) | |
574 | 575 | then { | |
575 | 576 | let af = l | |
576 | 577 | af | |
577 | 578 | } | |
578 | - | else | |
579 | + | else bY.senderPublicKey | |
579 | 580 | } | |
580 | - | sigVerify( | |
581 | + | sigVerify(bY.bodyBytes, bY.proofs[0], ca) | |
581 | 582 | } | |
582 | 583 |
github/deemru/w8io/169f3d6 139.41 ms ◑