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