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