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