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