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