tx · oZphfpjiAh6XS7JGv64HBkSi5Zx1xfzAiYepE8CJrQP 3MsNhK6uve98J6DeqbuwGFBRh9GoHPGUFgp: -0.02200000 Waves 2022.11.01 14:15 [2297978] smart account 3MsNhK6uve98J6DeqbuwGFBRh9GoHPGUFgp > SELF 0.00000000 Waves
{ "type": 13, "id": "oZphfpjiAh6XS7JGv64HBkSi5Zx1xfzAiYepE8CJrQP", "fee": 2200000, "feeAssetId": null, "timestamp": 1667301276590, "version": 1, "sender": "3MsNhK6uve98J6DeqbuwGFBRh9GoHPGUFgp", "senderPublicKey": "86RHVxKovtU7yKnepY8wKsd8niDxGAsiwuA1XA1DNqrS", "proofs": [ "3XvJLca41LH91e76Ar9eypvXw1B29unHpM4G95Y4AFSvqPbRtV3a58WHxWnwFFbdCWoA9nyVNaNFJ45b96bmP1Qe" ], "script": "base64:BgK3IQgCEgMKAQgSAwoBCBIECgIICBIJCgcBERERGAgYEgcKBRERERgIEgcKBQEBAQgIEgASAwoBCBIECgIIARIECgIIARIECgIIARIDCgEIEgMKAQgSACIGU0NBTEU4IgVNVUxUOCIHU0NBTEUxOCIGTVVMVDE4IgNTRVAiDlBPT0xXRUlHSFRNVUxUIgp6ZXJvQmlnSW50Ig5pZHhQb29sQWRkcmVzcyINaWR4UG9vbFN0YXR1cyIQaWR4UG9vbExQQXNzZXRJZCINaWR4QW10QXNzZXRJZCIPaWR4UHJpY2VBc3NldElkIg5pZHhBbXRBc3NldERjbSIQaWR4UHJpY2VBc3NldERjbSIOaWR4SUFtdEFzc2V0SWQiEGlkeElQcmljZUFzc2V0SWQiDWlkeExQQXNzZXREY20iD2dldFN0cmluZ09yRmFpbCIDa2V5IhhnZXRTdHJpbmdCeUFkZHJlc3NPckZhaWwiB2FkZHJlc3MiDGdldEludE9yWmVybyIMZ2V0SW50T3JGYWlsIglhc0FueUxpc3QiA3ZhbCIHJG1hdGNoMCIKdmFsQW55THlzdCIFYXNJbnQiBnZhbEludCIIYXNTdHJpbmciBnZhbFN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ECYnUAAwkAAQIFAXoCCkJ5dGVWZWN0b3IEAmJBBQF6BQJiQQMJAAECBQF6AgRVbml0CAUCZFYPc2VuZGVyUHVibGljS2V5CQACAQILTWF0Y2ggZXJyb3IJAPQDAwgFAmRWCWJvZHlCeXRlcwkAkQMCCAUCZFYGcHJvb2ZzAAAFAmRYBNNwrw==", "chainId": 84, "height": 2297978, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: EZNFSYbgohqpQ45C95hGygTi21AKPpukwGDFVVBYLwaU Next: Brua41sNS1zpvgVF94FQr2H65z87wYXjzq9tZzQDv4Xg Diff:
Old | New | Differences | |
---|---|---|---|
504 | 504 | let di = B(invoke(aU, "fromX18WrapperREADONLY", [df[2], b], nil)) | |
505 | 505 | let bg = getIntegerValue(aX, V(toString(aU))) | |
506 | 506 | let dj = aT(aU) | |
507 | - | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d", toString(dd), toString(de), toString(dc), toString(dg), toString(dh), toString(di), toString(bg), toString(dj)], e)) | |
507 | + | let dk = { | |
508 | + | let bW = invoke(aX, "isPoolOneTokenOperationsDisabledREADONLY", [toString(aU)], nil) | |
509 | + | if ($isInstanceOf(bW, "Boolean")) | |
510 | + | then bW | |
511 | + | else throw(($getType(bW) + " couldn't be cast to Boolean")) | |
512 | + | } | |
513 | + | let dl = !(dk) | |
514 | + | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d%s", toString(dd), toString(de), toString(dc), toString(dg), toString(dh), toString(di), toString(bg), toString(dj), toString(dl)], e)) | |
508 | 515 | } | |
509 | 516 | ||
510 | 517 | ||
511 | 518 | ||
512 | 519 | @Callable(by) | |
513 | - | func poolEvaluatePutByAmountAssetREADONLY (cU, | |
520 | + | func poolEvaluatePutByAmountAssetREADONLY (cU,dm) = { | |
514 | 521 | let aU = addressFromStringValue(t(aX, U(cU))) | |
515 | 522 | let cV = x(invoke(aU, "getPoolConfigWrapperREADONLY", nil, nil)) | |
516 | 523 | let bd = fromBase58String(D(cV[j])) | |
517 | - | let dl = D(cV[k]) | |
518 | - | let dm = fromBase58String(dl) | |
519 | - | let dn = D(cV[l]) | |
524 | + | let dn = D(cV[k]) | |
520 | 525 | let do = fromBase58String(dn) | |
526 | + | let dp = D(cV[l]) | |
527 | + | let dq = fromBase58String(dp) | |
521 | 528 | let da = parseIntValue(D(cV[m])) | |
522 | 529 | let db = parseIntValue(D(cV[n])) | |
523 | - | let | |
530 | + | let dr = D(cV[i]) | |
524 | 531 | let dc = valueOrErrorMessage(assetInfo(bd), (("Asset " + toBase58String(bd)) + " doesn't exist")).quantity | |
525 | - | let dd = B(invoke(aU, "getAccBalanceWrapperREADONLY", [ | |
526 | - | let de = B(invoke(aU, "getAccBalanceWrapperREADONLY", [ | |
527 | - | let | |
528 | - | let | |
529 | - | let | |
532 | + | let dd = B(invoke(aU, "getAccBalanceWrapperREADONLY", [dn], nil)) | |
533 | + | let de = B(invoke(aU, "getAccBalanceWrapperREADONLY", [dp], nil)) | |
534 | + | let ds = parseBigIntValue(D(invoke(aU, "toX18WrapperREADONLY", [dd, da], nil))) | |
535 | + | let dt = parseBigIntValue(D(invoke(aU, "toX18WrapperREADONLY", [de, db], nil))) | |
536 | + | let du = if ((dc == 0)) | |
530 | 537 | then g | |
531 | - | else parseBigIntValue(D(invoke(aU, "calcPriceBigIntWrapperREADONLY", [toString( | |
532 | - | let dg = B(invoke(aU, "fromX18WrapperREADONLY", [toString( | |
533 | - | let | |
534 | - | let | |
535 | - | let | |
536 | - | let bX = invoke(aU, "estimatePutOperationWrapperREADONLY", ["", 500000, | |
537 | - | let | |
538 | + | else parseBigIntValue(D(invoke(aU, "calcPriceBigIntWrapperREADONLY", [toString(dt), toString(ds)], nil))) | |
539 | + | let dg = B(invoke(aU, "fromX18WrapperREADONLY", [toString(du), b], nil)) | |
540 | + | let dv = parseBigIntValue(D(invoke(aU, "toX18WrapperREADONLY", [dm, da], nil))) | |
541 | + | let dw = fraction(dv, du, d) | |
542 | + | let dx = B(invoke(aU, "fromX18WrapperREADONLY", [toString(dw), db], nil)) | |
543 | + | let bX = invoke(aU, "estimatePutOperationWrapperREADONLY", ["", 500000, dm, do, dx, dq, "", true, false], nil) | |
544 | + | let dy = { | |
538 | 545 | let z = bX | |
539 | 546 | if (if (if ($isInstanceOf(z._1, "Int")) | |
540 | 547 | then if ($isInstanceOf(z._3, "Int")) | |
548 | 555 | then (size(z) == 13) | |
549 | 556 | else false) | |
550 | 557 | then { | |
551 | - | let | |
552 | - | let | |
553 | - | let | |
554 | - | let | |
555 | - | let | |
556 | - | $Tuple5( | |
558 | + | let dz = z._1 | |
559 | + | let dA = z._3 | |
560 | + | let dB = z._4 | |
561 | + | let dC = z._5 | |
562 | + | let dD = z._6 | |
563 | + | $Tuple5(dz, dA, dB, dC, dD) | |
557 | 564 | } | |
558 | 565 | else throw("Couldn't cast types") | |
559 | 566 | } | |
560 | - | let | |
561 | - | let | |
562 | - | let | |
563 | - | let | |
564 | - | let | |
565 | - | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d", toString( | |
567 | + | let dz = dy._1 | |
568 | + | let dA = dy._2 | |
569 | + | let dB = dy._3 | |
570 | + | let dC = dy._4 | |
571 | + | let dD = dy._5 | |
572 | + | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d", toString(dz), toString(dg), toString(dB), toString(dC), toString(dD), dr, toString(dm), toString(dx)], e)) | |
566 | 573 | } | |
567 | 574 | ||
568 | 575 | ||
569 | 576 | ||
570 | 577 | @Callable(by) | |
571 | - | func poolEvaluatePutByPriceAssetREADONLY (cU, | |
578 | + | func poolEvaluatePutByPriceAssetREADONLY (cU,dx) = { | |
572 | 579 | let aU = addressFromStringValue(t(aX, U(cU))) | |
573 | 580 | let cV = x(invoke(aU, "getPoolConfigWrapperREADONLY", nil, nil)) | |
574 | 581 | let bd = fromBase58String(D(cV[j])) | |
575 | - | let dl = D(cV[k]) | |
576 | - | let dm = fromBase58String(dl) | |
577 | - | let dn = D(cV[l]) | |
582 | + | let dn = D(cV[k]) | |
578 | 583 | let do = fromBase58String(dn) | |
584 | + | let dp = D(cV[l]) | |
585 | + | let dq = fromBase58String(dp) | |
579 | 586 | let da = parseIntValue(D(cV[m])) | |
580 | 587 | let db = parseIntValue(D(cV[n])) | |
581 | - | let | |
588 | + | let dr = D(cV[i]) | |
582 | 589 | let dc = valueOrErrorMessage(assetInfo(bd), (("Asset " + toBase58String(bd)) + " doesn't exist")).quantity | |
583 | - | let | |
584 | - | let | |
585 | - | let | |
586 | - | let | |
587 | - | let | |
590 | + | let dE = B(invoke(aU, "getAccBalanceWrapperREADONLY", [dn], nil)) | |
591 | + | let dF = B(invoke(aU, "getAccBalanceWrapperREADONLY", [dp], nil)) | |
592 | + | let dG = parseBigIntValue(D(invoke(aU, "toX18WrapperREADONLY", [dE, da], nil))) | |
593 | + | let dH = parseBigIntValue(D(invoke(aU, "toX18WrapperREADONLY", [dF, db], nil))) | |
594 | + | let du = if ((dc == 0)) | |
588 | 595 | then g | |
589 | - | else parseBigIntValue(D(invoke(aU, "calcPriceBigIntWrapperREADONLY", [toString( | |
590 | - | let dg = B(invoke(aU, "fromX18WrapperREADONLY", [toString( | |
591 | - | let | |
592 | - | let | |
593 | - | let | |
594 | - | let bX = invoke(aU, "estimatePutOperationWrapperREADONLY", ["", 500000, | |
595 | - | let | |
596 | + | else parseBigIntValue(D(invoke(aU, "calcPriceBigIntWrapperREADONLY", [toString(dH), toString(dG)], nil))) | |
597 | + | let dg = B(invoke(aU, "fromX18WrapperREADONLY", [toString(du), b], nil)) | |
598 | + | let dw = parseBigIntValue(D(invoke(aU, "toX18WrapperREADONLY", [dx, db], nil))) | |
599 | + | let dv = fraction(dw, d, du) | |
600 | + | let dm = B(invoke(aU, "fromX18WrapperREADONLY", [toString(dv), da], nil)) | |
601 | + | let bX = invoke(aU, "estimatePutOperationWrapperREADONLY", ["", 500000, dm, do, dx, dq, "", true, false], nil) | |
602 | + | let dI = { | |
596 | 603 | let z = bX | |
597 | 604 | if (if (if ($isInstanceOf(z._1, "Int")) | |
598 | 605 | then if ($isInstanceOf(z._3, "Int")) | |
606 | 613 | then (size(z) == 13) | |
607 | 614 | else false) | |
608 | 615 | then { | |
609 | - | let | |
610 | - | let | |
611 | - | let | |
612 | - | let | |
613 | - | let | |
614 | - | $Tuple5( | |
616 | + | let dz = z._1 | |
617 | + | let dA = z._3 | |
618 | + | let dB = z._4 | |
619 | + | let dC = z._5 | |
620 | + | let dD = z._6 | |
621 | + | $Tuple5(dz, dA, dB, dC, dD) | |
615 | 622 | } | |
616 | 623 | else throw("Couldn't cast types") | |
617 | 624 | } | |
618 | - | let | |
619 | - | let | |
620 | - | let | |
621 | - | let | |
622 | - | let | |
623 | - | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d", toString( | |
625 | + | let dz = dI._1 | |
626 | + | let dA = dI._2 | |
627 | + | let dB = dI._3 | |
628 | + | let dC = dI._4 | |
629 | + | let dD = dI._5 | |
630 | + | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d", toString(dz), toString(dg), toString(dB), toString(dC), toString(dD), dr, toString(dm), toString(dx)], e)) | |
624 | 631 | } | |
625 | 632 | ||
626 | 633 | ||
627 | 634 | ||
628 | 635 | @Callable(by) | |
629 | - | func poolEvaluateGetREADONLY ( | |
630 | - | let aU = addressFromStringValue(t(aX, U( | |
631 | - | let bX = invoke(aU, "estimateGetOperationWrapperREADONLY", ["", | |
632 | - | let | |
636 | + | func poolEvaluateGetREADONLY (dJ,dK) = { | |
637 | + | let aU = addressFromStringValue(t(aX, U(dJ))) | |
638 | + | let bX = invoke(aU, "estimateGetOperationWrapperREADONLY", ["", dJ, dK, toString(aU)], nil) | |
639 | + | let dL = { | |
633 | 640 | let z = bX | |
634 | 641 | if (if (if ($isInstanceOf(z._1, "Int")) | |
635 | 642 | then if ($isInstanceOf(z._2, "Int")) | |
647 | 654 | then (size(z) == 10) | |
648 | 655 | else false) | |
649 | 656 | then { | |
650 | - | let | |
651 | - | let | |
652 | - | let | |
653 | - | let | |
654 | - | let | |
657 | + | let dM = z._1 | |
658 | + | let dN = z._2 | |
659 | + | let dB = z._5 | |
660 | + | let dC = z._6 | |
661 | + | let dD = z._7 | |
655 | 662 | let dg = z._8 | |
656 | - | let | |
657 | - | $Tuple7( | |
663 | + | let dr = z._9 | |
664 | + | $Tuple7(dM, dN, dB, dC, dD, dg, dr) | |
658 | 665 | } | |
659 | 666 | else throw("Couldn't cast types") | |
660 | 667 | } | |
661 | - | let | |
662 | - | let | |
663 | - | let | |
664 | - | let | |
665 | - | let | |
666 | - | let dg = | |
667 | - | let | |
668 | - | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d", toString( | |
668 | + | let dM = dL._1 | |
669 | + | let dN = dL._2 | |
670 | + | let dB = dL._3 | |
671 | + | let dC = dL._4 | |
672 | + | let dD = dL._5 | |
673 | + | let dg = dL._6 | |
674 | + | let dr = dL._7 | |
675 | + | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d", toString(dM), toString(dN), toString(dB), toString(dC), toString(dD), dg, dr], e)) | |
669 | 676 | } | |
670 | 677 | ||
671 | 678 | ||
672 | 679 | ||
673 | 680 | @Callable(by) | |
674 | 681 | func gwxUserInfoREADONLY (am) = { | |
675 | - | let | |
676 | - | let | |
677 | - | $Tuple2(nil, makeString(["%d", toString( | |
682 | + | let dO = x(invoke(bb, "gwxUserInfoREADONLY", [am], nil)) | |
683 | + | let dP = B(dO[0]) | |
684 | + | $Tuple2(nil, makeString(["%d", toString(dP)], e)) | |
678 | 685 | } | |
679 | 686 | ||
680 | 687 | ||
681 | 688 | ||
682 | 689 | @Callable(by) | |
683 | - | func unstakeAndGetOneTknV2 (aU,dO,dP,dQ) = { | |
684 | - | let bY = invoke(addressFromStringValue(aU), "unstakeAndGetOneTknV2", [dO, dP, dQ], nil) | |
685 | - | if ((bY == bY)) | |
686 | - | then $Tuple2(nil, unit) | |
687 | - | else throw("Strict value is not equal to itself.") | |
688 | - | } | |
689 | - | ||
690 | - | ||
691 | - | ||
692 | - | @Callable(by) | |
693 | - | func setManager (dR) = { | |
690 | + | func setManager (dQ) = { | |
694 | 691 | let bC = bx(by) | |
695 | 692 | if ((bC == bC)) | |
696 | 693 | then { | |
697 | - | let | |
698 | - | if (( | |
699 | - | then [StringEntry(H(), | |
694 | + | let dR = fromBase58String(dQ) | |
695 | + | if ((dR == dR)) | |
696 | + | then [StringEntry(H(), dQ)] | |
700 | 697 | else throw("Strict value is not equal to itself.") | |
701 | 698 | } | |
702 | 699 | else throw("Strict value is not equal to itself.") | |
706 | 703 | ||
707 | 704 | @Callable(by) | |
708 | 705 | func confirmManager () = { | |
709 | - | let | |
710 | - | let | |
706 | + | let dS = bw() | |
707 | + | let dT = if (isDefined(dS)) | |
711 | 708 | then true | |
712 | 709 | else throw("No pending manager") | |
713 | - | if (( | |
710 | + | if ((dT == dT)) | |
714 | 711 | then { | |
715 | - | let | |
712 | + | let dU = if ((by.callerPublicKey == value(dS))) | |
716 | 713 | then true | |
717 | 714 | else throw("You are not pending manager") | |
718 | - | if (( | |
719 | - | then [StringEntry(G(), toBase58String(value( | |
715 | + | if ((dU == dU)) | |
716 | + | then [StringEntry(G(), toBase58String(value(dS))), DeleteEntry(H())] | |
720 | 717 | else throw("Strict value is not equal to itself.") | |
721 | 718 | } | |
722 | 719 | else throw("Strict value is not equal to itself.") | |
723 | 720 | } | |
724 | 721 | ||
725 | 722 | ||
726 | - | @Verifier( | |
727 | - | func | |
728 | - | let | |
723 | + | @Verifier(dV) | |
724 | + | func dW () = { | |
725 | + | let dX = { | |
729 | 726 | let z = bu() | |
730 | 727 | if ($isInstanceOf(z, "ByteVector")) | |
731 | 728 | then { | |
733 | 730 | bA | |
734 | 731 | } | |
735 | 732 | else if ($isInstanceOf(z, "Unit")) | |
736 | - | then | |
733 | + | then dV.senderPublicKey | |
737 | 734 | else throw("Match error") | |
738 | 735 | } | |
739 | - | sigVerify( | |
736 | + | sigVerify(dV.bodyBytes, dV.proofs[0], dX) | |
740 | 737 | } | |
741 | 738 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = 8 | |
5 | 5 | ||
6 | 6 | let b = 100000000 | |
7 | 7 | ||
8 | 8 | let c = 18 | |
9 | 9 | ||
10 | 10 | let d = toBigInt(1000000000000000000) | |
11 | 11 | ||
12 | 12 | let e = "__" | |
13 | 13 | ||
14 | 14 | let f = b | |
15 | 15 | ||
16 | 16 | let g = toBigInt(0) | |
17 | 17 | ||
18 | 18 | let h = 1 | |
19 | 19 | ||
20 | 20 | let i = 2 | |
21 | 21 | ||
22 | 22 | let j = 3 | |
23 | 23 | ||
24 | 24 | let k = 4 | |
25 | 25 | ||
26 | 26 | let l = 5 | |
27 | 27 | ||
28 | 28 | let m = 6 | |
29 | 29 | ||
30 | 30 | let n = 7 | |
31 | 31 | ||
32 | 32 | let o = 8 | |
33 | 33 | ||
34 | 34 | let p = 9 | |
35 | 35 | ||
36 | 36 | let q = 10 | |
37 | 37 | ||
38 | 38 | func r (s) = valueOrErrorMessage(getString(s), (("mandatory this." + s) + " is not defined")) | |
39 | 39 | ||
40 | 40 | ||
41 | 41 | func t (u,s) = valueOrErrorMessage(getString(u, s), (((("mandatory " + toString(u)) + ".") + s) + " is not defined")) | |
42 | 42 | ||
43 | 43 | ||
44 | 44 | func v (u,s) = valueOrElse(getInteger(u, s), 0) | |
45 | 45 | ||
46 | 46 | ||
47 | 47 | func w (u,s) = valueOrErrorMessage(getInteger(u, s), (("mandatory this." + s) + " is not defined")) | |
48 | 48 | ||
49 | 49 | ||
50 | 50 | func x (y) = { | |
51 | 51 | let z = y | |
52 | 52 | if ($isInstanceOf(z, "List[Any]")) | |
53 | 53 | then { | |
54 | 54 | let A = z | |
55 | 55 | A | |
56 | 56 | } | |
57 | 57 | else throw("fail to cast into List[Any]") | |
58 | 58 | } | |
59 | 59 | ||
60 | 60 | ||
61 | 61 | func B (y) = { | |
62 | 62 | let z = y | |
63 | 63 | if ($isInstanceOf(z, "Int")) | |
64 | 64 | then { | |
65 | 65 | let C = z | |
66 | 66 | C | |
67 | 67 | } | |
68 | 68 | else throw("fail to cast into Int") | |
69 | 69 | } | |
70 | 70 | ||
71 | 71 | ||
72 | 72 | func D (y) = { | |
73 | 73 | let z = y | |
74 | 74 | if ($isInstanceOf(z, "String")) | |
75 | 75 | then { | |
76 | 76 | let E = z | |
77 | 77 | E | |
78 | 78 | } | |
79 | 79 | else throw("fail to cast into String") | |
80 | 80 | } | |
81 | 81 | ||
82 | 82 | ||
83 | 83 | func F () = "%s%s__config__factoryAddress" | |
84 | 84 | ||
85 | 85 | ||
86 | 86 | func G () = "%s__managerPublicKey" | |
87 | 87 | ||
88 | 88 | ||
89 | 89 | func H () = "%s__pendingManagerPublicKey" | |
90 | 90 | ||
91 | 91 | ||
92 | 92 | let I = 1 | |
93 | 93 | ||
94 | 94 | let J = 2 | |
95 | 95 | ||
96 | 96 | let K = 3 | |
97 | 97 | ||
98 | 98 | let L = 4 | |
99 | 99 | ||
100 | 100 | let M = 5 | |
101 | 101 | ||
102 | 102 | let N = 6 | |
103 | 103 | ||
104 | 104 | let O = 7 | |
105 | 105 | ||
106 | 106 | let P = 8 | |
107 | 107 | ||
108 | 108 | func Q () = "%s__factoryConfig" | |
109 | 109 | ||
110 | 110 | ||
111 | 111 | func R (S) = makeString(["%s%s%s", S, "mappings__lpAsset2PoolContract"], e) | |
112 | 112 | ||
113 | 113 | ||
114 | 114 | func T () = "%s__lpTokensList" | |
115 | 115 | ||
116 | 116 | ||
117 | 117 | func U (S) = makeString(["%s%s%s", S, "mappings__lpAsset2PoolContract"], e) | |
118 | 118 | ||
119 | 119 | ||
120 | 120 | func V (W) = makeString(["%s%s", "poolWeight", W], e) | |
121 | 121 | ||
122 | 122 | ||
123 | 123 | func X () = addressFromStringValue(r(F())) | |
124 | 124 | ||
125 | 125 | ||
126 | 126 | func Y () = split(valueOrElse(getString(X(), T()), ""), e) | |
127 | 127 | ||
128 | 128 | ||
129 | 129 | func Z (aa) = split(t(aa, Q()), e) | |
130 | 130 | ||
131 | 131 | ||
132 | 132 | func ab (ac) = addressFromStringValue(ac[J]) | |
133 | 133 | ||
134 | 134 | ||
135 | 135 | func ad (ac) = addressFromStringValue(ac[M]) | |
136 | 136 | ||
137 | 137 | ||
138 | 138 | func ae (ac) = addressFromStringValue(ac[I]) | |
139 | 139 | ||
140 | 140 | ||
141 | 141 | func af (ac) = addressFromStringValue(ac[P]) | |
142 | 142 | ||
143 | 143 | ||
144 | 144 | func ag () = "%s__config" | |
145 | 145 | ||
146 | 146 | ||
147 | 147 | func ah () = "%s%s__stats__activeTotalLocked" | |
148 | 148 | ||
149 | 149 | ||
150 | 150 | func ai () = "%s%s__stats__locksDurationSumInBlocks" | |
151 | 151 | ||
152 | 152 | ||
153 | 153 | func aj () = "%s%s__stats__locksCount" | |
154 | 154 | ||
155 | 155 | ||
156 | 156 | func ak () = "%s%s__stats__activeUsersCount" | |
157 | 157 | ||
158 | 158 | ||
159 | 159 | func al (am) = makeString(["%s%s%s__mapping__user2num", am], e) | |
160 | 160 | ||
161 | 161 | ||
162 | 162 | func an (ao) = makeString(["%s%s%s__mapping__num2user", ao], e) | |
163 | 163 | ||
164 | 164 | ||
165 | 165 | func ap (aq) = makeString(["%s%d%s__paramByUserNum", aq, "amount"], e) | |
166 | 166 | ||
167 | 167 | ||
168 | 168 | func ar (aq) = makeString(["%s%d%s__paramByUserNum", aq, "start"], e) | |
169 | 169 | ||
170 | 170 | ||
171 | 171 | func as (aq) = makeString(["%s%d%s__paramByUserNum", aq, "duration"], e) | |
172 | 172 | ||
173 | 173 | ||
174 | 174 | func at (aq) = makeString(["%s%d%s__paramByUserNum", aq, "k"], e) | |
175 | 175 | ||
176 | 176 | ||
177 | 177 | func au (aq) = makeString(["%s%d%s__paramByUserNum", aq, "b"], e) | |
178 | 178 | ||
179 | 179 | ||
180 | 180 | func av (aq,aw) = makeString(["%s%d%s%d__paramByPeriod", aq, "k", aw], e) | |
181 | 181 | ||
182 | 182 | ||
183 | 183 | func ax (aq,aw) = makeString(["%s%d%s%d__paramByPeriod", aq, "b", aw], e) | |
184 | 184 | ||
185 | 185 | ||
186 | 186 | func ay (aq) = makeString(["%s%d__userBoostEmissionLastInt", aq], e) | |
187 | 187 | ||
188 | 188 | ||
189 | 189 | func az (aq) = makeString(["%s%d__maxBoostInt", aq], e) | |
190 | 190 | ||
191 | 191 | ||
192 | 192 | func aA () = "%s%s__maxBoostInt__total" | |
193 | 193 | ||
194 | 194 | ||
195 | 195 | func aB (aq) = makeString(["%s%d__userBoostAvaliableToClaimTotal", aq], e) | |
196 | 196 | ||
197 | 197 | ||
198 | 198 | func aC (aq) = makeString(["%s%d__userBoostClaimed", aq], e) | |
199 | 199 | ||
200 | 200 | ||
201 | 201 | func aD () = "%s%s__gwxCached__total" | |
202 | 202 | ||
203 | 203 | ||
204 | 204 | func aE (aF,aG) = makeString(["%s%s%s__staked", aF, aG], e) | |
205 | 205 | ||
206 | 206 | ||
207 | 207 | func aH (aG) = ("%s%s%s__staked__total__" + aG) | |
208 | 208 | ||
209 | 209 | ||
210 | 210 | func aI (aG,aF) = makeString(["%s%s%s__claimed", aF, aG], e) | |
211 | 211 | ||
212 | 212 | ||
213 | 213 | func aJ (aG,aF) = makeString(["%s%s%s__claimedMinReward", aF, aG], e) | |
214 | 214 | ||
215 | 215 | ||
216 | 216 | func aK (aG,aF) = makeString(["%s%s%s__claimedBoostReward", aF, aG], e) | |
217 | 217 | ||
218 | 218 | ||
219 | 219 | func aL (aM,s) = valueOrElse(getInteger(aM, s), 0) | |
220 | 220 | ||
221 | 221 | ||
222 | 222 | func aN () = "%s%s__ratePerBlock__current" | |
223 | 223 | ||
224 | 224 | ||
225 | 225 | func aO () = "%s%s__ratePerBlockMax__current" | |
226 | 226 | ||
227 | 227 | ||
228 | 228 | func aP () = "%s%s__emission__startBlock" | |
229 | 229 | ||
230 | 230 | ||
231 | 231 | func aQ () = "%s%s__emission__duration" | |
232 | 232 | ||
233 | 233 | ||
234 | 234 | func aR () = "%s%s__emission__endBlock" | |
235 | 235 | ||
236 | 236 | ||
237 | 237 | func aS () = "%s__addonAddr" | |
238 | 238 | ||
239 | 239 | ||
240 | 240 | func aT (aU) = { | |
241 | 241 | let aV = fraction(5, b, 10000) | |
242 | 242 | let aW = "%s__fee" | |
243 | 243 | valueOrElse(getInteger(aU, aW), aV) | |
244 | 244 | } | |
245 | 245 | ||
246 | 246 | ||
247 | 247 | let aX = X() | |
248 | 248 | ||
249 | 249 | let aY = Z(aX) | |
250 | 250 | ||
251 | 251 | let aZ = ad(aY) | |
252 | 252 | ||
253 | 253 | let aM = ae(aY) | |
254 | 254 | ||
255 | 255 | let ba = af(aY) | |
256 | 256 | ||
257 | 257 | let bb = ab(aY) | |
258 | 258 | ||
259 | 259 | func bc (bd) = { | |
260 | 260 | let be = t(aX, U(bd)) | |
261 | 261 | let bf = b | |
262 | 262 | let bg = getIntegerValue(aX, V(be)) | |
263 | 263 | let bh = w(aZ, aN()) | |
264 | 264 | let bi = w(aZ, aO()) | |
265 | 265 | let bj = 3 | |
266 | 266 | let bk = (fraction(bh, bg, bf) / bj) | |
267 | 267 | let bl = fraction(bi, bg, bf) | |
268 | 268 | let bm = (bj * b) | |
269 | 269 | let bn = v(aM, aH(bd)) | |
270 | 270 | [bk, bm, bn] | |
271 | 271 | } | |
272 | 272 | ||
273 | 273 | ||
274 | 274 | func bo (bp,bq,br) = { | |
275 | 275 | let bs = fraction(bq, b, br) | |
276 | 276 | let bt = fraction(bp, bs, b) | |
277 | 277 | [bt] | |
278 | 278 | } | |
279 | 279 | ||
280 | 280 | ||
281 | 281 | func bu () = { | |
282 | 282 | let z = getString(G()) | |
283 | 283 | if ($isInstanceOf(z, "String")) | |
284 | 284 | then { | |
285 | 285 | let bv = z | |
286 | 286 | fromBase58String(bv) | |
287 | 287 | } | |
288 | 288 | else if ($isInstanceOf(z, "Unit")) | |
289 | 289 | then unit | |
290 | 290 | else throw("Match error") | |
291 | 291 | } | |
292 | 292 | ||
293 | 293 | ||
294 | 294 | func bw () = { | |
295 | 295 | let z = getString(H()) | |
296 | 296 | if ($isInstanceOf(z, "String")) | |
297 | 297 | then { | |
298 | 298 | let bv = z | |
299 | 299 | fromBase58String(bv) | |
300 | 300 | } | |
301 | 301 | else if ($isInstanceOf(z, "Unit")) | |
302 | 302 | then unit | |
303 | 303 | else throw("Match error") | |
304 | 304 | } | |
305 | 305 | ||
306 | 306 | ||
307 | 307 | func bx (by) = { | |
308 | 308 | let bz = throw("Permission denied") | |
309 | 309 | let z = bu() | |
310 | 310 | if ($isInstanceOf(z, "ByteVector")) | |
311 | 311 | then { | |
312 | 312 | let bA = z | |
313 | 313 | if ((by.callerPublicKey == bA)) | |
314 | 314 | then true | |
315 | 315 | else bz | |
316 | 316 | } | |
317 | 317 | else if ($isInstanceOf(z, "Unit")) | |
318 | 318 | then if ((by.caller == this)) | |
319 | 319 | then true | |
320 | 320 | else bz | |
321 | 321 | else throw("Match error") | |
322 | 322 | } | |
323 | 323 | ||
324 | 324 | ||
325 | 325 | @Callable(by) | |
326 | 326 | func constructor (bB) = { | |
327 | 327 | let bC = bx(by) | |
328 | 328 | if ((bC == bC)) | |
329 | 329 | then [StringEntry(F(), bB)] | |
330 | 330 | else throw("Strict value is not equal to itself.") | |
331 | 331 | } | |
332 | 332 | ||
333 | 333 | ||
334 | 334 | ||
335 | 335 | @Callable(by) | |
336 | 336 | func currentRewardRateREADONLY (bd) = { | |
337 | 337 | let bD = bc(bd) | |
338 | 338 | let bh = bD[0] | |
339 | 339 | let bm = bD[1] | |
340 | 340 | let bn = bD[2] | |
341 | 341 | $Tuple2(nil, makeString(["%d%d%d", toString(bh), toString(bm), toString(bn)], e)) | |
342 | 342 | } | |
343 | 343 | ||
344 | 344 | ||
345 | 345 | ||
346 | 346 | @Callable(by) | |
347 | 347 | func currentUserRewardRateREADONLY (bd,am) = { | |
348 | 348 | let bD = bc(bd) | |
349 | 349 | let bh = bD[0] | |
350 | 350 | let bm = bD[1] | |
351 | 351 | let bn = bD[2] | |
352 | 352 | let bE = v(aM, aE(am, bd)) | |
353 | 353 | let bF = split(D(invoke(aM, "claimWxREADONLY", [bd, am], nil)), e) | |
354 | 354 | let bG = valueOrErrorMessage(parseInt(bF[5]), "couldn't parse minRewardPart") | |
355 | 355 | let bH = valueOrErrorMessage(parseInt(bF[6]), "couldn't parse boostRewardPart") | |
356 | 356 | let bI = bF[7] | |
357 | 357 | let bJ = if ((bH == 0)) | |
358 | 358 | then (1 * b) | |
359 | 359 | else fraction((bG + bH), b, bG) | |
360 | 360 | $Tuple2(nil, makeString(["%d%d%d%d%d%s", toString(bh), toString(bm), toString(bn), toString(bE), toString(bJ), bI], e)) | |
361 | 361 | } | |
362 | 362 | ||
363 | 363 | ||
364 | 364 | ||
365 | 365 | @Callable(by) | |
366 | 366 | func calcBoostBulkInternalREADONLY (bK,bL,bM,bN,bO,bP,bQ) = if ((bK == size(bL))) | |
367 | 367 | then $Tuple2(nil, bQ) | |
368 | 368 | else { | |
369 | 369 | let bR = bL[bK] | |
370 | 370 | let bS = bM[bK] | |
371 | 371 | let bT = bN[bK] | |
372 | 372 | let bU = bO[bK] | |
373 | 373 | let bV = { | |
374 | 374 | let bW = invoke(this, "calcBoostREADONLY", [bR, bS, bT, bU, bP], nil) | |
375 | 375 | if ($isInstanceOf(bW, "String")) | |
376 | 376 | then bW | |
377 | 377 | else throw(($getType(bW) + " couldn't be cast to String")) | |
378 | 378 | } | |
379 | 379 | let bX = (bQ :+ bV) | |
380 | 380 | let bY = { | |
381 | 381 | let bW = invoke(this, "calcBoostBulkInternalREADONLY", [(bK + 1), bL, bM, bN, bO, bP, bX], nil) | |
382 | 382 | if ($isInstanceOf(bW, "List[Any]")) | |
383 | 383 | then bW | |
384 | 384 | else throw(($getType(bW) + " couldn't be cast to List[Any]")) | |
385 | 385 | } | |
386 | 386 | if ((bY == bY)) | |
387 | 387 | then $Tuple2(nil, bY) | |
388 | 388 | else throw("Strict value is not equal to itself.") | |
389 | 389 | } | |
390 | 390 | ||
391 | 391 | ||
392 | 392 | ||
393 | 393 | @Callable(by) | |
394 | 394 | func calcBoostBulkREADONLY (bR,bS,bT,bU,bP) = { | |
395 | 395 | let bX = invoke(this, "calcBoostBulkInternalREADONLY", [0, bR, bS, bT, bU, bP, nil], nil) | |
396 | 396 | $Tuple2(nil, bX) | |
397 | 397 | } | |
398 | 398 | ||
399 | 399 | ||
400 | 400 | ||
401 | 401 | @Callable(by) | |
402 | 402 | func calcBoostREADONLY (bR,bS,bT,bU,bP) = { | |
403 | 403 | let bZ = ba | |
404 | 404 | let ca = "empty" | |
405 | 405 | let cb = parseIntValue(split(t(bb, ag()), e)[4]) | |
406 | 406 | let aG = if ((bU == "")) | |
407 | 407 | then ca | |
408 | 408 | else bU | |
409 | 409 | let aF = if ((bP == "")) | |
410 | 410 | then ca | |
411 | 411 | else bP | |
412 | 412 | let cc = valueOrElse(getString(bb, al(bP)), ca) | |
413 | 413 | let cd = valueOrElse(getInteger(bb, ap(cc)), 0) | |
414 | 414 | let ce = valueOrElse(getInteger(bb, ar(cc)), height) | |
415 | 415 | let bq = valueOrElse(getInteger(bb, as(cc)), 0) | |
416 | 416 | let cf = (ce + bq) | |
417 | 417 | let cg = max([(cf - height), 0]) | |
418 | 418 | let ch = (cd + bR) | |
419 | 419 | let ci = min([(cg + bS), cb]) | |
420 | 420 | let cj = B(x(invoke(bb, "gwxUserInfoREADONLY", [aF], nil))[0]) | |
421 | 421 | let ck = bo(ch, ci, cb)[0] | |
422 | 422 | let cl = x(invoke(bZ, "calcGwxParamsREADONLY", [ck, height, ci], nil)) | |
423 | 423 | let cm = (ck - cj) | |
424 | 424 | let cn = B(cl[0]) | |
425 | 425 | let co = B(cl[1]) | |
426 | 426 | let aw = toString(B(cl[2])) | |
427 | 427 | let cp = aA() | |
428 | 428 | let cq = aD() | |
429 | 429 | let cr = ((ck * ci) / 2) | |
430 | 430 | let cs = v(bb, cp) | |
431 | 431 | let ct = valueOrElse(getInteger(bb, cq), 0) | |
432 | 432 | let cu = 1000 | |
433 | 433 | let cv = (w(aZ, aN()) * cu) | |
434 | 434 | let cw = aE(aF, aG) | |
435 | 435 | let cx = aH(aG) | |
436 | 436 | let cy = aL(aM, cw) | |
437 | 437 | let cz = aL(aM, cx) | |
438 | 438 | let cA = (cy + bT) | |
439 | 439 | let cB = (cz + bT) | |
440 | 440 | let bg = if ((aG != ca)) | |
441 | 441 | then { | |
442 | 442 | let be = valueOrErrorMessage(getString(aX, R(aG)), ("unsupported lp asset " + aG)) | |
443 | 443 | getIntegerValue(aX, V(be)) | |
444 | 444 | } | |
445 | 445 | else 0 | |
446 | 446 | let cC = fraction(cv, bg, (f * 3)) | |
447 | 447 | let cD = if ((cB != 0)) | |
448 | 448 | then fraction(cC, b, cB) | |
449 | 449 | else 0 | |
450 | 450 | let cE = fraction(cD, cA, b) | |
451 | 451 | let cF = (cC * 2) | |
452 | 452 | let cG = fraction(ck, cF, (ct + cm)) | |
453 | 453 | let cH = min([cG, (cE * 2)]) | |
454 | 454 | let cI = if ((cE == 0)) | |
455 | 455 | then (1 * b) | |
456 | 456 | else fraction((cH + cE), b, cE) | |
457 | 457 | $Tuple2(nil, makeString(["%d%d%s", toString(ck), toString(cI), "d"], e)) | |
458 | 458 | } | |
459 | 459 | ||
460 | 460 | ||
461 | 461 | ||
462 | 462 | @Callable(by) | |
463 | 463 | func wxEmissionStatsREADONLY () = { | |
464 | 464 | let cJ = toString(b) | |
465 | 465 | let cK = "1" | |
466 | 466 | let bh = w(aZ, aN()) | |
467 | 467 | let cL = w(aZ, aP()) | |
468 | 468 | let cM = if ((cL > height)) | |
469 | 469 | then 0 | |
470 | 470 | else (height - cL) | |
471 | 471 | let cN = (1440 * 365) | |
472 | 472 | let cO = (201000000 * b) | |
473 | 473 | let cP = if ((cM > cN)) | |
474 | 474 | then cO | |
475 | 475 | else fraction(cO, cM, cN) | |
476 | 476 | let cQ = ((bh * cM) + cP) | |
477 | 477 | let cR = v(bb, ah()) | |
478 | 478 | let cS = v(bb, ai()) | |
479 | 479 | let cT = v(bb, aj()) | |
480 | 480 | $Tuple2(nil, makeString(["%d%d%d%d", toString(cQ), toString(cR), toString(cS), toString(cT)], e)) | |
481 | 481 | } | |
482 | 482 | ||
483 | 483 | ||
484 | 484 | ||
485 | 485 | @Callable(by) | |
486 | 486 | func poolStatsREADONLY (cU) = { | |
487 | 487 | let aU = addressFromStringValue(t(aX, U(cU))) | |
488 | 488 | let cV = x(invoke(aU, "getPoolConfigWrapperREADONLY", nil, nil)) | |
489 | 489 | let bd = fromBase58String(D(cV[j])) | |
490 | 490 | let cW = D(cV[k]) | |
491 | 491 | let cX = D(cV[l]) | |
492 | 492 | let cY = D(cV[o]) | |
493 | 493 | let cZ = D(cV[p]) | |
494 | 494 | let da = parseIntValue(D(cV[m])) | |
495 | 495 | let db = parseIntValue(D(cV[n])) | |
496 | 496 | let dc = valueOrErrorMessage(assetInfo(bd), (("Asset " + toBase58String(bd)) + " doesn't exist")).quantity | |
497 | 497 | let dd = B(invoke(aU, "getAccBalanceWrapperREADONLY", [cW], nil)) | |
498 | 498 | let de = B(invoke(aU, "getAccBalanceWrapperREADONLY", [cX], nil)) | |
499 | 499 | let df = if ((dc == 0)) | |
500 | 500 | then [toString(g), toString(g), toString(g)] | |
501 | 501 | else x(invoke(aU, "calcPricesWrapperREADONLY", [dd, de, dc], nil)) | |
502 | 502 | let dg = 0 | |
503 | 503 | let dh = B(invoke(aU, "fromX18WrapperREADONLY", [df[1], b], nil)) | |
504 | 504 | let di = B(invoke(aU, "fromX18WrapperREADONLY", [df[2], b], nil)) | |
505 | 505 | let bg = getIntegerValue(aX, V(toString(aU))) | |
506 | 506 | let dj = aT(aU) | |
507 | - | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d", toString(dd), toString(de), toString(dc), toString(dg), toString(dh), toString(di), toString(bg), toString(dj)], e)) | |
507 | + | let dk = { | |
508 | + | let bW = invoke(aX, "isPoolOneTokenOperationsDisabledREADONLY", [toString(aU)], nil) | |
509 | + | if ($isInstanceOf(bW, "Boolean")) | |
510 | + | then bW | |
511 | + | else throw(($getType(bW) + " couldn't be cast to Boolean")) | |
512 | + | } | |
513 | + | let dl = !(dk) | |
514 | + | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d%s", toString(dd), toString(de), toString(dc), toString(dg), toString(dh), toString(di), toString(bg), toString(dj), toString(dl)], e)) | |
508 | 515 | } | |
509 | 516 | ||
510 | 517 | ||
511 | 518 | ||
512 | 519 | @Callable(by) | |
513 | - | func poolEvaluatePutByAmountAssetREADONLY (cU, | |
520 | + | func poolEvaluatePutByAmountAssetREADONLY (cU,dm) = { | |
514 | 521 | let aU = addressFromStringValue(t(aX, U(cU))) | |
515 | 522 | let cV = x(invoke(aU, "getPoolConfigWrapperREADONLY", nil, nil)) | |
516 | 523 | let bd = fromBase58String(D(cV[j])) | |
517 | - | let dl = D(cV[k]) | |
518 | - | let dm = fromBase58String(dl) | |
519 | - | let dn = D(cV[l]) | |
524 | + | let dn = D(cV[k]) | |
520 | 525 | let do = fromBase58String(dn) | |
526 | + | let dp = D(cV[l]) | |
527 | + | let dq = fromBase58String(dp) | |
521 | 528 | let da = parseIntValue(D(cV[m])) | |
522 | 529 | let db = parseIntValue(D(cV[n])) | |
523 | - | let | |
530 | + | let dr = D(cV[i]) | |
524 | 531 | let dc = valueOrErrorMessage(assetInfo(bd), (("Asset " + toBase58String(bd)) + " doesn't exist")).quantity | |
525 | - | let dd = B(invoke(aU, "getAccBalanceWrapperREADONLY", [ | |
526 | - | let de = B(invoke(aU, "getAccBalanceWrapperREADONLY", [ | |
527 | - | let | |
528 | - | let | |
529 | - | let | |
532 | + | let dd = B(invoke(aU, "getAccBalanceWrapperREADONLY", [dn], nil)) | |
533 | + | let de = B(invoke(aU, "getAccBalanceWrapperREADONLY", [dp], nil)) | |
534 | + | let ds = parseBigIntValue(D(invoke(aU, "toX18WrapperREADONLY", [dd, da], nil))) | |
535 | + | let dt = parseBigIntValue(D(invoke(aU, "toX18WrapperREADONLY", [de, db], nil))) | |
536 | + | let du = if ((dc == 0)) | |
530 | 537 | then g | |
531 | - | else parseBigIntValue(D(invoke(aU, "calcPriceBigIntWrapperREADONLY", [toString( | |
532 | - | let dg = B(invoke(aU, "fromX18WrapperREADONLY", [toString( | |
533 | - | let | |
534 | - | let | |
535 | - | let | |
536 | - | let bX = invoke(aU, "estimatePutOperationWrapperREADONLY", ["", 500000, | |
537 | - | let | |
538 | + | else parseBigIntValue(D(invoke(aU, "calcPriceBigIntWrapperREADONLY", [toString(dt), toString(ds)], nil))) | |
539 | + | let dg = B(invoke(aU, "fromX18WrapperREADONLY", [toString(du), b], nil)) | |
540 | + | let dv = parseBigIntValue(D(invoke(aU, "toX18WrapperREADONLY", [dm, da], nil))) | |
541 | + | let dw = fraction(dv, du, d) | |
542 | + | let dx = B(invoke(aU, "fromX18WrapperREADONLY", [toString(dw), db], nil)) | |
543 | + | let bX = invoke(aU, "estimatePutOperationWrapperREADONLY", ["", 500000, dm, do, dx, dq, "", true, false], nil) | |
544 | + | let dy = { | |
538 | 545 | let z = bX | |
539 | 546 | if (if (if ($isInstanceOf(z._1, "Int")) | |
540 | 547 | then if ($isInstanceOf(z._3, "Int")) | |
541 | 548 | then if ($isInstanceOf(z._4, "Int")) | |
542 | 549 | then if ($isInstanceOf(z._5, "Int")) | |
543 | 550 | then $isInstanceOf(z._6, "Int") | |
544 | 551 | else false | |
545 | 552 | else false | |
546 | 553 | else false | |
547 | 554 | else false) | |
548 | 555 | then (size(z) == 13) | |
549 | 556 | else false) | |
550 | 557 | then { | |
551 | - | let | |
552 | - | let | |
553 | - | let | |
554 | - | let | |
555 | - | let | |
556 | - | $Tuple5( | |
558 | + | let dz = z._1 | |
559 | + | let dA = z._3 | |
560 | + | let dB = z._4 | |
561 | + | let dC = z._5 | |
562 | + | let dD = z._6 | |
563 | + | $Tuple5(dz, dA, dB, dC, dD) | |
557 | 564 | } | |
558 | 565 | else throw("Couldn't cast types") | |
559 | 566 | } | |
560 | - | let | |
561 | - | let | |
562 | - | let | |
563 | - | let | |
564 | - | let | |
565 | - | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d", toString( | |
567 | + | let dz = dy._1 | |
568 | + | let dA = dy._2 | |
569 | + | let dB = dy._3 | |
570 | + | let dC = dy._4 | |
571 | + | let dD = dy._5 | |
572 | + | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d", toString(dz), toString(dg), toString(dB), toString(dC), toString(dD), dr, toString(dm), toString(dx)], e)) | |
566 | 573 | } | |
567 | 574 | ||
568 | 575 | ||
569 | 576 | ||
570 | 577 | @Callable(by) | |
571 | - | func poolEvaluatePutByPriceAssetREADONLY (cU, | |
578 | + | func poolEvaluatePutByPriceAssetREADONLY (cU,dx) = { | |
572 | 579 | let aU = addressFromStringValue(t(aX, U(cU))) | |
573 | 580 | let cV = x(invoke(aU, "getPoolConfigWrapperREADONLY", nil, nil)) | |
574 | 581 | let bd = fromBase58String(D(cV[j])) | |
575 | - | let dl = D(cV[k]) | |
576 | - | let dm = fromBase58String(dl) | |
577 | - | let dn = D(cV[l]) | |
582 | + | let dn = D(cV[k]) | |
578 | 583 | let do = fromBase58String(dn) | |
584 | + | let dp = D(cV[l]) | |
585 | + | let dq = fromBase58String(dp) | |
579 | 586 | let da = parseIntValue(D(cV[m])) | |
580 | 587 | let db = parseIntValue(D(cV[n])) | |
581 | - | let | |
588 | + | let dr = D(cV[i]) | |
582 | 589 | let dc = valueOrErrorMessage(assetInfo(bd), (("Asset " + toBase58String(bd)) + " doesn't exist")).quantity | |
583 | - | let | |
584 | - | let | |
585 | - | let | |
586 | - | let | |
587 | - | let | |
590 | + | let dE = B(invoke(aU, "getAccBalanceWrapperREADONLY", [dn], nil)) | |
591 | + | let dF = B(invoke(aU, "getAccBalanceWrapperREADONLY", [dp], nil)) | |
592 | + | let dG = parseBigIntValue(D(invoke(aU, "toX18WrapperREADONLY", [dE, da], nil))) | |
593 | + | let dH = parseBigIntValue(D(invoke(aU, "toX18WrapperREADONLY", [dF, db], nil))) | |
594 | + | let du = if ((dc == 0)) | |
588 | 595 | then g | |
589 | - | else parseBigIntValue(D(invoke(aU, "calcPriceBigIntWrapperREADONLY", [toString( | |
590 | - | let dg = B(invoke(aU, "fromX18WrapperREADONLY", [toString( | |
591 | - | let | |
592 | - | let | |
593 | - | let | |
594 | - | let bX = invoke(aU, "estimatePutOperationWrapperREADONLY", ["", 500000, | |
595 | - | let | |
596 | + | else parseBigIntValue(D(invoke(aU, "calcPriceBigIntWrapperREADONLY", [toString(dH), toString(dG)], nil))) | |
597 | + | let dg = B(invoke(aU, "fromX18WrapperREADONLY", [toString(du), b], nil)) | |
598 | + | let dw = parseBigIntValue(D(invoke(aU, "toX18WrapperREADONLY", [dx, db], nil))) | |
599 | + | let dv = fraction(dw, d, du) | |
600 | + | let dm = B(invoke(aU, "fromX18WrapperREADONLY", [toString(dv), da], nil)) | |
601 | + | let bX = invoke(aU, "estimatePutOperationWrapperREADONLY", ["", 500000, dm, do, dx, dq, "", true, false], nil) | |
602 | + | let dI = { | |
596 | 603 | let z = bX | |
597 | 604 | if (if (if ($isInstanceOf(z._1, "Int")) | |
598 | 605 | then if ($isInstanceOf(z._3, "Int")) | |
599 | 606 | then if ($isInstanceOf(z._4, "Int")) | |
600 | 607 | then if ($isInstanceOf(z._5, "Int")) | |
601 | 608 | then $isInstanceOf(z._6, "Int") | |
602 | 609 | else false | |
603 | 610 | else false | |
604 | 611 | else false | |
605 | 612 | else false) | |
606 | 613 | then (size(z) == 13) | |
607 | 614 | else false) | |
608 | 615 | then { | |
609 | - | let | |
610 | - | let | |
611 | - | let | |
612 | - | let | |
613 | - | let | |
614 | - | $Tuple5( | |
616 | + | let dz = z._1 | |
617 | + | let dA = z._3 | |
618 | + | let dB = z._4 | |
619 | + | let dC = z._5 | |
620 | + | let dD = z._6 | |
621 | + | $Tuple5(dz, dA, dB, dC, dD) | |
615 | 622 | } | |
616 | 623 | else throw("Couldn't cast types") | |
617 | 624 | } | |
618 | - | let | |
619 | - | let | |
620 | - | let | |
621 | - | let | |
622 | - | let | |
623 | - | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d", toString( | |
625 | + | let dz = dI._1 | |
626 | + | let dA = dI._2 | |
627 | + | let dB = dI._3 | |
628 | + | let dC = dI._4 | |
629 | + | let dD = dI._5 | |
630 | + | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d", toString(dz), toString(dg), toString(dB), toString(dC), toString(dD), dr, toString(dm), toString(dx)], e)) | |
624 | 631 | } | |
625 | 632 | ||
626 | 633 | ||
627 | 634 | ||
628 | 635 | @Callable(by) | |
629 | - | func poolEvaluateGetREADONLY ( | |
630 | - | let aU = addressFromStringValue(t(aX, U( | |
631 | - | let bX = invoke(aU, "estimateGetOperationWrapperREADONLY", ["", | |
632 | - | let | |
636 | + | func poolEvaluateGetREADONLY (dJ,dK) = { | |
637 | + | let aU = addressFromStringValue(t(aX, U(dJ))) | |
638 | + | let bX = invoke(aU, "estimateGetOperationWrapperREADONLY", ["", dJ, dK, toString(aU)], nil) | |
639 | + | let dL = { | |
633 | 640 | let z = bX | |
634 | 641 | if (if (if ($isInstanceOf(z._1, "Int")) | |
635 | 642 | then if ($isInstanceOf(z._2, "Int")) | |
636 | 643 | then if ($isInstanceOf(z._5, "Int")) | |
637 | 644 | then if ($isInstanceOf(z._6, "Int")) | |
638 | 645 | then if ($isInstanceOf(z._7, "Int")) | |
639 | 646 | then if ($isInstanceOf(z._8, "String")) | |
640 | 647 | then $isInstanceOf(z._9, "String") | |
641 | 648 | else false | |
642 | 649 | else false | |
643 | 650 | else false | |
644 | 651 | else false | |
645 | 652 | else false | |
646 | 653 | else false) | |
647 | 654 | then (size(z) == 10) | |
648 | 655 | else false) | |
649 | 656 | then { | |
650 | - | let | |
651 | - | let | |
652 | - | let | |
653 | - | let | |
654 | - | let | |
657 | + | let dM = z._1 | |
658 | + | let dN = z._2 | |
659 | + | let dB = z._5 | |
660 | + | let dC = z._6 | |
661 | + | let dD = z._7 | |
655 | 662 | let dg = z._8 | |
656 | - | let | |
657 | - | $Tuple7( | |
663 | + | let dr = z._9 | |
664 | + | $Tuple7(dM, dN, dB, dC, dD, dg, dr) | |
658 | 665 | } | |
659 | 666 | else throw("Couldn't cast types") | |
660 | 667 | } | |
661 | - | let | |
662 | - | let | |
663 | - | let | |
664 | - | let | |
665 | - | let | |
666 | - | let dg = | |
667 | - | let | |
668 | - | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d", toString( | |
668 | + | let dM = dL._1 | |
669 | + | let dN = dL._2 | |
670 | + | let dB = dL._3 | |
671 | + | let dC = dL._4 | |
672 | + | let dD = dL._5 | |
673 | + | let dg = dL._6 | |
674 | + | let dr = dL._7 | |
675 | + | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d", toString(dM), toString(dN), toString(dB), toString(dC), toString(dD), dg, dr], e)) | |
669 | 676 | } | |
670 | 677 | ||
671 | 678 | ||
672 | 679 | ||
673 | 680 | @Callable(by) | |
674 | 681 | func gwxUserInfoREADONLY (am) = { | |
675 | - | let | |
676 | - | let | |
677 | - | $Tuple2(nil, makeString(["%d", toString( | |
682 | + | let dO = x(invoke(bb, "gwxUserInfoREADONLY", [am], nil)) | |
683 | + | let dP = B(dO[0]) | |
684 | + | $Tuple2(nil, makeString(["%d", toString(dP)], e)) | |
678 | 685 | } | |
679 | 686 | ||
680 | 687 | ||
681 | 688 | ||
682 | 689 | @Callable(by) | |
683 | - | func unstakeAndGetOneTknV2 (aU,dO,dP,dQ) = { | |
684 | - | let bY = invoke(addressFromStringValue(aU), "unstakeAndGetOneTknV2", [dO, dP, dQ], nil) | |
685 | - | if ((bY == bY)) | |
686 | - | then $Tuple2(nil, unit) | |
687 | - | else throw("Strict value is not equal to itself.") | |
688 | - | } | |
689 | - | ||
690 | - | ||
691 | - | ||
692 | - | @Callable(by) | |
693 | - | func setManager (dR) = { | |
690 | + | func setManager (dQ) = { | |
694 | 691 | let bC = bx(by) | |
695 | 692 | if ((bC == bC)) | |
696 | 693 | then { | |
697 | - | let | |
698 | - | if (( | |
699 | - | then [StringEntry(H(), | |
694 | + | let dR = fromBase58String(dQ) | |
695 | + | if ((dR == dR)) | |
696 | + | then [StringEntry(H(), dQ)] | |
700 | 697 | else throw("Strict value is not equal to itself.") | |
701 | 698 | } | |
702 | 699 | else throw("Strict value is not equal to itself.") | |
703 | 700 | } | |
704 | 701 | ||
705 | 702 | ||
706 | 703 | ||
707 | 704 | @Callable(by) | |
708 | 705 | func confirmManager () = { | |
709 | - | let | |
710 | - | let | |
706 | + | let dS = bw() | |
707 | + | let dT = if (isDefined(dS)) | |
711 | 708 | then true | |
712 | 709 | else throw("No pending manager") | |
713 | - | if (( | |
710 | + | if ((dT == dT)) | |
714 | 711 | then { | |
715 | - | let | |
712 | + | let dU = if ((by.callerPublicKey == value(dS))) | |
716 | 713 | then true | |
717 | 714 | else throw("You are not pending manager") | |
718 | - | if (( | |
719 | - | then [StringEntry(G(), toBase58String(value( | |
715 | + | if ((dU == dU)) | |
716 | + | then [StringEntry(G(), toBase58String(value(dS))), DeleteEntry(H())] | |
720 | 717 | else throw("Strict value is not equal to itself.") | |
721 | 718 | } | |
722 | 719 | else throw("Strict value is not equal to itself.") | |
723 | 720 | } | |
724 | 721 | ||
725 | 722 | ||
726 | - | @Verifier( | |
727 | - | func | |
728 | - | let | |
723 | + | @Verifier(dV) | |
724 | + | func dW () = { | |
725 | + | let dX = { | |
729 | 726 | let z = bu() | |
730 | 727 | if ($isInstanceOf(z, "ByteVector")) | |
731 | 728 | then { | |
732 | 729 | let bA = z | |
733 | 730 | bA | |
734 | 731 | } | |
735 | 732 | else if ($isInstanceOf(z, "Unit")) | |
736 | - | then | |
733 | + | then dV.senderPublicKey | |
737 | 734 | else throw("Match error") | |
738 | 735 | } | |
739 | - | sigVerify( | |
736 | + | sigVerify(dV.bodyBytes, dV.proofs[0], dX) | |
740 | 737 | } | |
741 | 738 |
github/deemru/w8io/169f3d6 104.24 ms ◑