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