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