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