tx · EFHxTY1ZVD2kL947LjCAJ9WHUd5WFuv6bBEP1bhAGHMA 3NCX3qr5ABsbWQhQR8CV3vCvHQa2xANk2f2: -0.03100000 Waves 2022.11.28 12:39 [2336784] smart account 3NCX3qr5ABsbWQhQR8CV3vCvHQa2xANk2f2 > SELF 0.00000000 Waves
{ "type": 13, "id": "EFHxTY1ZVD2kL947LjCAJ9WHUd5WFuv6bBEP1bhAGHMA", "fee": 3100000, "feeAssetId": null, "timestamp": 1669628307698, "version": 1, "sender": "3NCX3qr5ABsbWQhQR8CV3vCvHQa2xANk2f2", "senderPublicKey": "9LajxyiDMFaW5Xgcye62gHbqchgWLEYTebgbfnZFdtTu", "proofs": [ "5nNAtJnLYtgxKwqMB2kmhuMffUQ8EemFjFp7uw2Uxy1brDdz5nNMnSAxoEZo24da3pA6v9MapFSqFXUBeSxbWKb7" ], "script": "base64:BgLgKQgCEgMKAQgSABIECgIBBBIDCgEBEgQKAgEEEgQKAggBEgQKAggBEgQKAggBEgUKAwEIARIAEgQKAgEBEgMKAQESBQoDAQEBEgQKAggIEgASABIDCgEIEgUKAwEBARIECgIBARIECgIIARIECgIICBILCgkIAQECAQIIBAQSBgoECAgBCBIAEgMKAQESAwoBARIECgIIASIKbFBkZWNpbWFscyIGc2NhbGU4IgxzY2FsZThCaWdJbnQiB3NjYWxlMTgiCnplcm9CaWdJbnQiBGJpZzAiBGJpZzEiBGJpZzIiC3dhdmVzU3RyaW5nIgNTRVAiClBvb2xBY3RpdmUiD1Bvb2xQdXREaXNhYmxlZCITUG9vbE1hdGNoZXJEaXNhYmxlZCIMUG9vbFNodXRkb3duIg5pZHhQb29sQWRkcmVzcyINaWR4UG9vbFN0YXR1cyIQaWR4UG9vbExQQXNzZXRJZCINaWR4QW10QXNzZXRJZCIPaWR4UHJpY2VBc3NldElkIg5pZHhBbXRBc3NldERjbSIQaWR4UHJpY2VBc3NldERjbSIOaWR4SUFtdEFzc2V0SWQiEGlkeElQcmljZUFzc2V0SWQiDWlk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FBBQJhQgMJAAECBQJkdwIUU2V0U2NyaXB0VHJhbnNhY3Rpb24EAmVKBQJkdwQCZ2QJAPYDAQkBBXZhbHVlAQgFAmVKBnNjcmlwdAQCZ2UJANsEAQkBBXZhbHVlAQkAnQgCBQJhSgkBAmF3AAQCZ2YJAPEHAQUEdGhpcwMDCQAAAgUCZ2UFAmdkCQECIT0CBQJnZgUCZ2QHBgkA9AMDCAUCZloJYm9keUJ5dGVzCQCRAwIIBQJmWgZwcm9vZnMAAAUCZ2IJAPQDAwgFAmZaCWJvZHlCeXRlcwkAkQMCCAUCZloGcHJvb2ZzAAAFAmdiEgvigg==", "chainId": 84, "height": 2336784, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: DNnHXmWVeTrnGGhiD5fRBQNnTCmr1Jh8jmZJBe9pV72g Next: 8MjRtThsShdZ3vGhwLnNiJLDbWq36mHKkNDgpWD3k7dY Diff:
Old | New | Differences | |
---|---|---|---|
594 | 594 | } | |
595 | 595 | ||
596 | 596 | ||
597 | - | func eA (eB,eC,cb) = fraction(eB, eC, cb) | |
598 | - | ||
599 | - | ||
600 | - | func eD () = { | |
601 | - | let eE = bw(aS(ba)) | |
602 | - | let eF = bw(aS(bb)) | |
603 | - | let cb = value(assetInfo(aZ)).quantity | |
604 | - | let eG = eA(eE, eF, cb) | |
605 | - | eG | |
597 | + | func eA (eB,eC,cb) = { | |
598 | + | let eD = fraction(pow((eB * eC), 0, toBigInt(5), 1, 0, DOWN), d, cb) | |
599 | + | eD | |
606 | 600 | } | |
607 | 601 | ||
608 | 602 | ||
609 | - | func eH () = { | |
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 () = { | |
610 | 614 | let dw = getString(Q()) | |
611 | 615 | if ($isInstanceOf(dw, "String")) | |
612 | 616 | then { | |
613 | - | let | |
614 | - | fromBase58String( | |
617 | + | let eJ = dw | |
618 | + | fromBase58String(eJ) | |
615 | 619 | } | |
616 | 620 | else if ($isInstanceOf(dw, "Unit")) | |
617 | 621 | then unit | |
619 | 623 | } | |
620 | 624 | ||
621 | 625 | ||
622 | - | func | |
626 | + | func eK () = { | |
623 | 627 | let dw = getString(R()) | |
624 | 628 | if ($isInstanceOf(dw, "String")) | |
625 | 629 | then { | |
626 | - | let | |
627 | - | fromBase58String( | |
630 | + | let eJ = dw | |
631 | + | fromBase58String(eJ) | |
628 | 632 | } | |
629 | 633 | else if ($isInstanceOf(dw, "Unit")) | |
630 | 634 | then unit | |
632 | 636 | } | |
633 | 637 | ||
634 | 638 | ||
635 | - | func | |
636 | - | let dw = | |
639 | + | func eL (dl) = { | |
640 | + | let dw = eI() | |
637 | 641 | if ($isInstanceOf(dw, "ByteVector")) | |
638 | 642 | then { | |
639 | - | let | |
640 | - | (dl.callerPublicKey == | |
643 | + | let eM = dw | |
644 | + | (dl.callerPublicKey == eM) | |
641 | 645 | } | |
642 | 646 | else if ($isInstanceOf(dw, "Unit")) | |
643 | 647 | then (dl.caller == this) | |
645 | 649 | } | |
646 | 650 | ||
647 | 651 | ||
648 | - | func | |
649 | - | let | |
650 | - | let dw = | |
652 | + | func eN (dl) = { | |
653 | + | let eO = throw("Permission denied") | |
654 | + | let dw = eI() | |
651 | 655 | if ($isInstanceOf(dw, "ByteVector")) | |
652 | 656 | then { | |
653 | - | let | |
654 | - | if ((dl.callerPublicKey == | |
657 | + | let eM = dw | |
658 | + | if ((dl.callerPublicKey == eM)) | |
655 | 659 | then true | |
656 | - | else | |
660 | + | else eO | |
657 | 661 | } | |
658 | 662 | else if ($isInstanceOf(dw, "Unit")) | |
659 | 663 | then if ((dl.caller == this)) | |
660 | 664 | then true | |
661 | - | else | |
665 | + | else eO | |
662 | 666 | else throw("Match error") | |
663 | 667 | } | |
664 | 668 | ||
665 | 669 | ||
666 | 670 | @Callable(dl) | |
667 | - | func setManager ( | |
668 | - | let | |
669 | - | if (( | |
671 | + | func setManager (eP) = { | |
672 | + | let eQ = eN(dl) | |
673 | + | if ((eQ == eQ)) | |
670 | 674 | then { | |
671 | - | let | |
672 | - | if (( | |
673 | - | then [StringEntry(R(), | |
675 | + | let eR = fromBase58String(eP) | |
676 | + | if ((eR == eR)) | |
677 | + | then [StringEntry(R(), eP)] | |
674 | 678 | else throw("Strict value is not equal to itself.") | |
675 | 679 | } | |
676 | 680 | else throw("Strict value is not equal to itself.") | |
680 | 684 | ||
681 | 685 | @Callable(dl) | |
682 | 686 | func confirmManager () = { | |
683 | - | let | |
684 | - | let | |
687 | + | let eS = eK() | |
688 | + | let eT = if (isDefined(eS)) | |
685 | 689 | then true | |
686 | 690 | else throw("No pending manager") | |
687 | - | if (( | |
691 | + | if ((eT == eT)) | |
688 | 692 | then { | |
689 | - | let | |
693 | + | let eU = if ((dl.callerPublicKey == value(eS))) | |
690 | 694 | then true | |
691 | 695 | else throw("You are not pending manager") | |
692 | - | if (( | |
693 | - | then [StringEntry(Q(), toBase58String(value( | |
696 | + | if ((eU == eU)) | |
697 | + | then [StringEntry(Q(), toBase58String(value(eS))), DeleteEntry(R())] | |
694 | 698 | else throw("Strict value is not equal to itself.") | |
695 | 699 | } | |
696 | 700 | else throw("Strict value is not equal to itself.") | |
699 | 703 | ||
700 | 704 | ||
701 | 705 | @Callable(dl) | |
702 | - | func put (cq, | |
706 | + | func put (cq,eV) = if ((0 > cq)) | |
703 | 707 | then throw("Invalid slippageTolerance passed") | |
704 | 708 | else { | |
705 | 709 | let dr = do(dl, cq, true) | |
708 | 712 | let co = dr._9 | |
709 | 713 | let cT = dr._10 | |
710 | 714 | let cU = dr._11 | |
711 | - | let | |
712 | - | let | |
715 | + | let eW = dr._12 | |
716 | + | let eX = dr._13 | |
713 | 717 | let du = invoke(aJ, "emit", [cS], nil) | |
714 | 718 | if ((du == du)) | |
715 | 719 | then { | |
724 | 728 | } | |
725 | 729 | if ((dv == dv)) | |
726 | 730 | then { | |
727 | - | let | |
728 | - | then invoke(bg, "put", nil, [AttachedPayment( | |
731 | + | let eY = if ((cT > 0)) | |
732 | + | then invoke(bg, "put", nil, [AttachedPayment(eW, cT)]) | |
729 | 733 | else nil | |
730 | - | if (( | |
734 | + | if ((eY == eY)) | |
731 | 735 | then { | |
732 | - | let | |
733 | - | then invoke(bg, "put", nil, [AttachedPayment( | |
736 | + | let eZ = if ((cU > 0)) | |
737 | + | then invoke(bg, "put", nil, [AttachedPayment(eX, cU)]) | |
734 | 738 | else nil | |
735 | - | if (( | |
739 | + | if ((eZ == eZ)) | |
736 | 740 | then { | |
737 | - | let | |
741 | + | let fa = if (eV) | |
738 | 742 | then { | |
739 | - | let | |
740 | - | if (( | |
743 | + | let fb = invoke(bf, "stake", nil, [AttachedPayment(bX, cS)]) | |
744 | + | if ((fb == fb)) | |
741 | 745 | then nil | |
742 | 746 | else throw("Strict value is not equal to itself.") | |
743 | 747 | } | |
744 | 748 | else [ScriptTransfer(dl.caller, cS, bX)] | |
745 | - | (co ++ | |
749 | + | (co ++ fa) | |
746 | 750 | } | |
747 | 751 | else throw("Strict value is not equal to itself.") | |
748 | 752 | } | |
756 | 760 | ||
757 | 761 | ||
758 | 762 | @Callable(dl) | |
759 | - | func putForFree ( | |
763 | + | func putForFree (fc) = if ((0 > fc)) | |
760 | 764 | then throw("Invalid value passed") | |
761 | 765 | else { | |
762 | - | let dr = do(dl, | |
766 | + | let dr = do(dl, fc, false) | |
763 | 767 | dr._9 | |
764 | 768 | } | |
765 | 769 | ||
766 | 770 | ||
767 | 771 | ||
768 | 772 | @Callable(dl) | |
769 | - | func putOneTkn ( | |
770 | - | let | |
771 | - | let | |
772 | - | if ($isInstanceOf( | |
773 | - | then | |
774 | - | else throw(($getType( | |
773 | + | func putOneTkn (fd,fe) = { | |
774 | + | let ff = { | |
775 | + | let fg = invoke(aJ, "isPoolOneTokenOperationsDisabledREADONLY", [toString(this)], nil) | |
776 | + | if ($isInstanceOf(fg, "Boolean")) | |
777 | + | then fg | |
778 | + | else throw(($getType(fg) + " couldn't be cast to Boolean")) | |
775 | 779 | } | |
776 | - | let | |
780 | + | let fh = if (if (if (aL()) | |
777 | 781 | then true | |
778 | 782 | else (aY == l)) | |
779 | 783 | then true | |
780 | 784 | else (aY == n)) | |
781 | 785 | then true | |
782 | - | else | |
783 | - | let ej = [if (if (!( | |
786 | + | else ff | |
787 | + | let ej = [if (if (!(fh)) | |
784 | 788 | then true | |
785 | - | else | |
789 | + | else eL(dl)) | |
786 | 790 | then true | |
787 | 791 | else aG("put operation is blocked by admin"), if ((size(dl.payments) == 1)) | |
788 | 792 | then true | |
789 | 793 | else aG("exactly 1 payment are expected")] | |
790 | 794 | if ((ej == ej)) | |
791 | 795 | then { | |
792 | - | let | |
793 | - | let dC = | |
794 | - | let dB = | |
796 | + | let fi = dl.payments[0] | |
797 | + | let dC = fi.assetId | |
798 | + | let dB = fi.amount | |
795 | 799 | let X = dl.caller | |
796 | 800 | let Y = dl.transactionId | |
797 | - | let | |
798 | - | let | |
799 | - | let cV = | |
800 | - | let dz = | |
801 | - | let | |
802 | - | let | |
803 | - | then ( | |
801 | + | let fj = dA(dB, dC, X, Y) | |
802 | + | let fk = fj._1 | |
803 | + | let cV = fj._2 | |
804 | + | let dz = fj._3 | |
805 | + | let fl = fj._4 | |
806 | + | let fm = if (if ((fd > 0)) | |
807 | + | then (fd > fk) | |
804 | 808 | else false) | |
805 | - | then aG(makeString(["amount to receive is less than ", toString( | |
806 | - | else | |
807 | - | let du = ds( | |
809 | + | then aG(makeString(["amount to receive is less than ", toString(fd)], "")) | |
810 | + | else fk | |
811 | + | let du = ds(fm) | |
808 | 812 | if ((du == du)) | |
809 | 813 | then { | |
810 | - | let | |
814 | + | let fa = if (fe) | |
811 | 815 | then { | |
812 | - | let | |
813 | - | if (( | |
816 | + | let fn = invoke(bf, "stake", nil, [AttachedPayment(aZ, fm)]) | |
817 | + | if ((fn == fn)) | |
814 | 818 | then nil | |
815 | 819 | else throw("Strict value is not equal to itself.") | |
816 | 820 | } | |
817 | - | else [ScriptTransfer(dl.caller, | |
818 | - | let | |
821 | + | else [ScriptTransfer(dl.caller, fm, aZ)] | |
822 | + | let fo = if ((dz > 0)) | |
819 | 823 | then [ScriptTransfer(aK, dz, dC)] | |
820 | 824 | else nil | |
821 | - | $Tuple2(((cV ++ | |
825 | + | $Tuple2(((cV ++ fa) ++ fo), fm) | |
822 | 826 | } | |
823 | 827 | else throw("Strict value is not equal to itself.") | |
824 | 828 | } | |
829 | 833 | ||
830 | 834 | @Callable(dl) | |
831 | 835 | func putOneTknREADONLY (dC,dB) = { | |
832 | - | let | |
833 | - | let | |
834 | - | let cV = | |
835 | - | let dz = | |
836 | - | let | |
837 | - | $Tuple2(nil, $Tuple3( | |
836 | + | let fp = dA(dB, aQ(dC), unit, unit) | |
837 | + | let fk = fp._1 | |
838 | + | let cV = fp._2 | |
839 | + | let dz = fp._3 | |
840 | + | let fl = fp._4 | |
841 | + | $Tuple2(nil, $Tuple3(fk, dz, fl)) | |
838 | 842 | } | |
839 | 843 | ||
840 | 844 | ||
841 | 845 | ||
842 | 846 | @Callable(dl) | |
843 | - | func getOneTkn ( | |
844 | - | let | |
845 | - | let | |
846 | - | if ($isInstanceOf( | |
847 | - | then | |
848 | - | else throw(($getType( | |
847 | + | func getOneTkn (fq,fd) = { | |
848 | + | let ff = { | |
849 | + | let fg = invoke(aJ, "isPoolOneTokenOperationsDisabledREADONLY", [toString(this)], nil) | |
850 | + | if ($isInstanceOf(fg, "Boolean")) | |
851 | + | then fg | |
852 | + | else throw(($getType(fg) + " couldn't be cast to Boolean")) | |
849 | 853 | } | |
850 | - | let | |
854 | + | let fr = if (if (aL()) | |
851 | 855 | then true | |
852 | 856 | else (aY == n)) | |
853 | 857 | then true | |
854 | - | else | |
855 | - | let ej = [if (if (!( | |
858 | + | else ff | |
859 | + | let ej = [if (if (!(fr)) | |
856 | 860 | then true | |
857 | - | else | |
861 | + | else eL(dl)) | |
858 | 862 | then true | |
859 | 863 | else aG("get operation is blocked by admin"), if ((size(dl.payments) == 1)) | |
860 | 864 | then true | |
861 | 865 | else aG("exactly 1 payment are expected")] | |
862 | 866 | if ((ej == ej)) | |
863 | 867 | then { | |
864 | - | let ei = aQ( | |
865 | - | let | |
866 | - | let dC = | |
867 | - | let dQ = | |
868 | + | let ei = aQ(fq) | |
869 | + | let fi = dl.payments[0] | |
870 | + | let dC = fi.assetId | |
871 | + | let dQ = fi.amount | |
868 | 872 | let X = dl.caller | |
869 | 873 | let Y = dl.transactionId | |
870 | - | let | |
871 | - | let | |
872 | - | let cV = | |
873 | - | let dz = | |
874 | - | let | |
875 | - | let dt = if (if (( | |
876 | - | then ( | |
874 | + | let fs = eh(ei, dQ, dC, X, Y) | |
875 | + | let ft = fs._1 | |
876 | + | let cV = fs._2 | |
877 | + | let dz = fs._3 | |
878 | + | let fl = fs._4 | |
879 | + | let dt = if (if ((fd > 0)) | |
880 | + | then (fd > ft) | |
877 | 881 | else false) | |
878 | - | then aG(makeString(["amount to receive is less than ", toString( | |
879 | - | else | |
880 | - | let | |
881 | - | if (( | |
882 | + | then aG(makeString(["amount to receive is less than ", toString(fd)], "")) | |
883 | + | else ft | |
884 | + | let fu = invoke(aJ, "burn", [dQ], [AttachedPayment(dC, dQ)]) | |
885 | + | if ((fu == fu)) | |
882 | 886 | then { | |
883 | - | let | |
884 | - | let | |
887 | + | let fv = [ScriptTransfer(X, dt, ei)] | |
888 | + | let fo = if ((dz > 0)) | |
885 | 889 | then [ScriptTransfer(aK, dz, ei)] | |
886 | 890 | else nil | |
887 | - | $Tuple2(((cV ++ | |
891 | + | $Tuple2(((cV ++ fv) ++ fo), dt) | |
888 | 892 | } | |
889 | 893 | else throw("Strict value is not equal to itself.") | |
890 | 894 | } | |
895 | 899 | ||
896 | 900 | @Callable(dl) | |
897 | 901 | func getOneTknREADONLY (ei,dQ) = { | |
898 | - | let | |
899 | - | let | |
900 | - | let cV = | |
901 | - | let dz = | |
902 | - | let | |
903 | - | $Tuple2(nil, $Tuple3( | |
902 | + | let fw = eh(aQ(ei), dQ, aZ, unit, unit) | |
903 | + | let ft = fw._1 | |
904 | + | let cV = fw._2 | |
905 | + | let dz = fw._3 | |
906 | + | let fl = fw._4 | |
907 | + | $Tuple2(nil, $Tuple3(ft, dz, fl)) | |
904 | 908 | } | |
905 | 909 | ||
906 | 910 | ||
907 | 911 | ||
908 | 912 | @Callable(dl) | |
909 | - | func unstakeAndGetOneTkn ( | |
910 | - | let | |
911 | - | let | |
912 | - | if ($isInstanceOf( | |
913 | - | then | |
914 | - | else throw(($getType( | |
913 | + | func unstakeAndGetOneTkn (fx,fq,fd) = { | |
914 | + | let ff = { | |
915 | + | let fg = invoke(aJ, "isPoolOneTokenOperationsDisabledREADONLY", [toString(this)], nil) | |
916 | + | if ($isInstanceOf(fg, "Boolean")) | |
917 | + | then fg | |
918 | + | else throw(($getType(fg) + " couldn't be cast to Boolean")) | |
915 | 919 | } | |
916 | - | let | |
920 | + | let fr = if (if (aL()) | |
917 | 921 | then true | |
918 | 922 | else (aY == n)) | |
919 | 923 | then true | |
920 | - | else | |
921 | - | let ej = [if (if (!( | |
924 | + | else ff | |
925 | + | let ej = [if (if (!(fr)) | |
922 | 926 | then true | |
923 | - | else | |
927 | + | else eL(dl)) | |
924 | 928 | then true | |
925 | 929 | else aG("get operation is blocked by admin"), if ((size(dl.payments) == 0)) | |
926 | 930 | then true | |
927 | 931 | else aG("no payments are expected")] | |
928 | 932 | if ((ej == ej)) | |
929 | 933 | then { | |
930 | - | let ei = aQ( | |
934 | + | let ei = aQ(fq) | |
931 | 935 | let X = dl.caller | |
932 | 936 | let Y = dl.transactionId | |
933 | - | let | |
934 | - | if (( | |
937 | + | let fy = invoke(bf, "unstake", [toBase58String(aZ), fx], nil) | |
938 | + | if ((fy == fy)) | |
935 | 939 | then { | |
936 | - | let | |
937 | - | let | |
938 | - | let cV = | |
939 | - | let dz = | |
940 | - | let | |
941 | - | let dt = if (if (( | |
942 | - | then ( | |
940 | + | let fz = eh(ei, fx, aZ, X, Y) | |
941 | + | let ft = fz._1 | |
942 | + | let cV = fz._2 | |
943 | + | let dz = fz._3 | |
944 | + | let fl = fz._4 | |
945 | + | let dt = if (if ((fd > 0)) | |
946 | + | then (fd > ft) | |
943 | 947 | else false) | |
944 | - | then aG(makeString(["amount to receive is less than ", toString( | |
945 | - | else | |
946 | - | let | |
947 | - | if (( | |
948 | + | then aG(makeString(["amount to receive is less than ", toString(fd)], "")) | |
949 | + | else ft | |
950 | + | let fu = invoke(aJ, "burn", [fx], [AttachedPayment(aZ, fx)]) | |
951 | + | if ((fu == fu)) | |
948 | 952 | then { | |
949 | - | let | |
950 | - | let | |
953 | + | let fv = [ScriptTransfer(dl.caller, dt, ei)] | |
954 | + | let fo = if ((dz > 0)) | |
951 | 955 | then [ScriptTransfer(aK, dz, ei)] | |
952 | 956 | else nil | |
953 | - | $Tuple2(((cV ++ | |
957 | + | $Tuple2(((cV ++ fv) ++ fo), dt) | |
954 | 958 | } | |
955 | 959 | else throw("Strict value is not equal to itself.") | |
956 | 960 | } | |
964 | 968 | @Callable(dl) | |
965 | 969 | func get () = { | |
966 | 970 | let cG = dk(dl) | |
967 | - | let | |
971 | + | let fA = cG._1 | |
968 | 972 | let cn = cG._2 | |
969 | 973 | let dn = cG._3 | |
970 | 974 | let bV = cG._4 | |
971 | 975 | let co = cG._5 | |
972 | - | let | |
973 | - | if (( | |
976 | + | let fB = invoke(aJ, "burn", [dn], [AttachedPayment(bV, dn)]) | |
977 | + | if ((fB == fB)) | |
974 | 978 | then co | |
975 | 979 | else throw("Strict value is not equal to itself.") | |
976 | 980 | } | |
978 | 982 | ||
979 | 983 | ||
980 | 984 | @Callable(dl) | |
981 | - | func getNoLess ( | |
985 | + | func getNoLess (fC,fD) = { | |
982 | 986 | let cG = dk(dl) | |
983 | 987 | let cm = cG._1 | |
984 | 988 | let cn = cG._2 | |
985 | 989 | let dn = cG._3 | |
986 | 990 | let bV = cG._4 | |
987 | 991 | let co = cG._5 | |
988 | - | if (( | |
989 | - | then throw(((("noLessThenAmtAsset failed: " + toString(cm)) + " < ") + toString( | |
990 | - | else if (( | |
991 | - | then throw(((("noLessThenPriceAsset failed: " + toString(cn)) + " < ") + toString( | |
992 | + | if ((fC > cm)) | |
993 | + | then throw(((("noLessThenAmtAsset failed: " + toString(cm)) + " < ") + toString(fC))) | |
994 | + | else if ((fD > cn)) | |
995 | + | then throw(((("noLessThenPriceAsset failed: " + toString(cn)) + " < ") + toString(fD))) | |
992 | 996 | else { | |
993 | - | let | |
994 | - | if (( | |
997 | + | let fB = invoke(aJ, "burn", [dn], [AttachedPayment(bV, dn)]) | |
998 | + | if ((fB == fB)) | |
995 | 999 | then co | |
996 | 1000 | else throw("Strict value is not equal to itself.") | |
997 | 1001 | } | |
1001 | 1005 | ||
1002 | 1006 | @Callable(dl) | |
1003 | 1007 | func unstakeAndGet (dt) = { | |
1004 | - | let | |
1008 | + | let fE = if ((size(dl.payments) != 0)) | |
1005 | 1009 | then throw("No payments are expected") | |
1006 | 1010 | else true | |
1007 | - | if (( | |
1011 | + | if ((fE == fE)) | |
1008 | 1012 | then { | |
1009 | 1013 | let bK = aN() | |
1010 | 1014 | let bX = fromBase58String(bK[q]) | |
1011 | - | let | |
1012 | - | if (( | |
1015 | + | let fy = invoke(bf, "unstake", [toBase58String(bX), dt], nil) | |
1016 | + | if ((fy == fy)) | |
1013 | 1017 | then { | |
1014 | 1018 | let cG = bT(toBase58String(dl.transactionId), toBase58String(bX), dt, dl.caller) | |
1015 | 1019 | let ca = parseIntValue(cG._9) | |
1016 | 1020 | let co = cG._10 | |
1017 | - | let | |
1021 | + | let fF = if (if (aL()) | |
1018 | 1022 | then true | |
1019 | 1023 | else (ca == n)) | |
1020 | 1024 | then throw(("Get operation is blocked by admin. Status = " + toString(ca))) | |
1021 | 1025 | else true | |
1022 | - | if (( | |
1026 | + | if ((fF == fF)) | |
1023 | 1027 | then { | |
1024 | - | let | |
1025 | - | if (( | |
1028 | + | let fB = invoke(aJ, "burn", [dt], [AttachedPayment(bX, dt)]) | |
1029 | + | if ((fB == fB)) | |
1026 | 1030 | then co | |
1027 | 1031 | else throw("Strict value is not equal to itself.") | |
1028 | 1032 | } | |
1036 | 1040 | ||
1037 | 1041 | ||
1038 | 1042 | @Callable(dl) | |
1039 | - | func unstakeAndGetNoLess ( | |
1040 | - | let | |
1043 | + | func unstakeAndGetNoLess (fx,fG,fD) = { | |
1044 | + | let fr = if (aL()) | |
1041 | 1045 | then true | |
1042 | 1046 | else (aY == n) | |
1043 | - | let ej = [if (!( | |
1047 | + | let ej = [if (!(fr)) | |
1044 | 1048 | then true | |
1045 | 1049 | else throw("get operation is blocked by admin"), if ((size(dl.payments) == 0)) | |
1046 | 1050 | then true | |
1047 | 1051 | else throw("no payments are expected")] | |
1048 | 1052 | if ((ej == ej)) | |
1049 | 1053 | then { | |
1050 | - | let | |
1051 | - | if (( | |
1054 | + | let fy = invoke(bf, "unstake", [toBase58String(aZ), fx], nil) | |
1055 | + | if ((fy == fy)) | |
1052 | 1056 | then { | |
1053 | - | let cG = bT(toBase58String(dl.transactionId), toBase58String(aZ), | |
1057 | + | let cG = bT(toBase58String(dl.transactionId), toBase58String(aZ), fx, dl.caller) | |
1054 | 1058 | let cm = cG._1 | |
1055 | 1059 | let cn = cG._2 | |
1056 | 1060 | let co = cG._10 | |
1057 | - | let | |
1061 | + | let fH = [if ((cm >= fG)) | |
1058 | 1062 | then true | |
1059 | - | else throw(makeString(["amount asset amount to receive is less than ", toString( | |
1063 | + | else throw(makeString(["amount asset amount to receive is less than ", toString(fG)], "")), if ((cn >= fD)) | |
1060 | 1064 | then true | |
1061 | - | else throw(makeString(["price asset amount to receive is less than ", toString( | |
1062 | - | if (( | |
1065 | + | else throw(makeString(["price asset amount to receive is less than ", toString(fD)], ""))] | |
1066 | + | if ((fH == fH)) | |
1063 | 1067 | then { | |
1064 | - | let | |
1065 | - | if (( | |
1068 | + | let fB = invoke(aJ, "burn", [fx], [AttachedPayment(aZ, fx)]) | |
1069 | + | if ((fB == fB)) | |
1066 | 1070 | then co | |
1067 | 1071 | else throw("Strict value is not equal to itself.") | |
1068 | 1072 | } | |
1076 | 1080 | ||
1077 | 1081 | ||
1078 | 1082 | @Callable(dl) | |
1079 | - | func activate ( | |
1083 | + | func activate (fI,fJ) = if ((toString(dl.caller) != toString(aJ))) | |
1080 | 1084 | then throw("permissions denied") | |
1081 | - | else $Tuple2([StringEntry(aa(), | |
1085 | + | else $Tuple2([StringEntry(aa(), fI), StringEntry(ab(), fJ)], "success") | |
1082 | 1086 | ||
1083 | 1087 | ||
1084 | 1088 | ||
1085 | 1089 | @Callable(dl) | |
1086 | 1090 | func refreshKLp () = { | |
1087 | - | let | |
1088 | - | let | |
1091 | + | let fK = valueOrElse(getInteger(ag), 0) | |
1092 | + | let fL = if (((height - fK) >= aj)) | |
1089 | 1093 | then unit | |
1090 | 1094 | else aG(makeString([toString(aj), " blocks have not passed since the previous call"], "")) | |
1091 | - | if (( | |
1095 | + | if ((fL == fL)) | |
1092 | 1096 | then { | |
1093 | - | let eG = eD() | |
1094 | - | [IntegerEntry(ag, height), IntegerEntry(af, eG)] | |
1097 | + | let fM = eE() | |
1098 | + | let eH = fM._1 | |
1099 | + | let eD = fM._2 | |
1100 | + | $Tuple2(eH, eD) | |
1095 | 1101 | } | |
1096 | 1102 | else throw("Strict value is not equal to itself.") | |
1097 | 1103 | } | |
1154 | 1160 | let cA = bK[w] | |
1155 | 1161 | let bL = parseIntValue(bK[t]) | |
1156 | 1162 | let bM = parseIntValue(bK[u]) | |
1157 | - | let | |
1163 | + | let fN = valueOrErrorMessage(assetInfo(bX), (("Asset " + toBase58String(bX)) + " doesn't exist")).quantity | |
1158 | 1164 | let da = bw(cY) | |
1159 | 1165 | let db = bw(cZ) | |
1160 | - | let | |
1166 | + | let fO = if ((fN == 0)) | |
1161 | 1167 | then [e, e, e] | |
1162 | - | else bI(da, db, | |
1168 | + | else bI(da, db, fN) | |
1163 | 1169 | let ch = 0 | |
1164 | - | let | |
1165 | - | let | |
1166 | - | let | |
1167 | - | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d", toString(da), toString(db), toString( | |
1170 | + | let fP = G(fO[1], b) | |
1171 | + | let fQ = G(fO[2], b) | |
1172 | + | let fR = value(getInteger(aJ, au(toString(this)))) | |
1173 | + | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d", toString(da), toString(db), toString(fN), toString(ch), toString(fP), toString(fQ), toString(fR)], j)) | |
1168 | 1174 | } | |
1169 | 1175 | ||
1170 | 1176 | ||
1180 | 1186 | let bL = parseIntValue(bK[t]) | |
1181 | 1187 | let bM = parseIntValue(bK[u]) | |
1182 | 1188 | let ca = bK[p] | |
1183 | - | let | |
1189 | + | let fN = valueOrErrorMessage(assetInfo(bX), (("Asset " + toBase58String(bX)) + " doesn't exist")).quantity | |
1184 | 1190 | let da = bw(cx) | |
1185 | 1191 | let db = bw(cy) | |
1186 | 1192 | let bG = D(da, bL) | |
1187 | 1193 | let bH = D(db, bM) | |
1188 | - | let cg = if (( | |
1194 | + | let cg = if ((fN == 0)) | |
1189 | 1195 | then e | |
1190 | 1196 | else by(bH, bG) | |
1191 | 1197 | let cD = D(cr, bL) | |
1193 | 1199 | let ct = G(cE, bM) | |
1194 | 1200 | let dr = cp("", 500000, cr, bY, ct, bZ, "", true, false) | |
1195 | 1201 | let cO = dr._1 | |
1196 | - | let | |
1202 | + | let fS = dr._3 | |
1197 | 1203 | let cc = dr._4 | |
1198 | 1204 | let ce = dr._5 | |
1199 | 1205 | let cb = dr._6 | |
1213 | 1219 | let bL = parseIntValue(bK[t]) | |
1214 | 1220 | let bM = parseIntValue(bK[u]) | |
1215 | 1221 | let ca = bK[p] | |
1216 | - | let | |
1217 | - | let | |
1218 | - | let | |
1219 | - | let | |
1220 | - | let | |
1221 | - | let cg = if (( | |
1222 | + | let fN = valueOrErrorMessage(assetInfo(bX), (("Asset " + toBase58String(bX)) + " doesn't exist")).quantity | |
1223 | + | let fT = bw(cx) | |
1224 | + | let fU = bw(cy) | |
1225 | + | let fV = D(fT, bL) | |
1226 | + | let fW = D(fU, bM) | |
1227 | + | let cg = if ((fN == 0)) | |
1222 | 1228 | then e | |
1223 | - | else by( | |
1229 | + | else by(fW, fV) | |
1224 | 1230 | let cE = D(ct, bM) | |
1225 | 1231 | let cD = fraction(cE, d, cg) | |
1226 | 1232 | let cr = G(cD, bL) | |
1227 | 1233 | let dr = cp("", 500000, cr, bY, ct, bZ, "", true, false) | |
1228 | 1234 | let cO = dr._1 | |
1229 | - | let | |
1235 | + | let fS = dr._3 | |
1230 | 1236 | let cc = dr._4 | |
1231 | 1237 | let ce = dr._5 | |
1232 | 1238 | let cb = dr._6 | |
1236 | 1242 | ||
1237 | 1243 | ||
1238 | 1244 | @Callable(dl) | |
1239 | - | func evaluateGetREADONLY ( | |
1240 | - | let cG = bT("", | |
1245 | + | func evaluateGetREADONLY (fX,fY) = { | |
1246 | + | let cG = bT("", fX, fY, this) | |
1241 | 1247 | let cm = cG._1 | |
1242 | 1248 | let cn = cG._2 | |
1243 | 1249 | let cc = cG._5 | |
1249 | 1255 | } | |
1250 | 1256 | ||
1251 | 1257 | ||
1252 | - | @Verifier( | |
1253 | - | func | |
1254 | - | let | |
1255 | - | let dw = | |
1258 | + | @Verifier(fZ) | |
1259 | + | func ga () = { | |
1260 | + | let gb = { | |
1261 | + | let dw = eI() | |
1256 | 1262 | if ($isInstanceOf(dw, "ByteVector")) | |
1257 | 1263 | then { | |
1258 | - | let | |
1259 | - | | |
1264 | + | let eM = dw | |
1265 | + | eM | |
1260 | 1266 | } | |
1261 | 1267 | else if ($isInstanceOf(dw, "Unit")) | |
1262 | - | then | |
1268 | + | then fZ.senderPublicKey | |
1263 | 1269 | else throw("Match error") | |
1264 | 1270 | } | |
1265 | - | let dw = | |
1271 | + | let dw = fZ | |
1266 | 1272 | if ($isInstanceOf(dw, "Order")) | |
1267 | 1273 | then { | |
1268 | 1274 | let cX = dw | |
1269 | - | let | |
1275 | + | let gc = aM() | |
1270 | 1276 | let az = cW(cX) | |
1271 | 1277 | let aA = sigVerify(cX.bodyBytes, cX.proofs[0], cX.senderPublicKey) | |
1272 | - | let aB = sigVerify(cX.bodyBytes, cX.proofs[1], | |
1278 | + | let aB = sigVerify(cX.bodyBytes, cX.proofs[1], gc) | |
1273 | 1279 | if (if (if (az) | |
1274 | 1280 | then aA | |
1275 | 1281 | else false) | |
1280 | 1286 | } | |
1281 | 1287 | else if ($isInstanceOf(dw, "SetScriptTransaction")) | |
1282 | 1288 | then { | |
1283 | - | let | |
1284 | - | let | |
1285 | - | let | |
1286 | - | let | |
1287 | - | if (if (( | |
1288 | - | then ( | |
1289 | + | let eJ = dw | |
1290 | + | let gd = blake2b256(value(eJ.script)) | |
1291 | + | let ge = fromBase64String(value(getString(aJ, aw()))) | |
1292 | + | let gf = scriptHash(this) | |
1293 | + | if (if ((ge == gd)) | |
1294 | + | then (gf != gd) | |
1289 | 1295 | else false) | |
1290 | 1296 | then true | |
1291 | - | else sigVerify( | |
1297 | + | else sigVerify(fZ.bodyBytes, fZ.proofs[0], gb) | |
1292 | 1298 | } | |
1293 | - | else sigVerify( | |
1299 | + | else sigVerify(fZ.bodyBytes, fZ.proofs[0], gb) | |
1294 | 1300 | } | |
1295 | 1301 |
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) = fraction(eB, eC, cb) | |
598 | - | ||
599 | - | ||
600 | - | func eD () = { | |
601 | - | let eE = bw(aS(ba)) | |
602 | - | let eF = bw(aS(bb)) | |
603 | - | let cb = value(assetInfo(aZ)).quantity | |
604 | - | let eG = eA(eE, eF, cb) | |
605 | - | eG | |
597 | + | func eA (eB,eC,cb) = { | |
598 | + | let eD = fraction(pow((eB * eC), 0, toBigInt(5), 1, 0, DOWN), d, cb) | |
599 | + | eD | |
606 | 600 | } | |
607 | 601 | ||
608 | 602 | ||
609 | - | func eH () = { | |
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 () = { | |
610 | 614 | let dw = getString(Q()) | |
611 | 615 | if ($isInstanceOf(dw, "String")) | |
612 | 616 | then { | |
613 | - | let | |
614 | - | fromBase58String( | |
617 | + | let eJ = dw | |
618 | + | fromBase58String(eJ) | |
615 | 619 | } | |
616 | 620 | else if ($isInstanceOf(dw, "Unit")) | |
617 | 621 | then unit | |
618 | 622 | else throw("Match error") | |
619 | 623 | } | |
620 | 624 | ||
621 | 625 | ||
622 | - | func | |
626 | + | func eK () = { | |
623 | 627 | let dw = getString(R()) | |
624 | 628 | if ($isInstanceOf(dw, "String")) | |
625 | 629 | then { | |
626 | - | let | |
627 | - | fromBase58String( | |
630 | + | let eJ = dw | |
631 | + | fromBase58String(eJ) | |
628 | 632 | } | |
629 | 633 | else if ($isInstanceOf(dw, "Unit")) | |
630 | 634 | then unit | |
631 | 635 | else throw("Match error") | |
632 | 636 | } | |
633 | 637 | ||
634 | 638 | ||
635 | - | func | |
636 | - | let dw = | |
639 | + | func eL (dl) = { | |
640 | + | let dw = eI() | |
637 | 641 | if ($isInstanceOf(dw, "ByteVector")) | |
638 | 642 | then { | |
639 | - | let | |
640 | - | (dl.callerPublicKey == | |
643 | + | let eM = dw | |
644 | + | (dl.callerPublicKey == eM) | |
641 | 645 | } | |
642 | 646 | else if ($isInstanceOf(dw, "Unit")) | |
643 | 647 | then (dl.caller == this) | |
644 | 648 | else throw("Match error") | |
645 | 649 | } | |
646 | 650 | ||
647 | 651 | ||
648 | - | func | |
649 | - | let | |
650 | - | let dw = | |
652 | + | func eN (dl) = { | |
653 | + | let eO = throw("Permission denied") | |
654 | + | let dw = eI() | |
651 | 655 | if ($isInstanceOf(dw, "ByteVector")) | |
652 | 656 | then { | |
653 | - | let | |
654 | - | if ((dl.callerPublicKey == | |
657 | + | let eM = dw | |
658 | + | if ((dl.callerPublicKey == eM)) | |
655 | 659 | then true | |
656 | - | else | |
660 | + | else eO | |
657 | 661 | } | |
658 | 662 | else if ($isInstanceOf(dw, "Unit")) | |
659 | 663 | then if ((dl.caller == this)) | |
660 | 664 | then true | |
661 | - | else | |
665 | + | else eO | |
662 | 666 | else throw("Match error") | |
663 | 667 | } | |
664 | 668 | ||
665 | 669 | ||
666 | 670 | @Callable(dl) | |
667 | - | func setManager ( | |
668 | - | let | |
669 | - | if (( | |
671 | + | func setManager (eP) = { | |
672 | + | let eQ = eN(dl) | |
673 | + | if ((eQ == eQ)) | |
670 | 674 | then { | |
671 | - | let | |
672 | - | if (( | |
673 | - | then [StringEntry(R(), | |
675 | + | let eR = fromBase58String(eP) | |
676 | + | if ((eR == eR)) | |
677 | + | then [StringEntry(R(), eP)] | |
674 | 678 | else throw("Strict value is not equal to itself.") | |
675 | 679 | } | |
676 | 680 | else throw("Strict value is not equal to itself.") | |
677 | 681 | } | |
678 | 682 | ||
679 | 683 | ||
680 | 684 | ||
681 | 685 | @Callable(dl) | |
682 | 686 | func confirmManager () = { | |
683 | - | let | |
684 | - | let | |
687 | + | let eS = eK() | |
688 | + | let eT = if (isDefined(eS)) | |
685 | 689 | then true | |
686 | 690 | else throw("No pending manager") | |
687 | - | if (( | |
691 | + | if ((eT == eT)) | |
688 | 692 | then { | |
689 | - | let | |
693 | + | let eU = if ((dl.callerPublicKey == value(eS))) | |
690 | 694 | then true | |
691 | 695 | else throw("You are not pending manager") | |
692 | - | if (( | |
693 | - | then [StringEntry(Q(), toBase58String(value( | |
696 | + | if ((eU == eU)) | |
697 | + | then [StringEntry(Q(), toBase58String(value(eS))), DeleteEntry(R())] | |
694 | 698 | else throw("Strict value is not equal to itself.") | |
695 | 699 | } | |
696 | 700 | else throw("Strict value is not equal to itself.") | |
697 | 701 | } | |
698 | 702 | ||
699 | 703 | ||
700 | 704 | ||
701 | 705 | @Callable(dl) | |
702 | - | func put (cq, | |
706 | + | func put (cq,eV) = if ((0 > cq)) | |
703 | 707 | then throw("Invalid slippageTolerance passed") | |
704 | 708 | else { | |
705 | 709 | let dr = do(dl, cq, true) | |
706 | 710 | let cS = dr._2 | |
707 | 711 | let bX = dr._7 | |
708 | 712 | let co = dr._9 | |
709 | 713 | let cT = dr._10 | |
710 | 714 | let cU = dr._11 | |
711 | - | let | |
712 | - | let | |
715 | + | let eW = dr._12 | |
716 | + | let eX = dr._13 | |
713 | 717 | let du = invoke(aJ, "emit", [cS], nil) | |
714 | 718 | if ((du == du)) | |
715 | 719 | then { | |
716 | 720 | let dv = { | |
717 | 721 | let dw = du | |
718 | 722 | if ($isInstanceOf(dw, "Address")) | |
719 | 723 | then { | |
720 | 724 | let dx = dw | |
721 | 725 | invoke(dx, "emit", [cS], nil) | |
722 | 726 | } | |
723 | 727 | else unit | |
724 | 728 | } | |
725 | 729 | if ((dv == dv)) | |
726 | 730 | then { | |
727 | - | let | |
728 | - | then invoke(bg, "put", nil, [AttachedPayment( | |
731 | + | let eY = if ((cT > 0)) | |
732 | + | then invoke(bg, "put", nil, [AttachedPayment(eW, cT)]) | |
729 | 733 | else nil | |
730 | - | if (( | |
734 | + | if ((eY == eY)) | |
731 | 735 | then { | |
732 | - | let | |
733 | - | then invoke(bg, "put", nil, [AttachedPayment( | |
736 | + | let eZ = if ((cU > 0)) | |
737 | + | then invoke(bg, "put", nil, [AttachedPayment(eX, cU)]) | |
734 | 738 | else nil | |
735 | - | if (( | |
739 | + | if ((eZ == eZ)) | |
736 | 740 | then { | |
737 | - | let | |
741 | + | let fa = if (eV) | |
738 | 742 | then { | |
739 | - | let | |
740 | - | if (( | |
743 | + | let fb = invoke(bf, "stake", nil, [AttachedPayment(bX, cS)]) | |
744 | + | if ((fb == fb)) | |
741 | 745 | then nil | |
742 | 746 | else throw("Strict value is not equal to itself.") | |
743 | 747 | } | |
744 | 748 | else [ScriptTransfer(dl.caller, cS, bX)] | |
745 | - | (co ++ | |
749 | + | (co ++ fa) | |
746 | 750 | } | |
747 | 751 | else throw("Strict value is not equal to itself.") | |
748 | 752 | } | |
749 | 753 | else throw("Strict value is not equal to itself.") | |
750 | 754 | } | |
751 | 755 | else throw("Strict value is not equal to itself.") | |
752 | 756 | } | |
753 | 757 | else throw("Strict value is not equal to itself.") | |
754 | 758 | } | |
755 | 759 | ||
756 | 760 | ||
757 | 761 | ||
758 | 762 | @Callable(dl) | |
759 | - | func putForFree ( | |
763 | + | func putForFree (fc) = if ((0 > fc)) | |
760 | 764 | then throw("Invalid value passed") | |
761 | 765 | else { | |
762 | - | let dr = do(dl, | |
766 | + | let dr = do(dl, fc, false) | |
763 | 767 | dr._9 | |
764 | 768 | } | |
765 | 769 | ||
766 | 770 | ||
767 | 771 | ||
768 | 772 | @Callable(dl) | |
769 | - | func putOneTkn ( | |
770 | - | let | |
771 | - | let | |
772 | - | if ($isInstanceOf( | |
773 | - | then | |
774 | - | else throw(($getType( | |
773 | + | func putOneTkn (fd,fe) = { | |
774 | + | let ff = { | |
775 | + | let fg = invoke(aJ, "isPoolOneTokenOperationsDisabledREADONLY", [toString(this)], nil) | |
776 | + | if ($isInstanceOf(fg, "Boolean")) | |
777 | + | then fg | |
778 | + | else throw(($getType(fg) + " couldn't be cast to Boolean")) | |
775 | 779 | } | |
776 | - | let | |
780 | + | let fh = if (if (if (aL()) | |
777 | 781 | then true | |
778 | 782 | else (aY == l)) | |
779 | 783 | then true | |
780 | 784 | else (aY == n)) | |
781 | 785 | then true | |
782 | - | else | |
783 | - | let ej = [if (if (!( | |
786 | + | else ff | |
787 | + | let ej = [if (if (!(fh)) | |
784 | 788 | then true | |
785 | - | else | |
789 | + | else eL(dl)) | |
786 | 790 | then true | |
787 | 791 | else aG("put operation is blocked by admin"), if ((size(dl.payments) == 1)) | |
788 | 792 | then true | |
789 | 793 | else aG("exactly 1 payment are expected")] | |
790 | 794 | if ((ej == ej)) | |
791 | 795 | then { | |
792 | - | let | |
793 | - | let dC = | |
794 | - | let dB = | |
796 | + | let fi = dl.payments[0] | |
797 | + | let dC = fi.assetId | |
798 | + | let dB = fi.amount | |
795 | 799 | let X = dl.caller | |
796 | 800 | let Y = dl.transactionId | |
797 | - | let | |
798 | - | let | |
799 | - | let cV = | |
800 | - | let dz = | |
801 | - | let | |
802 | - | let | |
803 | - | then ( | |
801 | + | let fj = dA(dB, dC, X, Y) | |
802 | + | let fk = fj._1 | |
803 | + | let cV = fj._2 | |
804 | + | let dz = fj._3 | |
805 | + | let fl = fj._4 | |
806 | + | let fm = if (if ((fd > 0)) | |
807 | + | then (fd > fk) | |
804 | 808 | else false) | |
805 | - | then aG(makeString(["amount to receive is less than ", toString( | |
806 | - | else | |
807 | - | let du = ds( | |
809 | + | then aG(makeString(["amount to receive is less than ", toString(fd)], "")) | |
810 | + | else fk | |
811 | + | let du = ds(fm) | |
808 | 812 | if ((du == du)) | |
809 | 813 | then { | |
810 | - | let | |
814 | + | let fa = if (fe) | |
811 | 815 | then { | |
812 | - | let | |
813 | - | if (( | |
816 | + | let fn = invoke(bf, "stake", nil, [AttachedPayment(aZ, fm)]) | |
817 | + | if ((fn == fn)) | |
814 | 818 | then nil | |
815 | 819 | else throw("Strict value is not equal to itself.") | |
816 | 820 | } | |
817 | - | else [ScriptTransfer(dl.caller, | |
818 | - | let | |
821 | + | else [ScriptTransfer(dl.caller, fm, aZ)] | |
822 | + | let fo = if ((dz > 0)) | |
819 | 823 | then [ScriptTransfer(aK, dz, dC)] | |
820 | 824 | else nil | |
821 | - | $Tuple2(((cV ++ | |
825 | + | $Tuple2(((cV ++ fa) ++ fo), fm) | |
822 | 826 | } | |
823 | 827 | else throw("Strict value is not equal to itself.") | |
824 | 828 | } | |
825 | 829 | else throw("Strict value is not equal to itself.") | |
826 | 830 | } | |
827 | 831 | ||
828 | 832 | ||
829 | 833 | ||
830 | 834 | @Callable(dl) | |
831 | 835 | func putOneTknREADONLY (dC,dB) = { | |
832 | - | let | |
833 | - | let | |
834 | - | let cV = | |
835 | - | let dz = | |
836 | - | let | |
837 | - | $Tuple2(nil, $Tuple3( | |
836 | + | let fp = dA(dB, aQ(dC), unit, unit) | |
837 | + | let fk = fp._1 | |
838 | + | let cV = fp._2 | |
839 | + | let dz = fp._3 | |
840 | + | let fl = fp._4 | |
841 | + | $Tuple2(nil, $Tuple3(fk, dz, fl)) | |
838 | 842 | } | |
839 | 843 | ||
840 | 844 | ||
841 | 845 | ||
842 | 846 | @Callable(dl) | |
843 | - | func getOneTkn ( | |
844 | - | let | |
845 | - | let | |
846 | - | if ($isInstanceOf( | |
847 | - | then | |
848 | - | else throw(($getType( | |
847 | + | func getOneTkn (fq,fd) = { | |
848 | + | let ff = { | |
849 | + | let fg = invoke(aJ, "isPoolOneTokenOperationsDisabledREADONLY", [toString(this)], nil) | |
850 | + | if ($isInstanceOf(fg, "Boolean")) | |
851 | + | then fg | |
852 | + | else throw(($getType(fg) + " couldn't be cast to Boolean")) | |
849 | 853 | } | |
850 | - | let | |
854 | + | let fr = if (if (aL()) | |
851 | 855 | then true | |
852 | 856 | else (aY == n)) | |
853 | 857 | then true | |
854 | - | else | |
855 | - | let ej = [if (if (!( | |
858 | + | else ff | |
859 | + | let ej = [if (if (!(fr)) | |
856 | 860 | then true | |
857 | - | else | |
861 | + | else eL(dl)) | |
858 | 862 | then true | |
859 | 863 | else aG("get operation is blocked by admin"), if ((size(dl.payments) == 1)) | |
860 | 864 | then true | |
861 | 865 | else aG("exactly 1 payment are expected")] | |
862 | 866 | if ((ej == ej)) | |
863 | 867 | then { | |
864 | - | let ei = aQ( | |
865 | - | let | |
866 | - | let dC = | |
867 | - | let dQ = | |
868 | + | let ei = aQ(fq) | |
869 | + | let fi = dl.payments[0] | |
870 | + | let dC = fi.assetId | |
871 | + | let dQ = fi.amount | |
868 | 872 | let X = dl.caller | |
869 | 873 | let Y = dl.transactionId | |
870 | - | let | |
871 | - | let | |
872 | - | let cV = | |
873 | - | let dz = | |
874 | - | let | |
875 | - | let dt = if (if (( | |
876 | - | then ( | |
874 | + | let fs = eh(ei, dQ, dC, X, Y) | |
875 | + | let ft = fs._1 | |
876 | + | let cV = fs._2 | |
877 | + | let dz = fs._3 | |
878 | + | let fl = fs._4 | |
879 | + | let dt = if (if ((fd > 0)) | |
880 | + | then (fd > ft) | |
877 | 881 | else false) | |
878 | - | then aG(makeString(["amount to receive is less than ", toString( | |
879 | - | else | |
880 | - | let | |
881 | - | if (( | |
882 | + | then aG(makeString(["amount to receive is less than ", toString(fd)], "")) | |
883 | + | else ft | |
884 | + | let fu = invoke(aJ, "burn", [dQ], [AttachedPayment(dC, dQ)]) | |
885 | + | if ((fu == fu)) | |
882 | 886 | then { | |
883 | - | let | |
884 | - | let | |
887 | + | let fv = [ScriptTransfer(X, dt, ei)] | |
888 | + | let fo = if ((dz > 0)) | |
885 | 889 | then [ScriptTransfer(aK, dz, ei)] | |
886 | 890 | else nil | |
887 | - | $Tuple2(((cV ++ | |
891 | + | $Tuple2(((cV ++ fv) ++ fo), dt) | |
888 | 892 | } | |
889 | 893 | else throw("Strict value is not equal to itself.") | |
890 | 894 | } | |
891 | 895 | else throw("Strict value is not equal to itself.") | |
892 | 896 | } | |
893 | 897 | ||
894 | 898 | ||
895 | 899 | ||
896 | 900 | @Callable(dl) | |
897 | 901 | func getOneTknREADONLY (ei,dQ) = { | |
898 | - | let | |
899 | - | let | |
900 | - | let cV = | |
901 | - | let dz = | |
902 | - | let | |
903 | - | $Tuple2(nil, $Tuple3( | |
902 | + | let fw = eh(aQ(ei), dQ, aZ, unit, unit) | |
903 | + | let ft = fw._1 | |
904 | + | let cV = fw._2 | |
905 | + | let dz = fw._3 | |
906 | + | let fl = fw._4 | |
907 | + | $Tuple2(nil, $Tuple3(ft, dz, fl)) | |
904 | 908 | } | |
905 | 909 | ||
906 | 910 | ||
907 | 911 | ||
908 | 912 | @Callable(dl) | |
909 | - | func unstakeAndGetOneTkn ( | |
910 | - | let | |
911 | - | let | |
912 | - | if ($isInstanceOf( | |
913 | - | then | |
914 | - | else throw(($getType( | |
913 | + | func unstakeAndGetOneTkn (fx,fq,fd) = { | |
914 | + | let ff = { | |
915 | + | let fg = invoke(aJ, "isPoolOneTokenOperationsDisabledREADONLY", [toString(this)], nil) | |
916 | + | if ($isInstanceOf(fg, "Boolean")) | |
917 | + | then fg | |
918 | + | else throw(($getType(fg) + " couldn't be cast to Boolean")) | |
915 | 919 | } | |
916 | - | let | |
920 | + | let fr = if (if (aL()) | |
917 | 921 | then true | |
918 | 922 | else (aY == n)) | |
919 | 923 | then true | |
920 | - | else | |
921 | - | let ej = [if (if (!( | |
924 | + | else ff | |
925 | + | let ej = [if (if (!(fr)) | |
922 | 926 | then true | |
923 | - | else | |
927 | + | else eL(dl)) | |
924 | 928 | then true | |
925 | 929 | else aG("get operation is blocked by admin"), if ((size(dl.payments) == 0)) | |
926 | 930 | then true | |
927 | 931 | else aG("no payments are expected")] | |
928 | 932 | if ((ej == ej)) | |
929 | 933 | then { | |
930 | - | let ei = aQ( | |
934 | + | let ei = aQ(fq) | |
931 | 935 | let X = dl.caller | |
932 | 936 | let Y = dl.transactionId | |
933 | - | let | |
934 | - | if (( | |
937 | + | let fy = invoke(bf, "unstake", [toBase58String(aZ), fx], nil) | |
938 | + | if ((fy == fy)) | |
935 | 939 | then { | |
936 | - | let | |
937 | - | let | |
938 | - | let cV = | |
939 | - | let dz = | |
940 | - | let | |
941 | - | let dt = if (if (( | |
942 | - | then ( | |
940 | + | let fz = eh(ei, fx, aZ, X, Y) | |
941 | + | let ft = fz._1 | |
942 | + | let cV = fz._2 | |
943 | + | let dz = fz._3 | |
944 | + | let fl = fz._4 | |
945 | + | let dt = if (if ((fd > 0)) | |
946 | + | then (fd > ft) | |
943 | 947 | else false) | |
944 | - | then aG(makeString(["amount to receive is less than ", toString( | |
945 | - | else | |
946 | - | let | |
947 | - | if (( | |
948 | + | then aG(makeString(["amount to receive is less than ", toString(fd)], "")) | |
949 | + | else ft | |
950 | + | let fu = invoke(aJ, "burn", [fx], [AttachedPayment(aZ, fx)]) | |
951 | + | if ((fu == fu)) | |
948 | 952 | then { | |
949 | - | let | |
950 | - | let | |
953 | + | let fv = [ScriptTransfer(dl.caller, dt, ei)] | |
954 | + | let fo = if ((dz > 0)) | |
951 | 955 | then [ScriptTransfer(aK, dz, ei)] | |
952 | 956 | else nil | |
953 | - | $Tuple2(((cV ++ | |
957 | + | $Tuple2(((cV ++ fv) ++ fo), dt) | |
954 | 958 | } | |
955 | 959 | else throw("Strict value is not equal to itself.") | |
956 | 960 | } | |
957 | 961 | else throw("Strict value is not equal to itself.") | |
958 | 962 | } | |
959 | 963 | else throw("Strict value is not equal to itself.") | |
960 | 964 | } | |
961 | 965 | ||
962 | 966 | ||
963 | 967 | ||
964 | 968 | @Callable(dl) | |
965 | 969 | func get () = { | |
966 | 970 | let cG = dk(dl) | |
967 | - | let | |
971 | + | let fA = cG._1 | |
968 | 972 | let cn = cG._2 | |
969 | 973 | let dn = cG._3 | |
970 | 974 | let bV = cG._4 | |
971 | 975 | let co = cG._5 | |
972 | - | let | |
973 | - | if (( | |
976 | + | let fB = invoke(aJ, "burn", [dn], [AttachedPayment(bV, dn)]) | |
977 | + | if ((fB == fB)) | |
974 | 978 | then co | |
975 | 979 | else throw("Strict value is not equal to itself.") | |
976 | 980 | } | |
977 | 981 | ||
978 | 982 | ||
979 | 983 | ||
980 | 984 | @Callable(dl) | |
981 | - | func getNoLess ( | |
985 | + | func getNoLess (fC,fD) = { | |
982 | 986 | let cG = dk(dl) | |
983 | 987 | let cm = cG._1 | |
984 | 988 | let cn = cG._2 | |
985 | 989 | let dn = cG._3 | |
986 | 990 | let bV = cG._4 | |
987 | 991 | let co = cG._5 | |
988 | - | if (( | |
989 | - | then throw(((("noLessThenAmtAsset failed: " + toString(cm)) + " < ") + toString( | |
990 | - | else if (( | |
991 | - | then throw(((("noLessThenPriceAsset failed: " + toString(cn)) + " < ") + toString( | |
992 | + | if ((fC > cm)) | |
993 | + | then throw(((("noLessThenAmtAsset failed: " + toString(cm)) + " < ") + toString(fC))) | |
994 | + | else if ((fD > cn)) | |
995 | + | then throw(((("noLessThenPriceAsset failed: " + toString(cn)) + " < ") + toString(fD))) | |
992 | 996 | else { | |
993 | - | let | |
994 | - | if (( | |
997 | + | let fB = invoke(aJ, "burn", [dn], [AttachedPayment(bV, dn)]) | |
998 | + | if ((fB == fB)) | |
995 | 999 | then co | |
996 | 1000 | else throw("Strict value is not equal to itself.") | |
997 | 1001 | } | |
998 | 1002 | } | |
999 | 1003 | ||
1000 | 1004 | ||
1001 | 1005 | ||
1002 | 1006 | @Callable(dl) | |
1003 | 1007 | func unstakeAndGet (dt) = { | |
1004 | - | let | |
1008 | + | let fE = if ((size(dl.payments) != 0)) | |
1005 | 1009 | then throw("No payments are expected") | |
1006 | 1010 | else true | |
1007 | - | if (( | |
1011 | + | if ((fE == fE)) | |
1008 | 1012 | then { | |
1009 | 1013 | let bK = aN() | |
1010 | 1014 | let bX = fromBase58String(bK[q]) | |
1011 | - | let | |
1012 | - | if (( | |
1015 | + | let fy = invoke(bf, "unstake", [toBase58String(bX), dt], nil) | |
1016 | + | if ((fy == fy)) | |
1013 | 1017 | then { | |
1014 | 1018 | let cG = bT(toBase58String(dl.transactionId), toBase58String(bX), dt, dl.caller) | |
1015 | 1019 | let ca = parseIntValue(cG._9) | |
1016 | 1020 | let co = cG._10 | |
1017 | - | let | |
1021 | + | let fF = if (if (aL()) | |
1018 | 1022 | then true | |
1019 | 1023 | else (ca == n)) | |
1020 | 1024 | then throw(("Get operation is blocked by admin. Status = " + toString(ca))) | |
1021 | 1025 | else true | |
1022 | - | if (( | |
1026 | + | if ((fF == fF)) | |
1023 | 1027 | then { | |
1024 | - | let | |
1025 | - | if (( | |
1028 | + | let fB = invoke(aJ, "burn", [dt], [AttachedPayment(bX, dt)]) | |
1029 | + | if ((fB == fB)) | |
1026 | 1030 | then co | |
1027 | 1031 | else throw("Strict value is not equal to itself.") | |
1028 | 1032 | } | |
1029 | 1033 | else throw("Strict value is not equal to itself.") | |
1030 | 1034 | } | |
1031 | 1035 | else throw("Strict value is not equal to itself.") | |
1032 | 1036 | } | |
1033 | 1037 | else throw("Strict value is not equal to itself.") | |
1034 | 1038 | } | |
1035 | 1039 | ||
1036 | 1040 | ||
1037 | 1041 | ||
1038 | 1042 | @Callable(dl) | |
1039 | - | func unstakeAndGetNoLess ( | |
1040 | - | let | |
1043 | + | func unstakeAndGetNoLess (fx,fG,fD) = { | |
1044 | + | let fr = if (aL()) | |
1041 | 1045 | then true | |
1042 | 1046 | else (aY == n) | |
1043 | - | let ej = [if (!( | |
1047 | + | let ej = [if (!(fr)) | |
1044 | 1048 | then true | |
1045 | 1049 | else throw("get operation is blocked by admin"), if ((size(dl.payments) == 0)) | |
1046 | 1050 | then true | |
1047 | 1051 | else throw("no payments are expected")] | |
1048 | 1052 | if ((ej == ej)) | |
1049 | 1053 | then { | |
1050 | - | let | |
1051 | - | if (( | |
1054 | + | let fy = invoke(bf, "unstake", [toBase58String(aZ), fx], nil) | |
1055 | + | if ((fy == fy)) | |
1052 | 1056 | then { | |
1053 | - | let cG = bT(toBase58String(dl.transactionId), toBase58String(aZ), | |
1057 | + | let cG = bT(toBase58String(dl.transactionId), toBase58String(aZ), fx, dl.caller) | |
1054 | 1058 | let cm = cG._1 | |
1055 | 1059 | let cn = cG._2 | |
1056 | 1060 | let co = cG._10 | |
1057 | - | let | |
1061 | + | let fH = [if ((cm >= fG)) | |
1058 | 1062 | then true | |
1059 | - | else throw(makeString(["amount asset amount to receive is less than ", toString( | |
1063 | + | else throw(makeString(["amount asset amount to receive is less than ", toString(fG)], "")), if ((cn >= fD)) | |
1060 | 1064 | then true | |
1061 | - | else throw(makeString(["price asset amount to receive is less than ", toString( | |
1062 | - | if (( | |
1065 | + | else throw(makeString(["price asset amount to receive is less than ", toString(fD)], ""))] | |
1066 | + | if ((fH == fH)) | |
1063 | 1067 | then { | |
1064 | - | let | |
1065 | - | if (( | |
1068 | + | let fB = invoke(aJ, "burn", [fx], [AttachedPayment(aZ, fx)]) | |
1069 | + | if ((fB == fB)) | |
1066 | 1070 | then co | |
1067 | 1071 | else throw("Strict value is not equal to itself.") | |
1068 | 1072 | } | |
1069 | 1073 | else throw("Strict value is not equal to itself.") | |
1070 | 1074 | } | |
1071 | 1075 | else throw("Strict value is not equal to itself.") | |
1072 | 1076 | } | |
1073 | 1077 | else throw("Strict value is not equal to itself.") | |
1074 | 1078 | } | |
1075 | 1079 | ||
1076 | 1080 | ||
1077 | 1081 | ||
1078 | 1082 | @Callable(dl) | |
1079 | - | func activate ( | |
1083 | + | func activate (fI,fJ) = if ((toString(dl.caller) != toString(aJ))) | |
1080 | 1084 | then throw("permissions denied") | |
1081 | - | else $Tuple2([StringEntry(aa(), | |
1085 | + | else $Tuple2([StringEntry(aa(), fI), StringEntry(ab(), fJ)], "success") | |
1082 | 1086 | ||
1083 | 1087 | ||
1084 | 1088 | ||
1085 | 1089 | @Callable(dl) | |
1086 | 1090 | func refreshKLp () = { | |
1087 | - | let | |
1088 | - | let | |
1091 | + | let fK = valueOrElse(getInteger(ag), 0) | |
1092 | + | let fL = if (((height - fK) >= aj)) | |
1089 | 1093 | then unit | |
1090 | 1094 | else aG(makeString([toString(aj), " blocks have not passed since the previous call"], "")) | |
1091 | - | if (( | |
1095 | + | if ((fL == fL)) | |
1092 | 1096 | then { | |
1093 | - | let eG = eD() | |
1094 | - | [IntegerEntry(ag, height), IntegerEntry(af, eG)] | |
1097 | + | let fM = eE() | |
1098 | + | let eH = fM._1 | |
1099 | + | let eD = fM._2 | |
1100 | + | $Tuple2(eH, eD) | |
1095 | 1101 | } | |
1096 | 1102 | else throw("Strict value is not equal to itself.") | |
1097 | 1103 | } | |
1098 | 1104 | ||
1099 | 1105 | ||
1100 | 1106 | ||
1101 | 1107 | @Callable(dl) | |
1102 | 1108 | func getPoolConfigWrapperREADONLY () = $Tuple2(nil, aN()) | |
1103 | 1109 | ||
1104 | 1110 | ||
1105 | 1111 | ||
1106 | 1112 | @Callable(dl) | |
1107 | 1113 | func getAccBalanceWrapperREADONLY (bx) = $Tuple2(nil, bw(bx)) | |
1108 | 1114 | ||
1109 | 1115 | ||
1110 | 1116 | ||
1111 | 1117 | @Callable(dl) | |
1112 | 1118 | func calcPricesWrapperREADONLY (bE,bF,bJ) = { | |
1113 | 1119 | let bS = bI(bE, bF, bJ) | |
1114 | 1120 | $Tuple2(nil, [toString(bS[0]), toString(bS[1]), toString(bS[2])]) | |
1115 | 1121 | } | |
1116 | 1122 | ||
1117 | 1123 | ||
1118 | 1124 | ||
1119 | 1125 | @Callable(dl) | |
1120 | 1126 | func toX18WrapperREADONLY (E,F) = $Tuple2(nil, toString(D(E, F))) | |
1121 | 1127 | ||
1122 | 1128 | ||
1123 | 1129 | ||
1124 | 1130 | @Callable(dl) | |
1125 | 1131 | func fromX18WrapperREADONLY (H,I) = $Tuple2(nil, G(parseBigIntValue(H), I)) | |
1126 | 1132 | ||
1127 | 1133 | ||
1128 | 1134 | ||
1129 | 1135 | @Callable(dl) | |
1130 | 1136 | func calcPriceBigIntWrapperREADONLY (bz,bA) = $Tuple2(nil, toString(by(parseBigIntValue(bz), parseBigIntValue(bA)))) | |
1131 | 1137 | ||
1132 | 1138 | ||
1133 | 1139 | ||
1134 | 1140 | @Callable(dl) | |
1135 | 1141 | func estimatePutOperationWrapperREADONLY (bU,cq,cr,cs,ct,cu,X,cv,cw) = $Tuple2(nil, cp(bU, cq, cr, cs, ct, cu, X, cv, cw)) | |
1136 | 1142 | ||
1137 | 1143 | ||
1138 | 1144 | ||
1139 | 1145 | @Callable(dl) | |
1140 | 1146 | func estimateGetOperationWrapperREADONLY (bU,bV,bW,X) = { | |
1141 | 1147 | let cG = bT(bU, bV, bW, addressFromStringValue(X)) | |
1142 | 1148 | $Tuple2(nil, $Tuple10(cG._1, cG._2, cG._3, cG._4, cG._5, cG._6, cG._7, toString(cG._8), cG._9, cG._10)) | |
1143 | 1149 | } | |
1144 | 1150 | ||
1145 | 1151 | ||
1146 | 1152 | ||
1147 | 1153 | @Callable(dl) | |
1148 | 1154 | func statsREADONLY () = { | |
1149 | 1155 | let bK = aN() | |
1150 | 1156 | let bX = fromBase58String(bK[q]) | |
1151 | 1157 | let cY = bK[r] | |
1152 | 1158 | let cZ = bK[s] | |
1153 | 1159 | let cz = bK[v] | |
1154 | 1160 | let cA = bK[w] | |
1155 | 1161 | let bL = parseIntValue(bK[t]) | |
1156 | 1162 | let bM = parseIntValue(bK[u]) | |
1157 | - | let | |
1163 | + | let fN = valueOrErrorMessage(assetInfo(bX), (("Asset " + toBase58String(bX)) + " doesn't exist")).quantity | |
1158 | 1164 | let da = bw(cY) | |
1159 | 1165 | let db = bw(cZ) | |
1160 | - | let | |
1166 | + | let fO = if ((fN == 0)) | |
1161 | 1167 | then [e, e, e] | |
1162 | - | else bI(da, db, | |
1168 | + | else bI(da, db, fN) | |
1163 | 1169 | let ch = 0 | |
1164 | - | let | |
1165 | - | let | |
1166 | - | let | |
1167 | - | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d", toString(da), toString(db), toString( | |
1170 | + | let fP = G(fO[1], b) | |
1171 | + | let fQ = G(fO[2], b) | |
1172 | + | let fR = value(getInteger(aJ, au(toString(this)))) | |
1173 | + | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d", toString(da), toString(db), toString(fN), toString(ch), toString(fP), toString(fQ), toString(fR)], j)) | |
1168 | 1174 | } | |
1169 | 1175 | ||
1170 | 1176 | ||
1171 | 1177 | ||
1172 | 1178 | @Callable(dl) | |
1173 | 1179 | func evaluatePutByAmountAssetREADONLY (cr) = { | |
1174 | 1180 | let bK = aN() | |
1175 | 1181 | let bX = fromBase58String(bK[q]) | |
1176 | 1182 | let cx = bK[r] | |
1177 | 1183 | let bY = fromBase58String(cx) | |
1178 | 1184 | let cy = bK[s] | |
1179 | 1185 | let bZ = fromBase58String(cy) | |
1180 | 1186 | let bL = parseIntValue(bK[t]) | |
1181 | 1187 | let bM = parseIntValue(bK[u]) | |
1182 | 1188 | let ca = bK[p] | |
1183 | - | let | |
1189 | + | let fN = valueOrErrorMessage(assetInfo(bX), (("Asset " + toBase58String(bX)) + " doesn't exist")).quantity | |
1184 | 1190 | let da = bw(cx) | |
1185 | 1191 | let db = bw(cy) | |
1186 | 1192 | let bG = D(da, bL) | |
1187 | 1193 | let bH = D(db, bM) | |
1188 | - | let cg = if (( | |
1194 | + | let cg = if ((fN == 0)) | |
1189 | 1195 | then e | |
1190 | 1196 | else by(bH, bG) | |
1191 | 1197 | let cD = D(cr, bL) | |
1192 | 1198 | let cE = fraction(cD, cg, d) | |
1193 | 1199 | let ct = G(cE, bM) | |
1194 | 1200 | let dr = cp("", 500000, cr, bY, ct, bZ, "", true, false) | |
1195 | 1201 | let cO = dr._1 | |
1196 | - | let | |
1202 | + | let fS = dr._3 | |
1197 | 1203 | let cc = dr._4 | |
1198 | 1204 | let ce = dr._5 | |
1199 | 1205 | let cb = dr._6 | |
1200 | 1206 | $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)) | |
1201 | 1207 | } | |
1202 | 1208 | ||
1203 | 1209 | ||
1204 | 1210 | ||
1205 | 1211 | @Callable(dl) | |
1206 | 1212 | func evaluatePutByPriceAssetREADONLY (ct) = { | |
1207 | 1213 | let bK = aN() | |
1208 | 1214 | let bX = fromBase58String(bK[q]) | |
1209 | 1215 | let cx = bK[r] | |
1210 | 1216 | let bY = fromBase58String(cx) | |
1211 | 1217 | let cy = bK[s] | |
1212 | 1218 | let bZ = fromBase58String(cy) | |
1213 | 1219 | let bL = parseIntValue(bK[t]) | |
1214 | 1220 | let bM = parseIntValue(bK[u]) | |
1215 | 1221 | let ca = bK[p] | |
1216 | - | let | |
1217 | - | let | |
1218 | - | let | |
1219 | - | let | |
1220 | - | let | |
1221 | - | let cg = if (( | |
1222 | + | let fN = valueOrErrorMessage(assetInfo(bX), (("Asset " + toBase58String(bX)) + " doesn't exist")).quantity | |
1223 | + | let fT = bw(cx) | |
1224 | + | let fU = bw(cy) | |
1225 | + | let fV = D(fT, bL) | |
1226 | + | let fW = D(fU, bM) | |
1227 | + | let cg = if ((fN == 0)) | |
1222 | 1228 | then e | |
1223 | - | else by( | |
1229 | + | else by(fW, fV) | |
1224 | 1230 | let cE = D(ct, bM) | |
1225 | 1231 | let cD = fraction(cE, d, cg) | |
1226 | 1232 | let cr = G(cD, bL) | |
1227 | 1233 | let dr = cp("", 500000, cr, bY, ct, bZ, "", true, false) | |
1228 | 1234 | let cO = dr._1 | |
1229 | - | let | |
1235 | + | let fS = dr._3 | |
1230 | 1236 | let cc = dr._4 | |
1231 | 1237 | let ce = dr._5 | |
1232 | 1238 | let cb = dr._6 | |
1233 | 1239 | $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)) | |
1234 | 1240 | } | |
1235 | 1241 | ||
1236 | 1242 | ||
1237 | 1243 | ||
1238 | 1244 | @Callable(dl) | |
1239 | - | func evaluateGetREADONLY ( | |
1240 | - | let cG = bT("", | |
1245 | + | func evaluateGetREADONLY (fX,fY) = { | |
1246 | + | let cG = bT("", fX, fY, this) | |
1241 | 1247 | let cm = cG._1 | |
1242 | 1248 | let cn = cG._2 | |
1243 | 1249 | let cc = cG._5 | |
1244 | 1250 | let ce = cG._6 | |
1245 | 1251 | let cb = cG._7 | |
1246 | 1252 | let ch = cG._8 | |
1247 | 1253 | let ca = parseIntValue(cG._9) | |
1248 | 1254 | $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)) | |
1249 | 1255 | } | |
1250 | 1256 | ||
1251 | 1257 | ||
1252 | - | @Verifier( | |
1253 | - | func | |
1254 | - | let | |
1255 | - | let dw = | |
1258 | + | @Verifier(fZ) | |
1259 | + | func ga () = { | |
1260 | + | let gb = { | |
1261 | + | let dw = eI() | |
1256 | 1262 | if ($isInstanceOf(dw, "ByteVector")) | |
1257 | 1263 | then { | |
1258 | - | let | |
1259 | - | | |
1264 | + | let eM = dw | |
1265 | + | eM | |
1260 | 1266 | } | |
1261 | 1267 | else if ($isInstanceOf(dw, "Unit")) | |
1262 | - | then | |
1268 | + | then fZ.senderPublicKey | |
1263 | 1269 | else throw("Match error") | |
1264 | 1270 | } | |
1265 | - | let dw = | |
1271 | + | let dw = fZ | |
1266 | 1272 | if ($isInstanceOf(dw, "Order")) | |
1267 | 1273 | then { | |
1268 | 1274 | let cX = dw | |
1269 | - | let | |
1275 | + | let gc = aM() | |
1270 | 1276 | let az = cW(cX) | |
1271 | 1277 | let aA = sigVerify(cX.bodyBytes, cX.proofs[0], cX.senderPublicKey) | |
1272 | - | let aB = sigVerify(cX.bodyBytes, cX.proofs[1], | |
1278 | + | let aB = sigVerify(cX.bodyBytes, cX.proofs[1], gc) | |
1273 | 1279 | if (if (if (az) | |
1274 | 1280 | then aA | |
1275 | 1281 | else false) | |
1276 | 1282 | then aB | |
1277 | 1283 | else false) | |
1278 | 1284 | then true | |
1279 | 1285 | else ay(az, aA, aB) | |
1280 | 1286 | } | |
1281 | 1287 | else if ($isInstanceOf(dw, "SetScriptTransaction")) | |
1282 | 1288 | then { | |
1283 | - | let | |
1284 | - | let | |
1285 | - | let | |
1286 | - | let | |
1287 | - | if (if (( | |
1288 | - | then ( | |
1289 | + | let eJ = dw | |
1290 | + | let gd = blake2b256(value(eJ.script)) | |
1291 | + | let ge = fromBase64String(value(getString(aJ, aw()))) | |
1292 | + | let gf = scriptHash(this) | |
1293 | + | if (if ((ge == gd)) | |
1294 | + | then (gf != gd) | |
1289 | 1295 | else false) | |
1290 | 1296 | then true | |
1291 | - | else sigVerify( | |
1297 | + | else sigVerify(fZ.bodyBytes, fZ.proofs[0], gb) | |
1292 | 1298 | } | |
1293 | - | else sigVerify( | |
1299 | + | else sigVerify(fZ.bodyBytes, fZ.proofs[0], gb) | |
1294 | 1300 | } | |
1295 | 1301 |
github/deemru/w8io/026f985 210.19 ms ◑