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