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