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