tx · 2XJ5QrUeS6abmdoaHQ3TfaWoYnVR8NEsE27VYsu7FbYz 3NAefciWv6f9fWvEXdGgpHfanJFG8HqfjuT: -0.04000000 Waves 2023.02.13 10:22 [2447526] smart account 3NAefciWv6f9fWvEXdGgpHfanJFG8HqfjuT > SELF 0.00000000 Waves
{ "type": 13, "id": "2XJ5QrUeS6abmdoaHQ3TfaWoYnVR8NEsE27VYsu7FbYz", "fee": 4000000, "feeAssetId": null, "timestamp": 1676273010697, "version": 2, "chainId": 84, "sender": "3NAefciWv6f9fWvEXdGgpHfanJFG8HqfjuT", "senderPublicKey": "D1BL65meykxFZTCuq7jq9HSGLLnWvQamQPUNrguW5w39", "proofs": [ "3qJ9wJnJWRgNwkyVBbWmVfmPsp5Hg26EVSYnatKHjK2waKVQ2TfVKwFWCxhtr5VTiNUsxrX4A3fbe3RcdWWoHobM" ], "script": "base64:BgLYKggCEgQKAgEEEgYKBAEEAQgSAwoBCBIDCgEIEgASBAoCAQQSBAoCAQQSAwoBARIAEgQKAggBEgASBAoCCAESBAoCCAESBAoCAQESAwoBARIFCgMBAQESBQoDAQgBEgQKAgEIEgQKAgEIEgQKAggIEgQKAggIEgQKAggBEgASAwoBCBIFCgMBAQESBAoCCAESBAoCAQESBAoCCAgSCwoJCAEBAgECCAQEEgYKBAgIAQgiBnNjYWxlOCIMc2NhbGU4QmlnSW50IgdzY2FsZTE4Igp6ZXJvQmlnSW50IgRiaWcwIgRiaWcxIgRiaWcyIgRiaWczIgRiaWc0IgpzbGlwcGFnZTREIgt3YXZlc1N0cmluZyIFQW11bHQiBURjb252IgNTRVAiBUVNUFRZIgpQb29sQWN0aXZlIgpQb29sUHV0RGlzIg5Qb29sTWF0Y2hlckRpcyIMUG9vbFNodXRkb3duIg5pZHhQb29sQWRkcmVzcyIJaWR4UG9vbFN0IglpZHhMUEFzSWQiCWlkeEFtQXNJZCIJaWR4UHJBc0lkIgtpZHhBbXRBc0RjbSINaWR4UHJpY2VBc0RjbSILaWR4SUF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S2V5BAJhSQkA9AMDCAUCZVoJYm9keUJ5dGVzCQCRAwIIBQJlWgZwcm9vZnMAAQUCaWoDAwMFAmFGBQJhSAcFAmFJBwYJAQJhRQQFAmFGBQJhRwUCYUgFAmFJAwkAAQIFAmdsAhRTZXRTY3JpcHRUcmFuc2FjdGlvbgQCY0MFAmdsAwkA9AMDCAUCaWcJYm9keUJ5dGVzCQCRAwIIBQJpZwZwcm9vZnMAAAUCaWkGBAJpbAkA9gMBCQEFdmFsdWUBCAUCY0MGc2NyaXB0BAJpbQkA2wQBCQEFdmFsdWUBCQCdCAIFAmFRCQECYUMABAJpbgkA8QcBBQR0aGlzAwkAAAIFAmltBQJpbAkBAiE9AgUCaW4FAmlsBwkA9AMDCAUCaWcJYm9keUJ5dGVzCQCRAwIIBQJpZwZwcm9vZnMAAAUCaWnguC5S", "height": 2447526, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: Du9kDYGkFo53oLCaDowhUFG4VKpPvt8CyxJW6hZH87gs Next: 2vZHFhDbkCCjV4QTWnhMjjpBiGJjeB1Sqb7A2VcJShT1 Diff:
Old | New | Differences | |
---|---|---|---|
1004 | 1004 | if ((gG == gG)) | |
1005 | 1005 | then { | |
1006 | 1006 | let fk = value(cP.payments[0]) | |
1007 | - | let gH = if ((fk.assetId == unit)) | |
1008 | - | then toBase58String(toBytes("WAVES")) | |
1009 | - | else toBase58String(value(fk.assetId)) | |
1007 | + | let gH = be(fk.assetId) | |
1010 | 1008 | let gI = if ((gs == false)) | |
1011 | 1009 | then { | |
1012 | 1010 | let gy = aJ(this, ak()) |
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) = { | |
956 | 956 | let gx = if ((gs == false)) | |
957 | 957 | then { | |
958 | 958 | let gy = aJ(this, ak()) | |
959 | 959 | let gt = (toBigInt(bN(aJ(this, aj()))) + toBigInt(gw)) | |
960 | 960 | $Tuple2(gy, gt) | |
961 | 961 | } | |
962 | 962 | else { | |
963 | 963 | let gy = aJ(this, aj()) | |
964 | 964 | let gt = (toBigInt(bN(aJ(this, ak()))) + toBigInt(gw)) | |
965 | 965 | $Tuple2(gy, gt) | |
966 | 966 | } | |
967 | 967 | let gy = gx._1 | |
968 | 968 | let gt = gx._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 gz = ((toBigInt(bN(gy)) - eB) - toBigInt(1)) | |
976 | 976 | let gA = max([0, toInt(gz)]) | |
977 | 977 | let gB = if ((gs == false)) | |
978 | 978 | then [(toBigInt(bN(dj)) + toBigInt(gw)), (toBigInt(bN(dk)) - gz)] | |
979 | 979 | else [(toBigInt(bN(dj)) - gz), (toBigInt(bN(dk)) + toBigInt(gw))] | |
980 | 980 | let gC = cy(gB) | |
981 | 981 | let dY = if ((gC >= et)) | |
982 | 982 | then true | |
983 | 983 | else throw(makeString(["new D is fewer error", toString(et), toString(gC)], "__")) | |
984 | 984 | if ((dY == dY)) | |
985 | 985 | then $Tuple2(nil, gA) | |
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,gD,gE) = { | |
993 | 993 | let gF = { | |
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 gG = [if ((value(cP.payments[0]).amount >= gw)) | |
1000 | 1000 | then true | |
1001 | 1001 | else aN("Wrong amount"), if ((cP.caller == addressFromStringValue(gF))) | |
1002 | 1002 | then true | |
1003 | 1003 | else aN("Permission denied")] | |
1004 | 1004 | if ((gG == gG)) | |
1005 | 1005 | then { | |
1006 | 1006 | let fk = value(cP.payments[0]) | |
1007 | - | let gH = if ((fk.assetId == unit)) | |
1008 | - | then toBase58String(toBytes("WAVES")) | |
1009 | - | else toBase58String(value(fk.assetId)) | |
1007 | + | let gH = be(fk.assetId) | |
1010 | 1008 | let gI = if ((gs == false)) | |
1011 | 1009 | then { | |
1012 | 1010 | let gy = aJ(this, ak()) | |
1013 | 1011 | let gt = (bN(gH) - value(cP.payments[0]).amount) | |
1014 | 1012 | $Tuple2(gy, gt) | |
1015 | 1013 | } | |
1016 | 1014 | else { | |
1017 | 1015 | let gy = aJ(this, aj()) | |
1018 | 1016 | let gt = (bN(gH) - value(cP.payments[0]).amount) | |
1019 | 1017 | $Tuple2(gy, gt) | |
1020 | 1018 | } | |
1021 | 1019 | let gy = gI._1 | |
1022 | 1020 | let gt = gI._2 | |
1023 | 1021 | let bg = aY() | |
1024 | 1022 | let dj = bg[w] | |
1025 | 1023 | let dk = bg[x] | |
1026 | 1024 | let cz = if ((gs == false)) | |
1027 | 1025 | then [(toBigInt(bN(dj)) - toBigInt(value(cP.payments[0]).amount)), toBigInt(bN(dk))] | |
1028 | 1026 | else [toBigInt(bN(dj)), (toBigInt(bN(dk)) - toBigInt(value(cP.payments[0]).amount))] | |
1029 | 1027 | let et = cy(cz) | |
1030 | 1028 | let eB = gr(gs, et, toBigInt(0)) | |
1031 | 1029 | let gz = ((toBigInt(bN(gy)) - eB) - toBigInt(1)) | |
1032 | 1030 | let gA = max([0, toInt(gz)]) | |
1033 | 1031 | let gJ = if ((gA >= gD)) | |
1034 | 1032 | then true | |
1035 | 1033 | else throw("Exchange result is fewer coins than expected") | |
1036 | 1034 | if ((gJ == gJ)) | |
1037 | 1035 | then { | |
1038 | 1036 | let gB = if ((gs == false)) | |
1039 | 1037 | then [toBigInt(bN(dj)), (toBigInt(bN(dk)) - gz)] | |
1040 | 1038 | else [(toBigInt(bN(dj)) - gz), toBigInt(bN(dk))] | |
1041 | 1039 | let gC = cy(gB) | |
1042 | 1040 | let dY = if ((gC >= et)) | |
1043 | 1041 | then true | |
1044 | 1042 | else throw("new D is fewer error") | |
1045 | 1043 | if ((dY == dY)) | |
1046 | 1044 | then $Tuple2([ScriptTransfer(addressFromStringValue(gE), gA, bc(gy))], gA) | |
1047 | 1045 | else throw("Strict value is not equal to itself.") | |
1048 | 1046 | } | |
1049 | 1047 | else throw("Strict value is not equal to itself.") | |
1050 | 1048 | } | |
1051 | 1049 | else throw("Strict value is not equal to itself.") | |
1052 | 1050 | } | |
1053 | 1051 | ||
1054 | 1052 | ||
1055 | 1053 | ||
1056 | 1054 | @Callable(cP) | |
1057 | 1055 | func constructor (Y) = { | |
1058 | 1056 | let ex = gq(cP) | |
1059 | 1057 | if ((ex == ex)) | |
1060 | 1058 | then [StringEntry(Y(), Y)] | |
1061 | 1059 | else throw("Strict value is not equal to itself.") | |
1062 | 1060 | } | |
1063 | 1061 | ||
1064 | 1062 | ||
1065 | 1063 | ||
1066 | 1064 | @Callable(cP) | |
1067 | 1065 | func setManager (gK) = { | |
1068 | 1066 | let ex = gq(cP) | |
1069 | 1067 | if ((ex == ex)) | |
1070 | 1068 | then { | |
1071 | 1069 | let gL = fromBase58String(gK) | |
1072 | 1070 | if ((gL == gL)) | |
1073 | 1071 | then [StringEntry(aa(), gK)] | |
1074 | 1072 | else throw("Strict value is not equal to itself.") | |
1075 | 1073 | } | |
1076 | 1074 | else throw("Strict value is not equal to itself.") | |
1077 | 1075 | } | |
1078 | 1076 | ||
1079 | 1077 | ||
1080 | 1078 | ||
1081 | 1079 | @Callable(cP) | |
1082 | 1080 | func confirmManager () = { | |
1083 | 1081 | let cu = gm() | |
1084 | 1082 | let gM = if (isDefined(cu)) | |
1085 | 1083 | then true | |
1086 | 1084 | else throw("No pending manager") | |
1087 | 1085 | if ((gM == gM)) | |
1088 | 1086 | then { | |
1089 | 1087 | let gN = if ((cP.callerPublicKey == value(cu))) | |
1090 | 1088 | then true | |
1091 | 1089 | else throw("You are not pending manager") | |
1092 | 1090 | if ((gN == gN)) | |
1093 | 1091 | then [StringEntry(Z(), toBase58String(value(cu))), DeleteEntry(aa())] | |
1094 | 1092 | else throw("Strict value is not equal to itself.") | |
1095 | 1093 | } | |
1096 | 1094 | else throw("Strict value is not equal to itself.") | |
1097 | 1095 | } | |
1098 | 1096 | ||
1099 | 1097 | ||
1100 | 1098 | ||
1101 | 1099 | @Callable(cP) | |
1102 | 1100 | func put (gO,gP) = { | |
1103 | 1101 | let gQ = bs() | |
1104 | 1102 | let gR = valueOrErrorMessage(addressFromString(gQ[C]), "Wr st addr") | |
1105 | 1103 | let gS = valueOrErrorMessage(addressFromString(gQ[E]), "Wr sl addr") | |
1106 | 1104 | if ((0 > gO)) | |
1107 | 1105 | then throw("Wrong slippage") | |
1108 | 1106 | else if ((size(cP.payments) != 2)) | |
1109 | 1107 | then throw("2 pmnts expd") | |
1110 | 1108 | else { | |
1111 | 1109 | let gT = toBigInt(value(cP.payments[0]).amount) | |
1112 | 1110 | let gU = toBigInt(value(cP.payments[1]).amount) | |
1113 | 1111 | let eO = (toBigInt(bN(be(bm))) - gT) | |
1114 | 1112 | if ((eO == eO)) | |
1115 | 1113 | then { | |
1116 | 1114 | let eP = (toBigInt(bN(be(bn))) - gU) | |
1117 | 1115 | if ((eP == eP)) | |
1118 | 1116 | then { | |
1119 | 1117 | let eQ = toBigInt(value(assetInfo(bl)).quantity) | |
1120 | 1118 | if ((eQ == eQ)) | |
1121 | 1119 | then { | |
1122 | 1120 | let eR = eK(gT, gU, toBigInt(0)) | |
1123 | 1121 | if ((eR == eR)) | |
1124 | 1122 | then { | |
1125 | 1123 | let gV = fl(toString(cP.caller), toBase58String(cP.transactionId), AttachedPayment(value(cP.payments[0]).assetId, value(cP.payments[0]).amount), cP.payments[1], gO, true, false, true, 0, "") | |
1126 | 1124 | let el = gV._2 | |
1127 | 1125 | let gW = gV._7 | |
1128 | 1126 | let dB = gV._9 | |
1129 | 1127 | let em = gV._10 | |
1130 | 1128 | let en = gV._11 | |
1131 | 1129 | let dj = gV._12 | |
1132 | 1130 | let dk = gV._13 | |
1133 | 1131 | let dX = invoke(aQ, "emit", [el], nil) | |
1134 | 1132 | if ((dX == dX)) | |
1135 | 1133 | then { | |
1136 | 1134 | let gX = { | |
1137 | 1135 | let gl = dX | |
1138 | 1136 | if ($isInstanceOf(gl, "Address")) | |
1139 | 1137 | then { | |
1140 | 1138 | let gY = gl | |
1141 | 1139 | invoke(gY, "emit", [el], nil) | |
1142 | 1140 | } | |
1143 | 1141 | else unit | |
1144 | 1142 | } | |
1145 | 1143 | if ((gX == gX)) | |
1146 | 1144 | then { | |
1147 | 1145 | let gZ = if ((em > 0)) | |
1148 | 1146 | then invoke(gS, "put", nil, [AttachedPayment(dj, em)]) | |
1149 | 1147 | else nil | |
1150 | 1148 | if ((gZ == gZ)) | |
1151 | 1149 | then { | |
1152 | 1150 | let ha = if ((en > 0)) | |
1153 | 1151 | then invoke(gS, "put", nil, [AttachedPayment(dk, en)]) | |
1154 | 1152 | else nil | |
1155 | 1153 | if ((ha == ha)) | |
1156 | 1154 | then { | |
1157 | 1155 | let hb = if (gP) | |
1158 | 1156 | then { | |
1159 | 1157 | let hc = invoke(gR, "stake", nil, [AttachedPayment(gW, el)]) | |
1160 | 1158 | if ((hc == hc)) | |
1161 | 1159 | then nil | |
1162 | 1160 | else throw("Strict value is not equal to itself.") | |
1163 | 1161 | } | |
1164 | 1162 | else [ScriptTransfer(cP.caller, el, gW)] | |
1165 | 1163 | let hd = eS(0, 0, 0) | |
1166 | 1164 | let gi = hd._1 | |
1167 | 1165 | let eJ = hd._2 | |
1168 | 1166 | let he = if ((eJ >= eR)) | |
1169 | 1167 | then true | |
1170 | 1168 | else aN(makeString(["updated DLp lower than current DLp", toString(eO), toString(eP), toString(eQ), toString(eR), toString(eJ), toString(em), toString(en)], " ")) | |
1171 | 1169 | if ((he == he)) | |
1172 | 1170 | then { | |
1173 | 1171 | let hf = value(assetInfo(bl)).quantity | |
1174 | 1172 | if ((hf == hf)) | |
1175 | 1173 | then ((dB ++ hb) ++ gi) | |
1176 | 1174 | else throw("Strict value is not equal to itself.") | |
1177 | 1175 | } | |
1178 | 1176 | else throw("Strict value is not equal to itself.") | |
1179 | 1177 | } | |
1180 | 1178 | else throw("Strict value is not equal to itself.") | |
1181 | 1179 | } | |
1182 | 1180 | else throw("Strict value is not equal to itself.") | |
1183 | 1181 | } | |
1184 | 1182 | else throw("Strict value is not equal to itself.") | |
1185 | 1183 | } | |
1186 | 1184 | else throw("Strict value is not equal to itself.") | |
1187 | 1185 | } | |
1188 | 1186 | else throw("Strict value is not equal to itself.") | |
1189 | 1187 | } | |
1190 | 1188 | else throw("Strict value is not equal to itself.") | |
1191 | 1189 | } | |
1192 | 1190 | else throw("Strict value is not equal to itself.") | |
1193 | 1191 | } | |
1194 | 1192 | else throw("Strict value is not equal to itself.") | |
1195 | 1193 | } | |
1196 | 1194 | } | |
1197 | 1195 | ||
1198 | 1196 | ||
1199 | 1197 | ||
1200 | 1198 | @Callable(cP) | |
1201 | 1199 | func putOneTknV2 (fM,gP) = { | |
1202 | 1200 | let hg = { | |
1203 | 1201 | let aS = invoke(aQ, "isPoolOneTokenOperationsDisabledREADONLY", [toString(this)], nil) | |
1204 | 1202 | if ($isInstanceOf(aS, "Boolean")) | |
1205 | 1203 | then aS | |
1206 | 1204 | else throw(($getType(aS) + " couldn't be cast to Boolean")) | |
1207 | 1205 | } | |
1208 | 1206 | let hh = if (if (if (aV()) | |
1209 | 1207 | then true | |
1210 | 1208 | else (bk == q)) | |
1211 | 1209 | then true | |
1212 | 1210 | else (bk == s)) | |
1213 | 1211 | then true | |
1214 | 1212 | else hg | |
1215 | 1213 | let gG = [if (if (!(hh)) | |
1216 | 1214 | then true | |
1217 | 1215 | else go(cP)) | |
1218 | 1216 | then true | |
1219 | 1217 | else aN("put operation is blocked by admin"), if ((size(cP.payments) == 1)) | |
1220 | 1218 | then true | |
1221 | 1219 | else aN("exactly 1 payment are expected")] | |
1222 | 1220 | if ((gG == gG)) | |
1223 | 1221 | then { | |
1224 | 1222 | let dj = toBase58String(value(bm)) | |
1225 | 1223 | let dk = toBase58String(value(bn)) | |
1226 | 1224 | let di = bl | |
1227 | 1225 | let fQ = bo | |
1228 | 1226 | let fR = bp | |
1229 | 1227 | let dh = if ((cP.caller == this)) | |
1230 | 1228 | then cP.originCaller | |
1231 | 1229 | else cP.caller | |
1232 | 1230 | let fk = value(cP.payments[0]) | |
1233 | 1231 | let df = toBase58String(value(fk.assetId)) | |
1234 | 1232 | let dL = fk.amount | |
1235 | 1233 | let eR = if ((fk.assetId == bm)) | |
1236 | 1234 | then eK(toBigInt(dL), toBigInt(0), toBigInt(0)) | |
1237 | 1235 | else eK(toBigInt(0), toBigInt(dL), toBigInt(0)) | |
1238 | 1236 | if ((eR == eR)) | |
1239 | 1237 | then { | |
1240 | 1238 | let hi = fp(dL, df, toString(dh), toBase58String(cP.transactionId), true) | |
1241 | 1239 | if ((hi == hi)) | |
1242 | 1240 | then { | |
1243 | 1241 | let cx = hi._3 | |
1244 | 1242 | let dB = hi._2 | |
1245 | 1243 | let hj = hi._1 | |
1246 | 1244 | let el = if (if ((fM > 0)) | |
1247 | 1245 | then (fM > hj) | |
1248 | 1246 | else false) | |
1249 | 1247 | then aN(makeString(["amount to receive is less than ", toString(fM)], "")) | |
1250 | 1248 | else hj | |
1251 | 1249 | let gV = invoke(aQ, "emit", [el], nil) | |
1252 | 1250 | if ((gV == gV)) | |
1253 | 1251 | then { | |
1254 | 1252 | let gX = { | |
1255 | 1253 | let gl = gV | |
1256 | 1254 | if ($isInstanceOf(gl, "Address")) | |
1257 | 1255 | then { | |
1258 | 1256 | let gY = gl | |
1259 | 1257 | invoke(gY, "emit", [el], nil) | |
1260 | 1258 | } | |
1261 | 1259 | else unit | |
1262 | 1260 | } | |
1263 | 1261 | if ((gX == gX)) | |
1264 | 1262 | then { | |
1265 | 1263 | let hb = if (gP) | |
1266 | 1264 | then { | |
1267 | 1265 | let hc = invoke(bu, "stake", nil, [AttachedPayment(di, el)]) | |
1268 | 1266 | if ((hc == hc)) | |
1269 | 1267 | then nil | |
1270 | 1268 | else throw("Strict value is not equal to itself.") | |
1271 | 1269 | } | |
1272 | 1270 | else [ScriptTransfer(cP.caller, el, di)] | |
1273 | 1271 | let gc = if ((cx > 0)) | |
1274 | 1272 | then [ScriptTransfer(aX, cx, fromBase58String(df))] | |
1275 | 1273 | else nil | |
1276 | 1274 | let hk = if ((this == aX)) | |
1277 | 1275 | then $Tuple2(0, 0) | |
1278 | 1276 | else { | |
1279 | 1277 | let hl = if ((fk.assetId == bm)) | |
1280 | 1278 | then true | |
1281 | 1279 | else false | |
1282 | 1280 | if (hl) | |
1283 | 1281 | then $Tuple2(-(cx), 0) | |
1284 | 1282 | else $Tuple2(0, -(cx)) | |
1285 | 1283 | } | |
1286 | 1284 | let eT = hk._1 | |
1287 | 1285 | let eU = hk._2 | |
1288 | 1286 | let hm = eS(eT, eU, 0) | |
1289 | 1287 | let gi = hm._1 | |
1290 | 1288 | let eJ = hm._2 | |
1291 | 1289 | let gj = eW(eR, eJ) | |
1292 | 1290 | if ((gj == gj)) | |
1293 | 1291 | then $Tuple2((((dB ++ hb) ++ gc) ++ gi), el) | |
1294 | 1292 | else throw("Strict value is not equal to itself.") | |
1295 | 1293 | } | |
1296 | 1294 | else throw("Strict value is not equal to itself.") | |
1297 | 1295 | } | |
1298 | 1296 | else throw("Strict value is not equal to itself.") | |
1299 | 1297 | } | |
1300 | 1298 | else throw("Strict value is not equal to itself.") | |
1301 | 1299 | } | |
1302 | 1300 | else throw("Strict value is not equal to itself.") | |
1303 | 1301 | } | |
1304 | 1302 | else throw("Strict value is not equal to itself.") | |
1305 | 1303 | } | |
1306 | 1304 | ||
1307 | 1305 | ||
1308 | 1306 | ||
1309 | 1307 | @Callable(cP) | |
1310 | 1308 | func putForFree (hn) = if ((0 > hn)) | |
1311 | 1309 | then throw("Wrong slpg") | |
1312 | 1310 | else if ((size(cP.payments) != 2)) | |
1313 | 1311 | then throw("2 pmnts expd") | |
1314 | 1312 | else { | |
1315 | 1313 | let ho = fl(toString(cP.caller), toBase58String(cP.transactionId), AttachedPayment(value(cP.payments[0]).assetId, value(cP.payments[0]).amount), cP.payments[1], hn, false, false, true, 0, "") | |
1316 | 1314 | let dB = ho._9 | |
1317 | 1315 | let gT = toBigInt(value(cP.payments[0]).amount) | |
1318 | 1316 | let gU = toBigInt(value(cP.payments[1]).amount) | |
1319 | 1317 | let eR = eK(gT, gU, toBigInt(0)) | |
1320 | 1318 | if ((eR == eR)) | |
1321 | 1319 | then { | |
1322 | 1320 | let hp = eS(0, 0, 0) | |
1323 | 1321 | let gi = hp._1 | |
1324 | 1322 | let eJ = hp._2 | |
1325 | 1323 | let gj = eW(eR, eJ) | |
1326 | 1324 | if ((gj == gj)) | |
1327 | 1325 | then (dB ++ gi) | |
1328 | 1326 | else throw("Strict value is not equal to itself.") | |
1329 | 1327 | } | |
1330 | 1328 | else throw("Strict value is not equal to itself.") | |
1331 | 1329 | } | |
1332 | 1330 | ||
1333 | 1331 | ||
1334 | 1332 | ||
1335 | 1333 | @Callable(cP) | |
1336 | 1334 | func get () = { | |
1337 | 1335 | let eR = eK(toBigInt(0), toBigInt(0), toBigInt(0)) | |
1338 | 1336 | if ((eR == eR)) | |
1339 | 1337 | then { | |
1340 | 1338 | let dX = fj(cP) | |
1341 | 1339 | let hq = dX._1 | |
1342 | 1340 | let dA = dX._2 | |
1343 | 1341 | let dL = dX._3 | |
1344 | 1342 | let df = dX._4 | |
1345 | 1343 | let dB = dX._5 | |
1346 | 1344 | let ey = invoke(aQ, "burn", [dL], [AttachedPayment(df, dL)]) | |
1347 | 1345 | if ((ey == ey)) | |
1348 | 1346 | then { | |
1349 | 1347 | let hr = eS(-(hq), -(dA), 0) | |
1350 | 1348 | let gi = hr._1 | |
1351 | 1349 | let eJ = hr._2 | |
1352 | 1350 | let gj = eW(eR, eJ) | |
1353 | 1351 | if ((gj == gj)) | |
1354 | 1352 | then (dB ++ gi) | |
1355 | 1353 | else throw("Strict value is not equal to itself.") | |
1356 | 1354 | } | |
1357 | 1355 | else throw("Strict value is not equal to itself.") | |
1358 | 1356 | } | |
1359 | 1357 | else throw("Strict value is not equal to itself.") | |
1360 | 1358 | } | |
1361 | 1359 | ||
1362 | 1360 | ||
1363 | 1361 | ||
1364 | 1362 | @Callable(cP) | |
1365 | 1363 | func getOneTknV2 (fL,fM) = { | |
1366 | 1364 | let hg = { | |
1367 | 1365 | let aS = invoke(aQ, "isPoolOneTokenOperationsDisabledREADONLY", [toString(this)], nil) | |
1368 | 1366 | if ($isInstanceOf(aS, "Boolean")) | |
1369 | 1367 | then aS | |
1370 | 1368 | else throw(($getType(aS) + " couldn't be cast to Boolean")) | |
1371 | 1369 | } | |
1372 | 1370 | let hs = if (if (aV()) | |
1373 | 1371 | then true | |
1374 | 1372 | else (bk == s)) | |
1375 | 1373 | then true | |
1376 | 1374 | else hg | |
1377 | 1375 | let gG = [if (if (!(hs)) | |
1378 | 1376 | then true | |
1379 | 1377 | else go(cP)) | |
1380 | 1378 | then true | |
1381 | 1379 | else aN("get operation is blocked by admin"), if ((size(cP.payments) == 1)) | |
1382 | 1380 | then true | |
1383 | 1381 | else aN("exactly 1 payment are expected")] | |
1384 | 1382 | if ((gG == gG)) | |
1385 | 1383 | then { | |
1386 | 1384 | let ht = fK(fL, fM, cP.payments, cP.caller, cP.originCaller, cP.transactionId) | |
1387 | 1385 | let dB = ht._1 | |
1388 | 1386 | let fV = ht._2 | |
1389 | 1387 | $Tuple2(dB, fV) | |
1390 | 1388 | } | |
1391 | 1389 | else throw("Strict value is not equal to itself.") | |
1392 | 1390 | } | |
1393 | 1391 | ||
1394 | 1392 | ||
1395 | 1393 | ||
1396 | 1394 | @Callable(cP) | |
1397 | 1395 | func refreshDLp () = { | |
1398 | 1396 | let hu = valueOrElse(getInteger(aq), 0) | |
1399 | 1397 | let hv = if (((height - hu) >= at)) | |
1400 | 1398 | then unit | |
1401 | 1399 | else aN(makeString([toString(at), " blocks have not passed since the previous call"], "")) | |
1402 | 1400 | if ((hv == hv)) | |
1403 | 1401 | then { | |
1404 | 1402 | let fd = valueOrErrorMessage(parseBigInt(valueOrElse(getString(this, ap), "0")), aP("invalid dLp")) | |
1405 | 1403 | let hw = eS(0, 0, 0) | |
1406 | 1404 | let hx = hw._1 | |
1407 | 1405 | let eJ = hw._2 | |
1408 | 1406 | let eV = if ((fd != eJ)) | |
1409 | 1407 | then hx | |
1410 | 1408 | else aN("nothing to refresh") | |
1411 | 1409 | $Tuple2(eV, toString(eJ)) | |
1412 | 1410 | } | |
1413 | 1411 | else throw("Strict value is not equal to itself.") | |
1414 | 1412 | } | |
1415 | 1413 | ||
1416 | 1414 | ||
1417 | 1415 | ||
1418 | 1416 | @Callable(cP) | |
1419 | 1417 | func getOneTknV2READONLY (fL,hy) = { | |
1420 | 1418 | let dj = toBase58String(value(bm)) | |
1421 | 1419 | let dk = toBase58String(value(bn)) | |
1422 | 1420 | let di = toBase58String(value(bl)) | |
1423 | 1421 | let cz = [toBigInt(bN(dj)), toBigInt(bN(dk))] | |
1424 | 1422 | let eI = toBigInt(valueOrErrorMessage(assetInfo(fromBase58String(di)), "invalid lp asset").quantity) | |
1425 | 1423 | let cb = cy(cz) | |
1426 | 1424 | let ca = (cb - fraction(toBigInt(hy), cb, eI)) | |
1427 | 1425 | let hz = if ((fL == dj)) | |
1428 | 1426 | then 0 | |
1429 | 1427 | else if ((fL == dk)) | |
1430 | 1428 | then 1 | |
1431 | 1429 | else throw("invalid out asset id") | |
1432 | 1430 | let hA = es(cz, hz, ca) | |
1433 | 1431 | let gz = (cz[hz] - hA) | |
1434 | 1432 | let gA = max([0, toInt((gz - f))]) | |
1435 | 1433 | let hB = cv(gA, aT) | |
1436 | 1434 | let fU = hB._1 | |
1437 | 1435 | let cx = hB._2 | |
1438 | 1436 | $Tuple2(nil, $Tuple2(fU, cx)) | |
1439 | 1437 | } | |
1440 | 1438 | ||
1441 | 1439 | ||
1442 | 1440 | ||
1443 | 1441 | @Callable(cP) | |
1444 | 1442 | func getOneTknV2WithBonusREADONLY (fL,hy) = { | |
1445 | 1443 | let dj = toBase58String(value(bm)) | |
1446 | 1444 | let dk = toBase58String(value(bn)) | |
1447 | 1445 | let di = toBase58String(value(bl)) | |
1448 | 1446 | let dp = bN(dj) | |
1449 | 1447 | let dr = bN(dk) | |
1450 | 1448 | let hC = { | |
1451 | 1449 | let aS = invoke(this, "getOneTknV2READONLY", [fL, hy], nil) | |
1452 | 1450 | if ($isInstanceOf(aS, "(Int, Int)")) | |
1453 | 1451 | then aS | |
1454 | 1452 | else throw(($getType(aS) + " couldn't be cast to (Int, Int)")) | |
1455 | 1453 | } | |
1456 | 1454 | let fU = hC._1 | |
1457 | 1455 | let cx = hC._2 | |
1458 | 1456 | let dX = dd("", di, hy, this) | |
1459 | 1457 | let dz = dX._1 | |
1460 | 1458 | let dA = dX._2 | |
1461 | 1459 | let hD = (dz + dA) | |
1462 | 1460 | let fJ = if ((hD == 0)) | |
1463 | 1461 | then if ((fU == 0)) | |
1464 | 1462 | then 0 | |
1465 | 1463 | else throw("bonus calculation error") | |
1466 | 1464 | else fraction((fU - hD), a, hD) | |
1467 | 1465 | $Tuple2(nil, $Tuple3(fU, cx, fJ)) | |
1468 | 1466 | } | |
1469 | 1467 | ||
1470 | 1468 | ||
1471 | 1469 | ||
1472 | 1470 | @Callable(cP) | |
1473 | 1471 | func getNoLess (hE,hF) = { | |
1474 | 1472 | let dX = fj(cP) | |
1475 | 1473 | let dz = dX._1 | |
1476 | 1474 | let dA = dX._2 | |
1477 | 1475 | let dL = dX._3 | |
1478 | 1476 | let df = dX._4 | |
1479 | 1477 | let dB = dX._5 | |
1480 | 1478 | if ((hE > dz)) | |
1481 | 1479 | then throw(((("Failed: " + toString(dz)) + " < ") + toString(hE))) | |
1482 | 1480 | else if ((hF > dA)) | |
1483 | 1481 | then throw(((("Failed: " + toString(dA)) + " < ") + toString(hF))) | |
1484 | 1482 | else { | |
1485 | 1483 | let eR = eK(toBigInt(0), toBigInt(0), toBigInt(0)) | |
1486 | 1484 | if ((eR == eR)) | |
1487 | 1485 | then { | |
1488 | 1486 | let hG = invoke(aQ, "burn", [dL], [AttachedPayment(df, dL)]) | |
1489 | 1487 | if ((hG == hG)) | |
1490 | 1488 | then { | |
1491 | 1489 | let hH = eS(-(dz), -(dA), 0) | |
1492 | 1490 | let gi = hH._1 | |
1493 | 1491 | let eJ = hH._2 | |
1494 | 1492 | let gj = eW(eR, eJ) | |
1495 | 1493 | if ((gj == gj)) | |
1496 | 1494 | then (dB ++ gi) | |
1497 | 1495 | else throw("Strict value is not equal to itself.") | |
1498 | 1496 | } | |
1499 | 1497 | else throw("Strict value is not equal to itself.") | |
1500 | 1498 | } | |
1501 | 1499 | else throw("Strict value is not equal to itself.") | |
1502 | 1500 | } | |
1503 | 1501 | } | |
1504 | 1502 | ||
1505 | 1503 | ||
1506 | 1504 | ||
1507 | 1505 | @Callable(cP) | |
1508 | 1506 | func unstakeAndGet (cw) = { | |
1509 | 1507 | let hI = if ((size(cP.payments) != 0)) | |
1510 | 1508 | then throw("No pmnts expd") | |
1511 | 1509 | else true | |
1512 | 1510 | if ((hI == hI)) | |
1513 | 1511 | then { | |
1514 | 1512 | let hJ = bs() | |
1515 | 1513 | let gW = bl | |
1516 | 1514 | let hK = valueOrErrorMessage(addressFromString(hJ[C]), "Wr st addr") | |
1517 | 1515 | let eR = eK(toBigInt(0), toBigInt(0), toBigInt(0)) | |
1518 | 1516 | if ((eR == eR)) | |
1519 | 1517 | then { | |
1520 | 1518 | let hL = invoke(hK, "unstake", [toBase58String(gW), cw], nil) | |
1521 | 1519 | if ((hL == hL)) | |
1522 | 1520 | then { | |
1523 | 1521 | let dX = dd(toBase58String(cP.transactionId), toBase58String(gW), cw, cP.caller) | |
1524 | 1522 | let dz = dX._1 | |
1525 | 1523 | let dA = dX._2 | |
1526 | 1524 | let dn = parseIntValue(dX._9) | |
1527 | 1525 | let dB = dX._10 | |
1528 | 1526 | let hM = if (if (aV()) | |
1529 | 1527 | then true | |
1530 | 1528 | else (dn == s)) | |
1531 | 1529 | then throw(("Blocked: " + toString(dn))) | |
1532 | 1530 | else true | |
1533 | 1531 | if ((hM == hM)) | |
1534 | 1532 | then { | |
1535 | 1533 | let hN = invoke(aQ, "burn", [cw], [AttachedPayment(gW, cw)]) | |
1536 | 1534 | if ((hN == hN)) | |
1537 | 1535 | then { | |
1538 | 1536 | let hO = eS(-(dz), -(dA), 0) | |
1539 | 1537 | let gi = hO._1 | |
1540 | 1538 | let eJ = hO._2 | |
1541 | 1539 | let gj = eW(eR, eJ) | |
1542 | 1540 | if ((gj == gj)) | |
1543 | 1541 | then (dB ++ gi) | |
1544 | 1542 | else throw("Strict value is not equal to itself.") | |
1545 | 1543 | } | |
1546 | 1544 | else throw("Strict value is not equal to itself.") | |
1547 | 1545 | } | |
1548 | 1546 | else throw("Strict value is not equal to itself.") | |
1549 | 1547 | } | |
1550 | 1548 | else throw("Strict value is not equal to itself.") | |
1551 | 1549 | } | |
1552 | 1550 | else throw("Strict value is not equal to itself.") | |
1553 | 1551 | } | |
1554 | 1552 | else throw("Strict value is not equal to itself.") | |
1555 | 1553 | } | |
1556 | 1554 | ||
1557 | 1555 | ||
1558 | 1556 | ||
1559 | 1557 | @Callable(cP) | |
1560 | 1558 | func unstakeAndGetNoLess (hP,hQ,hF) = { | |
1561 | 1559 | let hs = if (aV()) | |
1562 | 1560 | then true | |
1563 | 1561 | else (bk == s) | |
1564 | 1562 | let gG = [if (!(hs)) | |
1565 | 1563 | then true | |
1566 | 1564 | else throw("get operation is blocked by admin"), if ((size(cP.payments) == 0)) | |
1567 | 1565 | then true | |
1568 | 1566 | else throw("no payments are expected")] | |
1569 | 1567 | if ((gG == gG)) | |
1570 | 1568 | then { | |
1571 | 1569 | let eR = eK(toBigInt(0), toBigInt(0), toBigInt(0)) | |
1572 | 1570 | if ((eR == eR)) | |
1573 | 1571 | then { | |
1574 | 1572 | let hL = invoke(bu, "unstake", [toBase58String(bl), hP], nil) | |
1575 | 1573 | if ((hL == hL)) | |
1576 | 1574 | then { | |
1577 | 1575 | let hR = dd(toBase58String(cP.transactionId), toBase58String(bl), hP, cP.caller) | |
1578 | 1576 | let dz = hR._1 | |
1579 | 1577 | let dA = hR._2 | |
1580 | 1578 | let dB = hR._10 | |
1581 | 1579 | let hS = [if ((dz >= hQ)) | |
1582 | 1580 | then true | |
1583 | 1581 | else throw(makeString(["amount asset amount to receive is less than ", toString(hQ)], "")), if ((dA >= hF)) | |
1584 | 1582 | then true | |
1585 | 1583 | else throw(makeString(["price asset amount to receive is less than ", toString(hF)], ""))] | |
1586 | 1584 | if ((hS == hS)) | |
1587 | 1585 | then { | |
1588 | 1586 | let hG = invoke(aQ, "burn", [hP], [AttachedPayment(bl, hP)]) | |
1589 | 1587 | if ((hG == hG)) | |
1590 | 1588 | then { | |
1591 | 1589 | let hT = eS(-(dz), -(dA), 0) | |
1592 | 1590 | let gi = hT._1 | |
1593 | 1591 | let eJ = hT._2 | |
1594 | 1592 | let gj = eW(eR, eJ) | |
1595 | 1593 | if ((gj == gj)) | |
1596 | 1594 | then (dB ++ gi) | |
1597 | 1595 | else throw("Strict value is not equal to itself.") | |
1598 | 1596 | } | |
1599 | 1597 | else throw("Strict value is not equal to itself.") | |
1600 | 1598 | } | |
1601 | 1599 | else throw("Strict value is not equal to itself.") | |
1602 | 1600 | } | |
1603 | 1601 | else throw("Strict value is not equal to itself.") | |
1604 | 1602 | } | |
1605 | 1603 | else throw("Strict value is not equal to itself.") | |
1606 | 1604 | } | |
1607 | 1605 | else throw("Strict value is not equal to itself.") | |
1608 | 1606 | } | |
1609 | 1607 | ||
1610 | 1608 | ||
1611 | 1609 | ||
1612 | 1610 | @Callable(cP) | |
1613 | 1611 | func unstakeAndGetOneTknV2 (hP,fL,fM) = { | |
1614 | 1612 | let hg = { | |
1615 | 1613 | let aS = invoke(aQ, "isPoolOneTokenOperationsDisabledREADONLY", [toString(this)], nil) | |
1616 | 1614 | if ($isInstanceOf(aS, "Boolean")) | |
1617 | 1615 | then aS | |
1618 | 1616 | else throw(($getType(aS) + " couldn't be cast to Boolean")) | |
1619 | 1617 | } | |
1620 | 1618 | let hs = if (if (aV()) | |
1621 | 1619 | then true | |
1622 | 1620 | else (bk == s)) | |
1623 | 1621 | then true | |
1624 | 1622 | else hg | |
1625 | 1623 | let gG = [if (if (!(hs)) | |
1626 | 1624 | then true | |
1627 | 1625 | else go(cP)) | |
1628 | 1626 | then true | |
1629 | 1627 | else aN("get operation is blocked by admin"), if ((size(cP.payments) == 0)) | |
1630 | 1628 | then true | |
1631 | 1629 | else aN("no payments are expected")] | |
1632 | 1630 | if ((gG == gG)) | |
1633 | 1631 | then { | |
1634 | 1632 | let hJ = bs() | |
1635 | 1633 | let gW = bl | |
1636 | 1634 | let hK = valueOrErrorMessage(addressFromString(hJ[C]), "Wr st addr") | |
1637 | 1635 | let hL = invoke(hK, "unstake", [toBase58String(gW), hP], nil) | |
1638 | 1636 | if ((hL == hL)) | |
1639 | 1637 | then { | |
1640 | 1638 | let hU = fK(fL, fM, [AttachedPayment(gW, hP)], cP.caller, cP.originCaller, cP.transactionId) | |
1641 | 1639 | let dB = hU._1 | |
1642 | 1640 | let fV = hU._2 | |
1643 | 1641 | $Tuple2(dB, fV) | |
1644 | 1642 | } | |
1645 | 1643 | else throw("Strict value is not equal to itself.") | |
1646 | 1644 | } | |
1647 | 1645 | else throw("Strict value is not equal to itself.") | |
1648 | 1646 | } | |
1649 | 1647 | ||
1650 | 1648 | ||
1651 | 1649 | ||
1652 | 1650 | @Callable(cP) | |
1653 | 1651 | func putOneTknV2WithBonusREADONLY (hV,hW) = { | |
1654 | 1652 | let hX = fp(hV, hW, "", "", true) | |
1655 | 1653 | let fE = hX._1 | |
1656 | 1654 | let dB = hX._2 | |
1657 | 1655 | let cx = hX._3 | |
1658 | 1656 | let fJ = hX._4 | |
1659 | 1657 | $Tuple2(nil, $Tuple3(fE, cx, fJ)) | |
1660 | 1658 | } | |
1661 | 1659 | ||
1662 | 1660 | ||
1663 | 1661 | ||
1664 | 1662 | @Callable(cP) | |
1665 | 1663 | func putOneTknV2WithoutTakeFeeREADONLY (hV,hW) = { | |
1666 | 1664 | let hY = fp(hV, hW, "", "", false) | |
1667 | 1665 | let fE = hY._1 | |
1668 | 1666 | let dB = hY._2 | |
1669 | 1667 | let cx = hY._3 | |
1670 | 1668 | let fJ = hY._4 | |
1671 | 1669 | $Tuple2(nil, $Tuple3(fE, cx, fJ)) | |
1672 | 1670 | } | |
1673 | 1671 | ||
1674 | 1672 | ||
1675 | 1673 | ||
1676 | 1674 | @Callable(cP) | |
1677 | 1675 | func activate (hZ,ia) = if ((toString(cP.caller) != toString(aQ))) | |
1678 | 1676 | then throw("denied") | |
1679 | 1677 | else $Tuple2([StringEntry(aj(), hZ), StringEntry(ak(), ia)], "success") | |
1680 | 1678 | ||
1681 | 1679 | ||
1682 | 1680 | ||
1683 | 1681 | @Callable(cP) | |
1684 | 1682 | func setS (ib,hM) = if ((toString(cP.caller) != aJ(this, am()))) | |
1685 | 1683 | then gn | |
1686 | 1684 | else [StringEntry(ib, hM)] | |
1687 | 1685 | ||
1688 | 1686 | ||
1689 | 1687 | ||
1690 | 1688 | @Callable(cP) | |
1691 | 1689 | func setI (ib,hM) = if ((toString(cP.caller) != aJ(this, am()))) | |
1692 | 1690 | then gn | |
1693 | 1691 | else [IntegerEntry(ib, hM)] | |
1694 | 1692 | ||
1695 | 1693 | ||
1696 | 1694 | ||
1697 | 1695 | @Callable(cP) | |
1698 | 1696 | func getPoolConfigWrapperREADONLY () = $Tuple2(nil, aY()) | |
1699 | 1697 | ||
1700 | 1698 | ||
1701 | 1699 | ||
1702 | 1700 | @Callable(cP) | |
1703 | 1701 | func getAccBalanceWrapperREADONLY (bO) = $Tuple2(nil, bN(bO)) | |
1704 | 1702 | ||
1705 | 1703 | ||
1706 | 1704 | ||
1707 | 1705 | @Callable(cP) | |
1708 | 1706 | func calcPricesWrapperREADONLY (ch,ci,cm) = { | |
1709 | 1707 | let ic = cl(ch, ci, cm) | |
1710 | 1708 | $Tuple2(nil, [toString(ic[0]), toString(ic[1]), toString(ic[2])]) | |
1711 | 1709 | } | |
1712 | 1710 | ||
1713 | 1711 | ||
1714 | 1712 | ||
1715 | 1713 | @Callable(cP) | |
1716 | 1714 | func fromX18WrapperREADONLY (M,id) = $Tuple2(nil, L(parseBigIntValue(M), id)) | |
1717 | 1715 | ||
1718 | 1716 | ||
1719 | 1717 | ||
1720 | 1718 | @Callable(cP) | |
1721 | 1719 | func toX18WrapperREADONLY (I,J) = $Tuple2(nil, toString(H(I, J))) | |
1722 | 1720 | ||
1723 | 1721 | ||
1724 | 1722 | ||
1725 | 1723 | @Callable(cP) | |
1726 | 1724 | func calcPriceBigIntWrapperREADONLY (bQ,bR) = $Tuple2(nil, toString(bP(parseBigIntValue(bQ), parseBigIntValue(bR)))) | |
1727 | 1725 | ||
1728 | 1726 | ||
1729 | 1727 | ||
1730 | 1728 | @Callable(cP) | |
1731 | 1729 | func estimatePutOperationWrapperREADONLY (de,bW,dD,dE,dF,dG,ie,dH,dI) = $Tuple2(nil, dC(de, bW, dD, dE, dF, dG, ie, dH, dI, true, false, 0, "")) | |
1732 | 1730 | ||
1733 | 1731 | ||
1734 | 1732 | ||
1735 | 1733 | @Callable(cP) | |
1736 | 1734 | func estimateGetOperationWrapperREADONLY (de,if,dg,ie) = { | |
1737 | 1735 | let dX = dd(de, if, dg, addressFromStringValue(ie)) | |
1738 | 1736 | $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 | 1737 | } | |
1740 | 1738 | ||
1741 | 1739 | ||
1742 | 1740 | @Verifier(ig) | |
1743 | 1741 | func ih () = { | |
1744 | 1742 | let ii = { | |
1745 | 1743 | let gl = gk() | |
1746 | 1744 | if ($isInstanceOf(gl, "ByteVector")) | |
1747 | 1745 | then { | |
1748 | 1746 | let gp = gl | |
1749 | 1747 | gp | |
1750 | 1748 | } | |
1751 | 1749 | else if ($isInstanceOf(gl, "Unit")) | |
1752 | 1750 | then ig.senderPublicKey | |
1753 | 1751 | else throw("Match error") | |
1754 | 1752 | } | |
1755 | 1753 | let gl = ig | |
1756 | 1754 | if ($isInstanceOf(gl, "Order")) | |
1757 | 1755 | then { | |
1758 | 1756 | let eZ = gl | |
1759 | 1757 | let ij = aW() | |
1760 | 1758 | let ik = eY(eZ) | |
1761 | 1759 | let aF = ik._1 | |
1762 | 1760 | let aG = ik._2 | |
1763 | 1761 | let aH = sigVerify(eZ.bodyBytes, eZ.proofs[0], eZ.senderPublicKey) | |
1764 | 1762 | let aI = sigVerify(eZ.bodyBytes, eZ.proofs[1], ij) | |
1765 | 1763 | if (if (if (aF) | |
1766 | 1764 | then aH | |
1767 | 1765 | else false) | |
1768 | 1766 | then aI | |
1769 | 1767 | else false) | |
1770 | 1768 | then true | |
1771 | 1769 | else aE(aF, aG, aH, aI) | |
1772 | 1770 | } | |
1773 | 1771 | else if ($isInstanceOf(gl, "SetScriptTransaction")) | |
1774 | 1772 | then { | |
1775 | 1773 | let cC = gl | |
1776 | 1774 | if (sigVerify(ig.bodyBytes, ig.proofs[0], ii)) | |
1777 | 1775 | then true | |
1778 | 1776 | else { | |
1779 | 1777 | let il = blake2b256(value(cC.script)) | |
1780 | 1778 | let im = fromBase64String(value(getString(aQ, aC()))) | |
1781 | 1779 | let in = scriptHash(this) | |
1782 | 1780 | if ((im == il)) | |
1783 | 1781 | then (in != il) | |
1784 | 1782 | else false | |
1785 | 1783 | } | |
1786 | 1784 | } | |
1787 | 1785 | else sigVerify(ig.bodyBytes, ig.proofs[0], ii) | |
1788 | 1786 | } | |
1789 | 1787 |
github/deemru/w8io/026f985 187.73 ms ◑