tx · 4ciPGSa4hwxWdTmS3H9rdDKaxgo6k1YoYTjGuinH9oVD 3MrrBfr6a5nDL9q6RY3JnifJDYpKXhiMzeK: -0.03500000 Waves 2022.12.07 18:22 [2350088] smart account 3MrrBfr6a5nDL9q6RY3JnifJDYpKXhiMzeK > SELF 0.00000000 Waves
{ "type": 13, "id": "4ciPGSa4hwxWdTmS3H9rdDKaxgo6k1YoYTjGuinH9oVD", "fee": 3500000, "feeAssetId": null, "timestamp": 1670426478325, "version": 1, "sender": "3MrrBfr6a5nDL9q6RY3JnifJDYpKXhiMzeK", "senderPublicKey": "AD9KZBhdGzDEZ9VsjHGcbBDzVgtUFycMe74pn3n8uYiC", "proofs": [ "dGnwGsRpDKfaGCdntH9aLPsyB1GtsPBYEYvuLoakLigEF9c3HfM2FfE6EPTWLKKSBNmEZBMnY8Z4Xui4Wgb6QDK" ], "script": "base64:BgKSLQgCEgMKAQgSABIECgIBBBIDCgEBEgQKAgEEEgQKAggBEgQKAggBEgQKAggBEgUKAwEIARIAEgQKAgEBEgMKAQESBQoDAQEBEgQKAggIEgASABIDCgEIEgUKAwEBARIECgIBARIECgIIARIECgIICBILCgkIAQECAQIIBAQSBgoECAgBCBIAEgMKAQESAwoBARIECgIIASIKbFBkZWNpbWFscyIGc2NhbGU4IgxzY2FsZThCaWdJbnQiB3NjYWxlMTgiCnplcm9CaWdJbnQiBGJpZzAiBGJpZzEiBGJpZzIiC3dhdmVzU3RyaW5nIgNTRVAiClBvb2xBY3RpdmUiD1Bvb2xQdXREaXNhYmxlZCITUG9vbE1hdGNoZXJEaXNhYmxlZCIMUG9vbFNodXRkb3duIg5pZHhQb29sQWRkcmVzcyINaWR4UG9vbFN0YXR1cyIQaWR4UG9vbExQQXNzZXRJZCINaWR4QW10QXNzZXRJZCIPaWR4UHJpY2VBc3NldElkIg5pZHhBbXRBc3NldERjbSIQaWR4UHJpY2VBc3NldERjbSIOaWR4SUFtdEFzc2V0SWQiEGlkeElQcmljZUFzc2V0SWQiD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dWUBCQCdCAIFAmFKCQECYXcABAJnSAkA8QcBBQR0aGlzAwMJAAACBQJnRwUCZ0YJAQIhPQIFAmdIBQJnRgcGCQD0AwMIBQJnQglib2R5Qnl0ZXMJAJEDAggFAmdCBnByb29mcwAABQJnRAkA9AMDCAUCZ0IJYm9keUJ5dGVzCQCRAwIIBQJnQgZwcm9vZnMAAAUCZ0S3keiP", "chainId": 84, "height": 2350088, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 4BuuMPiioLZxEahnHGNzctFaa7yyKsmCqDB3FVaHcobS Next: 7ZE5tNmbbDUYbwz6c1w16suR1j8FAgEvA8pKgyiu5eKB Diff:
Old | New | Differences | |
---|---|---|---|
719 | 719 | let fd = dH._13 | |
720 | 720 | let dF = toBigInt(value(dB.payments[0]).amount) | |
721 | 721 | let dG = toBigInt(value(dB.payments[1]).amount) | |
722 | - | let | |
723 | - | if (( | |
722 | + | let dg = (toBigInt(bw(aS(ba))) - dF) | |
723 | + | if ((dg == dg)) | |
724 | 724 | then { | |
725 | - | let | |
726 | - | if (( | |
725 | + | let dh = (toBigInt(bw(aS(bb))) - dG) | |
726 | + | if ((dh == dh)) | |
727 | 727 | then { | |
728 | - | let dL = { | |
729 | - | let dM = dK | |
730 | - | if ($isInstanceOf(dM, "Address")) | |
731 | - | then { | |
732 | - | let dN = dM | |
733 | - | invoke(dN, "emit", [cU], nil) | |
734 | - | } | |
735 | - | else unit | |
736 | - | } | |
737 | - | if ((dL == dL)) | |
728 | + | let di = toBigInt(value(assetInfo(aZ)).quantity) | |
729 | + | if ((di == di)) | |
738 | 730 | then { | |
739 | - | let fe = if ((cV > 0)) | |
740 | - | then invoke(bg, "put", nil, [AttachedPayment(fc, cV)]) | |
741 | - | else nil | |
742 | - | if ((fe == fe)) | |
731 | + | let dj = dc(dF, dG, toBigInt(0)) | |
732 | + | if ((dj == dj)) | |
743 | 733 | then { | |
744 | - | let ff = if ((cW > 0)) | |
745 | - | then invoke(bg, "put", nil, [AttachedPayment(fd, cW)]) | |
746 | - | else nil | |
747 | - | if ((ff == ff)) | |
734 | + | let dK = invoke(aJ, "emit", [cU], nil) | |
735 | + | if ((dK == dK)) | |
748 | 736 | then { | |
749 | - | let fg = if (fb) | |
737 | + | let dL = { | |
738 | + | let dM = dK | |
739 | + | if ($isInstanceOf(dM, "Address")) | |
740 | + | then { | |
741 | + | let dN = dM | |
742 | + | invoke(dN, "emit", [cU], nil) | |
743 | + | } | |
744 | + | else unit | |
745 | + | } | |
746 | + | if ((dL == dL)) | |
750 | 747 | then { | |
751 | - | let fh = invoke(bf, "stake", nil, [AttachedPayment(bZ, cU)]) | |
752 | - | if ((fh == fh)) | |
753 | - | then nil | |
754 | - | else throw("Strict value is not equal to itself.") | |
755 | - | } | |
756 | - | else [ScriptTransfer(dB.caller, cU, bZ)] | |
757 | - | let fi = dk(0, 0, 0) | |
758 | - | if ((fi == fi)) | |
759 | - | then { | |
760 | - | let db = fi._2 | |
761 | - | let fj = fi._1 | |
762 | - | let fk = do(dj, db) | |
763 | - | if ((fk == fk)) | |
764 | - | then ((cq ++ fg) ++ fj) | |
748 | + | let fe = if ((cV > 0)) | |
749 | + | then invoke(bg, "put", nil, [AttachedPayment(fc, cV)]) | |
750 | + | else nil | |
751 | + | if ((fe == fe)) | |
752 | + | then { | |
753 | + | let ff = if ((cW > 0)) | |
754 | + | then invoke(bg, "put", nil, [AttachedPayment(fd, cW)]) | |
755 | + | else nil | |
756 | + | if ((ff == ff)) | |
757 | + | then { | |
758 | + | let fg = if (fb) | |
759 | + | then { | |
760 | + | let fh = invoke(bf, "stake", nil, [AttachedPayment(bZ, cU)]) | |
761 | + | if ((fh == fh)) | |
762 | + | then nil | |
763 | + | else throw("Strict value is not equal to itself.") | |
764 | + | } | |
765 | + | else [ScriptTransfer(dB.caller, cU, bZ)] | |
766 | + | let fi = value(assetInfo(aZ)).quantity | |
767 | + | if ((fi == fi)) | |
768 | + | then { | |
769 | + | let fj = dk(0, 0, 0) | |
770 | + | if ((fj == fj)) | |
771 | + | then { | |
772 | + | let db = fj._2 | |
773 | + | let fk = fj._1 | |
774 | + | let fl = aG(makeString([toString(dg), toString(dh), toString(di), toString(dj), toString(db), toString(cU), toString(cV), toString(cW), toString(di), toString(fi)], " ")) | |
775 | + | if ((fl == fl)) | |
776 | + | then { | |
777 | + | let fm = do(dj, db) | |
778 | + | if ((fm == fm)) | |
779 | + | then ((cq ++ fg) ++ fk) | |
780 | + | else throw("Strict value is not equal to itself.") | |
781 | + | } | |
782 | + | else throw("Strict value is not equal to itself.") | |
783 | + | } | |
784 | + | else throw("Strict value is not equal to itself.") | |
785 | + | } | |
786 | + | else throw("Strict value is not equal to itself.") | |
787 | + | } | |
788 | + | else throw("Strict value is not equal to itself.") | |
789 | + | } | |
765 | 790 | else throw("Strict value is not equal to itself.") | |
766 | 791 | } | |
767 | 792 | else throw("Strict value is not equal to itself.") | |
780 | 805 | ||
781 | 806 | ||
782 | 807 | @Callable(dB) | |
783 | - | func putForFree ( | |
808 | + | func putForFree (fn) = if ((0 > fn)) | |
784 | 809 | then throw("Invalid value passed") | |
785 | 810 | else { | |
786 | - | let dH = dE(dB, | |
811 | + | let dH = dE(dB, fn, false) | |
787 | 812 | let cq = dH._9 | |
788 | 813 | let dF = toBigInt(value(dB.payments[0]).amount) | |
789 | 814 | let dG = toBigInt(value(dB.payments[1]).amount) | |
790 | 815 | let dj = dc(dF, dG, toBigInt(0)) | |
791 | 816 | if ((dj == dj)) | |
792 | 817 | then { | |
793 | - | let | |
794 | - | let | |
795 | - | let db = | |
796 | - | let | |
797 | - | if (( | |
798 | - | then (cq ++ | |
818 | + | let fo = dk(0, 0, 0) | |
819 | + | let fk = fo._1 | |
820 | + | let db = fo._2 | |
821 | + | let fm = do(dj, db) | |
822 | + | if ((fm == fm)) | |
823 | + | then (cq ++ fk) | |
799 | 824 | else throw("Strict value is not equal to itself.") | |
800 | 825 | } | |
801 | 826 | else throw("Strict value is not equal to itself.") | |
804 | 829 | ||
805 | 830 | ||
806 | 831 | @Callable(dB) | |
807 | - | func putOneTkn ( | |
808 | - | let | |
809 | - | let | |
810 | - | if ($isInstanceOf( | |
811 | - | then | |
812 | - | else throw(($getType( | |
832 | + | func putOneTkn (fp,fq) = { | |
833 | + | let fr = { | |
834 | + | let fs = invoke(aJ, "isPoolOneTokenOperationsDisabledREADONLY", [toString(this)], nil) | |
835 | + | if ($isInstanceOf(fs, "Boolean")) | |
836 | + | then fs | |
837 | + | else throw(($getType(fs) + " couldn't be cast to Boolean")) | |
813 | 838 | } | |
814 | - | let | |
839 | + | let ft = if (if (if (aL()) | |
815 | 840 | then true | |
816 | 841 | else (aY == l)) | |
817 | 842 | then true | |
818 | 843 | else (aY == n)) | |
819 | 844 | then true | |
820 | - | else | |
821 | - | let ex = [if (if (!( | |
845 | + | else fr | |
846 | + | let ex = [if (if (!(ft)) | |
822 | 847 | then true | |
823 | 848 | else eR(dB)) | |
824 | 849 | then true | |
827 | 852 | else aG("exactly 1 payment are expected")] | |
828 | 853 | if ((ex == ex)) | |
829 | 854 | then { | |
830 | - | let | |
831 | - | let dS = | |
832 | - | let dR = | |
855 | + | let fu = dB.payments[0] | |
856 | + | let dS = fu.assetId | |
857 | + | let dR = fu.amount | |
833 | 858 | let dj = if ((dS == ba)) | |
834 | 859 | then dc(toBigInt(dR), toBigInt(0), toBigInt(0)) | |
835 | 860 | else if ((dS == bb)) | |
837 | 862 | else aG("payment asset is not supported") | |
838 | 863 | let X = dB.caller | |
839 | 864 | let Y = dB.transactionId | |
840 | - | let | |
841 | - | if (( | |
865 | + | let fv = dQ(dR, dS, X, Y) | |
866 | + | if ((fv == fv)) | |
842 | 867 | then { | |
843 | - | let dW = | |
844 | - | let | |
845 | - | let dP = | |
846 | - | let cX = | |
847 | - | let | |
848 | - | let | |
849 | - | then ( | |
868 | + | let dW = fv._5 | |
869 | + | let fw = fv._4 | |
870 | + | let dP = fv._3 | |
871 | + | let cX = fv._2 | |
872 | + | let fx = fv._1 | |
873 | + | let fy = if (if ((fp > 0)) | |
874 | + | then (fp > fx) | |
850 | 875 | else false) | |
851 | - | then aG(makeString(["amount to receive is less than ", toString( | |
852 | - | else | |
853 | - | let dK = dI( | |
876 | + | then aG(makeString(["amount to receive is less than ", toString(fp)], "")) | |
877 | + | else fx | |
878 | + | let dK = dI(fy) | |
854 | 879 | if ((dK == dK)) | |
855 | 880 | then { | |
856 | - | let fg = if ( | |
881 | + | let fg = if (fq) | |
857 | 882 | then { | |
858 | - | let | |
859 | - | if (( | |
883 | + | let fz = invoke(bf, "stake", nil, [AttachedPayment(aZ, fy)]) | |
884 | + | if ((fz == fz)) | |
860 | 885 | then nil | |
861 | 886 | else throw("Strict value is not equal to itself.") | |
862 | 887 | } | |
863 | - | else [ScriptTransfer(dB.caller, | |
864 | - | let | |
888 | + | else [ScriptTransfer(dB.caller, fy, aZ)] | |
889 | + | let fA = if ((dP > 0)) | |
865 | 890 | then [ScriptTransfer(aK, dP, dS)] | |
866 | 891 | else nil | |
867 | - | let | |
892 | + | let fB = if ((this == aK)) | |
868 | 893 | then $Tuple2(0, 0) | |
869 | 894 | else if (dW) | |
870 | 895 | then $Tuple2(-(dP), 0) | |
871 | 896 | else $Tuple2(0, -(dP)) | |
872 | - | let dl = | |
873 | - | let dm = | |
874 | - | let | |
875 | - | let | |
876 | - | let db = | |
897 | + | let dl = fB._1 | |
898 | + | let dm = fB._2 | |
899 | + | let fC = dk(dl, dm, 0) | |
900 | + | let fk = fC._1 | |
901 | + | let db = fC._2 | |
877 | 902 | let dv = value(getString(af)) | |
878 | - | let | |
879 | - | if (( | |
880 | - | then $Tuple2((((cX ++ fg) ++ | |
903 | + | let fm = do(dj, db) | |
904 | + | if ((fm == fm)) | |
905 | + | then $Tuple2((((cX ++ fg) ++ fA) ++ fk), fy) | |
881 | 906 | else throw("Strict value is not equal to itself.") | |
882 | 907 | } | |
883 | 908 | else throw("Strict value is not equal to itself.") | |
891 | 916 | ||
892 | 917 | @Callable(dB) | |
893 | 918 | func putOneTknREADONLY (dS,dR) = { | |
894 | - | let | |
895 | - | let | |
896 | - | let cX = | |
897 | - | let dP = | |
898 | - | let | |
899 | - | let dW = | |
900 | - | $Tuple2(nil, $Tuple3( | |
919 | + | let fD = dQ(dR, aQ(dS), unit, unit) | |
920 | + | let fx = fD._1 | |
921 | + | let cX = fD._2 | |
922 | + | let dP = fD._3 | |
923 | + | let fw = fD._4 | |
924 | + | let dW = fD._5 | |
925 | + | $Tuple2(nil, $Tuple3(fx, dP, fw)) | |
901 | 926 | } | |
902 | 927 | ||
903 | 928 | ||
904 | 929 | ||
905 | 930 | @Callable(dB) | |
906 | - | func getOneTkn ( | |
907 | - | let | |
908 | - | let | |
909 | - | if ($isInstanceOf( | |
910 | - | then | |
911 | - | else throw(($getType( | |
931 | + | func getOneTkn (fE,fp) = { | |
932 | + | let fr = { | |
933 | + | let fs = invoke(aJ, "isPoolOneTokenOperationsDisabledREADONLY", [toString(this)], nil) | |
934 | + | if ($isInstanceOf(fs, "Boolean")) | |
935 | + | then fs | |
936 | + | else throw(($getType(fs) + " couldn't be cast to Boolean")) | |
912 | 937 | } | |
913 | - | let | |
938 | + | let fF = if (if (aL()) | |
914 | 939 | then true | |
915 | 940 | else (aY == n)) | |
916 | 941 | then true | |
917 | - | else | |
918 | - | let ex = [if (if (!( | |
942 | + | else fr | |
943 | + | let ex = [if (if (!(fF)) | |
919 | 944 | then true | |
920 | 945 | else eR(dB)) | |
921 | 946 | then true | |
924 | 949 | else aG("exactly 1 payment are expected")] | |
925 | 950 | if ((ex == ex)) | |
926 | 951 | then { | |
927 | - | let ew = aQ( | |
928 | - | let | |
929 | - | let dS = | |
930 | - | let ee = | |
952 | + | let ew = aQ(fE) | |
953 | + | let fu = dB.payments[0] | |
954 | + | let dS = fu.assetId | |
955 | + | let ee = fu.amount | |
931 | 956 | let dj = dc(toBigInt(0), toBigInt(0), toBigInt(ee)) | |
932 | 957 | let X = dB.caller | |
933 | 958 | let Y = dB.transactionId | |
934 | - | let | |
935 | - | if (( | |
959 | + | let fG = ev(ew, ee, dS, X, Y) | |
960 | + | if ((fG == fG)) | |
936 | 961 | then { | |
937 | - | let ey = | |
938 | - | let | |
939 | - | let dP = | |
940 | - | let cX = | |
941 | - | let | |
942 | - | let dJ = if (if (( | |
943 | - | then ( | |
962 | + | let ey = fG._5 | |
963 | + | let fw = fG._4 | |
964 | + | let dP = fG._3 | |
965 | + | let cX = fG._2 | |
966 | + | let fH = fG._1 | |
967 | + | let dJ = if (if ((fp > 0)) | |
968 | + | then (fp > fH) | |
944 | 969 | else false) | |
945 | - | then aG(makeString(["amount to receive is less than ", toString( | |
946 | - | else | |
947 | - | let | |
948 | - | if (( | |
970 | + | then aG(makeString(["amount to receive is less than ", toString(fp)], "")) | |
971 | + | else fH | |
972 | + | let fI = invoke(aJ, "burn", [ee], [AttachedPayment(dS, ee)]) | |
973 | + | if ((fI == fI)) | |
949 | 974 | then { | |
950 | - | let | |
951 | - | let | |
975 | + | let fJ = [ScriptTransfer(X, dJ, ew)] | |
976 | + | let fA = if ((dP > 0)) | |
952 | 977 | then [ScriptTransfer(aK, dP, ew)] | |
953 | 978 | else nil | |
954 | - | let | |
955 | - | let | |
979 | + | let fK = { | |
980 | + | let fL = if ((this == aK)) | |
956 | 981 | then 0 | |
957 | 982 | else dP | |
958 | 983 | if (ey) | |
959 | - | then $Tuple2(-((dJ + | |
960 | - | else $Tuple2(0, -((dJ + | |
984 | + | then $Tuple2(-((dJ + fL)), 0) | |
985 | + | else $Tuple2(0, -((dJ + fL))) | |
961 | 986 | } | |
962 | - | let dl = | |
963 | - | let dm = | |
964 | - | let | |
965 | - | let | |
966 | - | let db = | |
967 | - | let | |
968 | - | if (( | |
969 | - | then $Tuple2((((cX ++ | |
987 | + | let dl = fK._1 | |
988 | + | let dm = fK._2 | |
989 | + | let fM = dk(dl, dm, 0) | |
990 | + | let fk = fM._1 | |
991 | + | let db = fM._2 | |
992 | + | let fm = do(dj, db) | |
993 | + | if ((fm == fm)) | |
994 | + | then $Tuple2((((cX ++ fJ) ++ fA) ++ fk), dJ) | |
970 | 995 | else throw("Strict value is not equal to itself.") | |
971 | 996 | } | |
972 | 997 | else throw("Strict value is not equal to itself.") | |
980 | 1005 | ||
981 | 1006 | @Callable(dB) | |
982 | 1007 | func getOneTknREADONLY (ew,ee) = { | |
983 | - | let | |
984 | - | let | |
985 | - | let cX = | |
986 | - | let dP = | |
987 | - | let | |
988 | - | let ey = | |
989 | - | $Tuple2(nil, $Tuple3( | |
1008 | + | let fN = ev(aQ(ew), ee, aZ, unit, unit) | |
1009 | + | let fH = fN._1 | |
1010 | + | let cX = fN._2 | |
1011 | + | let dP = fN._3 | |
1012 | + | let fw = fN._4 | |
1013 | + | let ey = fN._5 | |
1014 | + | $Tuple2(nil, $Tuple3(fH, dP, fw)) | |
990 | 1015 | } | |
991 | 1016 | ||
992 | 1017 | ||
993 | 1018 | ||
994 | 1019 | @Callable(dB) | |
995 | - | func unstakeAndGetOneTkn ( | |
996 | - | let | |
997 | - | let | |
998 | - | if ($isInstanceOf( | |
999 | - | then | |
1000 | - | else throw(($getType( | |
1020 | + | func unstakeAndGetOneTkn (fO,fE,fp) = { | |
1021 | + | let fr = { | |
1022 | + | let fs = invoke(aJ, "isPoolOneTokenOperationsDisabledREADONLY", [toString(this)], nil) | |
1023 | + | if ($isInstanceOf(fs, "Boolean")) | |
1024 | + | then fs | |
1025 | + | else throw(($getType(fs) + " couldn't be cast to Boolean")) | |
1001 | 1026 | } | |
1002 | - | let | |
1027 | + | let fF = if (if (aL()) | |
1003 | 1028 | then true | |
1004 | 1029 | else (aY == n)) | |
1005 | 1030 | then true | |
1006 | - | else | |
1007 | - | let ex = [if (if (!( | |
1031 | + | else fr | |
1032 | + | let ex = [if (if (!(fF)) | |
1008 | 1033 | then true | |
1009 | 1034 | else eR(dB)) | |
1010 | 1035 | then true | |
1013 | 1038 | else aG("no payments are expected")] | |
1014 | 1039 | if ((ex == ex)) | |
1015 | 1040 | then { | |
1016 | - | let ew = aQ( | |
1041 | + | let ew = aQ(fE) | |
1017 | 1042 | let X = dB.caller | |
1018 | 1043 | let Y = dB.transactionId | |
1019 | 1044 | let dj = dc(toBigInt(0), toBigInt(0), toBigInt(0)) | |
1020 | - | let | |
1021 | - | if (( | |
1045 | + | let fP = invoke(bf, "unstake", [toBase58String(aZ), fO], nil) | |
1046 | + | if ((fP == fP)) | |
1022 | 1047 | then { | |
1023 | - | let | |
1024 | - | if (( | |
1048 | + | let fQ = ev(ew, fO, aZ, X, Y) | |
1049 | + | if ((fQ == fQ)) | |
1025 | 1050 | then { | |
1026 | - | let ey = | |
1027 | - | let | |
1028 | - | let dP = | |
1029 | - | let cX = | |
1030 | - | let | |
1031 | - | let dJ = if (if (( | |
1032 | - | then ( | |
1051 | + | let ey = fQ._5 | |
1052 | + | let fw = fQ._4 | |
1053 | + | let dP = fQ._3 | |
1054 | + | let cX = fQ._2 | |
1055 | + | let fH = fQ._1 | |
1056 | + | let dJ = if (if ((fp > 0)) | |
1057 | + | then (fp > fH) | |
1033 | 1058 | else false) | |
1034 | - | then aG(makeString(["amount to receive is less than ", toString( | |
1035 | - | else | |
1036 | - | let | |
1037 | - | if (( | |
1059 | + | then aG(makeString(["amount to receive is less than ", toString(fp)], "")) | |
1060 | + | else fH | |
1061 | + | let fI = invoke(aJ, "burn", [fO], [AttachedPayment(aZ, fO)]) | |
1062 | + | if ((fI == fI)) | |
1038 | 1063 | then { | |
1039 | - | let | |
1040 | - | let | |
1064 | + | let fJ = [ScriptTransfer(dB.caller, dJ, ew)] | |
1065 | + | let fA = if ((dP > 0)) | |
1041 | 1066 | then [ScriptTransfer(aK, dP, ew)] | |
1042 | 1067 | else nil | |
1043 | - | let | |
1044 | - | let | |
1068 | + | let fR = { | |
1069 | + | let fL = if ((this == aK)) | |
1045 | 1070 | then 0 | |
1046 | 1071 | else dP | |
1047 | 1072 | if (ey) | |
1048 | - | then $Tuple2(-((dJ + | |
1049 | - | else $Tuple2(0, -((dJ + | |
1073 | + | then $Tuple2(-((dJ + fL)), 0) | |
1074 | + | else $Tuple2(0, -((dJ + fL))) | |
1050 | 1075 | } | |
1051 | - | let dl = | |
1052 | - | let dm = | |
1053 | - | let | |
1054 | - | let | |
1055 | - | let db = | |
1056 | - | let | |
1057 | - | if (( | |
1058 | - | then $Tuple2((((cX ++ | |
1076 | + | let dl = fR._1 | |
1077 | + | let dm = fR._2 | |
1078 | + | let fS = dk(dl, dm, 0) | |
1079 | + | let fk = fS._1 | |
1080 | + | let db = fS._2 | |
1081 | + | let fm = do(dj, db) | |
1082 | + | if ((fm == fm)) | |
1083 | + | then $Tuple2((((cX ++ fJ) ++ fA) ++ fk), dJ) | |
1059 | 1084 | else throw("Strict value is not equal to itself.") | |
1060 | 1085 | } | |
1061 | 1086 | else throw("Strict value is not equal to itself.") | |
1072 | 1097 | @Callable(dB) | |
1073 | 1098 | func get () = { | |
1074 | 1099 | let cI = dA(dB) | |
1075 | - | let | |
1100 | + | let fT = cI._1 | |
1076 | 1101 | let cp = cI._2 | |
1077 | 1102 | let dD = cI._3 | |
1078 | 1103 | let bX = cI._4 | |
1079 | 1104 | let cq = cI._5 | |
1080 | 1105 | let dj = dc(toBigInt(0), toBigInt(0), toBigInt(dD)) | |
1081 | - | let | |
1082 | - | if (( | |
1106 | + | let fU = invoke(aJ, "burn", [dD], [AttachedPayment(bX, dD)]) | |
1107 | + | if ((fU == fU)) | |
1083 | 1108 | then { | |
1084 | - | let | |
1085 | - | let | |
1086 | - | let db = | |
1087 | - | let | |
1088 | - | if (( | |
1089 | - | then (cq ++ | |
1109 | + | let fV = dk(-(fT), -(cp), 0) | |
1110 | + | let fk = fV._1 | |
1111 | + | let db = fV._2 | |
1112 | + | let fm = do(dj, db) | |
1113 | + | if ((fm == fm)) | |
1114 | + | then (cq ++ fk) | |
1090 | 1115 | else throw("Strict value is not equal to itself.") | |
1091 | 1116 | } | |
1092 | 1117 | else throw("Strict value is not equal to itself.") | |
1095 | 1120 | ||
1096 | 1121 | ||
1097 | 1122 | @Callable(dB) | |
1098 | - | func getNoLess ( | |
1123 | + | func getNoLess (fW,fX) = { | |
1099 | 1124 | let cI = dA(dB) | |
1100 | 1125 | let co = cI._1 | |
1101 | 1126 | let cp = cI._2 | |
1102 | 1127 | let dD = cI._3 | |
1103 | 1128 | let bX = cI._4 | |
1104 | 1129 | let cq = cI._5 | |
1105 | - | if (( | |
1106 | - | then throw(((("noLessThenAmtAsset failed: " + toString(co)) + " < ") + toString( | |
1107 | - | else if (( | |
1108 | - | then throw(((("noLessThenPriceAsset failed: " + toString(cp)) + " < ") + toString( | |
1130 | + | if ((fW > co)) | |
1131 | + | then throw(((("noLessThenAmtAsset failed: " + toString(co)) + " < ") + toString(fW))) | |
1132 | + | else if ((fX > cp)) | |
1133 | + | then throw(((("noLessThenPriceAsset failed: " + toString(cp)) + " < ") + toString(fX))) | |
1109 | 1134 | else { | |
1110 | 1135 | let dj = dc(toBigInt(0), toBigInt(0), toBigInt(dD)) | |
1111 | - | let | |
1112 | - | if (( | |
1136 | + | let fU = invoke(aJ, "burn", [dD], [AttachedPayment(bX, dD)]) | |
1137 | + | if ((fU == fU)) | |
1113 | 1138 | then { | |
1114 | - | let | |
1115 | - | let | |
1116 | - | let db = | |
1117 | - | let | |
1118 | - | if (( | |
1119 | - | then (cq ++ | |
1139 | + | let fY = dk(-(co), -(cp), 0) | |
1140 | + | let fk = fY._1 | |
1141 | + | let db = fY._2 | |
1142 | + | let fm = do(dj, db) | |
1143 | + | if ((fm == fm)) | |
1144 | + | then (cq ++ fk) | |
1120 | 1145 | else throw("Strict value is not equal to itself.") | |
1121 | 1146 | } | |
1122 | 1147 | else throw("Strict value is not equal to itself.") | |
1127 | 1152 | ||
1128 | 1153 | @Callable(dB) | |
1129 | 1154 | func unstakeAndGet (dJ) = { | |
1130 | - | let | |
1155 | + | let fZ = if ((size(dB.payments) != 0)) | |
1131 | 1156 | then throw("No payments are expected") | |
1132 | 1157 | else true | |
1133 | - | if (( | |
1158 | + | if ((fZ == fZ)) | |
1134 | 1159 | then { | |
1135 | 1160 | let bM = aN() | |
1136 | 1161 | let bZ = fromBase58String(bM[q]) | |
1137 | 1162 | let dj = dc(toBigInt(0), toBigInt(0), toBigInt(0)) | |
1138 | - | let | |
1139 | - | if (( | |
1163 | + | let fP = invoke(bf, "unstake", [toBase58String(bZ), dJ], nil) | |
1164 | + | if ((fP == fP)) | |
1140 | 1165 | then { | |
1141 | 1166 | let cI = bV(toBase58String(dB.transactionId), toBase58String(bZ), dJ, dB.caller) | |
1142 | 1167 | let co = cI._1 | |
1143 | 1168 | let cp = cI._2 | |
1144 | 1169 | let cc = parseIntValue(cI._9) | |
1145 | 1170 | let cq = cI._10 | |
1146 | - | let | |
1171 | + | let ga = if (if (aL()) | |
1147 | 1172 | then true | |
1148 | 1173 | else (cc == n)) | |
1149 | 1174 | then throw(("Get operation is blocked by admin. Status = " + toString(cc))) | |
1150 | 1175 | else true | |
1151 | - | if (( | |
1176 | + | if ((ga == ga)) | |
1152 | 1177 | then { | |
1153 | - | let | |
1154 | - | if (( | |
1178 | + | let fU = invoke(aJ, "burn", [dJ], [AttachedPayment(bZ, dJ)]) | |
1179 | + | if ((fU == fU)) | |
1155 | 1180 | then { | |
1156 | - | let | |
1157 | - | let | |
1158 | - | let db = | |
1159 | - | let | |
1160 | - | if (( | |
1161 | - | then (cq ++ | |
1181 | + | let gb = dk(-(co), -(cp), 0) | |
1182 | + | let fk = gb._1 | |
1183 | + | let db = gb._2 | |
1184 | + | let fm = do(dj, db) | |
1185 | + | if ((fm == fm)) | |
1186 | + | then (cq ++ fk) | |
1162 | 1187 | else throw("Strict value is not equal to itself.") | |
1163 | 1188 | } | |
1164 | 1189 | else throw("Strict value is not equal to itself.") | |
1173 | 1198 | ||
1174 | 1199 | ||
1175 | 1200 | @Callable(dB) | |
1176 | - | func unstakeAndGetNoLess ( | |
1177 | - | let | |
1201 | + | func unstakeAndGetNoLess (fO,gc,fX) = { | |
1202 | + | let fF = if (aL()) | |
1178 | 1203 | then true | |
1179 | 1204 | else (aY == n) | |
1180 | - | let ex = [if (!( | |
1205 | + | let ex = [if (!(fF)) | |
1181 | 1206 | then true | |
1182 | 1207 | else throw("get operation is blocked by admin"), if ((size(dB.payments) == 0)) | |
1183 | 1208 | then true | |
1185 | 1210 | if ((ex == ex)) | |
1186 | 1211 | then { | |
1187 | 1212 | let dj = dc(toBigInt(0), toBigInt(0), toBigInt(0)) | |
1188 | - | let | |
1189 | - | if (( | |
1213 | + | let fP = invoke(bf, "unstake", [toBase58String(aZ), fO], nil) | |
1214 | + | if ((fP == fP)) | |
1190 | 1215 | then { | |
1191 | - | let cI = bV(toBase58String(dB.transactionId), toBase58String(aZ), | |
1216 | + | let cI = bV(toBase58String(dB.transactionId), toBase58String(aZ), fO, dB.caller) | |
1192 | 1217 | let co = cI._1 | |
1193 | 1218 | let cp = cI._2 | |
1194 | 1219 | let cq = cI._10 | |
1195 | - | let | |
1220 | + | let gd = [if ((co >= gc)) | |
1196 | 1221 | then true | |
1197 | - | else throw(makeString(["amount asset amount to receive is less than ", toString( | |
1222 | + | else throw(makeString(["amount asset amount to receive is less than ", toString(gc)], "")), if ((cp >= fX)) | |
1198 | 1223 | then true | |
1199 | - | else throw(makeString(["price asset amount to receive is less than ", toString( | |
1200 | - | if (( | |
1224 | + | else throw(makeString(["price asset amount to receive is less than ", toString(fX)], ""))] | |
1225 | + | if ((gd == gd)) | |
1201 | 1226 | then { | |
1202 | - | let | |
1203 | - | if (( | |
1227 | + | let fU = invoke(aJ, "burn", [fO], [AttachedPayment(aZ, fO)]) | |
1228 | + | if ((fU == fU)) | |
1204 | 1229 | then { | |
1205 | - | let | |
1206 | - | let | |
1207 | - | let db = | |
1208 | - | let | |
1209 | - | if (( | |
1210 | - | then (cq ++ | |
1230 | + | let ge = dk(-(co), -(cp), 0) | |
1231 | + | let fk = ge._1 | |
1232 | + | let db = ge._2 | |
1233 | + | let fm = do(dj, db) | |
1234 | + | if ((fm == fm)) | |
1235 | + | then (cq ++ fk) | |
1211 | 1236 | else throw("Strict value is not equal to itself.") | |
1212 | 1237 | } | |
1213 | 1238 | else throw("Strict value is not equal to itself.") | |
1222 | 1247 | ||
1223 | 1248 | ||
1224 | 1249 | @Callable(dB) | |
1225 | - | func activate ( | |
1250 | + | func activate (gf,gg) = if ((toString(dB.caller) != toString(aJ))) | |
1226 | 1251 | then throw("permissions denied") | |
1227 | - | else $Tuple2([StringEntry(aa(), | |
1252 | + | else $Tuple2([StringEntry(aa(), gf), StringEntry(ab(), gg)], "success") | |
1228 | 1253 | ||
1229 | 1254 | ||
1230 | 1255 | ||
1231 | 1256 | @Callable(dB) | |
1232 | 1257 | func refreshKLp () = { | |
1233 | - | let | |
1234 | - | let | |
1258 | + | let gh = valueOrElse(getInteger(ag), 0) | |
1259 | + | let gi = if (((height - gh) >= aj)) | |
1235 | 1260 | then unit | |
1236 | 1261 | else aG(makeString([toString(aj), " blocks have not passed since the previous call"], "")) | |
1237 | - | if (( | |
1262 | + | if ((gi == gi)) | |
1238 | 1263 | then { | |
1239 | 1264 | let dv = valueOrErrorMessage(parseBigInt(valueOrElse(getString(this, af), "0")), aI("invalid kLp")) | |
1240 | - | let | |
1241 | - | let | |
1242 | - | let db = | |
1265 | + | let gj = dk(0, 0, 0) | |
1266 | + | let gk = gj._1 | |
1267 | + | let db = gj._2 | |
1243 | 1268 | let dn = if ((dv != db)) | |
1244 | - | then | |
1269 | + | then gk | |
1245 | 1270 | else aG("nothing to refresh") | |
1246 | 1271 | $Tuple2(dn, toString(db)) | |
1247 | 1272 | } | |
1300 | 1325 | func statsREADONLY () = { | |
1301 | 1326 | let bM = aN() | |
1302 | 1327 | let bZ = fromBase58String(bM[q]) | |
1303 | - | let | |
1304 | - | let | |
1328 | + | let gl = bM[r] | |
1329 | + | let gm = bM[s] | |
1305 | 1330 | let cB = bM[v] | |
1306 | 1331 | let cC = bM[w] | |
1307 | 1332 | let bN = parseIntValue(bM[t]) | |
1308 | 1333 | let bO = parseIntValue(bM[u]) | |
1309 | - | let | |
1310 | - | let | |
1311 | - | let | |
1312 | - | let | |
1334 | + | let gn = valueOrErrorMessage(assetInfo(bZ), (("Asset " + toBase58String(bZ)) + " doesn't exist")).quantity | |
1335 | + | let go = bw(gl) | |
1336 | + | let gp = bw(gm) | |
1337 | + | let gq = if ((gn == 0)) | |
1313 | 1338 | then [e, e, e] | |
1314 | - | else bK( | |
1339 | + | else bK(go, gp, gn) | |
1315 | 1340 | let cj = 0 | |
1316 | - | let | |
1317 | - | let | |
1318 | - | let | |
1319 | - | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d", toString( | |
1341 | + | let gr = G(gq[1], b) | |
1342 | + | let gs = G(gq[2], b) | |
1343 | + | let gt = value(getInteger(aJ, au(toString(this)))) | |
1344 | + | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d", toString(go), toString(gp), toString(gn), toString(cj), toString(gr), toString(gs), toString(gt)], j)) | |
1320 | 1345 | } | |
1321 | 1346 | ||
1322 | 1347 | ||
1332 | 1357 | let bN = parseIntValue(bM[t]) | |
1333 | 1358 | let bO = parseIntValue(bM[u]) | |
1334 | 1359 | let cc = bM[p] | |
1335 | - | let | |
1336 | - | let | |
1337 | - | let | |
1338 | - | let bI = D( | |
1339 | - | let bJ = D( | |
1340 | - | let ci = if (( | |
1360 | + | let gn = valueOrErrorMessage(assetInfo(bZ), (("Asset " + toBase58String(bZ)) + " doesn't exist")).quantity | |
1361 | + | let go = bw(cz) | |
1362 | + | let gp = bw(cA) | |
1363 | + | let bI = D(go, bN) | |
1364 | + | let bJ = D(gp, bO) | |
1365 | + | let ci = if ((gn == 0)) | |
1341 | 1366 | then e | |
1342 | 1367 | else by(bJ, bI) | |
1343 | 1368 | let cF = D(ct, bN) | |
1345 | 1370 | let cv = G(cG, bO) | |
1346 | 1371 | let dH = cr("", 500000, ct, ca, cv, cb, "", true, false) | |
1347 | 1372 | let cQ = dH._1 | |
1348 | - | let | |
1373 | + | let gu = dH._3 | |
1349 | 1374 | let ce = dH._4 | |
1350 | 1375 | let cg = dH._5 | |
1351 | 1376 | let cd = dH._6 | |
1365 | 1390 | let bN = parseIntValue(bM[t]) | |
1366 | 1391 | let bO = parseIntValue(bM[u]) | |
1367 | 1392 | let cc = bM[p] | |
1368 | - | let | |
1369 | - | let | |
1370 | - | let | |
1371 | - | let | |
1372 | - | let | |
1373 | - | let ci = if (( | |
1393 | + | let gn = valueOrErrorMessage(assetInfo(bZ), (("Asset " + toBase58String(bZ)) + " doesn't exist")).quantity | |
1394 | + | let gv = bw(cz) | |
1395 | + | let gw = bw(cA) | |
1396 | + | let gx = D(gv, bN) | |
1397 | + | let gy = D(gw, bO) | |
1398 | + | let ci = if ((gn == 0)) | |
1374 | 1399 | then e | |
1375 | - | else by( | |
1400 | + | else by(gy, gx) | |
1376 | 1401 | let cG = D(cv, bO) | |
1377 | 1402 | let cF = fraction(cG, d, ci) | |
1378 | 1403 | let ct = G(cF, bN) | |
1379 | 1404 | let dH = cr("", 500000, ct, ca, cv, cb, "", true, false) | |
1380 | 1405 | let cQ = dH._1 | |
1381 | - | let | |
1406 | + | let gu = dH._3 | |
1382 | 1407 | let ce = dH._4 | |
1383 | 1408 | let cg = dH._5 | |
1384 | 1409 | let cd = dH._6 | |
1388 | 1413 | ||
1389 | 1414 | ||
1390 | 1415 | @Callable(dB) | |
1391 | - | func evaluateGetREADONLY ( | |
1392 | - | let cI = bV("", | |
1416 | + | func evaluateGetREADONLY (gz,gA) = { | |
1417 | + | let cI = bV("", gz, gA, this) | |
1393 | 1418 | let co = cI._1 | |
1394 | 1419 | let cp = cI._2 | |
1395 | 1420 | let ce = cI._5 | |
1401 | 1426 | } | |
1402 | 1427 | ||
1403 | 1428 | ||
1404 | - | @Verifier( | |
1405 | - | func | |
1406 | - | let | |
1429 | + | @Verifier(gB) | |
1430 | + | func gC () = { | |
1431 | + | let gD = { | |
1407 | 1432 | let dM = eO() | |
1408 | 1433 | if ($isInstanceOf(dM, "ByteVector")) | |
1409 | 1434 | then { | |
1411 | 1436 | eS | |
1412 | 1437 | } | |
1413 | 1438 | else if ($isInstanceOf(dM, "Unit")) | |
1414 | - | then | |
1439 | + | then gB.senderPublicKey | |
1415 | 1440 | else throw("Match error") | |
1416 | 1441 | } | |
1417 | - | let dM = | |
1442 | + | let dM = gB | |
1418 | 1443 | if ($isInstanceOf(dM, "Order")) | |
1419 | 1444 | then { | |
1420 | 1445 | let dr = dM | |
1421 | - | let | |
1446 | + | let gE = aM() | |
1422 | 1447 | let az = dq(dr) | |
1423 | 1448 | let aA = sigVerify(dr.bodyBytes, dr.proofs[0], dr.senderPublicKey) | |
1424 | - | let aB = sigVerify(dr.bodyBytes, dr.proofs[1], | |
1449 | + | let aB = sigVerify(dr.bodyBytes, dr.proofs[1], gE) | |
1425 | 1450 | if (if (if (az) | |
1426 | 1451 | then aA | |
1427 | 1452 | else false) | |
1433 | 1458 | else if ($isInstanceOf(dM, "SetScriptTransaction")) | |
1434 | 1459 | then { | |
1435 | 1460 | let eP = dM | |
1436 | - | let | |
1437 | - | let | |
1438 | - | let | |
1439 | - | if (if (( | |
1440 | - | then ( | |
1461 | + | let gF = blake2b256(value(eP.script)) | |
1462 | + | let gG = fromBase64String(value(getString(aJ, aw()))) | |
1463 | + | let gH = scriptHash(this) | |
1464 | + | if (if ((gG == gF)) | |
1465 | + | then (gH != gF) | |
1441 | 1466 | else false) | |
1442 | 1467 | then true | |
1443 | - | else sigVerify( | |
1468 | + | else sigVerify(gB.bodyBytes, gB.proofs[0], gD) | |
1444 | 1469 | } | |
1445 | - | else sigVerify( | |
1470 | + | else sigVerify(gB.bodyBytes, gB.proofs[0], gD) | |
1446 | 1471 | } | |
1447 | 1472 |
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 (bz,bA,bC) = fraction(bz, d, bA, bC) | |
237 | 237 | ||
238 | 238 | ||
239 | 239 | func bD (bE,bF,bG,bH) = { | |
240 | 240 | let bI = D(bG, bE) | |
241 | 241 | let bJ = D(bH, bF) | |
242 | 242 | by(bJ, bI) | |
243 | 243 | } | |
244 | 244 | ||
245 | 245 | ||
246 | 246 | func bK (bG,bH,bL) = { | |
247 | 247 | let bM = aN() | |
248 | 248 | let bN = parseIntValue(bM[t]) | |
249 | 249 | let bO = parseIntValue(bM[u]) | |
250 | 250 | let bP = bD(bN, bO, bG, bH) | |
251 | 251 | let bA = D(bG, bN) | |
252 | 252 | let bz = D(bH, bO) | |
253 | 253 | let bQ = D(bL, b) | |
254 | 254 | let bR = by(bA, bQ) | |
255 | 255 | let bS = by(bz, bQ) | |
256 | 256 | [bP, bR, bS] | |
257 | 257 | } | |
258 | 258 | ||
259 | 259 | ||
260 | 260 | func bT (bG,bH,bL) = { | |
261 | 261 | let bU = bK(bG, bH, bL) | |
262 | 262 | [G(bU[0], b), G(bU[1], b), G(bU[2], b)] | |
263 | 263 | } | |
264 | 264 | ||
265 | 265 | ||
266 | 266 | func bV (bW,bX,bY,X) = { | |
267 | 267 | let bM = aN() | |
268 | 268 | let bZ = bM[q] | |
269 | 269 | let ca = bM[r] | |
270 | 270 | let cb = bM[s] | |
271 | 271 | let bE = parseIntValue(bM[t]) | |
272 | 272 | let bF = parseIntValue(bM[u]) | |
273 | 273 | let cc = bM[p] | |
274 | 274 | let cd = valueOrErrorMessage(assetInfo(fromBase58String(bZ)), (("Asset " + bZ) + " doesn't exist")).quantity | |
275 | 275 | if ((bZ != bX)) | |
276 | 276 | then throw("Invalid asset passed.") | |
277 | 277 | else { | |
278 | 278 | let ce = bw(ca) | |
279 | 279 | let cf = D(ce, bE) | |
280 | 280 | let cg = bw(cb) | |
281 | 281 | let ch = D(cg, bF) | |
282 | 282 | let ci = by(ch, cf) | |
283 | 283 | let cj = G(ci, b) | |
284 | 284 | let ck = D(bY, b) | |
285 | 285 | let cl = D(cd, b) | |
286 | 286 | let cm = fraction(cf, ck, cl) | |
287 | 287 | let cn = fraction(ch, ck, cl) | |
288 | 288 | let co = G(cm, bE) | |
289 | 289 | let cp = G(cn, bF) | |
290 | 290 | let cq = if ((bW == "")) | |
291 | 291 | then nil | |
292 | 292 | else [ScriptTransfer(X, co, if ((ca == "WAVES")) | |
293 | 293 | then unit | |
294 | 294 | else fromBase58String(ca)), ScriptTransfer(X, cp, if ((cb == "WAVES")) | |
295 | 295 | then unit | |
296 | 296 | else fromBase58String(cb)), StringEntry(Z(toString(X), bW), bs(co, cp, bY, cj, height, lastBlock.timestamp)), IntegerEntry(S(), cj), IntegerEntry(T(height, lastBlock.timestamp), cj)] | |
297 | 297 | $Tuple10(co, cp, ca, cb, ce, cg, cd, ci, cc, cq) | |
298 | 298 | } | |
299 | 299 | } | |
300 | 300 | ||
301 | 301 | ||
302 | 302 | func cr (bW,cs,ct,cu,cv,cw,X,cx,cy) = { | |
303 | 303 | let bM = aN() | |
304 | 304 | let bZ = fromBase58String(bM[q]) | |
305 | 305 | let cz = bM[r] | |
306 | 306 | let cA = bM[s] | |
307 | 307 | let cB = bM[v] | |
308 | 308 | let cC = bM[w] | |
309 | 309 | let bN = parseIntValue(bM[t]) | |
310 | 310 | let bO = parseIntValue(bM[u]) | |
311 | 311 | let cc = bM[p] | |
312 | 312 | let cd = valueOrErrorMessage(assetInfo(bZ), (("Asset " + toBase58String(bZ)) + " doesn't exist")).quantity | |
313 | 313 | let cD = toBase58String(valueOrElse(cu, fromBase58String("WAVES"))) | |
314 | 314 | let cE = toBase58String(valueOrElse(cw, fromBase58String("WAVES"))) | |
315 | 315 | if (if ((cz != cD)) | |
316 | 316 | then true | |
317 | 317 | else (cA != cE)) | |
318 | 318 | then throw("Invalid amt or price asset passed.") | |
319 | 319 | else { | |
320 | 320 | let ce = if (cx) | |
321 | 321 | then bw(cz) | |
322 | 322 | else (bw(cz) - ct) | |
323 | 323 | let cg = if (cx) | |
324 | 324 | then bw(cA) | |
325 | 325 | else (bw(cA) - cv) | |
326 | 326 | let cF = D(ct, bN) | |
327 | 327 | let cG = D(cv, bO) | |
328 | 328 | let cH = by(cG, cF) | |
329 | 329 | let cf = D(ce, bN) | |
330 | 330 | let ch = D(cg, bO) | |
331 | 331 | let cI = if ((cd == 0)) | |
332 | 332 | then { | |
333 | 333 | let ci = e | |
334 | 334 | let cJ = e | |
335 | 335 | let bQ = pow((cF * cG), 0, toBigInt(5), 1, 0, DOWN) | |
336 | 336 | $Tuple5(G(bQ, b), G(cF, bN), G(cG, bO), by((ch + cG), (cf + cF)), cJ) | |
337 | 337 | } | |
338 | 338 | else { | |
339 | 339 | let ci = by(ch, cf) | |
340 | 340 | let cJ = fraction(O((ci - cH)), d, ci) | |
341 | 341 | let cK = D(cs, b) | |
342 | 342 | if (if ((ci != e)) | |
343 | 343 | then (cJ > cK) | |
344 | 344 | else false) | |
345 | 345 | then throw(((("Price slippage " + toString(cJ)) + " exceeded the passed limit of ") + toString(cK))) | |
346 | 346 | else { | |
347 | 347 | let cl = D(cd, b) | |
348 | 348 | let cL = fraction(cF, bB(ch, cf, CEILING), d, CEILING) | |
349 | 349 | let cM = fraction(cG, d, bB(ch, cf, FLOOR), CEILING) | |
350 | 350 | let cN = if ((cL > cG)) | |
351 | 351 | then $Tuple2(cM, cG) | |
352 | 352 | else $Tuple2(cF, cL) | |
353 | 353 | let cO = cN._1 | |
354 | 354 | let cP = cN._2 | |
355 | 355 | let bQ = fraction(cl, cP, ch, FLOOR) | |
356 | 356 | $Tuple5(G(bQ, b), G(cO, bN), G(cP, bO), ci, cJ) | |
357 | 357 | } | |
358 | 358 | } | |
359 | 359 | let cQ = cI._1 | |
360 | 360 | let cR = cI._2 | |
361 | 361 | let cS = cI._3 | |
362 | 362 | let cj = G(cI._4, b) | |
363 | 363 | let cT = G(cI._5, b) | |
364 | 364 | if ((0 >= cQ)) | |
365 | 365 | then throw("Invalid calculations. LP calculated is less than zero.") | |
366 | 366 | else { | |
367 | 367 | let cU = if (!(cy)) | |
368 | 368 | then 0 | |
369 | 369 | else cQ | |
370 | 370 | let cV = (ct - cR) | |
371 | 371 | let cW = (cv - cS) | |
372 | 372 | let cX = [IntegerEntry(S(), cj), IntegerEntry(T(height, lastBlock.timestamp), cj), StringEntry(W(X, bW), bh(cR, cS, cU, cj, cs, cT, height, lastBlock.timestamp, cV, cW))] | |
373 | 373 | $Tuple13(cQ, cU, cj, ce, cg, cd, bZ, cc, cX, cV, cW, cu, cw) | |
374 | 374 | } | |
375 | 375 | } | |
376 | 376 | } | |
377 | 377 | ||
378 | 378 | ||
379 | 379 | func cY (cZ,da,cd) = { | |
380 | 380 | let db = fraction(pow((cZ * da), 0, toBigInt(5), 1, 18, DOWN), g, cd) | |
381 | 381 | if ((cd == f)) | |
382 | 382 | then f | |
383 | 383 | else db | |
384 | 384 | } | |
385 | 385 | ||
386 | 386 | ||
387 | 387 | func dc (dd,de,df) = { | |
388 | 388 | let dg = (toBigInt(bw(aS(ba))) - dd) | |
389 | 389 | let dh = (toBigInt(bw(aS(bb))) - de) | |
390 | 390 | let di = (toBigInt(value(assetInfo(aZ)).quantity) - df) | |
391 | 391 | let dj = cY(dg, dh, di) | |
392 | 392 | dj | |
393 | 393 | } | |
394 | 394 | ||
395 | 395 | ||
396 | 396 | func dk (dl,dm,df) = { | |
397 | 397 | let dg = (bw(aS(ba)) + dl) | |
398 | 398 | let dh = (bw(aS(bb)) + dm) | |
399 | 399 | let di = (value(assetInfo(aZ)).quantity + df) | |
400 | 400 | let db = cY(toBigInt(dg), toBigInt(dh), toBigInt(di)) | |
401 | 401 | let dn = [IntegerEntry(ag, height), StringEntry(af, toString(db))] | |
402 | 402 | $Tuple2(dn, db) | |
403 | 403 | } | |
404 | 404 | ||
405 | 405 | ||
406 | 406 | func do (dp,db) = if ((db >= dp)) | |
407 | 407 | then true | |
408 | 408 | else aG(makeString(["updated KLp lower than current KLp", toString(dp), toString(db)], " ")) | |
409 | 409 | ||
410 | 410 | ||
411 | 411 | func dq (dr) = { | |
412 | 412 | let ds = dr.amount | |
413 | 413 | let dt = fraction(dr.amount, dr.price, b, FLOOR) | |
414 | 414 | let du = if ((dr.orderType == Buy)) | |
415 | 415 | then $Tuple2(ds, -(dt)) | |
416 | 416 | else $Tuple2(-(ds), dt) | |
417 | 417 | let dl = du._1 | |
418 | 418 | let dm = du._2 | |
419 | 419 | if (if (if (aL()) | |
420 | 420 | then true | |
421 | 421 | else (aY == m)) | |
422 | 422 | then true | |
423 | 423 | else (aY == n)) | |
424 | 424 | then throw("Exchange operations disabled") | |
425 | 425 | else if (if ((dr.assetPair.amountAsset != ba)) | |
426 | 426 | then true | |
427 | 427 | else (dr.assetPair.priceAsset != bb)) | |
428 | 428 | then throw("Wrong order assets.") | |
429 | 429 | else { | |
430 | 430 | let dv = valueOrErrorMessage(parseBigInt(valueOrErrorMessage(getString(this, af), aI("kLp is required"))), aI("invalid kLp")) | |
431 | 431 | let dw = dk(dl, dm, 0) | |
432 | 432 | let dx = dw._1 | |
433 | 433 | let dy = dw._2 | |
434 | 434 | let dz = (dy >= dv) | |
435 | 435 | dz | |
436 | 436 | } | |
437 | 437 | } | |
438 | 438 | ||
439 | 439 | ||
440 | 440 | func dA (dB) = if ((size(dB.payments) != 1)) | |
441 | 441 | then throw("exactly 1 payment is expected") | |
442 | 442 | else { | |
443 | 443 | let dC = value(dB.payments[0]) | |
444 | 444 | let bX = value(dC.assetId) | |
445 | 445 | let dD = dC.amount | |
446 | 446 | let cI = bV(toBase58String(dB.transactionId), toBase58String(bX), dD, dB.caller) | |
447 | 447 | let co = cI._1 | |
448 | 448 | let cp = cI._2 | |
449 | 449 | let cc = parseIntValue(cI._9) | |
450 | 450 | let cq = cI._10 | |
451 | 451 | if (if (aL()) | |
452 | 452 | then true | |
453 | 453 | else (cc == n)) | |
454 | 454 | then throw(("Get operation is blocked by admin. Status = " + toString(cc))) | |
455 | 455 | else $Tuple5(co, cp, dD, bX, cq) | |
456 | 456 | } | |
457 | 457 | ||
458 | 458 | ||
459 | 459 | func dE (dB,cs,cy) = if ((size(dB.payments) != 2)) | |
460 | 460 | then throw("exactly 2 payments are expected") | |
461 | 461 | else { | |
462 | 462 | let dF = value(dB.payments[0]) | |
463 | 463 | let dG = value(dB.payments[1]) | |
464 | 464 | let dH = cr(toBase58String(dB.transactionId), cs, dF.amount, dF.assetId, dG.amount, dG.assetId, toString(dB.caller), false, cy) | |
465 | 465 | let cc = parseIntValue(dH._8) | |
466 | 466 | if (if (if (aL()) | |
467 | 467 | then true | |
468 | 468 | else (cc == l)) | |
469 | 469 | then true | |
470 | 470 | else (cc == n)) | |
471 | 471 | then throw(("Put operation is blocked by admin. Status = " + toString(cc))) | |
472 | 472 | else dH | |
473 | 473 | } | |
474 | 474 | ||
475 | 475 | ||
476 | 476 | func dI (dJ) = { | |
477 | 477 | let dK = invoke(aJ, "emit", [dJ], nil) | |
478 | 478 | if ((dK == dK)) | |
479 | 479 | then { | |
480 | 480 | let dL = { | |
481 | 481 | let dM = dK | |
482 | 482 | if ($isInstanceOf(dM, "Address")) | |
483 | 483 | then { | |
484 | 484 | let dN = dM | |
485 | 485 | invoke(dN, "emit", [dJ], nil) | |
486 | 486 | } | |
487 | 487 | else unit | |
488 | 488 | } | |
489 | 489 | if ((dL == dL)) | |
490 | 490 | then dJ | |
491 | 491 | else throw("Strict value is not equal to itself.") | |
492 | 492 | } | |
493 | 493 | else throw("Strict value is not equal to itself.") | |
494 | 494 | } | |
495 | 495 | ||
496 | 496 | ||
497 | 497 | func dO (dJ) = { | |
498 | 498 | let dP = fraction(dJ, ae, b) | |
499 | 499 | $Tuple2((dJ - dP), dP) | |
500 | 500 | } | |
501 | 501 | ||
502 | 502 | ||
503 | 503 | func dQ (dR,dS,X,Y) = { | |
504 | 504 | let dT = (Y == unit) | |
505 | 505 | let dU = bw(aS(ba)) | |
506 | 506 | let dV = bw(aS(bb)) | |
507 | 507 | let dW = if ((dS == ba)) | |
508 | 508 | then true | |
509 | 509 | else if ((dS == bb)) | |
510 | 510 | then false | |
511 | 511 | else aG("invalid asset") | |
512 | 512 | let dX = if (dT) | |
513 | 513 | then $Tuple2(dU, dV) | |
514 | 514 | else if (dW) | |
515 | 515 | then $Tuple2((dU - dR), dV) | |
516 | 516 | else $Tuple2(dU, (dV - dR)) | |
517 | 517 | let dY = dX._1 | |
518 | 518 | let dZ = dX._2 | |
519 | 519 | let ea = if (dW) | |
520 | 520 | then $Tuple2(dR, 0) | |
521 | 521 | else $Tuple2(0, dR) | |
522 | 522 | let eb = ea._1 | |
523 | 523 | let ec = ea._2 | |
524 | 524 | let ds = dO(eb)._1 | |
525 | 525 | let dt = dO(ec)._1 | |
526 | 526 | let ed = dO(dR) | |
527 | 527 | let ee = ed._1 | |
528 | 528 | let dP = ed._2 | |
529 | 529 | let ef = (dY + ds) | |
530 | 530 | let eg = (dZ + dt) | |
531 | 531 | let eh = by(D(eg, bd), D(ef, bc)) | |
532 | 532 | let ei = G(eh, b) | |
533 | 533 | let ej = if (dW) | |
534 | 534 | then dY | |
535 | 535 | else dZ | |
536 | 536 | let ek = toBigInt(ej) | |
537 | 537 | let el = toBigInt(valueOrErrorMessage(assetInfo(aZ), (("asset " + toBase58String(aZ)) + " doesn't exist")).quantity) | |
538 | 538 | let em = if ((el > f)) | |
539 | 539 | then true | |
540 | 540 | else aG("initial deposit requires all coins") | |
541 | 541 | if ((em == em)) | |
542 | 542 | then { | |
543 | 543 | let en = toBigInt(ee) | |
544 | 544 | let eo = max([0, toInt(((el * (sqrtBigInt((d + ((en * d) / ek)), 18, 18, DOWN) - d)) / d))]) | |
545 | 545 | let cX = if (dT) | |
546 | 546 | then nil | |
547 | 547 | else [IntegerEntry(S(), ei), IntegerEntry(T(height, lastBlock.timestamp), ei), StringEntry(W(toString(value(X)), toBase58String(value(Y))), bh(eb, ec, eo, ei, 0, 0, height, lastBlock.timestamp, 0, 0))] | |
548 | 548 | let ep = by(D(dZ, bd), D(dY, bc)) | |
549 | 549 | let eq = G(ep, b) | |
550 | 550 | let er = { | |
551 | 551 | let es = if (dW) | |
552 | 552 | then $Tuple2(eb, dY) | |
553 | 553 | else $Tuple2(ec, dZ) | |
554 | 554 | let dJ = es._1 | |
555 | 555 | let et = es._2 | |
556 | 556 | let eu = toInt(fraction(el, toBigInt((dJ / 2)), toBigInt(et))) | |
557 | 557 | fraction((eo - eu), b, eu) | |
558 | 558 | } | |
559 | 559 | $Tuple5(eo, cX, dP, er, dW) | |
560 | 560 | } | |
561 | 561 | else throw("Strict value is not equal to itself.") | |
562 | 562 | } | |
563 | 563 | ||
564 | 564 | ||
565 | 565 | func ev (ew,ee,dS,X,Y) = { | |
566 | 566 | let dT = (Y == unit) | |
567 | 567 | let ex = [if ((dS == aZ)) | |
568 | 568 | then true | |
569 | 569 | else aG("invalid lp asset")] | |
570 | 570 | if ((ex == ex)) | |
571 | 571 | then { | |
572 | 572 | let ey = if ((ew == ba)) | |
573 | 573 | then true | |
574 | 574 | else if ((ew == bb)) | |
575 | 575 | then false | |
576 | 576 | else aG("invalid asset") | |
577 | 577 | let ez = if (ey) | |
578 | 578 | then toBigInt(bw(aS(ba))) | |
579 | 579 | else toBigInt(bw(aS(bb))) | |
580 | 580 | let eA = bw(aS(ba)) | |
581 | 581 | let eB = bw(aS(bb)) | |
582 | 582 | let eC = if (ey) | |
583 | 583 | then eA | |
584 | 584 | else eB | |
585 | 585 | let eD = toBigInt(eC) | |
586 | 586 | let el = toBigInt(valueOrErrorMessage(assetInfo(aZ), (("asset " + toBase58String(aZ)) + " doesn't exist")).quantity) | |
587 | 587 | let eE = toBigInt(ee) | |
588 | 588 | let eF = max([0, toInt(((ez * (d - pow((d - ((eE * d) / el)), 18, h, 0, 18, DOWN))) / d))]) | |
589 | 589 | let eG = dO(eF) | |
590 | 590 | let eH = eG._1 | |
591 | 591 | let dP = eG._2 | |
592 | 592 | let eI = if (ey) | |
593 | 593 | then $Tuple4(eH, 0, (eA - eF), eB) | |
594 | 594 | else $Tuple4(0, eH, eA, (eB - eF)) | |
595 | 595 | let eJ = eI._1 | |
596 | 596 | let eK = eI._2 | |
597 | 597 | let eL = eI._3 | |
598 | 598 | let eM = eI._4 | |
599 | 599 | let eh = by(D(eM, bd), D(eL, bc)) | |
600 | 600 | let ei = G(eh, b) | |
601 | 601 | let cX = if (dT) | |
602 | 602 | then nil | |
603 | 603 | else [StringEntry(Z(toString(value(X)), toBase58String(value(Y))), bs(eJ, eK, ee, ei, height, lastBlock.timestamp)), IntegerEntry(S(), ei), IntegerEntry(T(height, lastBlock.timestamp), ei)] | |
604 | 604 | let ep = by(D(eB, bd), D(eA, bc)) | |
605 | 605 | let eq = G(ep, b) | |
606 | 606 | let er = { | |
607 | 607 | let eN = (toInt(fraction(ez, eE, el)) * 2) | |
608 | 608 | fraction((eH - eN), b, eN) | |
609 | 609 | } | |
610 | 610 | $Tuple5(eH, cX, dP, er, ey) | |
611 | 611 | } | |
612 | 612 | else throw("Strict value is not equal to itself.") | |
613 | 613 | } | |
614 | 614 | ||
615 | 615 | ||
616 | 616 | func eO () = { | |
617 | 617 | let dM = getString(Q()) | |
618 | 618 | if ($isInstanceOf(dM, "String")) | |
619 | 619 | then { | |
620 | 620 | let eP = dM | |
621 | 621 | fromBase58String(eP) | |
622 | 622 | } | |
623 | 623 | else if ($isInstanceOf(dM, "Unit")) | |
624 | 624 | then unit | |
625 | 625 | else throw("Match error") | |
626 | 626 | } | |
627 | 627 | ||
628 | 628 | ||
629 | 629 | func eQ () = { | |
630 | 630 | let dM = getString(R()) | |
631 | 631 | if ($isInstanceOf(dM, "String")) | |
632 | 632 | then { | |
633 | 633 | let eP = dM | |
634 | 634 | fromBase58String(eP) | |
635 | 635 | } | |
636 | 636 | else if ($isInstanceOf(dM, "Unit")) | |
637 | 637 | then unit | |
638 | 638 | else throw("Match error") | |
639 | 639 | } | |
640 | 640 | ||
641 | 641 | ||
642 | 642 | func eR (dB) = { | |
643 | 643 | let dM = eO() | |
644 | 644 | if ($isInstanceOf(dM, "ByteVector")) | |
645 | 645 | then { | |
646 | 646 | let eS = dM | |
647 | 647 | (dB.callerPublicKey == eS) | |
648 | 648 | } | |
649 | 649 | else if ($isInstanceOf(dM, "Unit")) | |
650 | 650 | then (dB.caller == this) | |
651 | 651 | else throw("Match error") | |
652 | 652 | } | |
653 | 653 | ||
654 | 654 | ||
655 | 655 | func eT (dB) = { | |
656 | 656 | let eU = throw("Permission denied") | |
657 | 657 | let dM = eO() | |
658 | 658 | if ($isInstanceOf(dM, "ByteVector")) | |
659 | 659 | then { | |
660 | 660 | let eS = dM | |
661 | 661 | if ((dB.callerPublicKey == eS)) | |
662 | 662 | then true | |
663 | 663 | else eU | |
664 | 664 | } | |
665 | 665 | else if ($isInstanceOf(dM, "Unit")) | |
666 | 666 | then if ((dB.caller == this)) | |
667 | 667 | then true | |
668 | 668 | else eU | |
669 | 669 | else throw("Match error") | |
670 | 670 | } | |
671 | 671 | ||
672 | 672 | ||
673 | 673 | @Callable(dB) | |
674 | 674 | func setManager (eV) = { | |
675 | 675 | let eW = eT(dB) | |
676 | 676 | if ((eW == eW)) | |
677 | 677 | then { | |
678 | 678 | let eX = fromBase58String(eV) | |
679 | 679 | if ((eX == eX)) | |
680 | 680 | then [StringEntry(R(), eV)] | |
681 | 681 | else throw("Strict value is not equal to itself.") | |
682 | 682 | } | |
683 | 683 | else throw("Strict value is not equal to itself.") | |
684 | 684 | } | |
685 | 685 | ||
686 | 686 | ||
687 | 687 | ||
688 | 688 | @Callable(dB) | |
689 | 689 | func confirmManager () = { | |
690 | 690 | let eY = eQ() | |
691 | 691 | let eZ = if (isDefined(eY)) | |
692 | 692 | then true | |
693 | 693 | else throw("No pending manager") | |
694 | 694 | if ((eZ == eZ)) | |
695 | 695 | then { | |
696 | 696 | let fa = if ((dB.callerPublicKey == value(eY))) | |
697 | 697 | then true | |
698 | 698 | else throw("You are not pending manager") | |
699 | 699 | if ((fa == fa)) | |
700 | 700 | then [StringEntry(Q(), toBase58String(value(eY))), DeleteEntry(R())] | |
701 | 701 | else throw("Strict value is not equal to itself.") | |
702 | 702 | } | |
703 | 703 | else throw("Strict value is not equal to itself.") | |
704 | 704 | } | |
705 | 705 | ||
706 | 706 | ||
707 | 707 | ||
708 | 708 | @Callable(dB) | |
709 | 709 | func put (cs,fb) = if ((0 > cs)) | |
710 | 710 | then throw("Invalid slippageTolerance passed") | |
711 | 711 | else { | |
712 | 712 | let dH = dE(dB, cs, true) | |
713 | 713 | let cU = dH._2 | |
714 | 714 | let bZ = dH._7 | |
715 | 715 | let cq = dH._9 | |
716 | 716 | let cV = dH._10 | |
717 | 717 | let cW = dH._11 | |
718 | 718 | let fc = dH._12 | |
719 | 719 | let fd = dH._13 | |
720 | 720 | let dF = toBigInt(value(dB.payments[0]).amount) | |
721 | 721 | let dG = toBigInt(value(dB.payments[1]).amount) | |
722 | - | let | |
723 | - | if (( | |
722 | + | let dg = (toBigInt(bw(aS(ba))) - dF) | |
723 | + | if ((dg == dg)) | |
724 | 724 | then { | |
725 | - | let | |
726 | - | if (( | |
725 | + | let dh = (toBigInt(bw(aS(bb))) - dG) | |
726 | + | if ((dh == dh)) | |
727 | 727 | then { | |
728 | - | let dL = { | |
729 | - | let dM = dK | |
730 | - | if ($isInstanceOf(dM, "Address")) | |
731 | - | then { | |
732 | - | let dN = dM | |
733 | - | invoke(dN, "emit", [cU], nil) | |
734 | - | } | |
735 | - | else unit | |
736 | - | } | |
737 | - | if ((dL == dL)) | |
728 | + | let di = toBigInt(value(assetInfo(aZ)).quantity) | |
729 | + | if ((di == di)) | |
738 | 730 | then { | |
739 | - | let fe = if ((cV > 0)) | |
740 | - | then invoke(bg, "put", nil, [AttachedPayment(fc, cV)]) | |
741 | - | else nil | |
742 | - | if ((fe == fe)) | |
731 | + | let dj = dc(dF, dG, toBigInt(0)) | |
732 | + | if ((dj == dj)) | |
743 | 733 | then { | |
744 | - | let ff = if ((cW > 0)) | |
745 | - | then invoke(bg, "put", nil, [AttachedPayment(fd, cW)]) | |
746 | - | else nil | |
747 | - | if ((ff == ff)) | |
734 | + | let dK = invoke(aJ, "emit", [cU], nil) | |
735 | + | if ((dK == dK)) | |
748 | 736 | then { | |
749 | - | let fg = if (fb) | |
737 | + | let dL = { | |
738 | + | let dM = dK | |
739 | + | if ($isInstanceOf(dM, "Address")) | |
740 | + | then { | |
741 | + | let dN = dM | |
742 | + | invoke(dN, "emit", [cU], nil) | |
743 | + | } | |
744 | + | else unit | |
745 | + | } | |
746 | + | if ((dL == dL)) | |
750 | 747 | then { | |
751 | - | let fh = invoke(bf, "stake", nil, [AttachedPayment(bZ, cU)]) | |
752 | - | if ((fh == fh)) | |
753 | - | then nil | |
754 | - | else throw("Strict value is not equal to itself.") | |
755 | - | } | |
756 | - | else [ScriptTransfer(dB.caller, cU, bZ)] | |
757 | - | let fi = dk(0, 0, 0) | |
758 | - | if ((fi == fi)) | |
759 | - | then { | |
760 | - | let db = fi._2 | |
761 | - | let fj = fi._1 | |
762 | - | let fk = do(dj, db) | |
763 | - | if ((fk == fk)) | |
764 | - | then ((cq ++ fg) ++ fj) | |
748 | + | let fe = if ((cV > 0)) | |
749 | + | then invoke(bg, "put", nil, [AttachedPayment(fc, cV)]) | |
750 | + | else nil | |
751 | + | if ((fe == fe)) | |
752 | + | then { | |
753 | + | let ff = if ((cW > 0)) | |
754 | + | then invoke(bg, "put", nil, [AttachedPayment(fd, cW)]) | |
755 | + | else nil | |
756 | + | if ((ff == ff)) | |
757 | + | then { | |
758 | + | let fg = if (fb) | |
759 | + | then { | |
760 | + | let fh = invoke(bf, "stake", nil, [AttachedPayment(bZ, cU)]) | |
761 | + | if ((fh == fh)) | |
762 | + | then nil | |
763 | + | else throw("Strict value is not equal to itself.") | |
764 | + | } | |
765 | + | else [ScriptTransfer(dB.caller, cU, bZ)] | |
766 | + | let fi = value(assetInfo(aZ)).quantity | |
767 | + | if ((fi == fi)) | |
768 | + | then { | |
769 | + | let fj = dk(0, 0, 0) | |
770 | + | if ((fj == fj)) | |
771 | + | then { | |
772 | + | let db = fj._2 | |
773 | + | let fk = fj._1 | |
774 | + | let fl = aG(makeString([toString(dg), toString(dh), toString(di), toString(dj), toString(db), toString(cU), toString(cV), toString(cW), toString(di), toString(fi)], " ")) | |
775 | + | if ((fl == fl)) | |
776 | + | then { | |
777 | + | let fm = do(dj, db) | |
778 | + | if ((fm == fm)) | |
779 | + | then ((cq ++ fg) ++ fk) | |
780 | + | else throw("Strict value is not equal to itself.") | |
781 | + | } | |
782 | + | else throw("Strict value is not equal to itself.") | |
783 | + | } | |
784 | + | else throw("Strict value is not equal to itself.") | |
785 | + | } | |
786 | + | else throw("Strict value is not equal to itself.") | |
787 | + | } | |
788 | + | else throw("Strict value is not equal to itself.") | |
789 | + | } | |
765 | 790 | else throw("Strict value is not equal to itself.") | |
766 | 791 | } | |
767 | 792 | else throw("Strict value is not equal to itself.") | |
768 | 793 | } | |
769 | 794 | else throw("Strict value is not equal to itself.") | |
770 | 795 | } | |
771 | 796 | else throw("Strict value is not equal to itself.") | |
772 | 797 | } | |
773 | 798 | else throw("Strict value is not equal to itself.") | |
774 | 799 | } | |
775 | 800 | else throw("Strict value is not equal to itself.") | |
776 | 801 | } | |
777 | 802 | else throw("Strict value is not equal to itself.") | |
778 | 803 | } | |
779 | 804 | ||
780 | 805 | ||
781 | 806 | ||
782 | 807 | @Callable(dB) | |
783 | - | func putForFree ( | |
808 | + | func putForFree (fn) = if ((0 > fn)) | |
784 | 809 | then throw("Invalid value passed") | |
785 | 810 | else { | |
786 | - | let dH = dE(dB, | |
811 | + | let dH = dE(dB, fn, false) | |
787 | 812 | let cq = dH._9 | |
788 | 813 | let dF = toBigInt(value(dB.payments[0]).amount) | |
789 | 814 | let dG = toBigInt(value(dB.payments[1]).amount) | |
790 | 815 | let dj = dc(dF, dG, toBigInt(0)) | |
791 | 816 | if ((dj == dj)) | |
792 | 817 | then { | |
793 | - | let | |
794 | - | let | |
795 | - | let db = | |
796 | - | let | |
797 | - | if (( | |
798 | - | then (cq ++ | |
818 | + | let fo = dk(0, 0, 0) | |
819 | + | let fk = fo._1 | |
820 | + | let db = fo._2 | |
821 | + | let fm = do(dj, db) | |
822 | + | if ((fm == fm)) | |
823 | + | then (cq ++ fk) | |
799 | 824 | else throw("Strict value is not equal to itself.") | |
800 | 825 | } | |
801 | 826 | else throw("Strict value is not equal to itself.") | |
802 | 827 | } | |
803 | 828 | ||
804 | 829 | ||
805 | 830 | ||
806 | 831 | @Callable(dB) | |
807 | - | func putOneTkn ( | |
808 | - | let | |
809 | - | let | |
810 | - | if ($isInstanceOf( | |
811 | - | then | |
812 | - | else throw(($getType( | |
832 | + | func putOneTkn (fp,fq) = { | |
833 | + | let fr = { | |
834 | + | let fs = invoke(aJ, "isPoolOneTokenOperationsDisabledREADONLY", [toString(this)], nil) | |
835 | + | if ($isInstanceOf(fs, "Boolean")) | |
836 | + | then fs | |
837 | + | else throw(($getType(fs) + " couldn't be cast to Boolean")) | |
813 | 838 | } | |
814 | - | let | |
839 | + | let ft = if (if (if (aL()) | |
815 | 840 | then true | |
816 | 841 | else (aY == l)) | |
817 | 842 | then true | |
818 | 843 | else (aY == n)) | |
819 | 844 | then true | |
820 | - | else | |
821 | - | let ex = [if (if (!( | |
845 | + | else fr | |
846 | + | let ex = [if (if (!(ft)) | |
822 | 847 | then true | |
823 | 848 | else eR(dB)) | |
824 | 849 | then true | |
825 | 850 | else aG("put operation is blocked by admin"), if ((size(dB.payments) == 1)) | |
826 | 851 | then true | |
827 | 852 | else aG("exactly 1 payment are expected")] | |
828 | 853 | if ((ex == ex)) | |
829 | 854 | then { | |
830 | - | let | |
831 | - | let dS = | |
832 | - | let dR = | |
855 | + | let fu = dB.payments[0] | |
856 | + | let dS = fu.assetId | |
857 | + | let dR = fu.amount | |
833 | 858 | let dj = if ((dS == ba)) | |
834 | 859 | then dc(toBigInt(dR), toBigInt(0), toBigInt(0)) | |
835 | 860 | else if ((dS == bb)) | |
836 | 861 | then dc(toBigInt(0), toBigInt(dR), toBigInt(0)) | |
837 | 862 | else aG("payment asset is not supported") | |
838 | 863 | let X = dB.caller | |
839 | 864 | let Y = dB.transactionId | |
840 | - | let | |
841 | - | if (( | |
865 | + | let fv = dQ(dR, dS, X, Y) | |
866 | + | if ((fv == fv)) | |
842 | 867 | then { | |
843 | - | let dW = | |
844 | - | let | |
845 | - | let dP = | |
846 | - | let cX = | |
847 | - | let | |
848 | - | let | |
849 | - | then ( | |
868 | + | let dW = fv._5 | |
869 | + | let fw = fv._4 | |
870 | + | let dP = fv._3 | |
871 | + | let cX = fv._2 | |
872 | + | let fx = fv._1 | |
873 | + | let fy = if (if ((fp > 0)) | |
874 | + | then (fp > fx) | |
850 | 875 | else false) | |
851 | - | then aG(makeString(["amount to receive is less than ", toString( | |
852 | - | else | |
853 | - | let dK = dI( | |
876 | + | then aG(makeString(["amount to receive is less than ", toString(fp)], "")) | |
877 | + | else fx | |
878 | + | let dK = dI(fy) | |
854 | 879 | if ((dK == dK)) | |
855 | 880 | then { | |
856 | - | let fg = if ( | |
881 | + | let fg = if (fq) | |
857 | 882 | then { | |
858 | - | let | |
859 | - | if (( | |
883 | + | let fz = invoke(bf, "stake", nil, [AttachedPayment(aZ, fy)]) | |
884 | + | if ((fz == fz)) | |
860 | 885 | then nil | |
861 | 886 | else throw("Strict value is not equal to itself.") | |
862 | 887 | } | |
863 | - | else [ScriptTransfer(dB.caller, | |
864 | - | let | |
888 | + | else [ScriptTransfer(dB.caller, fy, aZ)] | |
889 | + | let fA = if ((dP > 0)) | |
865 | 890 | then [ScriptTransfer(aK, dP, dS)] | |
866 | 891 | else nil | |
867 | - | let | |
892 | + | let fB = if ((this == aK)) | |
868 | 893 | then $Tuple2(0, 0) | |
869 | 894 | else if (dW) | |
870 | 895 | then $Tuple2(-(dP), 0) | |
871 | 896 | else $Tuple2(0, -(dP)) | |
872 | - | let dl = | |
873 | - | let dm = | |
874 | - | let | |
875 | - | let | |
876 | - | let db = | |
897 | + | let dl = fB._1 | |
898 | + | let dm = fB._2 | |
899 | + | let fC = dk(dl, dm, 0) | |
900 | + | let fk = fC._1 | |
901 | + | let db = fC._2 | |
877 | 902 | let dv = value(getString(af)) | |
878 | - | let | |
879 | - | if (( | |
880 | - | then $Tuple2((((cX ++ fg) ++ | |
903 | + | let fm = do(dj, db) | |
904 | + | if ((fm == fm)) | |
905 | + | then $Tuple2((((cX ++ fg) ++ fA) ++ fk), fy) | |
881 | 906 | else throw("Strict value is not equal to itself.") | |
882 | 907 | } | |
883 | 908 | else throw("Strict value is not equal to itself.") | |
884 | 909 | } | |
885 | 910 | else throw("Strict value is not equal to itself.") | |
886 | 911 | } | |
887 | 912 | else throw("Strict value is not equal to itself.") | |
888 | 913 | } | |
889 | 914 | ||
890 | 915 | ||
891 | 916 | ||
892 | 917 | @Callable(dB) | |
893 | 918 | func putOneTknREADONLY (dS,dR) = { | |
894 | - | let | |
895 | - | let | |
896 | - | let cX = | |
897 | - | let dP = | |
898 | - | let | |
899 | - | let dW = | |
900 | - | $Tuple2(nil, $Tuple3( | |
919 | + | let fD = dQ(dR, aQ(dS), unit, unit) | |
920 | + | let fx = fD._1 | |
921 | + | let cX = fD._2 | |
922 | + | let dP = fD._3 | |
923 | + | let fw = fD._4 | |
924 | + | let dW = fD._5 | |
925 | + | $Tuple2(nil, $Tuple3(fx, dP, fw)) | |
901 | 926 | } | |
902 | 927 | ||
903 | 928 | ||
904 | 929 | ||
905 | 930 | @Callable(dB) | |
906 | - | func getOneTkn ( | |
907 | - | let | |
908 | - | let | |
909 | - | if ($isInstanceOf( | |
910 | - | then | |
911 | - | else throw(($getType( | |
931 | + | func getOneTkn (fE,fp) = { | |
932 | + | let fr = { | |
933 | + | let fs = invoke(aJ, "isPoolOneTokenOperationsDisabledREADONLY", [toString(this)], nil) | |
934 | + | if ($isInstanceOf(fs, "Boolean")) | |
935 | + | then fs | |
936 | + | else throw(($getType(fs) + " couldn't be cast to Boolean")) | |
912 | 937 | } | |
913 | - | let | |
938 | + | let fF = if (if (aL()) | |
914 | 939 | then true | |
915 | 940 | else (aY == n)) | |
916 | 941 | then true | |
917 | - | else | |
918 | - | let ex = [if (if (!( | |
942 | + | else fr | |
943 | + | let ex = [if (if (!(fF)) | |
919 | 944 | then true | |
920 | 945 | else eR(dB)) | |
921 | 946 | then true | |
922 | 947 | else aG("get operation is blocked by admin"), if ((size(dB.payments) == 1)) | |
923 | 948 | then true | |
924 | 949 | else aG("exactly 1 payment are expected")] | |
925 | 950 | if ((ex == ex)) | |
926 | 951 | then { | |
927 | - | let ew = aQ( | |
928 | - | let | |
929 | - | let dS = | |
930 | - | let ee = | |
952 | + | let ew = aQ(fE) | |
953 | + | let fu = dB.payments[0] | |
954 | + | let dS = fu.assetId | |
955 | + | let ee = fu.amount | |
931 | 956 | let dj = dc(toBigInt(0), toBigInt(0), toBigInt(ee)) | |
932 | 957 | let X = dB.caller | |
933 | 958 | let Y = dB.transactionId | |
934 | - | let | |
935 | - | if (( | |
959 | + | let fG = ev(ew, ee, dS, X, Y) | |
960 | + | if ((fG == fG)) | |
936 | 961 | then { | |
937 | - | let ey = | |
938 | - | let | |
939 | - | let dP = | |
940 | - | let cX = | |
941 | - | let | |
942 | - | let dJ = if (if (( | |
943 | - | then ( | |
962 | + | let ey = fG._5 | |
963 | + | let fw = fG._4 | |
964 | + | let dP = fG._3 | |
965 | + | let cX = fG._2 | |
966 | + | let fH = fG._1 | |
967 | + | let dJ = if (if ((fp > 0)) | |
968 | + | then (fp > fH) | |
944 | 969 | else false) | |
945 | - | then aG(makeString(["amount to receive is less than ", toString( | |
946 | - | else | |
947 | - | let | |
948 | - | if (( | |
970 | + | then aG(makeString(["amount to receive is less than ", toString(fp)], "")) | |
971 | + | else fH | |
972 | + | let fI = invoke(aJ, "burn", [ee], [AttachedPayment(dS, ee)]) | |
973 | + | if ((fI == fI)) | |
949 | 974 | then { | |
950 | - | let | |
951 | - | let | |
975 | + | let fJ = [ScriptTransfer(X, dJ, ew)] | |
976 | + | let fA = if ((dP > 0)) | |
952 | 977 | then [ScriptTransfer(aK, dP, ew)] | |
953 | 978 | else nil | |
954 | - | let | |
955 | - | let | |
979 | + | let fK = { | |
980 | + | let fL = if ((this == aK)) | |
956 | 981 | then 0 | |
957 | 982 | else dP | |
958 | 983 | if (ey) | |
959 | - | then $Tuple2(-((dJ + | |
960 | - | else $Tuple2(0, -((dJ + | |
984 | + | then $Tuple2(-((dJ + fL)), 0) | |
985 | + | else $Tuple2(0, -((dJ + fL))) | |
961 | 986 | } | |
962 | - | let dl = | |
963 | - | let dm = | |
964 | - | let | |
965 | - | let | |
966 | - | let db = | |
967 | - | let | |
968 | - | if (( | |
969 | - | then $Tuple2((((cX ++ | |
987 | + | let dl = fK._1 | |
988 | + | let dm = fK._2 | |
989 | + | let fM = dk(dl, dm, 0) | |
990 | + | let fk = fM._1 | |
991 | + | let db = fM._2 | |
992 | + | let fm = do(dj, db) | |
993 | + | if ((fm == fm)) | |
994 | + | then $Tuple2((((cX ++ fJ) ++ fA) ++ fk), dJ) | |
970 | 995 | else throw("Strict value is not equal to itself.") | |
971 | 996 | } | |
972 | 997 | else throw("Strict value is not equal to itself.") | |
973 | 998 | } | |
974 | 999 | else throw("Strict value is not equal to itself.") | |
975 | 1000 | } | |
976 | 1001 | else throw("Strict value is not equal to itself.") | |
977 | 1002 | } | |
978 | 1003 | ||
979 | 1004 | ||
980 | 1005 | ||
981 | 1006 | @Callable(dB) | |
982 | 1007 | func getOneTknREADONLY (ew,ee) = { | |
983 | - | let | |
984 | - | let | |
985 | - | let cX = | |
986 | - | let dP = | |
987 | - | let | |
988 | - | let ey = | |
989 | - | $Tuple2(nil, $Tuple3( | |
1008 | + | let fN = ev(aQ(ew), ee, aZ, unit, unit) | |
1009 | + | let fH = fN._1 | |
1010 | + | let cX = fN._2 | |
1011 | + | let dP = fN._3 | |
1012 | + | let fw = fN._4 | |
1013 | + | let ey = fN._5 | |
1014 | + | $Tuple2(nil, $Tuple3(fH, dP, fw)) | |
990 | 1015 | } | |
991 | 1016 | ||
992 | 1017 | ||
993 | 1018 | ||
994 | 1019 | @Callable(dB) | |
995 | - | func unstakeAndGetOneTkn ( | |
996 | - | let | |
997 | - | let | |
998 | - | if ($isInstanceOf( | |
999 | - | then | |
1000 | - | else throw(($getType( | |
1020 | + | func unstakeAndGetOneTkn (fO,fE,fp) = { | |
1021 | + | let fr = { | |
1022 | + | let fs = invoke(aJ, "isPoolOneTokenOperationsDisabledREADONLY", [toString(this)], nil) | |
1023 | + | if ($isInstanceOf(fs, "Boolean")) | |
1024 | + | then fs | |
1025 | + | else throw(($getType(fs) + " couldn't be cast to Boolean")) | |
1001 | 1026 | } | |
1002 | - | let | |
1027 | + | let fF = if (if (aL()) | |
1003 | 1028 | then true | |
1004 | 1029 | else (aY == n)) | |
1005 | 1030 | then true | |
1006 | - | else | |
1007 | - | let ex = [if (if (!( | |
1031 | + | else fr | |
1032 | + | let ex = [if (if (!(fF)) | |
1008 | 1033 | then true | |
1009 | 1034 | else eR(dB)) | |
1010 | 1035 | then true | |
1011 | 1036 | else aG("get operation is blocked by admin"), if ((size(dB.payments) == 0)) | |
1012 | 1037 | then true | |
1013 | 1038 | else aG("no payments are expected")] | |
1014 | 1039 | if ((ex == ex)) | |
1015 | 1040 | then { | |
1016 | - | let ew = aQ( | |
1041 | + | let ew = aQ(fE) | |
1017 | 1042 | let X = dB.caller | |
1018 | 1043 | let Y = dB.transactionId | |
1019 | 1044 | let dj = dc(toBigInt(0), toBigInt(0), toBigInt(0)) | |
1020 | - | let | |
1021 | - | if (( | |
1045 | + | let fP = invoke(bf, "unstake", [toBase58String(aZ), fO], nil) | |
1046 | + | if ((fP == fP)) | |
1022 | 1047 | then { | |
1023 | - | let | |
1024 | - | if (( | |
1048 | + | let fQ = ev(ew, fO, aZ, X, Y) | |
1049 | + | if ((fQ == fQ)) | |
1025 | 1050 | then { | |
1026 | - | let ey = | |
1027 | - | let | |
1028 | - | let dP = | |
1029 | - | let cX = | |
1030 | - | let | |
1031 | - | let dJ = if (if (( | |
1032 | - | then ( | |
1051 | + | let ey = fQ._5 | |
1052 | + | let fw = fQ._4 | |
1053 | + | let dP = fQ._3 | |
1054 | + | let cX = fQ._2 | |
1055 | + | let fH = fQ._1 | |
1056 | + | let dJ = if (if ((fp > 0)) | |
1057 | + | then (fp > fH) | |
1033 | 1058 | else false) | |
1034 | - | then aG(makeString(["amount to receive is less than ", toString( | |
1035 | - | else | |
1036 | - | let | |
1037 | - | if (( | |
1059 | + | then aG(makeString(["amount to receive is less than ", toString(fp)], "")) | |
1060 | + | else fH | |
1061 | + | let fI = invoke(aJ, "burn", [fO], [AttachedPayment(aZ, fO)]) | |
1062 | + | if ((fI == fI)) | |
1038 | 1063 | then { | |
1039 | - | let | |
1040 | - | let | |
1064 | + | let fJ = [ScriptTransfer(dB.caller, dJ, ew)] | |
1065 | + | let fA = if ((dP > 0)) | |
1041 | 1066 | then [ScriptTransfer(aK, dP, ew)] | |
1042 | 1067 | else nil | |
1043 | - | let | |
1044 | - | let | |
1068 | + | let fR = { | |
1069 | + | let fL = if ((this == aK)) | |
1045 | 1070 | then 0 | |
1046 | 1071 | else dP | |
1047 | 1072 | if (ey) | |
1048 | - | then $Tuple2(-((dJ + | |
1049 | - | else $Tuple2(0, -((dJ + | |
1073 | + | then $Tuple2(-((dJ + fL)), 0) | |
1074 | + | else $Tuple2(0, -((dJ + fL))) | |
1050 | 1075 | } | |
1051 | - | let dl = | |
1052 | - | let dm = | |
1053 | - | let | |
1054 | - | let | |
1055 | - | let db = | |
1056 | - | let | |
1057 | - | if (( | |
1058 | - | then $Tuple2((((cX ++ | |
1076 | + | let dl = fR._1 | |
1077 | + | let dm = fR._2 | |
1078 | + | let fS = dk(dl, dm, 0) | |
1079 | + | let fk = fS._1 | |
1080 | + | let db = fS._2 | |
1081 | + | let fm = do(dj, db) | |
1082 | + | if ((fm == fm)) | |
1083 | + | then $Tuple2((((cX ++ fJ) ++ fA) ++ fk), dJ) | |
1059 | 1084 | else throw("Strict value is not equal to itself.") | |
1060 | 1085 | } | |
1061 | 1086 | else throw("Strict value is not equal to itself.") | |
1062 | 1087 | } | |
1063 | 1088 | else throw("Strict value is not equal to itself.") | |
1064 | 1089 | } | |
1065 | 1090 | else throw("Strict value is not equal to itself.") | |
1066 | 1091 | } | |
1067 | 1092 | else throw("Strict value is not equal to itself.") | |
1068 | 1093 | } | |
1069 | 1094 | ||
1070 | 1095 | ||
1071 | 1096 | ||
1072 | 1097 | @Callable(dB) | |
1073 | 1098 | func get () = { | |
1074 | 1099 | let cI = dA(dB) | |
1075 | - | let | |
1100 | + | let fT = cI._1 | |
1076 | 1101 | let cp = cI._2 | |
1077 | 1102 | let dD = cI._3 | |
1078 | 1103 | let bX = cI._4 | |
1079 | 1104 | let cq = cI._5 | |
1080 | 1105 | let dj = dc(toBigInt(0), toBigInt(0), toBigInt(dD)) | |
1081 | - | let | |
1082 | - | if (( | |
1106 | + | let fU = invoke(aJ, "burn", [dD], [AttachedPayment(bX, dD)]) | |
1107 | + | if ((fU == fU)) | |
1083 | 1108 | then { | |
1084 | - | let | |
1085 | - | let | |
1086 | - | let db = | |
1087 | - | let | |
1088 | - | if (( | |
1089 | - | then (cq ++ | |
1109 | + | let fV = dk(-(fT), -(cp), 0) | |
1110 | + | let fk = fV._1 | |
1111 | + | let db = fV._2 | |
1112 | + | let fm = do(dj, db) | |
1113 | + | if ((fm == fm)) | |
1114 | + | then (cq ++ fk) | |
1090 | 1115 | else throw("Strict value is not equal to itself.") | |
1091 | 1116 | } | |
1092 | 1117 | else throw("Strict value is not equal to itself.") | |
1093 | 1118 | } | |
1094 | 1119 | ||
1095 | 1120 | ||
1096 | 1121 | ||
1097 | 1122 | @Callable(dB) | |
1098 | - | func getNoLess ( | |
1123 | + | func getNoLess (fW,fX) = { | |
1099 | 1124 | let cI = dA(dB) | |
1100 | 1125 | let co = cI._1 | |
1101 | 1126 | let cp = cI._2 | |
1102 | 1127 | let dD = cI._3 | |
1103 | 1128 | let bX = cI._4 | |
1104 | 1129 | let cq = cI._5 | |
1105 | - | if (( | |
1106 | - | then throw(((("noLessThenAmtAsset failed: " + toString(co)) + " < ") + toString( | |
1107 | - | else if (( | |
1108 | - | then throw(((("noLessThenPriceAsset failed: " + toString(cp)) + " < ") + toString( | |
1130 | + | if ((fW > co)) | |
1131 | + | then throw(((("noLessThenAmtAsset failed: " + toString(co)) + " < ") + toString(fW))) | |
1132 | + | else if ((fX > cp)) | |
1133 | + | then throw(((("noLessThenPriceAsset failed: " + toString(cp)) + " < ") + toString(fX))) | |
1109 | 1134 | else { | |
1110 | 1135 | let dj = dc(toBigInt(0), toBigInt(0), toBigInt(dD)) | |
1111 | - | let | |
1112 | - | if (( | |
1136 | + | let fU = invoke(aJ, "burn", [dD], [AttachedPayment(bX, dD)]) | |
1137 | + | if ((fU == fU)) | |
1113 | 1138 | then { | |
1114 | - | let | |
1115 | - | let | |
1116 | - | let db = | |
1117 | - | let | |
1118 | - | if (( | |
1119 | - | then (cq ++ | |
1139 | + | let fY = dk(-(co), -(cp), 0) | |
1140 | + | let fk = fY._1 | |
1141 | + | let db = fY._2 | |
1142 | + | let fm = do(dj, db) | |
1143 | + | if ((fm == fm)) | |
1144 | + | then (cq ++ fk) | |
1120 | 1145 | else throw("Strict value is not equal to itself.") | |
1121 | 1146 | } | |
1122 | 1147 | else throw("Strict value is not equal to itself.") | |
1123 | 1148 | } | |
1124 | 1149 | } | |
1125 | 1150 | ||
1126 | 1151 | ||
1127 | 1152 | ||
1128 | 1153 | @Callable(dB) | |
1129 | 1154 | func unstakeAndGet (dJ) = { | |
1130 | - | let | |
1155 | + | let fZ = if ((size(dB.payments) != 0)) | |
1131 | 1156 | then throw("No payments are expected") | |
1132 | 1157 | else true | |
1133 | - | if (( | |
1158 | + | if ((fZ == fZ)) | |
1134 | 1159 | then { | |
1135 | 1160 | let bM = aN() | |
1136 | 1161 | let bZ = fromBase58String(bM[q]) | |
1137 | 1162 | let dj = dc(toBigInt(0), toBigInt(0), toBigInt(0)) | |
1138 | - | let | |
1139 | - | if (( | |
1163 | + | let fP = invoke(bf, "unstake", [toBase58String(bZ), dJ], nil) | |
1164 | + | if ((fP == fP)) | |
1140 | 1165 | then { | |
1141 | 1166 | let cI = bV(toBase58String(dB.transactionId), toBase58String(bZ), dJ, dB.caller) | |
1142 | 1167 | let co = cI._1 | |
1143 | 1168 | let cp = cI._2 | |
1144 | 1169 | let cc = parseIntValue(cI._9) | |
1145 | 1170 | let cq = cI._10 | |
1146 | - | let | |
1171 | + | let ga = if (if (aL()) | |
1147 | 1172 | then true | |
1148 | 1173 | else (cc == n)) | |
1149 | 1174 | then throw(("Get operation is blocked by admin. Status = " + toString(cc))) | |
1150 | 1175 | else true | |
1151 | - | if (( | |
1176 | + | if ((ga == ga)) | |
1152 | 1177 | then { | |
1153 | - | let | |
1154 | - | if (( | |
1178 | + | let fU = invoke(aJ, "burn", [dJ], [AttachedPayment(bZ, dJ)]) | |
1179 | + | if ((fU == fU)) | |
1155 | 1180 | then { | |
1156 | - | let | |
1157 | - | let | |
1158 | - | let db = | |
1159 | - | let | |
1160 | - | if (( | |
1161 | - | then (cq ++ | |
1181 | + | let gb = dk(-(co), -(cp), 0) | |
1182 | + | let fk = gb._1 | |
1183 | + | let db = gb._2 | |
1184 | + | let fm = do(dj, db) | |
1185 | + | if ((fm == fm)) | |
1186 | + | then (cq ++ fk) | |
1162 | 1187 | else throw("Strict value is not equal to itself.") | |
1163 | 1188 | } | |
1164 | 1189 | else throw("Strict value is not equal to itself.") | |
1165 | 1190 | } | |
1166 | 1191 | else throw("Strict value is not equal to itself.") | |
1167 | 1192 | } | |
1168 | 1193 | else throw("Strict value is not equal to itself.") | |
1169 | 1194 | } | |
1170 | 1195 | else throw("Strict value is not equal to itself.") | |
1171 | 1196 | } | |
1172 | 1197 | ||
1173 | 1198 | ||
1174 | 1199 | ||
1175 | 1200 | @Callable(dB) | |
1176 | - | func unstakeAndGetNoLess ( | |
1177 | - | let | |
1201 | + | func unstakeAndGetNoLess (fO,gc,fX) = { | |
1202 | + | let fF = if (aL()) | |
1178 | 1203 | then true | |
1179 | 1204 | else (aY == n) | |
1180 | - | let ex = [if (!( | |
1205 | + | let ex = [if (!(fF)) | |
1181 | 1206 | then true | |
1182 | 1207 | else throw("get operation is blocked by admin"), if ((size(dB.payments) == 0)) | |
1183 | 1208 | then true | |
1184 | 1209 | else throw("no payments are expected")] | |
1185 | 1210 | if ((ex == ex)) | |
1186 | 1211 | then { | |
1187 | 1212 | let dj = dc(toBigInt(0), toBigInt(0), toBigInt(0)) | |
1188 | - | let | |
1189 | - | if (( | |
1213 | + | let fP = invoke(bf, "unstake", [toBase58String(aZ), fO], nil) | |
1214 | + | if ((fP == fP)) | |
1190 | 1215 | then { | |
1191 | - | let cI = bV(toBase58String(dB.transactionId), toBase58String(aZ), | |
1216 | + | let cI = bV(toBase58String(dB.transactionId), toBase58String(aZ), fO, dB.caller) | |
1192 | 1217 | let co = cI._1 | |
1193 | 1218 | let cp = cI._2 | |
1194 | 1219 | let cq = cI._10 | |
1195 | - | let | |
1220 | + | let gd = [if ((co >= gc)) | |
1196 | 1221 | then true | |
1197 | - | else throw(makeString(["amount asset amount to receive is less than ", toString( | |
1222 | + | else throw(makeString(["amount asset amount to receive is less than ", toString(gc)], "")), if ((cp >= fX)) | |
1198 | 1223 | then true | |
1199 | - | else throw(makeString(["price asset amount to receive is less than ", toString( | |
1200 | - | if (( | |
1224 | + | else throw(makeString(["price asset amount to receive is less than ", toString(fX)], ""))] | |
1225 | + | if ((gd == gd)) | |
1201 | 1226 | then { | |
1202 | - | let | |
1203 | - | if (( | |
1227 | + | let fU = invoke(aJ, "burn", [fO], [AttachedPayment(aZ, fO)]) | |
1228 | + | if ((fU == fU)) | |
1204 | 1229 | then { | |
1205 | - | let | |
1206 | - | let | |
1207 | - | let db = | |
1208 | - | let | |
1209 | - | if (( | |
1210 | - | then (cq ++ | |
1230 | + | let ge = dk(-(co), -(cp), 0) | |
1231 | + | let fk = ge._1 | |
1232 | + | let db = ge._2 | |
1233 | + | let fm = do(dj, db) | |
1234 | + | if ((fm == fm)) | |
1235 | + | then (cq ++ fk) | |
1211 | 1236 | else throw("Strict value is not equal to itself.") | |
1212 | 1237 | } | |
1213 | 1238 | else throw("Strict value is not equal to itself.") | |
1214 | 1239 | } | |
1215 | 1240 | else throw("Strict value is not equal to itself.") | |
1216 | 1241 | } | |
1217 | 1242 | else throw("Strict value is not equal to itself.") | |
1218 | 1243 | } | |
1219 | 1244 | else throw("Strict value is not equal to itself.") | |
1220 | 1245 | } | |
1221 | 1246 | ||
1222 | 1247 | ||
1223 | 1248 | ||
1224 | 1249 | @Callable(dB) | |
1225 | - | func activate ( | |
1250 | + | func activate (gf,gg) = if ((toString(dB.caller) != toString(aJ))) | |
1226 | 1251 | then throw("permissions denied") | |
1227 | - | else $Tuple2([StringEntry(aa(), | |
1252 | + | else $Tuple2([StringEntry(aa(), gf), StringEntry(ab(), gg)], "success") | |
1228 | 1253 | ||
1229 | 1254 | ||
1230 | 1255 | ||
1231 | 1256 | @Callable(dB) | |
1232 | 1257 | func refreshKLp () = { | |
1233 | - | let | |
1234 | - | let | |
1258 | + | let gh = valueOrElse(getInteger(ag), 0) | |
1259 | + | let gi = if (((height - gh) >= aj)) | |
1235 | 1260 | then unit | |
1236 | 1261 | else aG(makeString([toString(aj), " blocks have not passed since the previous call"], "")) | |
1237 | - | if (( | |
1262 | + | if ((gi == gi)) | |
1238 | 1263 | then { | |
1239 | 1264 | let dv = valueOrErrorMessage(parseBigInt(valueOrElse(getString(this, af), "0")), aI("invalid kLp")) | |
1240 | - | let | |
1241 | - | let | |
1242 | - | let db = | |
1265 | + | let gj = dk(0, 0, 0) | |
1266 | + | let gk = gj._1 | |
1267 | + | let db = gj._2 | |
1243 | 1268 | let dn = if ((dv != db)) | |
1244 | - | then | |
1269 | + | then gk | |
1245 | 1270 | else aG("nothing to refresh") | |
1246 | 1271 | $Tuple2(dn, toString(db)) | |
1247 | 1272 | } | |
1248 | 1273 | else throw("Strict value is not equal to itself.") | |
1249 | 1274 | } | |
1250 | 1275 | ||
1251 | 1276 | ||
1252 | 1277 | ||
1253 | 1278 | @Callable(dB) | |
1254 | 1279 | func getPoolConfigWrapperREADONLY () = $Tuple2(nil, aN()) | |
1255 | 1280 | ||
1256 | 1281 | ||
1257 | 1282 | ||
1258 | 1283 | @Callable(dB) | |
1259 | 1284 | func getAccBalanceWrapperREADONLY (bx) = $Tuple2(nil, bw(bx)) | |
1260 | 1285 | ||
1261 | 1286 | ||
1262 | 1287 | ||
1263 | 1288 | @Callable(dB) | |
1264 | 1289 | func calcPricesWrapperREADONLY (bG,bH,bL) = { | |
1265 | 1290 | let bU = bK(bG, bH, bL) | |
1266 | 1291 | $Tuple2(nil, [toString(bU[0]), toString(bU[1]), toString(bU[2])]) | |
1267 | 1292 | } | |
1268 | 1293 | ||
1269 | 1294 | ||
1270 | 1295 | ||
1271 | 1296 | @Callable(dB) | |
1272 | 1297 | func toX18WrapperREADONLY (E,F) = $Tuple2(nil, toString(D(E, F))) | |
1273 | 1298 | ||
1274 | 1299 | ||
1275 | 1300 | ||
1276 | 1301 | @Callable(dB) | |
1277 | 1302 | func fromX18WrapperREADONLY (H,I) = $Tuple2(nil, G(parseBigIntValue(H), I)) | |
1278 | 1303 | ||
1279 | 1304 | ||
1280 | 1305 | ||
1281 | 1306 | @Callable(dB) | |
1282 | 1307 | func calcPriceBigIntWrapperREADONLY (bz,bA) = $Tuple2(nil, toString(by(parseBigIntValue(bz), parseBigIntValue(bA)))) | |
1283 | 1308 | ||
1284 | 1309 | ||
1285 | 1310 | ||
1286 | 1311 | @Callable(dB) | |
1287 | 1312 | func estimatePutOperationWrapperREADONLY (bW,cs,ct,cu,cv,cw,X,cx,cy) = $Tuple2(nil, cr(bW, cs, ct, cu, cv, cw, X, cx, cy)) | |
1288 | 1313 | ||
1289 | 1314 | ||
1290 | 1315 | ||
1291 | 1316 | @Callable(dB) | |
1292 | 1317 | func estimateGetOperationWrapperREADONLY (bW,bX,bY,X) = { | |
1293 | 1318 | let cI = bV(bW, bX, bY, addressFromStringValue(X)) | |
1294 | 1319 | $Tuple2(nil, $Tuple10(cI._1, cI._2, cI._3, cI._4, cI._5, cI._6, cI._7, toString(cI._8), cI._9, cI._10)) | |
1295 | 1320 | } | |
1296 | 1321 | ||
1297 | 1322 | ||
1298 | 1323 | ||
1299 | 1324 | @Callable(dB) | |
1300 | 1325 | func statsREADONLY () = { | |
1301 | 1326 | let bM = aN() | |
1302 | 1327 | let bZ = fromBase58String(bM[q]) | |
1303 | - | let | |
1304 | - | let | |
1328 | + | let gl = bM[r] | |
1329 | + | let gm = bM[s] | |
1305 | 1330 | let cB = bM[v] | |
1306 | 1331 | let cC = bM[w] | |
1307 | 1332 | let bN = parseIntValue(bM[t]) | |
1308 | 1333 | let bO = parseIntValue(bM[u]) | |
1309 | - | let | |
1310 | - | let | |
1311 | - | let | |
1312 | - | let | |
1334 | + | let gn = valueOrErrorMessage(assetInfo(bZ), (("Asset " + toBase58String(bZ)) + " doesn't exist")).quantity | |
1335 | + | let go = bw(gl) | |
1336 | + | let gp = bw(gm) | |
1337 | + | let gq = if ((gn == 0)) | |
1313 | 1338 | then [e, e, e] | |
1314 | - | else bK( | |
1339 | + | else bK(go, gp, gn) | |
1315 | 1340 | let cj = 0 | |
1316 | - | let | |
1317 | - | let | |
1318 | - | let | |
1319 | - | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d", toString( | |
1341 | + | let gr = G(gq[1], b) | |
1342 | + | let gs = G(gq[2], b) | |
1343 | + | let gt = value(getInteger(aJ, au(toString(this)))) | |
1344 | + | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d", toString(go), toString(gp), toString(gn), toString(cj), toString(gr), toString(gs), toString(gt)], j)) | |
1320 | 1345 | } | |
1321 | 1346 | ||
1322 | 1347 | ||
1323 | 1348 | ||
1324 | 1349 | @Callable(dB) | |
1325 | 1350 | func evaluatePutByAmountAssetREADONLY (ct) = { | |
1326 | 1351 | let bM = aN() | |
1327 | 1352 | let bZ = fromBase58String(bM[q]) | |
1328 | 1353 | let cz = bM[r] | |
1329 | 1354 | let ca = fromBase58String(cz) | |
1330 | 1355 | let cA = bM[s] | |
1331 | 1356 | let cb = fromBase58String(cA) | |
1332 | 1357 | let bN = parseIntValue(bM[t]) | |
1333 | 1358 | let bO = parseIntValue(bM[u]) | |
1334 | 1359 | let cc = bM[p] | |
1335 | - | let | |
1336 | - | let | |
1337 | - | let | |
1338 | - | let bI = D( | |
1339 | - | let bJ = D( | |
1340 | - | let ci = if (( | |
1360 | + | let gn = valueOrErrorMessage(assetInfo(bZ), (("Asset " + toBase58String(bZ)) + " doesn't exist")).quantity | |
1361 | + | let go = bw(cz) | |
1362 | + | let gp = bw(cA) | |
1363 | + | let bI = D(go, bN) | |
1364 | + | let bJ = D(gp, bO) | |
1365 | + | let ci = if ((gn == 0)) | |
1341 | 1366 | then e | |
1342 | 1367 | else by(bJ, bI) | |
1343 | 1368 | let cF = D(ct, bN) | |
1344 | 1369 | let cG = fraction(cF, ci, d) | |
1345 | 1370 | let cv = G(cG, bO) | |
1346 | 1371 | let dH = cr("", 500000, ct, ca, cv, cb, "", true, false) | |
1347 | 1372 | let cQ = dH._1 | |
1348 | - | let | |
1373 | + | let gu = dH._3 | |
1349 | 1374 | let ce = dH._4 | |
1350 | 1375 | let cg = dH._5 | |
1351 | 1376 | let cd = dH._6 | |
1352 | 1377 | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d", toString(cQ), toString(G(ci, b)), toString(ce), toString(cg), toString(cd), cc, toString(ct), toString(cv)], j)) | |
1353 | 1378 | } | |
1354 | 1379 | ||
1355 | 1380 | ||
1356 | 1381 | ||
1357 | 1382 | @Callable(dB) | |
1358 | 1383 | func evaluatePutByPriceAssetREADONLY (cv) = { | |
1359 | 1384 | let bM = aN() | |
1360 | 1385 | let bZ = fromBase58String(bM[q]) | |
1361 | 1386 | let cz = bM[r] | |
1362 | 1387 | let ca = fromBase58String(cz) | |
1363 | 1388 | let cA = bM[s] | |
1364 | 1389 | let cb = fromBase58String(cA) | |
1365 | 1390 | let bN = parseIntValue(bM[t]) | |
1366 | 1391 | let bO = parseIntValue(bM[u]) | |
1367 | 1392 | let cc = bM[p] | |
1368 | - | let | |
1369 | - | let | |
1370 | - | let | |
1371 | - | let | |
1372 | - | let | |
1373 | - | let ci = if (( | |
1393 | + | let gn = valueOrErrorMessage(assetInfo(bZ), (("Asset " + toBase58String(bZ)) + " doesn't exist")).quantity | |
1394 | + | let gv = bw(cz) | |
1395 | + | let gw = bw(cA) | |
1396 | + | let gx = D(gv, bN) | |
1397 | + | let gy = D(gw, bO) | |
1398 | + | let ci = if ((gn == 0)) | |
1374 | 1399 | then e | |
1375 | - | else by( | |
1400 | + | else by(gy, gx) | |
1376 | 1401 | let cG = D(cv, bO) | |
1377 | 1402 | let cF = fraction(cG, d, ci) | |
1378 | 1403 | let ct = G(cF, bN) | |
1379 | 1404 | let dH = cr("", 500000, ct, ca, cv, cb, "", true, false) | |
1380 | 1405 | let cQ = dH._1 | |
1381 | - | let | |
1406 | + | let gu = dH._3 | |
1382 | 1407 | let ce = dH._4 | |
1383 | 1408 | let cg = dH._5 | |
1384 | 1409 | let cd = dH._6 | |
1385 | 1410 | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d", toString(cQ), toString(G(ci, b)), toString(ce), toString(cg), toString(cd), cc, toString(ct), toString(cv)], j)) | |
1386 | 1411 | } | |
1387 | 1412 | ||
1388 | 1413 | ||
1389 | 1414 | ||
1390 | 1415 | @Callable(dB) | |
1391 | - | func evaluateGetREADONLY ( | |
1392 | - | let cI = bV("", | |
1416 | + | func evaluateGetREADONLY (gz,gA) = { | |
1417 | + | let cI = bV("", gz, gA, this) | |
1393 | 1418 | let co = cI._1 | |
1394 | 1419 | let cp = cI._2 | |
1395 | 1420 | let ce = cI._5 | |
1396 | 1421 | let cg = cI._6 | |
1397 | 1422 | let cd = cI._7 | |
1398 | 1423 | let cj = cI._8 | |
1399 | 1424 | let cc = parseIntValue(cI._9) | |
1400 | 1425 | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d", toString(co), toString(cp), toString(ce), toString(cg), toString(cd), toString(cj), toString(cc)], j)) | |
1401 | 1426 | } | |
1402 | 1427 | ||
1403 | 1428 | ||
1404 | - | @Verifier( | |
1405 | - | func | |
1406 | - | let | |
1429 | + | @Verifier(gB) | |
1430 | + | func gC () = { | |
1431 | + | let gD = { | |
1407 | 1432 | let dM = eO() | |
1408 | 1433 | if ($isInstanceOf(dM, "ByteVector")) | |
1409 | 1434 | then { | |
1410 | 1435 | let eS = dM | |
1411 | 1436 | eS | |
1412 | 1437 | } | |
1413 | 1438 | else if ($isInstanceOf(dM, "Unit")) | |
1414 | - | then | |
1439 | + | then gB.senderPublicKey | |
1415 | 1440 | else throw("Match error") | |
1416 | 1441 | } | |
1417 | - | let dM = | |
1442 | + | let dM = gB | |
1418 | 1443 | if ($isInstanceOf(dM, "Order")) | |
1419 | 1444 | then { | |
1420 | 1445 | let dr = dM | |
1421 | - | let | |
1446 | + | let gE = aM() | |
1422 | 1447 | let az = dq(dr) | |
1423 | 1448 | let aA = sigVerify(dr.bodyBytes, dr.proofs[0], dr.senderPublicKey) | |
1424 | - | let aB = sigVerify(dr.bodyBytes, dr.proofs[1], | |
1449 | + | let aB = sigVerify(dr.bodyBytes, dr.proofs[1], gE) | |
1425 | 1450 | if (if (if (az) | |
1426 | 1451 | then aA | |
1427 | 1452 | else false) | |
1428 | 1453 | then aB | |
1429 | 1454 | else false) | |
1430 | 1455 | then true | |
1431 | 1456 | else ay(az, aA, aB) | |
1432 | 1457 | } | |
1433 | 1458 | else if ($isInstanceOf(dM, "SetScriptTransaction")) | |
1434 | 1459 | then { | |
1435 | 1460 | let eP = dM | |
1436 | - | let | |
1437 | - | let | |
1438 | - | let | |
1439 | - | if (if (( | |
1440 | - | then ( | |
1461 | + | let gF = blake2b256(value(eP.script)) | |
1462 | + | let gG = fromBase64String(value(getString(aJ, aw()))) | |
1463 | + | let gH = scriptHash(this) | |
1464 | + | if (if ((gG == gF)) | |
1465 | + | then (gH != gF) | |
1441 | 1466 | else false) | |
1442 | 1467 | then true | |
1443 | - | else sigVerify( | |
1468 | + | else sigVerify(gB.bodyBytes, gB.proofs[0], gD) | |
1444 | 1469 | } | |
1445 | - | else sigVerify( | |
1470 | + | else sigVerify(gB.bodyBytes, gB.proofs[0], gD) | |
1446 | 1471 | } | |
1447 | 1472 |
github/deemru/w8io/169f3d6 330.68 ms ◑