tx · 9jiCiTPCb6XA7GDduEtBDC5qmpYJDhsZBfADeFkdnDBW 3MsMP2pb2p8MDd6Rxb7XEXqqwEhE8ATfyai: -0.03100000 Waves 2023.12.26 15:48 [2903734] smart account 3MsMP2pb2p8MDd6Rxb7XEXqqwEhE8ATfyai > SELF 0.00000000 Waves
{ "type": 13, "id": "9jiCiTPCb6XA7GDduEtBDC5qmpYJDhsZBfADeFkdnDBW", "fee": 3100000, "feeAssetId": null, "timestamp": 1703594921500, "version": 2, "chainId": 84, "sender": "3MsMP2pb2p8MDd6Rxb7XEXqqwEhE8ATfyai", "senderPublicKey": "2JEaBjtjvMoNGKZmL9QxYefa1VkMJM3vMW8rNvTs9R2H", "proofs": [ "MG71gh9VveVvmYANuNa8RC2e6Pg5ZmeRZscTGVEY5AP2o7QsReBCf5CjsHbkpYHQ4agqRgFwgGBSRfeEwXEA3bJ" ], "script": "base64:BgLuMQgCEgASBAoCCAgSBAoCCAgSAwoBCBIKCggICAgICAgIARIDCgEIEgYKBAgICAgSBAoCCBgSAwoBCBIECgIIGBIDCgEYEgoKCAgICAgIAQgIEgQKAggBEgMKAQESAwoBARIECgIIARIGCgQICAgIEgQKAggIEgQKAggIEgQKAggIEgMKAQgSAwoBCBIDCgEIEgMKAQgSAwoBCBIDCgEIEgQKAggIEgMKAQgSAwoBCBIDCgEIEgQKAggIEgMKAQgSAwoBCBIDCgEIEgMKAQgSAwoBCBIDCgEIIgZTQ0FMRTgiBU1VTFQ4IgZNVUxUMTIiB1NDQUxFMTgiBk1VTFQxOCIOUE9PTFdFSUdIVE1VTFQiDkdXWHZpcnR1YWxQT09MIgxsYWJlbFBvb2xzTHAiDWRlZmF1bHRTcHJlYWQiC3dhdmVzU3RyaW5nIhBjb250cmFjdEZpbGVuYW1lIhFkZWNpbWFsc011bHRQcmljZSIDU0VQIgVFTVBUWSIKUG9vbEFjdGl2ZSIPUG9vbFB1dERpc2FibGVkIhNQb29sTWF0Y2hlckRpc2FibGVkIgxQb29sU2h1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uaWwFAmdjAQJnZAECZ2UABAJnZgQCYm4JAQJiTQADCQABAgUCYm4CCkJ5dGVWZWN0b3IEAmJUBQJibgUCYlQDCQABAgUCYm4CBFVuaXQIBQJnZA9zZW5kZXJQdWJsaWNLZXkJAAIBAgtNYXRjaCBlcnJvcgkA9AMDCAUCZ2QJYm9keUJ5dGVzCQCRAwIIBQJnZAZwcm9vZnMAAAUCZ2YJ4F1K", "height": 2903734, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 7DBVuw4UfF3pgGQCZK2ARjoddUJfDZwXsaBcMqYbVSfj Next: 35rUGfn1R78jjc21XERgUQDh6soDDA6moYL7bZJdJZ6J Diff:
Old | New | Differences | |
---|---|---|---|
208 | 208 | func aO () = "%s__outFeeDefault" | |
209 | 209 | ||
210 | 210 | ||
211 | - | func aP ( | |
211 | + | func aP () = makeString(["%s", "poolAssetDefaultMinAmount"], m) | |
212 | 212 | ||
213 | 213 | ||
214 | - | func aQ ( | |
214 | + | func aQ (aR) = makeString(["%s%s", "poolAssetMinAmount", aR], m) | |
215 | 215 | ||
216 | 216 | ||
217 | - | func | |
217 | + | func aS (af) = ("%s%s__skipOrderValidation__" + af) | |
218 | 218 | ||
219 | 219 | ||
220 | - | func | |
220 | + | func aT (af) = ("%s%s__changeAmpDelay__" + af) | |
221 | 221 | ||
222 | 222 | ||
223 | - | func | |
223 | + | func aU (af) = ("%s%s__changeAmpDelta__" + af) | |
224 | 224 | ||
225 | 225 | ||
226 | - | func | |
226 | + | func aV (af) = ("%s%s__changeAmpTarget__" + af) | |
227 | 227 | ||
228 | 228 | ||
229 | - | func | |
229 | + | func aW () = "%s__sWavesProxyAddress" | |
230 | 230 | ||
231 | 231 | ||
232 | - | func | |
232 | + | func aX () = "%s__sWavesAssetId" | |
233 | 233 | ||
234 | 234 | ||
235 | - | func aY ( | |
235 | + | func aY () = "%s__stakingProfitAddress" | |
236 | 236 | ||
237 | 237 | ||
238 | - | func aZ (af, | |
238 | + | func aZ (af,aR) = makeString(["%s%s%s", "leasedRatio", af, aR], m) | |
239 | 239 | ||
240 | 240 | ||
241 | - | func ba ( | |
241 | + | func ba (aR) = makeString(["%s%s", "leasedRatioDefault", aR], m) | |
242 | 242 | ||
243 | 243 | ||
244 | - | func bb ( | |
244 | + | func bb (af,aR) = makeString(["%s%s%s", "leasedRatioTolerance", af, aR], m) | |
245 | 245 | ||
246 | 246 | ||
247 | - | func bc ( | |
247 | + | func bc (af,aR) = makeString(["%s%s%s", "minBalance", af, aR], m) | |
248 | 248 | ||
249 | 249 | ||
250 | - | func | |
250 | + | func bd (aR) = makeString(["%s%s", "minBalanceDefault", aR], m) | |
251 | 251 | ||
252 | 252 | ||
253 | - | func | |
253 | + | func be (bf) = makeString(["%s%s", "whitelisted", toString(bf)], m) | |
254 | 254 | ||
255 | 255 | ||
256 | - | func | |
256 | + | func bg (bh) = valueOrErrorMessage(getString(this, bh), ("No data for this.key=" + bh)) | |
257 | 257 | ||
258 | 258 | ||
259 | - | func bi (bj) = if ((bj == j)) | |
260 | - | then unit | |
261 | - | else fromBase58String(bj) | |
259 | + | func bi (bh) = valueOrErrorMessage(getBoolean(this, bh), ("No data for this.key=" + bh)) | |
262 | 260 | ||
263 | 261 | ||
264 | - | func bk () = { | |
265 | - | let bl = getString(V()) | |
266 | - | if ($isInstanceOf(bl, "String")) | |
262 | + | func bj (bh) = valueOrErrorMessage(getInteger(this, bh), ("No data for this.key=" + bh)) | |
263 | + | ||
264 | + | ||
265 | + | func bk (bl) = if ((bl == j)) | |
266 | + | then unit | |
267 | + | else fromBase58String(bl) | |
268 | + | ||
269 | + | ||
270 | + | func bm () = { | |
271 | + | let bn = getString(V()) | |
272 | + | if ($isInstanceOf(bn, "String")) | |
267 | 273 | then { | |
268 | - | let | |
269 | - | addressFromStringValue( | |
274 | + | let bo = bn | |
275 | + | addressFromStringValue(bo) | |
270 | 276 | } | |
271 | 277 | else this | |
272 | 278 | } | |
273 | 279 | ||
274 | 280 | ||
275 | - | func | |
281 | + | func bp (bq,br) = fraction(toBigInt(bq), e, toBigInt(br)) | |
276 | 282 | ||
277 | 283 | ||
278 | - | func | |
284 | + | func bs (bt,bu) = toInt(fraction(bt, toBigInt(bu), e)) | |
279 | 285 | ||
280 | 286 | ||
281 | - | let | |
287 | + | let bv = 1 | |
282 | 288 | ||
283 | - | let | |
289 | + | let bw = 2 | |
284 | 290 | ||
285 | - | let | |
291 | + | let bx = 3 | |
286 | 292 | ||
287 | - | let | |
293 | + | let by = 4 | |
288 | 294 | ||
289 | - | let | |
295 | + | let bz = 5 | |
290 | 296 | ||
291 | - | let | |
297 | + | let bA = 6 | |
292 | 298 | ||
293 | - | let | |
299 | + | let bB = 7 | |
294 | 300 | ||
295 | - | let | |
301 | + | let bC = 8 | |
296 | 302 | ||
297 | - | let | |
303 | + | let bD = 9 | |
298 | 304 | ||
299 | - | let | |
305 | + | let bE = 10 | |
300 | 306 | ||
301 | - | let | |
307 | + | let bF = 11 | |
302 | 308 | ||
303 | - | func | |
309 | + | func bG (bH) = addressFromStringValue(bH[bw]) | |
304 | 310 | ||
305 | 311 | ||
306 | - | func | |
312 | + | func bI (bH) = addressFromStringValue(bH[bz]) | |
307 | 313 | ||
308 | 314 | ||
309 | - | func | |
315 | + | func bJ (bH) = addressFromStringValue(bH[bv]) | |
310 | 316 | ||
311 | 317 | ||
312 | - | func | |
318 | + | func bK (bH) = addressFromStringValue(bH[bE]) | |
313 | 319 | ||
314 | 320 | ||
315 | - | func | |
316 | - | let | |
317 | - | if ($isInstanceOf( | |
321 | + | func bL () = { | |
322 | + | let bn = getString(aa()) | |
323 | + | if ($isInstanceOf(bn, "String")) | |
318 | 324 | then { | |
319 | - | let | |
320 | - | if ((size( | |
325 | + | let bo = bn | |
326 | + | if ((size(bo) == 0)) | |
321 | 327 | then nil | |
322 | - | else split_4C( | |
328 | + | else split_4C(bo, m) | |
323 | 329 | } | |
324 | 330 | else nil | |
325 | 331 | } | |
326 | 332 | ||
327 | 333 | ||
328 | - | func | |
329 | - | let | |
330 | - | let | |
331 | - | if ($isInstanceOf( | |
334 | + | func bM () = { | |
335 | + | let bN = bm() | |
336 | + | let bn = getString(bN, U()) | |
337 | + | if ($isInstanceOf(bn, "String")) | |
332 | 338 | then { | |
333 | - | let | |
334 | - | fromBase58String( | |
339 | + | let bo = bn | |
340 | + | fromBase58String(bo) | |
335 | 341 | } | |
336 | - | else if ($isInstanceOf( | |
342 | + | else if ($isInstanceOf(bn, "Unit")) | |
337 | 343 | then unit | |
338 | 344 | else throw("Match error") | |
339 | 345 | } | |
340 | 346 | ||
341 | 347 | ||
342 | - | let | |
348 | + | let bO = K("Permission denied") | |
343 | 349 | ||
344 | - | let | |
350 | + | let bP = K("Test error here") | |
345 | 351 | ||
346 | - | func | |
352 | + | func bQ (bR) = if ((bR.caller == this)) | |
347 | 353 | then true | |
348 | - | else | |
354 | + | else bO | |
349 | 355 | ||
350 | 356 | ||
351 | - | func | |
352 | - | let | |
353 | - | if ($isInstanceOf( | |
357 | + | func bS (bR) = { | |
358 | + | let bn = bM() | |
359 | + | if ($isInstanceOf(bn, "ByteVector")) | |
354 | 360 | then { | |
355 | - | let | |
356 | - | if (( | |
361 | + | let bT = bn | |
362 | + | if ((bR.callerPublicKey == bT)) | |
357 | 363 | then true | |
358 | - | else | |
364 | + | else bO | |
359 | 365 | } | |
360 | - | else if ($isInstanceOf( | |
361 | - | then | |
366 | + | else if ($isInstanceOf(bn, "Unit")) | |
367 | + | then bQ(bR) | |
362 | 368 | else throw("Match error") | |
363 | 369 | } | |
364 | 370 | ||
365 | 371 | ||
366 | - | func | |
372 | + | func bU (bV,bW,bX,bY,bZ,ca,cb,cc,cd,ce,cf) = makeString(["%s%s%s%s%s%s%s%s%s%s%s", bV, bW, bX, bY, bZ, ca, cb, cc, cd, ce, cf], m) | |
367 | 373 | ||
368 | 374 | ||
369 | - | func | |
375 | + | func cg (bV,bW,bX,bY,bZ,ca,cb) = makeString(["%s%s%s%s%s%s", bV, bW, bX, bY, bZ, ca, cb], m) | |
370 | 376 | ||
371 | 377 | ||
372 | - | func | |
378 | + | func ch (af,ci,cj,ck,cl,cm,cn,co,cp,cq,cr) = makeString(["%s%d%s%s%s%d%d%d%d%d%s", af, ci, cj, ck, cl, toString(cm), toString(cn), toString(co), toString(cp), toString(cq), cr], m) | |
373 | 379 | ||
374 | 380 | ||
375 | - | func | |
381 | + | func cs (ct,cu) = makeString(["%d%d", toString(ct), toString(cu)], m) | |
376 | 382 | ||
377 | 383 | ||
378 | - | func | |
379 | - | let | |
380 | - | let an = | |
381 | - | let ao = | |
382 | - | split( | |
384 | + | func cv (af) = { | |
385 | + | let cw = split(bg(aC(af)), m) | |
386 | + | let an = cw[1] | |
387 | + | let ao = cw[2] | |
388 | + | split(bg(am(an, ao)), m) | |
383 | 389 | } | |
384 | 390 | ||
385 | 391 | ||
386 | - | func | |
387 | - | let | |
388 | - | let | |
389 | - | let | |
392 | + | func cx (cy,cz) = { | |
393 | + | let cA = valueOrElse(getInteger(this, ak(cy)), 0) | |
394 | + | let cB = valueOrElse(getInteger(this, ad()), 0) | |
395 | + | let cC = if ((cA == 0)) | |
390 | 396 | then { | |
391 | - | let | |
392 | - | $Tuple3( | |
397 | + | let cD = (cB + cz) | |
398 | + | $Tuple3(cD, [IntegerEntry(ad(), cD), IntegerEntry(ak(cy), cD), StringEntry(ai(cD), cy)], true) | |
393 | 399 | } | |
394 | - | else $Tuple3( | |
395 | - | | |
400 | + | else $Tuple3(cA, nil, false) | |
401 | + | cC | |
396 | 402 | } | |
397 | 403 | ||
398 | 404 | ||
399 | - | func | |
400 | - | let | |
401 | - | if (containsElement( | |
405 | + | func cE (bR) = { | |
406 | + | let cF = split(valueOrElse(getString(W()), n), m) | |
407 | + | if (containsElement(cF, toBase58String(bR.callerPublicKey))) | |
402 | 408 | then true | |
403 | 409 | else { | |
404 | - | let | |
405 | - | if (( | |
410 | + | let cG = bS(bR) | |
411 | + | if ((cG == cG)) | |
406 | 412 | then true | |
407 | 413 | else throw("Strict value is not equal to itself.") | |
408 | 414 | } | |
409 | 415 | } | |
410 | 416 | ||
411 | 417 | ||
412 | - | func | |
418 | + | func cH (bh,cI,cJ) = valueOrElse(getInteger(this, bh), valueOrElse(getInteger(this, cI), cJ)) | |
413 | 419 | ||
414 | 420 | ||
415 | - | func | |
421 | + | func cK (aI,aJ) = { | |
416 | 422 | let an = getInteger(ak(aI)) | |
417 | 423 | let ao = getInteger(ak(aJ)) | |
418 | 424 | if (if ((an == unit)) | |
420 | 426 | else (ao == unit)) | |
421 | 427 | then false | |
422 | 428 | else { | |
423 | - | let | |
424 | - | let | |
425 | - | let | |
426 | - | let | |
427 | - | let | |
429 | + | let cL = toString(value(an)) | |
430 | + | let cM = toString(value(ao)) | |
431 | + | let cN = getString(am(cL, cM)) | |
432 | + | let cO = getString(am(cM, cL)) | |
433 | + | let cP = if ((cN != unit)) | |
428 | 434 | then true | |
429 | - | else ( | |
430 | - | | |
435 | + | else (cO != unit) | |
436 | + | cP | |
431 | 437 | } | |
432 | 438 | } | |
433 | 439 | ||
434 | 440 | ||
435 | - | func | |
436 | - | let | |
437 | - | let | |
438 | - | if ($isInstanceOf( | |
441 | + | func cQ (aD) = { | |
442 | + | let cw = { | |
443 | + | let bn = getString(aC(aD)) | |
444 | + | if ($isInstanceOf(bn, "String")) | |
439 | 445 | then { | |
440 | - | let | |
441 | - | split( | |
446 | + | let bo = bn | |
447 | + | split(bo, m) | |
442 | 448 | } | |
443 | 449 | else K(makeString([aD, "pool is not found"], " ")) | |
444 | 450 | } | |
445 | - | let an = parseIntValue( | |
446 | - | let ao = parseIntValue( | |
451 | + | let an = parseIntValue(cw[1]) | |
452 | + | let ao = parseIntValue(cw[2]) | |
447 | 453 | let aI = getStringValue(ai(an)) | |
448 | 454 | let aJ = getStringValue(ai(ao)) | |
449 | - | let | |
450 | - | $Tuple5(aI, aJ, | |
455 | + | let cj = getStringValue(aF(aD)) | |
456 | + | $Tuple5(aI, aJ, cj, an, ao) | |
451 | 457 | } | |
452 | 458 | ||
453 | 459 | ||
454 | - | func | |
455 | - | let | |
456 | - | let aI = | |
457 | - | let aJ = | |
458 | - | let | |
459 | - | let an = | |
460 | - | let ao = | |
461 | - | let | |
462 | - | let | |
463 | - | | |
460 | + | func cR (aD) = { | |
461 | + | let cS = cQ(aD) | |
462 | + | let aI = cS._1 | |
463 | + | let aJ = cS._2 | |
464 | + | let cj = cS._3 | |
465 | + | let an = cS._4 | |
466 | + | let ao = cS._5 | |
467 | + | let cT = addressFromStringValue(getStringValue(Z())) | |
468 | + | let cU = invoke(cT, "getPoolCreatorREADONLY", [aI, aJ], nil) | |
469 | + | cU | |
464 | 470 | } | |
465 | 471 | ||
466 | 472 | ||
467 | - | func | |
468 | - | let | |
469 | - | if (( | |
470 | - | then wavesBalance( | |
473 | + | func cV (cW,cX) = { | |
474 | + | let bf = addressFromStringValue(cW) | |
475 | + | if ((cX == "WAVES")) | |
476 | + | then wavesBalance(bf).regular | |
471 | 477 | else { | |
472 | - | let | |
473 | - | assetBalance( | |
478 | + | let aR = fromBase58String(cX) | |
479 | + | assetBalance(bf, aR) | |
474 | 480 | } | |
475 | 481 | } | |
476 | 482 | ||
477 | 483 | ||
478 | - | func | |
479 | - | let | |
480 | - | let aI = | |
481 | - | let aJ = | |
482 | - | let | |
483 | - | let an = | |
484 | - | let ao = | |
485 | - | if (( | |
486 | - | then ( | |
484 | + | func cY (aD) = { | |
485 | + | let cZ = cQ(aD) | |
486 | + | let aI = cZ._1 | |
487 | + | let aJ = cZ._2 | |
488 | + | let cj = cZ._3 | |
489 | + | let an = cZ._4 | |
490 | + | let ao = cZ._5 | |
491 | + | if ((cV(aD, aI) == 0)) | |
492 | + | then (cV(aD, aJ) == 0) | |
487 | 493 | else false | |
488 | 494 | } | |
489 | 495 | ||
490 | 496 | ||
491 | - | @Callable( | |
492 | - | func getSwapContractREADONLY () = $Tuple2(nil, | |
497 | + | @Callable(bR) | |
498 | + | func getSwapContractREADONLY () = $Tuple2(nil, bg(N())) | |
493 | 499 | ||
494 | 500 | ||
495 | 501 | ||
496 | - | @Callable( | |
497 | - | func getPoolLeaseConfigREADONLY (af, | |
498 | - | let | |
499 | - | let | |
500 | - | if ($isInstanceOf( | |
502 | + | @Callable(bR) | |
503 | + | func getPoolLeaseConfigREADONLY (af,aR) = { | |
504 | + | let da = { | |
505 | + | let bn = getInteger(this, aZ(af, aR)) | |
506 | + | if ($isInstanceOf(bn, "Int")) | |
501 | 507 | then { | |
502 | - | let | |
503 | - | $Tuple2(true, min([100, max([0, | |
508 | + | let db = bn | |
509 | + | $Tuple2(true, min([100, max([0, db])])) | |
504 | 510 | } | |
505 | 511 | else { | |
506 | - | let | |
507 | - | if ($isInstanceOf( | |
512 | + | let dc = getInteger(this, ba(aR)) | |
513 | + | if ($isInstanceOf(dc, "Int")) | |
508 | 514 | then { | |
509 | - | let | |
510 | - | $Tuple2(true, min([100, max([0, | |
515 | + | let dd = dc | |
516 | + | $Tuple2(true, min([100, max([0, dd])])) | |
511 | 517 | } | |
512 | 518 | else $Tuple2(false, 0) | |
513 | 519 | } | |
514 | 520 | } | |
515 | - | let | |
516 | - | let | |
517 | - | let | |
518 | - | let | |
519 | - | if ($isInstanceOf( | |
521 | + | let de = da._1 | |
522 | + | let df = da._2 | |
523 | + | let dg = { | |
524 | + | let bn = getInteger(this, bc(af, aR)) | |
525 | + | if ($isInstanceOf(bn, "Int")) | |
520 | 526 | then { | |
521 | - | let | |
522 | - | max([0, | |
527 | + | let dh = bn | |
528 | + | max([0, dh]) | |
523 | 529 | } | |
524 | 530 | else { | |
525 | - | let | |
526 | - | if ($isInstanceOf( | |
531 | + | let dc = getInteger(this, bd(aR)) | |
532 | + | if ($isInstanceOf(dc, "Int")) | |
527 | 533 | then { | |
528 | - | let | |
529 | - | max([0, | |
534 | + | let di = dc | |
535 | + | max([0, di]) | |
530 | 536 | } | |
531 | 537 | else 0 | |
532 | 538 | } | |
533 | 539 | } | |
534 | - | let | |
535 | - | then $Tuple3(valueOrElse(getString(this, | |
540 | + | let dj = if ((aR == "WAVES")) | |
541 | + | then $Tuple3(valueOrElse(getString(this, aW()), ""), getString(this, valueOrElse(aX(), "")), c) | |
536 | 542 | else $Tuple3("", "", 0) | |
537 | - | let | |
538 | - | let | |
539 | - | let | |
540 | - | let | |
541 | - | $Tuple2(nil, $Tuple7( | |
543 | + | let dk = dj._1 | |
544 | + | let dl = dj._2 | |
545 | + | let dm = dj._3 | |
546 | + | let dn = valueOrElse(getString(this, aY()), "") | |
547 | + | $Tuple2(nil, $Tuple7(de, df, dg, dk, dl, dm, dn)) | |
542 | 548 | } | |
543 | 549 | ||
544 | 550 | ||
545 | 551 | ||
546 | - | @Callable( | |
547 | - | func getLpAssetFromPoolAssetsREADONLY ( | |
548 | - | then ( | |
552 | + | @Callable(bR) | |
553 | + | func getLpAssetFromPoolAssetsREADONLY (do,dp) = if (if ((do == "8LQW8f7P5d5PZM7GtZEBgaqRPGSzS3DfPuiXrURJ4AJS")) | |
554 | + | then (dp == "WAVES") | |
549 | 555 | else false) | |
550 | 556 | then $Tuple2(nil, unit) | |
551 | 557 | else { | |
552 | - | let | |
553 | - | let | |
554 | - | let | |
555 | - | let | |
558 | + | let dq = value(getInteger(this, ak(do))) | |
559 | + | let dr = value(getInteger(this, ak(dp))) | |
560 | + | let ds = getString(this, ay(toString(dq), toString(dr))) | |
561 | + | let dt = if ((ds == unit)) | |
556 | 562 | then unit | |
557 | - | else drop(value( | |
558 | - | $Tuple2(nil, | |
563 | + | else drop(value(ds), 4) | |
564 | + | $Tuple2(nil, dt) | |
559 | 565 | } | |
560 | 566 | ||
561 | 567 | ||
562 | 568 | ||
563 | - | @Callable( | |
564 | - | func getPoolAddressFromLpAssetREADONLY ( | |
569 | + | @Callable(bR) | |
570 | + | func getPoolAddressFromLpAssetREADONLY (du) = $Tuple2(nil, valueOrElse(getString(this, aG(du)), "")) | |
565 | 571 | ||
566 | 572 | ||
567 | 573 | ||
568 | - | @Callable( | |
569 | - | func constructor ( | |
570 | - | let | |
571 | - | if (( | |
572 | - | then [StringEntry(O(), | |
574 | + | @Callable(bR) | |
575 | + | func constructor (dv,dw,bX,bY,bZ,ca,dx,dy) = { | |
576 | + | let dz = bS(bR) | |
577 | + | if ((dz == dz)) | |
578 | + | then [StringEntry(O(), cg(dv, dw, bX, bY, bZ, ca, dx)), IntegerEntry(ab(), dy)] | |
573 | 579 | else throw("Strict value is not equal to itself.") | |
574 | 580 | } | |
575 | 581 | ||
576 | 582 | ||
577 | 583 | ||
578 | - | @Callable( | |
579 | - | func constructorV2 ( | |
580 | - | let | |
581 | - | if (( | |
584 | + | @Callable(bR) | |
585 | + | func constructorV2 (dA) = { | |
586 | + | let dz = bS(bR) | |
587 | + | if ((dz == dz)) | |
582 | 588 | then { | |
583 | - | let | |
584 | - | if (( | |
585 | - | then [StringEntry(R(), | |
589 | + | let dB = addressFromPublicKey(fromBase58String(dA)) | |
590 | + | if ((dB == dB)) | |
591 | + | then [StringEntry(R(), dA)] | |
586 | 592 | else throw("Strict value is not equal to itself.") | |
587 | 593 | } | |
588 | 594 | else throw("Strict value is not equal to itself.") | |
590 | 596 | ||
591 | 597 | ||
592 | 598 | ||
593 | - | @Callable( | |
594 | - | func constructorV3 ( | |
595 | - | let | |
596 | - | if (( | |
599 | + | @Callable(bR) | |
600 | + | func constructorV3 (cc,cd,ce,cf) = { | |
601 | + | let dz = bS(bR) | |
602 | + | if ((dz == dz)) | |
597 | 603 | then { | |
598 | - | let | |
599 | - | [StringEntry(O(), | |
604 | + | let bH = split(bg(O()), m) | |
605 | + | [StringEntry(O(), bU(bH[1], bH[2], bH[3], bH[4], bH[5], bH[6], bH[7], cc, cd, ce, cf))] | |
600 | 606 | } | |
601 | 607 | else throw("Strict value is not equal to itself.") | |
602 | 608 | } | |
603 | 609 | ||
604 | 610 | ||
605 | 611 | ||
606 | - | @Callable( | |
607 | - | func constructorV4 ( | |
608 | - | let | |
609 | - | if (( | |
610 | - | then [StringEntry(S(), | |
612 | + | @Callable(bR) | |
613 | + | func constructorV4 (dC,dD) = { | |
614 | + | let dz = bS(bR) | |
615 | + | if ((dz == dz)) | |
616 | + | then [StringEntry(S(), dC), StringEntry(T(), makeString(dD, m))] | |
611 | 617 | else throw("Strict value is not equal to itself.") | |
612 | 618 | } | |
613 | 619 | ||
614 | 620 | ||
615 | 621 | ||
616 | - | @Callable( | |
617 | - | func constructorV5 ( | |
618 | - | let | |
619 | - | if (( | |
620 | - | then [StringEntry(X(), | |
622 | + | @Callable(bR) | |
623 | + | func constructorV5 (dE) = { | |
624 | + | let dz = bS(bR) | |
625 | + | if ((dz == dz)) | |
626 | + | then [StringEntry(X(), dE)] | |
621 | 627 | else throw("Strict value is not equal to itself.") | |
622 | 628 | } | |
623 | 629 | ||
624 | 630 | ||
625 | 631 | ||
626 | - | @Callable( | |
627 | - | func constructorV6 ( | |
628 | - | let | |
632 | + | @Callable(bR) | |
633 | + | func constructorV6 (dF,dG) = { | |
634 | + | let dH = [bS(bR), if ((addressFromString(dF) != unit)) | |
629 | 635 | then true | |
630 | 636 | else "invalid voting emission contract address"] | |
631 | - | if (( | |
632 | - | then [StringEntry(Y(), | |
637 | + | if ((dH == dH)) | |
638 | + | then [StringEntry(Y(), dF), StringEntry(aa(), makeString(dG, m))] | |
633 | 639 | else throw("Strict value is not equal to itself.") | |
634 | 640 | } | |
635 | 641 | ||
636 | 642 | ||
637 | 643 | ||
638 | - | @Callable( | |
639 | - | func setAdmins ( | |
640 | - | let | |
641 | - | if (( | |
642 | - | then [StringEntry(W(), makeString( | |
644 | + | @Callable(bR) | |
645 | + | func setAdmins (dI) = { | |
646 | + | let dz = bS(bR) | |
647 | + | if ((dz == dz)) | |
648 | + | then [StringEntry(W(), makeString(dI, m))] | |
643 | 649 | else throw("Strict value is not equal to itself.") | |
644 | 650 | } | |
645 | 651 | ||
646 | 652 | ||
647 | 653 | ||
648 | - | @Callable( | |
649 | - | func activateNewPool (af, | |
650 | - | let | |
651 | - | if (( | |
654 | + | @Callable(bR) | |
655 | + | func activateNewPool (af,ck,cl,dJ,dK,dL,cr,dM) = { | |
656 | + | let dz = cE(bR) | |
657 | + | if ((dz == dz)) | |
652 | 658 | then if (isDefined(getString(aC(af)))) | |
653 | 659 | then K((("Pool address " + af) + " already registered.")) | |
654 | 660 | else { | |
655 | - | let | |
656 | - | let | |
657 | - | let | |
661 | + | let dN = cx(ck, 1) | |
662 | + | let dO = dN._1 | |
663 | + | let dP = cx(cl, if (dN._3) | |
658 | 664 | then 2 | |
659 | 665 | else 1) | |
660 | - | let | |
661 | - | let | |
662 | - | let | |
663 | - | let | |
664 | - | if ( | |
665 | - | then K((((("Pool " + | |
666 | + | let dQ = dP._1 | |
667 | + | let dR = valueOrErrorMessage(scriptHash(addressFromStringValue(af)), ("No script has been found on pool account " + af)) | |
668 | + | let dS = getBinaryValue(Q()) | |
669 | + | let dT = cK(ck, cl) | |
670 | + | if (dT) | |
671 | + | then K((((("Pool " + ck) + "/") + cl) + " has already been activated.")) | |
666 | 672 | else { | |
667 | - | let | |
668 | - | let | |
673 | + | let dU = value(getString(this, am(toString(dO), toString(dQ)))) | |
674 | + | let dV = if ((ck == "WAVES")) | |
669 | 675 | then l | |
670 | - | else pow(10, 0, value(assetInfo(fromBase58String( | |
671 | - | let | |
676 | + | else pow(10, 0, value(assetInfo(fromBase58String(ck))).decimals, 0, 0, DOWN) | |
677 | + | let dW = if ((cl == "WAVES")) | |
672 | 678 | then l | |
673 | - | else pow(10, 0, value(assetInfo(fromBase58String( | |
674 | - | let | |
675 | - | let | |
676 | - | let | |
677 | - | let | |
678 | - | if (( | |
679 | - | then if (( | |
679 | + | else pow(10, 0, value(assetInfo(fromBase58String(cl))).decimals, 0, 0, DOWN) | |
680 | + | let dX = Issue(dJ, dK, 1, 8, true) | |
681 | + | let cj = calculateAssetId(dX) | |
682 | + | let dY = toBase58String(cj) | |
683 | + | let dZ = invoke(addressFromStringValue(af), "activate", [ck, cl], nil) | |
684 | + | if ((dZ == dZ)) | |
685 | + | then if ((dZ != "success")) | |
680 | 686 | then K("Pool initialisation error happened.") | |
681 | 687 | else { | |
682 | - | let | |
683 | - | let | |
684 | - | if (( | |
688 | + | let dE = addressFromStringValue(bg(X())) | |
689 | + | let ea = invoke(dE, "createOrUpdate", [dY, dJ, false], nil) | |
690 | + | if ((ea == ea)) | |
685 | 691 | then { | |
686 | - | let | |
687 | - | if (( | |
692 | + | let eb = invoke(dE, "addLabel", [dY, h], nil) | |
693 | + | if ((eb == eb)) | |
688 | 694 | then { | |
689 | - | let | |
690 | - | if (( | |
695 | + | let ec = invoke(dE, "setLogo", [dY, dM], nil) | |
696 | + | if ((ec == ec)) | |
691 | 697 | then { | |
692 | - | let | |
693 | - | if (( | |
698 | + | let ed = invoke(dE, "addAssetsLink", [ck, cl, dY], nil) | |
699 | + | if ((ed == ed)) | |
694 | 700 | then { | |
695 | - | let | |
696 | - | if (( | |
697 | - | then $Tuple2((( | |
701 | + | let ee = invoke(dE, "increaseAssetPoolsNumber", [ck], nil) | |
702 | + | if ((ee == ee)) | |
703 | + | then $Tuple2(((dN._2 ++ dP._2) ++ [dX, Burn(cj, 1), StringEntry(am(toString(dO), toString(dQ)), ch(af, toString(o), dY, ck, cl, dV, dW, dO, dQ, l, cr)), StringEntry(aw(dY), cs(dO, dQ)), StringEntry(ay(toString(dO), toString(dQ)), ("%s__" + dY)), StringEntry(aC(af), cs(dO, dQ)), StringEntry(aE(dO, dQ), af), StringEntry(aG(dY), af), StringEntry(aF(af), dY), IntegerEntry(ae(af), dL), IntegerEntry(aB(af), i)]), dY) | |
698 | 704 | else throw("Strict value is not equal to itself.") | |
699 | 705 | } | |
700 | 706 | else throw("Strict value is not equal to itself.") | |
713 | 719 | ||
714 | 720 | ||
715 | 721 | ||
716 | - | @Callable( | |
717 | - | func managePool (af, | |
718 | - | let | |
719 | - | if (( | |
722 | + | @Callable(bR) | |
723 | + | func managePool (af,ef) = { | |
724 | + | let dz = bS(bR) | |
725 | + | if ((dz == dz)) | |
720 | 726 | then { | |
721 | - | let | |
722 | - | let | |
723 | - | let | |
724 | - | let | |
725 | - | let | |
726 | - | let | |
727 | - | let | |
728 | - | let | |
729 | - | let | |
730 | - | let | |
731 | - | let | |
732 | - | [StringEntry(am(toString( | |
727 | + | let eg = cv(af) | |
728 | + | let ci = eg[w] | |
729 | + | let dY = eg[x] | |
730 | + | let ck = eg[y] | |
731 | + | let cl = eg[z] | |
732 | + | let dV = parseIntValue(eg[A]) | |
733 | + | let dW = parseIntValue(eg[B]) | |
734 | + | let dO = parseIntValue(eg[C]) | |
735 | + | let dQ = parseIntValue(eg[D]) | |
736 | + | let eh = parseIntValue(eg[E]) | |
737 | + | let cr = eg[F] | |
738 | + | [StringEntry(am(toString(dO), toString(dQ)), ch(af, toString(ef), dY, ck, cl, dV, dW, dO, dQ, eh, cr))] | |
733 | 739 | } | |
734 | 740 | else throw("Strict value is not equal to itself.") | |
735 | 741 | } | |
736 | 742 | ||
737 | 743 | ||
738 | 744 | ||
739 | - | @Callable( | |
740 | - | func emit ( | |
741 | - | let | |
742 | - | let | |
743 | - | let | |
744 | - | let | |
745 | - | let | |
746 | - | let | |
747 | - | if ((0 >= | |
745 | + | @Callable(bR) | |
746 | + | func emit (ei) = { | |
747 | + | let ej = bR.caller | |
748 | + | let ek = bR.originCaller | |
749 | + | let el = valueOrErrorMessage(getString(aF(toString(ej))), "Invalid LP address called me.") | |
750 | + | let em = fromBase58String(el) | |
751 | + | let dD = split(valueOrElse(getString(T()), n), m) | |
752 | + | let dC = addressFromStringValue(valueOrErrorMessage(getString(S()), "Legacy factory contract does not exists.")) | |
753 | + | if ((0 >= ei)) | |
748 | 754 | then nil | |
749 | - | else if (containsElement( | |
750 | - | then $Tuple2(nil, | |
751 | - | else $Tuple2([Reissue( | |
755 | + | else if (containsElement(dD, toString(ej))) | |
756 | + | then $Tuple2(nil, dC) | |
757 | + | else $Tuple2([Reissue(em, ei, true), ScriptTransfer(bR.caller, ei, em)], "success") | |
752 | 758 | } | |
753 | 759 | ||
754 | 760 | ||
755 | 761 | ||
756 | - | @Callable( | |
757 | - | func burn ( | |
758 | - | let | |
759 | - | let | |
760 | - | let | |
761 | - | let | |
762 | - | let | |
763 | - | let | |
764 | - | if (( | |
762 | + | @Callable(bR) | |
763 | + | func burn (en) = { | |
764 | + | let ej = bR.caller | |
765 | + | let ek = bR.originCaller | |
766 | + | let eo = value(bR.payments[0]) | |
767 | + | let ep = value(eo.amount) | |
768 | + | let eq = toBase58String(value(eo.assetId)) | |
769 | + | let er = valueOrErrorMessage(getString(aF(toString(ej))), "Invalid LP address called me.") | |
770 | + | if ((eq != er)) | |
765 | 771 | then K("Invalid asset passed.") | |
766 | - | else if (( | |
772 | + | else if ((en != ep)) | |
767 | 773 | then K("Invalid amount passed.") | |
768 | 774 | else { | |
769 | - | let | |
770 | - | $Tuple2([Burn( | |
775 | + | let em = fromBase58String(er) | |
776 | + | $Tuple2([Burn(em, en)], "success") | |
771 | 777 | } | |
772 | 778 | } | |
773 | 779 | ||
774 | 780 | ||
775 | 781 | ||
776 | - | @Callable( | |
777 | - | func modifyWeight ( | |
778 | - | let | |
782 | + | @Callable(bR) | |
783 | + | func modifyWeight (cj,es) = { | |
784 | + | let dz = if ((toBase58String(bR.caller.bytes) == valueOrElse(getString(this, Y()), ""))) | |
779 | 785 | then true | |
780 | - | else | |
781 | - | if (( | |
786 | + | else bS(bR) | |
787 | + | if ((dz == dz)) | |
782 | 788 | then { | |
783 | - | let aD = | |
784 | - | let | |
785 | - | let | |
786 | - | let | |
787 | - | let | |
788 | - | let | |
789 | - | let | |
790 | - | let | |
791 | - | let | |
792 | - | if (( | |
789 | + | let aD = bg(aG(cj)) | |
790 | + | let et = ae(aD) | |
791 | + | let eu = ae(g) | |
792 | + | let ev = valueOrElse(getInteger(eu), 0) | |
793 | + | let dL = valueOrElse(getInteger(et), 0) | |
794 | + | let ew = es | |
795 | + | let bH = split(bg(O()), m) | |
796 | + | let dv = bJ(bH) | |
797 | + | let ex = invoke(dv, "onModifyWeight", [cj, aD], nil) | |
798 | + | if ((ex == ex)) | |
793 | 799 | then { | |
794 | - | let | |
800 | + | let ey = if ((ev == 0)) | |
795 | 801 | then nil | |
796 | - | else [IntegerEntry( | |
797 | - | let | |
798 | - | let | |
799 | - | let | |
802 | + | else [IntegerEntry(eu, 0)] | |
803 | + | let ez = ag(aD, 0) | |
804 | + | let eA = getInteger(ez) | |
805 | + | let eB = if ((eA == unit)) | |
800 | 806 | then nil | |
801 | - | else [DeleteEntry( | |
802 | - | (([IntegerEntry( | |
807 | + | else [DeleteEntry(ez)] | |
808 | + | (([IntegerEntry(et, ew)] ++ ey) ++ eB) | |
803 | 809 | } | |
804 | 810 | else throw("Strict value is not equal to itself.") | |
805 | 811 | } | |
808 | 814 | ||
809 | 815 | ||
810 | 816 | ||
811 | - | @Callable( | |
812 | - | func modifyWeights ( | |
813 | - | let | |
814 | - | if (( | |
817 | + | @Callable(bR) | |
818 | + | func modifyWeights (eC,eD,eE,eF) = { | |
819 | + | let dz = bS(bR) | |
820 | + | if ((dz == dz)) | |
815 | 821 | then { | |
816 | - | let eE = ((5 * f) / 100) | |
817 | - | let eF = ((5 * f) / 100) | |
818 | 822 | let eG = ((5 * f) / 100) | |
819 | - | let | |
820 | - | let | |
821 | - | let | |
822 | - | let eJ = | |
823 | - | let eK = | |
823 | + | let eH = ((5 * f) / 100) | |
824 | + | let eI = ((5 * f) / 100) | |
825 | + | let bH = split(bg(O()), m) | |
826 | + | let eJ = bJ(bH) | |
827 | + | let eK = bK(bH) | |
824 | 828 | let eL = ae(eC) | |
825 | 829 | let eM = ae(eD) | |
826 | - | let eN = bh(eJ) | |
827 | - | let eO = bh(eK) | |
828 | - | let eP = (eN - eG) | |
829 | - | let eQ = (eO - eG) | |
830 | - | if ((0 >= eP)) | |
831 | - | then K(("invalid btcWeightNew: " + toString(eP))) | |
832 | - | else if ((0 >= eQ)) | |
833 | - | then K(("invalid ethWeightNew: " + toString(eQ))) | |
830 | + | let eN = ae(eE) | |
831 | + | let eO = ae(eF) | |
832 | + | let eP = bj(eL) | |
833 | + | let eQ = bj(eM) | |
834 | + | let eR = (eP - eI) | |
835 | + | let eS = (eQ - eI) | |
836 | + | if ((0 >= eR)) | |
837 | + | then K(("invalid btcWeightNew: " + toString(eR))) | |
838 | + | else if ((0 >= eS)) | |
839 | + | then K(("invalid ethWeightNew: " + toString(eS))) | |
834 | 840 | else { | |
835 | - | let | |
836 | - | let | |
837 | - | let | |
838 | - | let | |
839 | - | let | |
840 | - | if (( | |
841 | + | let eT = bg(aF(eC)) | |
842 | + | let eU = bg(aF(eD)) | |
843 | + | let eV = bg(aF(eE)) | |
844 | + | let eW = bg(aF(eF)) | |
845 | + | let eX = invoke(eJ, "onModifyWeight", [eT, eC], nil) | |
846 | + | if ((eX == eX)) | |
841 | 847 | then { | |
842 | - | let | |
843 | - | if (( | |
848 | + | let eY = invoke(eJ, "onModifyWeight", [eU, eD], nil) | |
849 | + | if ((eY == eY)) | |
844 | 850 | then { | |
845 | - | let | |
846 | - | if (( | |
851 | + | let eZ = invoke(eJ, "onModifyWeight", [eV, eE], nil) | |
852 | + | if ((eZ == eZ)) | |
847 | 853 | then { | |
848 | - | let | |
849 | - | if (( | |
850 | - | then [IntegerEntry( | |
854 | + | let fa = invoke(eJ, "onModifyWeight", [eW, eF], nil) | |
855 | + | if ((fa == fa)) | |
856 | + | then [IntegerEntry(eL, eR), IntegerEntry(eM, eS), IntegerEntry(eN, eG), IntegerEntry(eO, eH), IntegerEntry(ag(eC, 0), eP), IntegerEntry(ag(eD, 0), eQ), IntegerEntry(ag(eE, 0), eG), IntegerEntry(ag(eF, 0), eH)] | |
851 | 857 | else throw("Strict value is not equal to itself.") | |
852 | 858 | } | |
853 | 859 | else throw("Strict value is not equal to itself.") | |
862 | 868 | ||
863 | 869 | ||
864 | 870 | ||
865 | - | @Callable( | |
871 | + | @Callable(bR) | |
866 | 872 | func checkWxEmissionPoolLabel (aI,aJ) = { | |
867 | - | let | |
868 | - | let | |
869 | - | if ($isInstanceOf( | |
873 | + | let fb = { | |
874 | + | let bn = getBoolean(aH(aI, aJ)) | |
875 | + | if ($isInstanceOf(bn, "Boolean")) | |
870 | 876 | then { | |
871 | - | let | |
872 | - | | |
877 | + | let dh = bn | |
878 | + | dh | |
873 | 879 | } | |
874 | 880 | else false | |
875 | 881 | } | |
876 | - | $Tuple2(nil, | |
882 | + | $Tuple2(nil, fb) | |
877 | 883 | } | |
878 | 884 | ||
879 | 885 | ||
880 | 886 | ||
881 | - | @Callable( | |
887 | + | @Callable(bR) | |
882 | 888 | func setWxEmissionPoolLabel (aI,aJ) = { | |
883 | - | let | |
884 | - | if (( | |
889 | + | let dz = cE(bR) | |
890 | + | if ((dz == dz)) | |
885 | 891 | then $Tuple2([BooleanEntry(aH(aI, aJ), true)], unit) | |
886 | 892 | else throw("Strict value is not equal to itself.") | |
887 | 893 | } | |
888 | 894 | ||
889 | 895 | ||
890 | 896 | ||
891 | - | @Callable( | |
897 | + | @Callable(bR) | |
892 | 898 | func deleteWxEmissionPoolLabel (aI,aJ) = { | |
893 | - | let | |
899 | + | let dz = if ((bR.caller == this)) | |
894 | 900 | then true | |
895 | - | else | |
896 | - | if (( | |
901 | + | else cE(bR) | |
902 | + | if ((dz == dz)) | |
897 | 903 | then $Tuple2([DeleteEntry(aH(aI, aJ))], unit) | |
898 | 904 | else throw("Strict value is not equal to itself.") | |
899 | 905 | } | |
900 | 906 | ||
901 | 907 | ||
902 | 908 | ||
903 | - | @Callable( | |
904 | - | func onVerificationLoss ( | |
905 | - | let | |
909 | + | @Callable(bR) | |
910 | + | func onVerificationLoss (aR) = { | |
911 | + | let dz = if ((toBase58String(bR.caller.bytes) == valueOrElse(getString(this, X()), ""))) | |
906 | 912 | then true | |
907 | - | else | |
908 | - | if (( | |
913 | + | else bS(bR) | |
914 | + | if ((dz == dz)) | |
909 | 915 | then { | |
910 | - | let | |
911 | - | let | |
916 | + | let dG = bL() | |
917 | + | let fc = if ((size(dG) > 0)) | |
912 | 918 | then true | |
913 | 919 | else K("invalid price assets") | |
914 | - | if (( | |
920 | + | if ((fc == fc)) | |
915 | 921 | then { | |
916 | - | func | |
917 | - | let | |
918 | - | if (( | |
922 | + | func fd (fe,ff) = { | |
923 | + | let db = invoke(this, "deleteWxEmissionPoolLabel", [aR, ff], nil) | |
924 | + | if ((db == db)) | |
919 | 925 | then unit | |
920 | 926 | else throw("Strict value is not equal to itself.") | |
921 | 927 | } | |
922 | 928 | ||
923 | - | let | |
924 | - | let | |
925 | - | let | |
926 | - | let | |
927 | - | func | |
928 | - | then | |
929 | - | else | |
929 | + | let fg = { | |
930 | + | let fh = dG | |
931 | + | let fi = size(fh) | |
932 | + | let fj = unit | |
933 | + | func fk (fl,fm) = if ((fm >= fi)) | |
934 | + | then fl | |
935 | + | else fd(fl, fh[fm]) | |
930 | 936 | ||
931 | - | func | |
932 | - | then | |
937 | + | func fn (fl,fm) = if ((fm >= fi)) | |
938 | + | then fl | |
933 | 939 | else throw("List size exceeds 13") | |
934 | 940 | ||
935 | - | | |
941 | + | fn(fk(fk(fk(fk(fk(fk(fk(fk(fk(fk(fk(fk(fk(fj, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13) | |
936 | 942 | } | |
937 | - | if (( | |
943 | + | if ((fg == fg)) | |
938 | 944 | then $Tuple2(nil, unit) | |
939 | 945 | else throw("Strict value is not equal to itself.") | |
940 | 946 | } | |
945 | 951 | ||
946 | 952 | ||
947 | 953 | ||
948 | - | @Callable( | |
954 | + | @Callable(bR) | |
949 | 955 | func isPoolOneTokenOperationsDisabledREADONLY (af) = { | |
950 | - | let ee = ct(af) | |
951 | - | let aq = $Tuple2(parseIntValue(ee[C]), parseIntValue(ee[D])) | |
952 | - | let fm = valueOrElse(getBoolean(ap(aq)), false) | |
953 | - | let fn = valueOrElse(getBoolean(as()), false) | |
954 | - | $Tuple2(nil, if (fn) | |
955 | - | then true | |
956 | - | else fm) | |
957 | - | } | |
958 | - | ||
959 | - | ||
960 | - | ||
961 | - | @Callable(bP) | |
962 | - | func isPoolSwapDisabledREADONLY (af) = { | |
963 | - | let ee = ct(af) | |
964 | - | let aq = $Tuple2(parseIntValue(ee[C]), parseIntValue(ee[D])) | |
965 | - | let fo = valueOrElse(getBoolean(at(aq)), false) | |
966 | - | let fp = valueOrElse(getBoolean(av()), false) | |
956 | + | let eg = cv(af) | |
957 | + | let aq = $Tuple2(parseIntValue(eg[C]), parseIntValue(eg[D])) | |
958 | + | let fo = valueOrElse(getBoolean(ap(aq)), false) | |
959 | + | let fp = valueOrElse(getBoolean(as()), false) | |
967 | 960 | $Tuple2(nil, if (fp) | |
968 | 961 | then true | |
969 | 962 | else fo) | |
971 | 964 | ||
972 | 965 | ||
973 | 966 | ||
974 | - | @Callable(bP) | |
975 | - | func getInFeeREADONLY (af) = { | |
976 | - | let fq = cF(aK(af), aL(), 0) | |
977 | - | $Tuple2(nil, fq) | |
967 | + | @Callable(bR) | |
968 | + | func isPoolSwapDisabledREADONLY (af) = { | |
969 | + | let eg = cv(af) | |
970 | + | let aq = $Tuple2(parseIntValue(eg[C]), parseIntValue(eg[D])) | |
971 | + | let fq = valueOrElse(getBoolean(at(aq)), false) | |
972 | + | let fr = valueOrElse(getBoolean(av()), false) | |
973 | + | $Tuple2(nil, if (fr) | |
974 | + | then true | |
975 | + | else fq) | |
978 | 976 | } | |
979 | 977 | ||
980 | 978 | ||
981 | 979 | ||
982 | - | @Callable(bP) | |
983 | - | func getOutFeeREADONLY (af) = { | |
984 | - | let fq = cF(aN(af), aO(), fraction(10, b, 10000)) | |
985 | - | $Tuple2(nil, fq) | |
986 | - | } | |
987 | - | ||
988 | - | ||
989 | - | ||
990 | - | @Callable(bP) | |
991 | - | func getSwapFeeREADONLY (fr) = { | |
992 | - | let fs = { | |
993 | - | let bl = getString(this, aM(fr)) | |
994 | - | if ($isInstanceOf(bl, "String")) | |
995 | - | then { | |
996 | - | let bm = bl | |
997 | - | let ft = split(bm, m) | |
998 | - | let fu = parseIntValue(ft[1]) | |
999 | - | let fv = parseIntValue(ft[2]) | |
1000 | - | $Tuple2(fu, fv) | |
1001 | - | } | |
1002 | - | else if ($isInstanceOf(bl, "Unit")) | |
1003 | - | then unit | |
1004 | - | else throw("Match error") | |
1005 | - | } | |
980 | + | @Callable(bR) | |
981 | + | func getInFeeREADONLY (af) = { | |
982 | + | let fs = cH(aK(af), aL(), 0) | |
1006 | 983 | $Tuple2(nil, fs) | |
1007 | 984 | } | |
1008 | 985 | ||
1009 | 986 | ||
1010 | 987 | ||
1011 | - | @Callable(bP) | |
1012 | - | func poolInfoREADONLY (fw,fx) = { | |
1013 | - | let fy = getInteger(this, ak(fw)) | |
1014 | - | let fz = getInteger(this, ak(fx)) | |
1015 | - | let fA = getString(this, aE(value(fy), value(fz))) | |
1016 | - | let fB = getString(this, aF(value(fA))) | |
1017 | - | let dR = if (if (isDefined(fy)) | |
1018 | - | then isDefined(fz) | |
1019 | - | else false) | |
1020 | - | then isDefined(fA) | |
1021 | - | else false | |
1022 | - | let fC = if (dR) | |
1023 | - | then $Tuple2(addressFromStringValue(value(fA)), bi(value(fB))) | |
1024 | - | else unit | |
1025 | - | $Tuple2(nil, fC) | |
988 | + | @Callable(bR) | |
989 | + | func getOutFeeREADONLY (af) = { | |
990 | + | let fs = cH(aN(af), aO(), fraction(10, b, 10000)) | |
991 | + | $Tuple2(nil, fs) | |
1026 | 992 | } | |
1027 | 993 | ||
1028 | 994 | ||
1029 | 995 | ||
1030 | - | @Callable(bP) | |
1031 | - | func getPoolStatusREADONLY (af) = { | |
1032 | - | let cu = split(be(aC(af)), m) | |
1033 | - | let an = cu[1] | |
1034 | - | let ao = cu[2] | |
1035 | - | let cL = split(be(am(an, ao)), m) | |
1036 | - | $Tuple2(nil, parseIntValue(cL[w])) | |
996 | + | @Callable(bR) | |
997 | + | func getSwapFeeREADONLY (ft) = { | |
998 | + | let fu = { | |
999 | + | let bn = getString(this, aM(ft)) | |
1000 | + | if ($isInstanceOf(bn, "String")) | |
1001 | + | then { | |
1002 | + | let bo = bn | |
1003 | + | let fv = split(bo, m) | |
1004 | + | let fw = parseIntValue(fv[1]) | |
1005 | + | let fx = parseIntValue(fv[2]) | |
1006 | + | $Tuple2(fw, fx) | |
1007 | + | } | |
1008 | + | else if ($isInstanceOf(bn, "Unit")) | |
1009 | + | then unit | |
1010 | + | else throw("Match error") | |
1011 | + | } | |
1012 | + | $Tuple2(nil, fu) | |
1037 | 1013 | } | |
1038 | 1014 | ||
1039 | 1015 | ||
1040 | 1016 | ||
1041 | - | @Callable(bP) | |
1042 | - | func getPoolConfigREADONLY (af) = { | |
1043 | - | let cu = split(be(aC(af)), m) | |
1044 | - | let an = cu[1] | |
1045 | - | let ao = cu[2] | |
1046 | - | let cL = split(be(am(an, ao)), m) | |
1047 | - | $Tuple2(nil, cL) | |
1017 | + | @Callable(bR) | |
1018 | + | func poolInfoREADONLY (fy,fz) = { | |
1019 | + | let fA = getInteger(this, ak(fy)) | |
1020 | + | let fB = getInteger(this, ak(fz)) | |
1021 | + | let fC = getString(this, aE(value(fA), value(fB))) | |
1022 | + | let fD = getString(this, aF(value(fC))) | |
1023 | + | let dT = if (if (isDefined(fA)) | |
1024 | + | then isDefined(fB) | |
1025 | + | else false) | |
1026 | + | then isDefined(fC) | |
1027 | + | else false | |
1028 | + | let fE = if (dT) | |
1029 | + | then $Tuple2(addressFromStringValue(value(fC)), bk(value(fD))) | |
1030 | + | else unit | |
1031 | + | $Tuple2(nil, fE) | |
1048 | 1032 | } | |
1049 | 1033 | ||
1050 | 1034 | ||
1051 | 1035 | ||
1052 | - | @Callable( | |
1053 | - | func | |
1054 | - | let | |
1055 | - | let an = | |
1056 | - | let ao = | |
1057 | - | let | |
1058 | - | $Tuple2(nil, | |
1036 | + | @Callable(bR) | |
1037 | + | func getPoolStatusREADONLY (af) = { | |
1038 | + | let cw = split(bg(aC(af)), m) | |
1039 | + | let an = cw[1] | |
1040 | + | let ao = cw[2] | |
1041 | + | let cN = split(bg(am(an, ao)), m) | |
1042 | + | $Tuple2(nil, parseIntValue(cN[w])) | |
1059 | 1043 | } | |
1060 | 1044 | ||
1061 | 1045 | ||
1062 | 1046 | ||
1063 | - | @Callable(bP) | |
1064 | - | func poolExistsREADONLY (aI,aJ) = $Tuple2(nil, cI(aI, aJ)) | |
1065 | - | ||
1066 | - | ||
1067 | - | ||
1068 | - | @Callable(bP) | |
1069 | - | func skipOrderValidationREADONLY (af) = $Tuple2(nil, valueOrElse(getBoolean(aP(af)), false)) | |
1070 | - | ||
1071 | - | ||
1072 | - | ||
1073 | - | @Callable(bP) | |
1074 | - | func getChangeAmpConfigREADONLY (af) = { | |
1075 | - | let fD = getIntegerValue(aQ(af)) | |
1076 | - | let fE = getIntegerValue(aR(af)) | |
1077 | - | let fF = getIntegerValue(aS(af)) | |
1078 | - | $Tuple2(nil, [fD, fE, fF]) | |
1047 | + | @Callable(bR) | |
1048 | + | func getPoolConfigREADONLY (af) = { | |
1049 | + | let cw = split(bg(aC(af)), m) | |
1050 | + | let an = cw[1] | |
1051 | + | let ao = cw[2] | |
1052 | + | let cN = split(bg(am(an, ao)), m) | |
1053 | + | $Tuple2(nil, cN) | |
1079 | 1054 | } | |
1080 | 1055 | ||
1081 | 1056 | ||
1082 | 1057 | ||
1083 | - | @Callable(bP) | |
1084 | - | func getPoolWeightREADONLY (ch) = { | |
1085 | - | let af = be(aG(ch)) | |
1086 | - | let fG = valueOrElse(getInteger(ae(af)), 0) | |
1087 | - | $Tuple2(nil, fG) | |
1058 | + | @Callable(bR) | |
1059 | + | func getPoolConfigByLpAssetIdREADONLY (dY) = { | |
1060 | + | let cw = split(bg(aw(dY)), m) | |
1061 | + | let an = cw[1] | |
1062 | + | let ao = cw[2] | |
1063 | + | let cN = split(bg(am(an, ao)), m) | |
1064 | + | $Tuple2(nil, cN) | |
1088 | 1065 | } | |
1089 | 1066 | ||
1090 | 1067 | ||
1091 | 1068 | ||
1092 | - | @Callable(bP) | |
1069 | + | @Callable(bR) | |
1070 | + | func poolExistsREADONLY (aI,aJ) = $Tuple2(nil, cK(aI, aJ)) | |
1071 | + | ||
1072 | + | ||
1073 | + | ||
1074 | + | @Callable(bR) | |
1075 | + | func skipOrderValidationREADONLY (af) = $Tuple2(nil, valueOrElse(getBoolean(aS(af)), false)) | |
1076 | + | ||
1077 | + | ||
1078 | + | ||
1079 | + | @Callable(bR) | |
1080 | + | func getChangeAmpConfigREADONLY (af) = { | |
1081 | + | let fF = getIntegerValue(aT(af)) | |
1082 | + | let fG = getIntegerValue(aU(af)) | |
1083 | + | let fH = getIntegerValue(aV(af)) | |
1084 | + | $Tuple2(nil, [fF, fG, fH]) | |
1085 | + | } | |
1086 | + | ||
1087 | + | ||
1088 | + | ||
1089 | + | @Callable(bR) | |
1090 | + | func getPoolWeightREADONLY (cj) = { | |
1091 | + | let af = bg(aG(cj)) | |
1092 | + | let fI = valueOrElse(getInteger(ae(af)), 0) | |
1093 | + | $Tuple2(nil, fI) | |
1094 | + | } | |
1095 | + | ||
1096 | + | ||
1097 | + | ||
1098 | + | @Callable(bR) | |
1093 | 1099 | func deletePool (aD) = { | |
1094 | - | let | |
1095 | - | let | |
1096 | - | then if ( | |
1100 | + | let eg = cv(aD) | |
1101 | + | let dz = if ((toString(bR.caller) == cR(aD))) | |
1102 | + | then if (cY(aD)) | |
1097 | 1103 | then true | |
1098 | 1104 | else K("Pool is not empty") | |
1099 | - | else | |
1100 | - | if (( | |
1105 | + | else bS(bR) | |
1106 | + | if ((dz == dz)) | |
1101 | 1107 | then { | |
1102 | - | let | |
1108 | + | let fJ = if ((valueOrElse(getInteger(ae(aD)), 0) == 0)) | |
1103 | 1109 | then true | |
1104 | 1110 | else K("Pool weight is not Zero") | |
1105 | - | if (( | |
1111 | + | if ((fJ == fJ)) | |
1106 | 1112 | then { | |
1107 | - | let | |
1113 | + | let fK = if ((eg[w] == toString(r))) | |
1108 | 1114 | then true | |
1109 | 1115 | else K("Pool must be SHUTDOWN (4)") | |
1110 | - | if (( | |
1116 | + | if ((fK == fK)) | |
1111 | 1117 | then { | |
1112 | - | let | |
1113 | - | let aI = | |
1114 | - | let aJ = | |
1115 | - | let | |
1116 | - | let an = | |
1117 | - | let ao = | |
1118 | - | let | |
1119 | - | let | |
1120 | - | if (( | |
1118 | + | let fL = cQ(aD) | |
1119 | + | let aI = fL._1 | |
1120 | + | let aJ = fL._2 | |
1121 | + | let cj = fL._3 | |
1122 | + | let an = fL._4 | |
1123 | + | let ao = fL._5 | |
1124 | + | let cT = addressFromStringValue(getStringValue(Z())) | |
1125 | + | let fM = invoke(cT, "deletePool", [aI, aJ], nil) | |
1126 | + | if ((fM == fM)) | |
1121 | 1127 | then { | |
1122 | - | let | |
1123 | - | let | |
1124 | - | if (( | |
1128 | + | let dF = addressFromStringValue(getStringValue(Y())) | |
1129 | + | let fN = invoke(dF, "deletePool", [aI, aJ], nil) | |
1130 | + | if ((fN == fN)) | |
1125 | 1131 | then { | |
1126 | - | let | |
1127 | - | let | |
1128 | - | if (( | |
1129 | - | then [DeleteEntry(aF(aD)), DeleteEntry(aC(aD)), DeleteEntry(ay(toString(an), toString(ao))), DeleteEntry(aE(an, ao)), DeleteEntry(am(toString(an), toString(ao))), DeleteEntry(aw( | |
1132 | + | let dE = addressFromStringValue(getStringValue(X())) | |
1133 | + | let fO = invoke(dE, "deletePool", [aI, aJ], nil) | |
1134 | + | if ((fO == fO)) | |
1135 | + | then [DeleteEntry(aF(aD)), DeleteEntry(aC(aD)), DeleteEntry(ay(toString(an), toString(ao))), DeleteEntry(aE(an, ao)), DeleteEntry(am(toString(an), toString(ao))), DeleteEntry(aw(cj)), DeleteEntry(aG(cj)), DeleteEntry(aH(aI, aJ)), DeleteEntry(ae(aD)), DeleteEntry(aB(aD)), DeleteEntry(aK(aD)), DeleteEntry(aN(aD)), DeleteEntry(aS(aD)), DeleteEntry(aT(aD)), DeleteEntry(aU(aD)), DeleteEntry(aV(aD))] | |
1130 | 1136 | else throw("Strict value is not equal to itself.") | |
1131 | 1137 | } | |
1132 | 1138 | else throw("Strict value is not equal to itself.") | |
1142 | 1148 | ||
1143 | 1149 | ||
1144 | 1150 | ||
1145 | - | @Callable( | |
1146 | - | func getPrice ( | |
1147 | - | let af = addressFromStringValue( | |
1148 | - | let | |
1149 | - | let | |
1150 | - | let | |
1151 | - | let aJ = | |
1152 | - | let | |
1153 | - | let | |
1154 | - | let | |
1155 | - | if ($isInstanceOf( | |
1156 | - | then | |
1157 | - | else throw(($getType( | |
1151 | + | @Callable(bR) | |
1152 | + | func getPrice (ft) = { | |
1153 | + | let af = addressFromStringValue(ft) | |
1154 | + | let cN = cv(ft) | |
1155 | + | let cj = fromBase58String(cN[x]) | |
1156 | + | let fP = cN[y] | |
1157 | + | let aJ = cN[z] | |
1158 | + | let fQ = value(assetInfo(cj)).quantity | |
1159 | + | let fR = { | |
1160 | + | let fS = invoke(af, "getAccBalanceWrapperREADONLY", [fP], nil) | |
1161 | + | if ($isInstanceOf(fS, "Int")) | |
1162 | + | then fS | |
1163 | + | else throw(($getType(fS) + " couldn't be cast to Int")) | |
1158 | 1164 | } | |
1159 | - | let | |
1160 | - | let | |
1161 | - | if ($isInstanceOf( | |
1162 | - | then | |
1163 | - | else throw(($getType( | |
1165 | + | let fT = { | |
1166 | + | let fS = invoke(af, "getAccBalanceWrapperREADONLY", [aJ], nil) | |
1167 | + | if ($isInstanceOf(fS, "Int")) | |
1168 | + | then fS | |
1169 | + | else throw(($getType(fS) + " couldn't be cast to Int")) | |
1164 | 1170 | } | |
1165 | - | let | |
1171 | + | let fU = if ((fQ == 0)) | |
1166 | 1172 | then 0 | |
1167 | 1173 | else { | |
1168 | - | let | |
1169 | - | let | |
1170 | - | if ($isInstanceOf( | |
1171 | - | then | |
1172 | - | else throw(($getType( | |
1174 | + | let fS = ({ | |
1175 | + | let fS = invoke(af, "calcPricesWrapperREADONLY", [fR, fT, fQ], nil) | |
1176 | + | if ($isInstanceOf(fS, "List[Any]")) | |
1177 | + | then fS | |
1178 | + | else throw(($getType(fS) + " couldn't be cast to List[Any]")) | |
1173 | 1179 | })[0] | |
1174 | - | if ($isInstanceOf( | |
1175 | - | then | |
1176 | - | else throw(($getType( | |
1180 | + | if ($isInstanceOf(fS, "String")) | |
1181 | + | then fS | |
1182 | + | else throw(($getType(fS) + " couldn't be cast to String")) | |
1177 | 1183 | } | |
1178 | - | $Tuple2(nil, | |
1184 | + | $Tuple2(nil, fU) | |
1179 | 1185 | } | |
1180 | 1186 | ||
1181 | 1187 | ||
1182 | - | @Verifier(fT) | |
1183 | - | func fU () = { | |
1184 | - | let fV = { | |
1185 | - | let bl = bK() | |
1186 | - | if ($isInstanceOf(bl, "ByteVector")) | |
1188 | + | ||
1189 | + | @Callable(bR) | |
1190 | + | func checkBalance (dY) = { | |
1191 | + | let ft = bg(aG(dY)) | |
1192 | + | let af = addressFromStringValue(ft) | |
1193 | + | let cN = cv(ft) | |
1194 | + | let fy = cN[y] | |
1195 | + | let fz = cN[z] | |
1196 | + | let fV = getIntegerValue(this, aP()) | |
1197 | + | let fW = valueOrElse(getInteger(this, aQ(fy)), fV) | |
1198 | + | let fX = valueOrElse(getInteger(this, aQ(fz)), fV) | |
1199 | + | let fY = { | |
1200 | + | let fS = invoke(af, "getAccBalanceWrapperREADONLY", [fy], nil) | |
1201 | + | if ($isInstanceOf(fS, "Int")) | |
1202 | + | then fS | |
1203 | + | else throw(($getType(fS) + " couldn't be cast to Int")) | |
1204 | + | } | |
1205 | + | let fZ = { | |
1206 | + | let fS = invoke(af, "getAccBalanceWrapperREADONLY", [fz], nil) | |
1207 | + | if ($isInstanceOf(fS, "Int")) | |
1208 | + | then fS | |
1209 | + | else throw(($getType(fS) + " couldn't be cast to Int")) | |
1210 | + | } | |
1211 | + | let ga = (fY >= (fW / 2)) | |
1212 | + | let gb = (fZ >= (fX / 2)) | |
1213 | + | let gc = if (ga) | |
1214 | + | then gb | |
1215 | + | else false | |
1216 | + | $Tuple2(nil, gc) | |
1217 | + | } | |
1218 | + | ||
1219 | + | ||
1220 | + | @Verifier(gd) | |
1221 | + | func ge () = { | |
1222 | + | let gf = { | |
1223 | + | let bn = bM() | |
1224 | + | if ($isInstanceOf(bn, "ByteVector")) | |
1187 | 1225 | then { | |
1188 | - | let | |
1189 | - | | |
1226 | + | let bT = bn | |
1227 | + | bT | |
1190 | 1228 | } | |
1191 | - | else if ($isInstanceOf( | |
1192 | - | then | |
1229 | + | else if ($isInstanceOf(bn, "Unit")) | |
1230 | + | then gd.senderPublicKey | |
1193 | 1231 | else throw("Match error") | |
1194 | 1232 | } | |
1195 | - | sigVerify( | |
1233 | + | sigVerify(gd.bodyBytes, gd.proofs[0], gf) | |
1196 | 1234 | } | |
1197 | 1235 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = 8 | |
5 | 5 | ||
6 | 6 | let b = 100000000 | |
7 | 7 | ||
8 | 8 | let c = 1000000000000 | |
9 | 9 | ||
10 | 10 | let d = 18 | |
11 | 11 | ||
12 | 12 | let e = toBigInt(1000000000000000000) | |
13 | 13 | ||
14 | 14 | let f = b | |
15 | 15 | ||
16 | 16 | let g = "GWXvirtualPOOL" | |
17 | 17 | ||
18 | 18 | let h = "POOLS_LP" | |
19 | 19 | ||
20 | 20 | let i = 2000000 | |
21 | 21 | ||
22 | 22 | let j = "WAVES" | |
23 | 23 | ||
24 | 24 | let k = "factory_v2.ride" | |
25 | 25 | ||
26 | 26 | let l = ((100 * 1000) * 1000) | |
27 | 27 | ||
28 | 28 | let m = "__" | |
29 | 29 | ||
30 | 30 | let n = "" | |
31 | 31 | ||
32 | 32 | let o = 1 | |
33 | 33 | ||
34 | 34 | let p = 2 | |
35 | 35 | ||
36 | 36 | let q = 3 | |
37 | 37 | ||
38 | 38 | let r = 4 | |
39 | 39 | ||
40 | 40 | let s = 1 | |
41 | 41 | ||
42 | 42 | let t = 2 | |
43 | 43 | ||
44 | 44 | let u = 3 | |
45 | 45 | ||
46 | 46 | let v = 1 | |
47 | 47 | ||
48 | 48 | let w = 2 | |
49 | 49 | ||
50 | 50 | let x = 3 | |
51 | 51 | ||
52 | 52 | let y = 4 | |
53 | 53 | ||
54 | 54 | let z = 5 | |
55 | 55 | ||
56 | 56 | let A = 6 | |
57 | 57 | ||
58 | 58 | let B = 7 | |
59 | 59 | ||
60 | 60 | let C = 8 | |
61 | 61 | ||
62 | 62 | let D = 9 | |
63 | 63 | ||
64 | 64 | let E = 10 | |
65 | 65 | ||
66 | 66 | let F = 11 | |
67 | 67 | ||
68 | 68 | let G = "WX_EMISSION" | |
69 | 69 | ||
70 | 70 | let H = [G] | |
71 | 71 | ||
72 | 72 | func I (J) = makeString([k, ": ", J], "") | |
73 | 73 | ||
74 | 74 | ||
75 | 75 | func K (J) = throw(I(J)) | |
76 | 76 | ||
77 | 77 | ||
78 | 78 | func L () = "%s__allowedLpScriptHash" | |
79 | 79 | ||
80 | 80 | ||
81 | 81 | func M () = "%s__allowedLpStableScriptHash" | |
82 | 82 | ||
83 | 83 | ||
84 | 84 | func N () = "%s__swapContract" | |
85 | 85 | ||
86 | 86 | ||
87 | 87 | func O () = "%s__factoryConfig" | |
88 | 88 | ||
89 | 89 | ||
90 | 90 | func P () = "%s__lpTokensList" | |
91 | 91 | ||
92 | 92 | ||
93 | 93 | func Q () = "%s%s__pool__scriptHash" | |
94 | 94 | ||
95 | 95 | ||
96 | 96 | func R () = "%s%s__matcher__publicKey" | |
97 | 97 | ||
98 | 98 | ||
99 | 99 | func S () = "%s__legacyFactoryContract" | |
100 | 100 | ||
101 | 101 | ||
102 | 102 | func T () = "%s__legacyPools" | |
103 | 103 | ||
104 | 104 | ||
105 | 105 | func U () = "%s__managerPublicKey" | |
106 | 106 | ||
107 | 107 | ||
108 | 108 | func V () = "%s__managerVaultAddress" | |
109 | 109 | ||
110 | 110 | ||
111 | 111 | func W () = "%s__adminPubKeys" | |
112 | 112 | ||
113 | 113 | ||
114 | 114 | func X () = "%s__assetsStoreContract" | |
115 | 115 | ||
116 | 116 | ||
117 | 117 | func Y () = "%s__votingEmissionContract" | |
118 | 118 | ||
119 | 119 | ||
120 | 120 | func Z () = "%s__userPoolsContract" | |
121 | 121 | ||
122 | 122 | ||
123 | 123 | func aa () = makeString(["%s", "priceAssets"], m) | |
124 | 124 | ||
125 | 125 | ||
126 | 126 | func ab () = "%s__priceDecimals" | |
127 | 127 | ||
128 | 128 | ||
129 | 129 | func ac () = "%s__shutdown" | |
130 | 130 | ||
131 | 131 | ||
132 | 132 | func ad () = "%s__nextInternalAssetId" | |
133 | 133 | ||
134 | 134 | ||
135 | 135 | func ae (af) = ("%s%s__poolWeight__" + af) | |
136 | 136 | ||
137 | 137 | ||
138 | 138 | func ag (af,ah) = ((("%s%s__poolWeight__" + af) + "__") + toString(ah)) | |
139 | 139 | ||
140 | 140 | ||
141 | 141 | func ai (aj) = ("%s%s%d__mappings__internal2baseAssetId__" + toString(aj)) | |
142 | 142 | ||
143 | 143 | ||
144 | 144 | func ak (al) = ("%s%s%s__mappings__baseAsset2internalId__" + al) | |
145 | 145 | ||
146 | 146 | ||
147 | 147 | func am (an,ao) = (((("%d%d%s__" + an) + "__") + ao) + "__config") | |
148 | 148 | ||
149 | 149 | ||
150 | 150 | func ap (aq) = { | |
151 | 151 | let ar = aq | |
152 | 152 | let an = ar._1 | |
153 | 153 | let ao = ar._2 | |
154 | 154 | makeString(["%d%d%s", toString(an), toString(ao), "oneTokenOperationsDisabled"], m) | |
155 | 155 | } | |
156 | 156 | ||
157 | 157 | ||
158 | 158 | func as () = makeString(["%s", "oneTokenOperationsDisabled"], m) | |
159 | 159 | ||
160 | 160 | ||
161 | 161 | func at (aq) = { | |
162 | 162 | let au = aq | |
163 | 163 | let an = au._1 | |
164 | 164 | let ao = au._2 | |
165 | 165 | makeString(["%d%d%s", toString(an), toString(ao), "swapDisabled"], m) | |
166 | 166 | } | |
167 | 167 | ||
168 | 168 | ||
169 | 169 | func av () = makeString(["%s", "swapDisabled"], m) | |
170 | 170 | ||
171 | 171 | ||
172 | 172 | func aw (ax) = (("%s%s%s__" + ax) + "__mappings__lpAsset2Pool") | |
173 | 173 | ||
174 | 174 | ||
175 | 175 | func ay (az,aA) = (((("%d%d%s%s__" + az) + "__") + aA) + "__mappings__PoolAssets2LpAsset") | |
176 | 176 | ||
177 | 177 | ||
178 | 178 | func aB (af) = ("%s%s__spread__" + af) | |
179 | 179 | ||
180 | 180 | ||
181 | 181 | func aC (aD) = (("%s%s%s__" + aD) + "__mappings__poolContract2PoolAssets") | |
182 | 182 | ||
183 | 183 | ||
184 | 184 | func aE (az,aA) = (((("%d%d%s%s__" + toString(az)) + "__") + toString(aA)) + "__mappings__poolAssets2PoolContract") | |
185 | 185 | ||
186 | 186 | ||
187 | 187 | func aF (aD) = (("%s%s%s__" + aD) + "__mappings__poolContract2LpAsset") | |
188 | 188 | ||
189 | 189 | ||
190 | 190 | func aG (ax) = (("%s%s%s__" + ax) + "__mappings__lpAsset2PoolContract") | |
191 | 191 | ||
192 | 192 | ||
193 | 193 | func aH (aI,aJ) = ((("%s%s%s__wxEmission__" + aI) + "__") + aJ) | |
194 | 194 | ||
195 | 195 | ||
196 | 196 | func aK (af) = ("%s%s__inFee__" + af) | |
197 | 197 | ||
198 | 198 | ||
199 | 199 | func aL () = "%s__inFeeDefault" | |
200 | 200 | ||
201 | 201 | ||
202 | 202 | func aM (af) = ("%s%s__swapFee__" + af) | |
203 | 203 | ||
204 | 204 | ||
205 | 205 | func aN (af) = ("%s%s__outFee__" + af) | |
206 | 206 | ||
207 | 207 | ||
208 | 208 | func aO () = "%s__outFeeDefault" | |
209 | 209 | ||
210 | 210 | ||
211 | - | func aP ( | |
211 | + | func aP () = makeString(["%s", "poolAssetDefaultMinAmount"], m) | |
212 | 212 | ||
213 | 213 | ||
214 | - | func aQ ( | |
214 | + | func aQ (aR) = makeString(["%s%s", "poolAssetMinAmount", aR], m) | |
215 | 215 | ||
216 | 216 | ||
217 | - | func | |
217 | + | func aS (af) = ("%s%s__skipOrderValidation__" + af) | |
218 | 218 | ||
219 | 219 | ||
220 | - | func | |
220 | + | func aT (af) = ("%s%s__changeAmpDelay__" + af) | |
221 | 221 | ||
222 | 222 | ||
223 | - | func | |
223 | + | func aU (af) = ("%s%s__changeAmpDelta__" + af) | |
224 | 224 | ||
225 | 225 | ||
226 | - | func | |
226 | + | func aV (af) = ("%s%s__changeAmpTarget__" + af) | |
227 | 227 | ||
228 | 228 | ||
229 | - | func | |
229 | + | func aW () = "%s__sWavesProxyAddress" | |
230 | 230 | ||
231 | 231 | ||
232 | - | func | |
232 | + | func aX () = "%s__sWavesAssetId" | |
233 | 233 | ||
234 | 234 | ||
235 | - | func aY ( | |
235 | + | func aY () = "%s__stakingProfitAddress" | |
236 | 236 | ||
237 | 237 | ||
238 | - | func aZ (af, | |
238 | + | func aZ (af,aR) = makeString(["%s%s%s", "leasedRatio", af, aR], m) | |
239 | 239 | ||
240 | 240 | ||
241 | - | func ba ( | |
241 | + | func ba (aR) = makeString(["%s%s", "leasedRatioDefault", aR], m) | |
242 | 242 | ||
243 | 243 | ||
244 | - | func bb ( | |
244 | + | func bb (af,aR) = makeString(["%s%s%s", "leasedRatioTolerance", af, aR], m) | |
245 | 245 | ||
246 | 246 | ||
247 | - | func bc ( | |
247 | + | func bc (af,aR) = makeString(["%s%s%s", "minBalance", af, aR], m) | |
248 | 248 | ||
249 | 249 | ||
250 | - | func | |
250 | + | func bd (aR) = makeString(["%s%s", "minBalanceDefault", aR], m) | |
251 | 251 | ||
252 | 252 | ||
253 | - | func | |
253 | + | func be (bf) = makeString(["%s%s", "whitelisted", toString(bf)], m) | |
254 | 254 | ||
255 | 255 | ||
256 | - | func | |
256 | + | func bg (bh) = valueOrErrorMessage(getString(this, bh), ("No data for this.key=" + bh)) | |
257 | 257 | ||
258 | 258 | ||
259 | - | func bi (bj) = if ((bj == j)) | |
260 | - | then unit | |
261 | - | else fromBase58String(bj) | |
259 | + | func bi (bh) = valueOrErrorMessage(getBoolean(this, bh), ("No data for this.key=" + bh)) | |
262 | 260 | ||
263 | 261 | ||
264 | - | func bk () = { | |
265 | - | let bl = getString(V()) | |
266 | - | if ($isInstanceOf(bl, "String")) | |
262 | + | func bj (bh) = valueOrErrorMessage(getInteger(this, bh), ("No data for this.key=" + bh)) | |
263 | + | ||
264 | + | ||
265 | + | func bk (bl) = if ((bl == j)) | |
266 | + | then unit | |
267 | + | else fromBase58String(bl) | |
268 | + | ||
269 | + | ||
270 | + | func bm () = { | |
271 | + | let bn = getString(V()) | |
272 | + | if ($isInstanceOf(bn, "String")) | |
267 | 273 | then { | |
268 | - | let | |
269 | - | addressFromStringValue( | |
274 | + | let bo = bn | |
275 | + | addressFromStringValue(bo) | |
270 | 276 | } | |
271 | 277 | else this | |
272 | 278 | } | |
273 | 279 | ||
274 | 280 | ||
275 | - | func | |
281 | + | func bp (bq,br) = fraction(toBigInt(bq), e, toBigInt(br)) | |
276 | 282 | ||
277 | 283 | ||
278 | - | func | |
284 | + | func bs (bt,bu) = toInt(fraction(bt, toBigInt(bu), e)) | |
279 | 285 | ||
280 | 286 | ||
281 | - | let | |
287 | + | let bv = 1 | |
282 | 288 | ||
283 | - | let | |
289 | + | let bw = 2 | |
284 | 290 | ||
285 | - | let | |
291 | + | let bx = 3 | |
286 | 292 | ||
287 | - | let | |
293 | + | let by = 4 | |
288 | 294 | ||
289 | - | let | |
295 | + | let bz = 5 | |
290 | 296 | ||
291 | - | let | |
297 | + | let bA = 6 | |
292 | 298 | ||
293 | - | let | |
299 | + | let bB = 7 | |
294 | 300 | ||
295 | - | let | |
301 | + | let bC = 8 | |
296 | 302 | ||
297 | - | let | |
303 | + | let bD = 9 | |
298 | 304 | ||
299 | - | let | |
305 | + | let bE = 10 | |
300 | 306 | ||
301 | - | let | |
307 | + | let bF = 11 | |
302 | 308 | ||
303 | - | func | |
309 | + | func bG (bH) = addressFromStringValue(bH[bw]) | |
304 | 310 | ||
305 | 311 | ||
306 | - | func | |
312 | + | func bI (bH) = addressFromStringValue(bH[bz]) | |
307 | 313 | ||
308 | 314 | ||
309 | - | func | |
315 | + | func bJ (bH) = addressFromStringValue(bH[bv]) | |
310 | 316 | ||
311 | 317 | ||
312 | - | func | |
318 | + | func bK (bH) = addressFromStringValue(bH[bE]) | |
313 | 319 | ||
314 | 320 | ||
315 | - | func | |
316 | - | let | |
317 | - | if ($isInstanceOf( | |
321 | + | func bL () = { | |
322 | + | let bn = getString(aa()) | |
323 | + | if ($isInstanceOf(bn, "String")) | |
318 | 324 | then { | |
319 | - | let | |
320 | - | if ((size( | |
325 | + | let bo = bn | |
326 | + | if ((size(bo) == 0)) | |
321 | 327 | then nil | |
322 | - | else split_4C( | |
328 | + | else split_4C(bo, m) | |
323 | 329 | } | |
324 | 330 | else nil | |
325 | 331 | } | |
326 | 332 | ||
327 | 333 | ||
328 | - | func | |
329 | - | let | |
330 | - | let | |
331 | - | if ($isInstanceOf( | |
334 | + | func bM () = { | |
335 | + | let bN = bm() | |
336 | + | let bn = getString(bN, U()) | |
337 | + | if ($isInstanceOf(bn, "String")) | |
332 | 338 | then { | |
333 | - | let | |
334 | - | fromBase58String( | |
339 | + | let bo = bn | |
340 | + | fromBase58String(bo) | |
335 | 341 | } | |
336 | - | else if ($isInstanceOf( | |
342 | + | else if ($isInstanceOf(bn, "Unit")) | |
337 | 343 | then unit | |
338 | 344 | else throw("Match error") | |
339 | 345 | } | |
340 | 346 | ||
341 | 347 | ||
342 | - | let | |
348 | + | let bO = K("Permission denied") | |
343 | 349 | ||
344 | - | let | |
350 | + | let bP = K("Test error here") | |
345 | 351 | ||
346 | - | func | |
352 | + | func bQ (bR) = if ((bR.caller == this)) | |
347 | 353 | then true | |
348 | - | else | |
354 | + | else bO | |
349 | 355 | ||
350 | 356 | ||
351 | - | func | |
352 | - | let | |
353 | - | if ($isInstanceOf( | |
357 | + | func bS (bR) = { | |
358 | + | let bn = bM() | |
359 | + | if ($isInstanceOf(bn, "ByteVector")) | |
354 | 360 | then { | |
355 | - | let | |
356 | - | if (( | |
361 | + | let bT = bn | |
362 | + | if ((bR.callerPublicKey == bT)) | |
357 | 363 | then true | |
358 | - | else | |
364 | + | else bO | |
359 | 365 | } | |
360 | - | else if ($isInstanceOf( | |
361 | - | then | |
366 | + | else if ($isInstanceOf(bn, "Unit")) | |
367 | + | then bQ(bR) | |
362 | 368 | else throw("Match error") | |
363 | 369 | } | |
364 | 370 | ||
365 | 371 | ||
366 | - | func | |
372 | + | func bU (bV,bW,bX,bY,bZ,ca,cb,cc,cd,ce,cf) = makeString(["%s%s%s%s%s%s%s%s%s%s%s", bV, bW, bX, bY, bZ, ca, cb, cc, cd, ce, cf], m) | |
367 | 373 | ||
368 | 374 | ||
369 | - | func | |
375 | + | func cg (bV,bW,bX,bY,bZ,ca,cb) = makeString(["%s%s%s%s%s%s", bV, bW, bX, bY, bZ, ca, cb], m) | |
370 | 376 | ||
371 | 377 | ||
372 | - | func | |
378 | + | func ch (af,ci,cj,ck,cl,cm,cn,co,cp,cq,cr) = makeString(["%s%d%s%s%s%d%d%d%d%d%s", af, ci, cj, ck, cl, toString(cm), toString(cn), toString(co), toString(cp), toString(cq), cr], m) | |
373 | 379 | ||
374 | 380 | ||
375 | - | func | |
381 | + | func cs (ct,cu) = makeString(["%d%d", toString(ct), toString(cu)], m) | |
376 | 382 | ||
377 | 383 | ||
378 | - | func | |
379 | - | let | |
380 | - | let an = | |
381 | - | let ao = | |
382 | - | split( | |
384 | + | func cv (af) = { | |
385 | + | let cw = split(bg(aC(af)), m) | |
386 | + | let an = cw[1] | |
387 | + | let ao = cw[2] | |
388 | + | split(bg(am(an, ao)), m) | |
383 | 389 | } | |
384 | 390 | ||
385 | 391 | ||
386 | - | func | |
387 | - | let | |
388 | - | let | |
389 | - | let | |
392 | + | func cx (cy,cz) = { | |
393 | + | let cA = valueOrElse(getInteger(this, ak(cy)), 0) | |
394 | + | let cB = valueOrElse(getInteger(this, ad()), 0) | |
395 | + | let cC = if ((cA == 0)) | |
390 | 396 | then { | |
391 | - | let | |
392 | - | $Tuple3( | |
397 | + | let cD = (cB + cz) | |
398 | + | $Tuple3(cD, [IntegerEntry(ad(), cD), IntegerEntry(ak(cy), cD), StringEntry(ai(cD), cy)], true) | |
393 | 399 | } | |
394 | - | else $Tuple3( | |
395 | - | | |
400 | + | else $Tuple3(cA, nil, false) | |
401 | + | cC | |
396 | 402 | } | |
397 | 403 | ||
398 | 404 | ||
399 | - | func | |
400 | - | let | |
401 | - | if (containsElement( | |
405 | + | func cE (bR) = { | |
406 | + | let cF = split(valueOrElse(getString(W()), n), m) | |
407 | + | if (containsElement(cF, toBase58String(bR.callerPublicKey))) | |
402 | 408 | then true | |
403 | 409 | else { | |
404 | - | let | |
405 | - | if (( | |
410 | + | let cG = bS(bR) | |
411 | + | if ((cG == cG)) | |
406 | 412 | then true | |
407 | 413 | else throw("Strict value is not equal to itself.") | |
408 | 414 | } | |
409 | 415 | } | |
410 | 416 | ||
411 | 417 | ||
412 | - | func | |
418 | + | func cH (bh,cI,cJ) = valueOrElse(getInteger(this, bh), valueOrElse(getInteger(this, cI), cJ)) | |
413 | 419 | ||
414 | 420 | ||
415 | - | func | |
421 | + | func cK (aI,aJ) = { | |
416 | 422 | let an = getInteger(ak(aI)) | |
417 | 423 | let ao = getInteger(ak(aJ)) | |
418 | 424 | if (if ((an == unit)) | |
419 | 425 | then true | |
420 | 426 | else (ao == unit)) | |
421 | 427 | then false | |
422 | 428 | else { | |
423 | - | let | |
424 | - | let | |
425 | - | let | |
426 | - | let | |
427 | - | let | |
429 | + | let cL = toString(value(an)) | |
430 | + | let cM = toString(value(ao)) | |
431 | + | let cN = getString(am(cL, cM)) | |
432 | + | let cO = getString(am(cM, cL)) | |
433 | + | let cP = if ((cN != unit)) | |
428 | 434 | then true | |
429 | - | else ( | |
430 | - | | |
435 | + | else (cO != unit) | |
436 | + | cP | |
431 | 437 | } | |
432 | 438 | } | |
433 | 439 | ||
434 | 440 | ||
435 | - | func | |
436 | - | let | |
437 | - | let | |
438 | - | if ($isInstanceOf( | |
441 | + | func cQ (aD) = { | |
442 | + | let cw = { | |
443 | + | let bn = getString(aC(aD)) | |
444 | + | if ($isInstanceOf(bn, "String")) | |
439 | 445 | then { | |
440 | - | let | |
441 | - | split( | |
446 | + | let bo = bn | |
447 | + | split(bo, m) | |
442 | 448 | } | |
443 | 449 | else K(makeString([aD, "pool is not found"], " ")) | |
444 | 450 | } | |
445 | - | let an = parseIntValue( | |
446 | - | let ao = parseIntValue( | |
451 | + | let an = parseIntValue(cw[1]) | |
452 | + | let ao = parseIntValue(cw[2]) | |
447 | 453 | let aI = getStringValue(ai(an)) | |
448 | 454 | let aJ = getStringValue(ai(ao)) | |
449 | - | let | |
450 | - | $Tuple5(aI, aJ, | |
455 | + | let cj = getStringValue(aF(aD)) | |
456 | + | $Tuple5(aI, aJ, cj, an, ao) | |
451 | 457 | } | |
452 | 458 | ||
453 | 459 | ||
454 | - | func | |
455 | - | let | |
456 | - | let aI = | |
457 | - | let aJ = | |
458 | - | let | |
459 | - | let an = | |
460 | - | let ao = | |
461 | - | let | |
462 | - | let | |
463 | - | | |
460 | + | func cR (aD) = { | |
461 | + | let cS = cQ(aD) | |
462 | + | let aI = cS._1 | |
463 | + | let aJ = cS._2 | |
464 | + | let cj = cS._3 | |
465 | + | let an = cS._4 | |
466 | + | let ao = cS._5 | |
467 | + | let cT = addressFromStringValue(getStringValue(Z())) | |
468 | + | let cU = invoke(cT, "getPoolCreatorREADONLY", [aI, aJ], nil) | |
469 | + | cU | |
464 | 470 | } | |
465 | 471 | ||
466 | 472 | ||
467 | - | func | |
468 | - | let | |
469 | - | if (( | |
470 | - | then wavesBalance( | |
473 | + | func cV (cW,cX) = { | |
474 | + | let bf = addressFromStringValue(cW) | |
475 | + | if ((cX == "WAVES")) | |
476 | + | then wavesBalance(bf).regular | |
471 | 477 | else { | |
472 | - | let | |
473 | - | assetBalance( | |
478 | + | let aR = fromBase58String(cX) | |
479 | + | assetBalance(bf, aR) | |
474 | 480 | } | |
475 | 481 | } | |
476 | 482 | ||
477 | 483 | ||
478 | - | func | |
479 | - | let | |
480 | - | let aI = | |
481 | - | let aJ = | |
482 | - | let | |
483 | - | let an = | |
484 | - | let ao = | |
485 | - | if (( | |
486 | - | then ( | |
484 | + | func cY (aD) = { | |
485 | + | let cZ = cQ(aD) | |
486 | + | let aI = cZ._1 | |
487 | + | let aJ = cZ._2 | |
488 | + | let cj = cZ._3 | |
489 | + | let an = cZ._4 | |
490 | + | let ao = cZ._5 | |
491 | + | if ((cV(aD, aI) == 0)) | |
492 | + | then (cV(aD, aJ) == 0) | |
487 | 493 | else false | |
488 | 494 | } | |
489 | 495 | ||
490 | 496 | ||
491 | - | @Callable( | |
492 | - | func getSwapContractREADONLY () = $Tuple2(nil, | |
497 | + | @Callable(bR) | |
498 | + | func getSwapContractREADONLY () = $Tuple2(nil, bg(N())) | |
493 | 499 | ||
494 | 500 | ||
495 | 501 | ||
496 | - | @Callable( | |
497 | - | func getPoolLeaseConfigREADONLY (af, | |
498 | - | let | |
499 | - | let | |
500 | - | if ($isInstanceOf( | |
502 | + | @Callable(bR) | |
503 | + | func getPoolLeaseConfigREADONLY (af,aR) = { | |
504 | + | let da = { | |
505 | + | let bn = getInteger(this, aZ(af, aR)) | |
506 | + | if ($isInstanceOf(bn, "Int")) | |
501 | 507 | then { | |
502 | - | let | |
503 | - | $Tuple2(true, min([100, max([0, | |
508 | + | let db = bn | |
509 | + | $Tuple2(true, min([100, max([0, db])])) | |
504 | 510 | } | |
505 | 511 | else { | |
506 | - | let | |
507 | - | if ($isInstanceOf( | |
512 | + | let dc = getInteger(this, ba(aR)) | |
513 | + | if ($isInstanceOf(dc, "Int")) | |
508 | 514 | then { | |
509 | - | let | |
510 | - | $Tuple2(true, min([100, max([0, | |
515 | + | let dd = dc | |
516 | + | $Tuple2(true, min([100, max([0, dd])])) | |
511 | 517 | } | |
512 | 518 | else $Tuple2(false, 0) | |
513 | 519 | } | |
514 | 520 | } | |
515 | - | let | |
516 | - | let | |
517 | - | let | |
518 | - | let | |
519 | - | if ($isInstanceOf( | |
521 | + | let de = da._1 | |
522 | + | let df = da._2 | |
523 | + | let dg = { | |
524 | + | let bn = getInteger(this, bc(af, aR)) | |
525 | + | if ($isInstanceOf(bn, "Int")) | |
520 | 526 | then { | |
521 | - | let | |
522 | - | max([0, | |
527 | + | let dh = bn | |
528 | + | max([0, dh]) | |
523 | 529 | } | |
524 | 530 | else { | |
525 | - | let | |
526 | - | if ($isInstanceOf( | |
531 | + | let dc = getInteger(this, bd(aR)) | |
532 | + | if ($isInstanceOf(dc, "Int")) | |
527 | 533 | then { | |
528 | - | let | |
529 | - | max([0, | |
534 | + | let di = dc | |
535 | + | max([0, di]) | |
530 | 536 | } | |
531 | 537 | else 0 | |
532 | 538 | } | |
533 | 539 | } | |
534 | - | let | |
535 | - | then $Tuple3(valueOrElse(getString(this, | |
540 | + | let dj = if ((aR == "WAVES")) | |
541 | + | then $Tuple3(valueOrElse(getString(this, aW()), ""), getString(this, valueOrElse(aX(), "")), c) | |
536 | 542 | else $Tuple3("", "", 0) | |
537 | - | let | |
538 | - | let | |
539 | - | let | |
540 | - | let | |
541 | - | $Tuple2(nil, $Tuple7( | |
543 | + | let dk = dj._1 | |
544 | + | let dl = dj._2 | |
545 | + | let dm = dj._3 | |
546 | + | let dn = valueOrElse(getString(this, aY()), "") | |
547 | + | $Tuple2(nil, $Tuple7(de, df, dg, dk, dl, dm, dn)) | |
542 | 548 | } | |
543 | 549 | ||
544 | 550 | ||
545 | 551 | ||
546 | - | @Callable( | |
547 | - | func getLpAssetFromPoolAssetsREADONLY ( | |
548 | - | then ( | |
552 | + | @Callable(bR) | |
553 | + | func getLpAssetFromPoolAssetsREADONLY (do,dp) = if (if ((do == "8LQW8f7P5d5PZM7GtZEBgaqRPGSzS3DfPuiXrURJ4AJS")) | |
554 | + | then (dp == "WAVES") | |
549 | 555 | else false) | |
550 | 556 | then $Tuple2(nil, unit) | |
551 | 557 | else { | |
552 | - | let | |
553 | - | let | |
554 | - | let | |
555 | - | let | |
558 | + | let dq = value(getInteger(this, ak(do))) | |
559 | + | let dr = value(getInteger(this, ak(dp))) | |
560 | + | let ds = getString(this, ay(toString(dq), toString(dr))) | |
561 | + | let dt = if ((ds == unit)) | |
556 | 562 | then unit | |
557 | - | else drop(value( | |
558 | - | $Tuple2(nil, | |
563 | + | else drop(value(ds), 4) | |
564 | + | $Tuple2(nil, dt) | |
559 | 565 | } | |
560 | 566 | ||
561 | 567 | ||
562 | 568 | ||
563 | - | @Callable( | |
564 | - | func getPoolAddressFromLpAssetREADONLY ( | |
569 | + | @Callable(bR) | |
570 | + | func getPoolAddressFromLpAssetREADONLY (du) = $Tuple2(nil, valueOrElse(getString(this, aG(du)), "")) | |
565 | 571 | ||
566 | 572 | ||
567 | 573 | ||
568 | - | @Callable( | |
569 | - | func constructor ( | |
570 | - | let | |
571 | - | if (( | |
572 | - | then [StringEntry(O(), | |
574 | + | @Callable(bR) | |
575 | + | func constructor (dv,dw,bX,bY,bZ,ca,dx,dy) = { | |
576 | + | let dz = bS(bR) | |
577 | + | if ((dz == dz)) | |
578 | + | then [StringEntry(O(), cg(dv, dw, bX, bY, bZ, ca, dx)), IntegerEntry(ab(), dy)] | |
573 | 579 | else throw("Strict value is not equal to itself.") | |
574 | 580 | } | |
575 | 581 | ||
576 | 582 | ||
577 | 583 | ||
578 | - | @Callable( | |
579 | - | func constructorV2 ( | |
580 | - | let | |
581 | - | if (( | |
584 | + | @Callable(bR) | |
585 | + | func constructorV2 (dA) = { | |
586 | + | let dz = bS(bR) | |
587 | + | if ((dz == dz)) | |
582 | 588 | then { | |
583 | - | let | |
584 | - | if (( | |
585 | - | then [StringEntry(R(), | |
589 | + | let dB = addressFromPublicKey(fromBase58String(dA)) | |
590 | + | if ((dB == dB)) | |
591 | + | then [StringEntry(R(), dA)] | |
586 | 592 | else throw("Strict value is not equal to itself.") | |
587 | 593 | } | |
588 | 594 | else throw("Strict value is not equal to itself.") | |
589 | 595 | } | |
590 | 596 | ||
591 | 597 | ||
592 | 598 | ||
593 | - | @Callable( | |
594 | - | func constructorV3 ( | |
595 | - | let | |
596 | - | if (( | |
599 | + | @Callable(bR) | |
600 | + | func constructorV3 (cc,cd,ce,cf) = { | |
601 | + | let dz = bS(bR) | |
602 | + | if ((dz == dz)) | |
597 | 603 | then { | |
598 | - | let | |
599 | - | [StringEntry(O(), | |
604 | + | let bH = split(bg(O()), m) | |
605 | + | [StringEntry(O(), bU(bH[1], bH[2], bH[3], bH[4], bH[5], bH[6], bH[7], cc, cd, ce, cf))] | |
600 | 606 | } | |
601 | 607 | else throw("Strict value is not equal to itself.") | |
602 | 608 | } | |
603 | 609 | ||
604 | 610 | ||
605 | 611 | ||
606 | - | @Callable( | |
607 | - | func constructorV4 ( | |
608 | - | let | |
609 | - | if (( | |
610 | - | then [StringEntry(S(), | |
612 | + | @Callable(bR) | |
613 | + | func constructorV4 (dC,dD) = { | |
614 | + | let dz = bS(bR) | |
615 | + | if ((dz == dz)) | |
616 | + | then [StringEntry(S(), dC), StringEntry(T(), makeString(dD, m))] | |
611 | 617 | else throw("Strict value is not equal to itself.") | |
612 | 618 | } | |
613 | 619 | ||
614 | 620 | ||
615 | 621 | ||
616 | - | @Callable( | |
617 | - | func constructorV5 ( | |
618 | - | let | |
619 | - | if (( | |
620 | - | then [StringEntry(X(), | |
622 | + | @Callable(bR) | |
623 | + | func constructorV5 (dE) = { | |
624 | + | let dz = bS(bR) | |
625 | + | if ((dz == dz)) | |
626 | + | then [StringEntry(X(), dE)] | |
621 | 627 | else throw("Strict value is not equal to itself.") | |
622 | 628 | } | |
623 | 629 | ||
624 | 630 | ||
625 | 631 | ||
626 | - | @Callable( | |
627 | - | func constructorV6 ( | |
628 | - | let | |
632 | + | @Callable(bR) | |
633 | + | func constructorV6 (dF,dG) = { | |
634 | + | let dH = [bS(bR), if ((addressFromString(dF) != unit)) | |
629 | 635 | then true | |
630 | 636 | else "invalid voting emission contract address"] | |
631 | - | if (( | |
632 | - | then [StringEntry(Y(), | |
637 | + | if ((dH == dH)) | |
638 | + | then [StringEntry(Y(), dF), StringEntry(aa(), makeString(dG, m))] | |
633 | 639 | else throw("Strict value is not equal to itself.") | |
634 | 640 | } | |
635 | 641 | ||
636 | 642 | ||
637 | 643 | ||
638 | - | @Callable( | |
639 | - | func setAdmins ( | |
640 | - | let | |
641 | - | if (( | |
642 | - | then [StringEntry(W(), makeString( | |
644 | + | @Callable(bR) | |
645 | + | func setAdmins (dI) = { | |
646 | + | let dz = bS(bR) | |
647 | + | if ((dz == dz)) | |
648 | + | then [StringEntry(W(), makeString(dI, m))] | |
643 | 649 | else throw("Strict value is not equal to itself.") | |
644 | 650 | } | |
645 | 651 | ||
646 | 652 | ||
647 | 653 | ||
648 | - | @Callable( | |
649 | - | func activateNewPool (af, | |
650 | - | let | |
651 | - | if (( | |
654 | + | @Callable(bR) | |
655 | + | func activateNewPool (af,ck,cl,dJ,dK,dL,cr,dM) = { | |
656 | + | let dz = cE(bR) | |
657 | + | if ((dz == dz)) | |
652 | 658 | then if (isDefined(getString(aC(af)))) | |
653 | 659 | then K((("Pool address " + af) + " already registered.")) | |
654 | 660 | else { | |
655 | - | let | |
656 | - | let | |
657 | - | let | |
661 | + | let dN = cx(ck, 1) | |
662 | + | let dO = dN._1 | |
663 | + | let dP = cx(cl, if (dN._3) | |
658 | 664 | then 2 | |
659 | 665 | else 1) | |
660 | - | let | |
661 | - | let | |
662 | - | let | |
663 | - | let | |
664 | - | if ( | |
665 | - | then K((((("Pool " + | |
666 | + | let dQ = dP._1 | |
667 | + | let dR = valueOrErrorMessage(scriptHash(addressFromStringValue(af)), ("No script has been found on pool account " + af)) | |
668 | + | let dS = getBinaryValue(Q()) | |
669 | + | let dT = cK(ck, cl) | |
670 | + | if (dT) | |
671 | + | then K((((("Pool " + ck) + "/") + cl) + " has already been activated.")) | |
666 | 672 | else { | |
667 | - | let | |
668 | - | let | |
673 | + | let dU = value(getString(this, am(toString(dO), toString(dQ)))) | |
674 | + | let dV = if ((ck == "WAVES")) | |
669 | 675 | then l | |
670 | - | else pow(10, 0, value(assetInfo(fromBase58String( | |
671 | - | let | |
676 | + | else pow(10, 0, value(assetInfo(fromBase58String(ck))).decimals, 0, 0, DOWN) | |
677 | + | let dW = if ((cl == "WAVES")) | |
672 | 678 | then l | |
673 | - | else pow(10, 0, value(assetInfo(fromBase58String( | |
674 | - | let | |
675 | - | let | |
676 | - | let | |
677 | - | let | |
678 | - | if (( | |
679 | - | then if (( | |
679 | + | else pow(10, 0, value(assetInfo(fromBase58String(cl))).decimals, 0, 0, DOWN) | |
680 | + | let dX = Issue(dJ, dK, 1, 8, true) | |
681 | + | let cj = calculateAssetId(dX) | |
682 | + | let dY = toBase58String(cj) | |
683 | + | let dZ = invoke(addressFromStringValue(af), "activate", [ck, cl], nil) | |
684 | + | if ((dZ == dZ)) | |
685 | + | then if ((dZ != "success")) | |
680 | 686 | then K("Pool initialisation error happened.") | |
681 | 687 | else { | |
682 | - | let | |
683 | - | let | |
684 | - | if (( | |
688 | + | let dE = addressFromStringValue(bg(X())) | |
689 | + | let ea = invoke(dE, "createOrUpdate", [dY, dJ, false], nil) | |
690 | + | if ((ea == ea)) | |
685 | 691 | then { | |
686 | - | let | |
687 | - | if (( | |
692 | + | let eb = invoke(dE, "addLabel", [dY, h], nil) | |
693 | + | if ((eb == eb)) | |
688 | 694 | then { | |
689 | - | let | |
690 | - | if (( | |
695 | + | let ec = invoke(dE, "setLogo", [dY, dM], nil) | |
696 | + | if ((ec == ec)) | |
691 | 697 | then { | |
692 | - | let | |
693 | - | if (( | |
698 | + | let ed = invoke(dE, "addAssetsLink", [ck, cl, dY], nil) | |
699 | + | if ((ed == ed)) | |
694 | 700 | then { | |
695 | - | let | |
696 | - | if (( | |
697 | - | then $Tuple2((( | |
701 | + | let ee = invoke(dE, "increaseAssetPoolsNumber", [ck], nil) | |
702 | + | if ((ee == ee)) | |
703 | + | then $Tuple2(((dN._2 ++ dP._2) ++ [dX, Burn(cj, 1), StringEntry(am(toString(dO), toString(dQ)), ch(af, toString(o), dY, ck, cl, dV, dW, dO, dQ, l, cr)), StringEntry(aw(dY), cs(dO, dQ)), StringEntry(ay(toString(dO), toString(dQ)), ("%s__" + dY)), StringEntry(aC(af), cs(dO, dQ)), StringEntry(aE(dO, dQ), af), StringEntry(aG(dY), af), StringEntry(aF(af), dY), IntegerEntry(ae(af), dL), IntegerEntry(aB(af), i)]), dY) | |
698 | 704 | else throw("Strict value is not equal to itself.") | |
699 | 705 | } | |
700 | 706 | else throw("Strict value is not equal to itself.") | |
701 | 707 | } | |
702 | 708 | else throw("Strict value is not equal to itself.") | |
703 | 709 | } | |
704 | 710 | else throw("Strict value is not equal to itself.") | |
705 | 711 | } | |
706 | 712 | else throw("Strict value is not equal to itself.") | |
707 | 713 | } | |
708 | 714 | else throw("Strict value is not equal to itself.") | |
709 | 715 | } | |
710 | 716 | } | |
711 | 717 | else throw("Strict value is not equal to itself.") | |
712 | 718 | } | |
713 | 719 | ||
714 | 720 | ||
715 | 721 | ||
716 | - | @Callable( | |
717 | - | func managePool (af, | |
718 | - | let | |
719 | - | if (( | |
722 | + | @Callable(bR) | |
723 | + | func managePool (af,ef) = { | |
724 | + | let dz = bS(bR) | |
725 | + | if ((dz == dz)) | |
720 | 726 | then { | |
721 | - | let | |
722 | - | let | |
723 | - | let | |
724 | - | let | |
725 | - | let | |
726 | - | let | |
727 | - | let | |
728 | - | let | |
729 | - | let | |
730 | - | let | |
731 | - | let | |
732 | - | [StringEntry(am(toString( | |
727 | + | let eg = cv(af) | |
728 | + | let ci = eg[w] | |
729 | + | let dY = eg[x] | |
730 | + | let ck = eg[y] | |
731 | + | let cl = eg[z] | |
732 | + | let dV = parseIntValue(eg[A]) | |
733 | + | let dW = parseIntValue(eg[B]) | |
734 | + | let dO = parseIntValue(eg[C]) | |
735 | + | let dQ = parseIntValue(eg[D]) | |
736 | + | let eh = parseIntValue(eg[E]) | |
737 | + | let cr = eg[F] | |
738 | + | [StringEntry(am(toString(dO), toString(dQ)), ch(af, toString(ef), dY, ck, cl, dV, dW, dO, dQ, eh, cr))] | |
733 | 739 | } | |
734 | 740 | else throw("Strict value is not equal to itself.") | |
735 | 741 | } | |
736 | 742 | ||
737 | 743 | ||
738 | 744 | ||
739 | - | @Callable( | |
740 | - | func emit ( | |
741 | - | let | |
742 | - | let | |
743 | - | let | |
744 | - | let | |
745 | - | let | |
746 | - | let | |
747 | - | if ((0 >= | |
745 | + | @Callable(bR) | |
746 | + | func emit (ei) = { | |
747 | + | let ej = bR.caller | |
748 | + | let ek = bR.originCaller | |
749 | + | let el = valueOrErrorMessage(getString(aF(toString(ej))), "Invalid LP address called me.") | |
750 | + | let em = fromBase58String(el) | |
751 | + | let dD = split(valueOrElse(getString(T()), n), m) | |
752 | + | let dC = addressFromStringValue(valueOrErrorMessage(getString(S()), "Legacy factory contract does not exists.")) | |
753 | + | if ((0 >= ei)) | |
748 | 754 | then nil | |
749 | - | else if (containsElement( | |
750 | - | then $Tuple2(nil, | |
751 | - | else $Tuple2([Reissue( | |
755 | + | else if (containsElement(dD, toString(ej))) | |
756 | + | then $Tuple2(nil, dC) | |
757 | + | else $Tuple2([Reissue(em, ei, true), ScriptTransfer(bR.caller, ei, em)], "success") | |
752 | 758 | } | |
753 | 759 | ||
754 | 760 | ||
755 | 761 | ||
756 | - | @Callable( | |
757 | - | func burn ( | |
758 | - | let | |
759 | - | let | |
760 | - | let | |
761 | - | let | |
762 | - | let | |
763 | - | let | |
764 | - | if (( | |
762 | + | @Callable(bR) | |
763 | + | func burn (en) = { | |
764 | + | let ej = bR.caller | |
765 | + | let ek = bR.originCaller | |
766 | + | let eo = value(bR.payments[0]) | |
767 | + | let ep = value(eo.amount) | |
768 | + | let eq = toBase58String(value(eo.assetId)) | |
769 | + | let er = valueOrErrorMessage(getString(aF(toString(ej))), "Invalid LP address called me.") | |
770 | + | if ((eq != er)) | |
765 | 771 | then K("Invalid asset passed.") | |
766 | - | else if (( | |
772 | + | else if ((en != ep)) | |
767 | 773 | then K("Invalid amount passed.") | |
768 | 774 | else { | |
769 | - | let | |
770 | - | $Tuple2([Burn( | |
775 | + | let em = fromBase58String(er) | |
776 | + | $Tuple2([Burn(em, en)], "success") | |
771 | 777 | } | |
772 | 778 | } | |
773 | 779 | ||
774 | 780 | ||
775 | 781 | ||
776 | - | @Callable( | |
777 | - | func modifyWeight ( | |
778 | - | let | |
782 | + | @Callable(bR) | |
783 | + | func modifyWeight (cj,es) = { | |
784 | + | let dz = if ((toBase58String(bR.caller.bytes) == valueOrElse(getString(this, Y()), ""))) | |
779 | 785 | then true | |
780 | - | else | |
781 | - | if (( | |
786 | + | else bS(bR) | |
787 | + | if ((dz == dz)) | |
782 | 788 | then { | |
783 | - | let aD = | |
784 | - | let | |
785 | - | let | |
786 | - | let | |
787 | - | let | |
788 | - | let | |
789 | - | let | |
790 | - | let | |
791 | - | let | |
792 | - | if (( | |
789 | + | let aD = bg(aG(cj)) | |
790 | + | let et = ae(aD) | |
791 | + | let eu = ae(g) | |
792 | + | let ev = valueOrElse(getInteger(eu), 0) | |
793 | + | let dL = valueOrElse(getInteger(et), 0) | |
794 | + | let ew = es | |
795 | + | let bH = split(bg(O()), m) | |
796 | + | let dv = bJ(bH) | |
797 | + | let ex = invoke(dv, "onModifyWeight", [cj, aD], nil) | |
798 | + | if ((ex == ex)) | |
793 | 799 | then { | |
794 | - | let | |
800 | + | let ey = if ((ev == 0)) | |
795 | 801 | then nil | |
796 | - | else [IntegerEntry( | |
797 | - | let | |
798 | - | let | |
799 | - | let | |
802 | + | else [IntegerEntry(eu, 0)] | |
803 | + | let ez = ag(aD, 0) | |
804 | + | let eA = getInteger(ez) | |
805 | + | let eB = if ((eA == unit)) | |
800 | 806 | then nil | |
801 | - | else [DeleteEntry( | |
802 | - | (([IntegerEntry( | |
807 | + | else [DeleteEntry(ez)] | |
808 | + | (([IntegerEntry(et, ew)] ++ ey) ++ eB) | |
803 | 809 | } | |
804 | 810 | else throw("Strict value is not equal to itself.") | |
805 | 811 | } | |
806 | 812 | else throw("Strict value is not equal to itself.") | |
807 | 813 | } | |
808 | 814 | ||
809 | 815 | ||
810 | 816 | ||
811 | - | @Callable( | |
812 | - | func modifyWeights ( | |
813 | - | let | |
814 | - | if (( | |
817 | + | @Callable(bR) | |
818 | + | func modifyWeights (eC,eD,eE,eF) = { | |
819 | + | let dz = bS(bR) | |
820 | + | if ((dz == dz)) | |
815 | 821 | then { | |
816 | - | let eE = ((5 * f) / 100) | |
817 | - | let eF = ((5 * f) / 100) | |
818 | 822 | let eG = ((5 * f) / 100) | |
819 | - | let | |
820 | - | let | |
821 | - | let | |
822 | - | let eJ = | |
823 | - | let eK = | |
823 | + | let eH = ((5 * f) / 100) | |
824 | + | let eI = ((5 * f) / 100) | |
825 | + | let bH = split(bg(O()), m) | |
826 | + | let eJ = bJ(bH) | |
827 | + | let eK = bK(bH) | |
824 | 828 | let eL = ae(eC) | |
825 | 829 | let eM = ae(eD) | |
826 | - | let eN = bh(eJ) | |
827 | - | let eO = bh(eK) | |
828 | - | let eP = (eN - eG) | |
829 | - | let eQ = (eO - eG) | |
830 | - | if ((0 >= eP)) | |
831 | - | then K(("invalid btcWeightNew: " + toString(eP))) | |
832 | - | else if ((0 >= eQ)) | |
833 | - | then K(("invalid ethWeightNew: " + toString(eQ))) | |
830 | + | let eN = ae(eE) | |
831 | + | let eO = ae(eF) | |
832 | + | let eP = bj(eL) | |
833 | + | let eQ = bj(eM) | |
834 | + | let eR = (eP - eI) | |
835 | + | let eS = (eQ - eI) | |
836 | + | if ((0 >= eR)) | |
837 | + | then K(("invalid btcWeightNew: " + toString(eR))) | |
838 | + | else if ((0 >= eS)) | |
839 | + | then K(("invalid ethWeightNew: " + toString(eS))) | |
834 | 840 | else { | |
835 | - | let | |
836 | - | let | |
837 | - | let | |
838 | - | let | |
839 | - | let | |
840 | - | if (( | |
841 | + | let eT = bg(aF(eC)) | |
842 | + | let eU = bg(aF(eD)) | |
843 | + | let eV = bg(aF(eE)) | |
844 | + | let eW = bg(aF(eF)) | |
845 | + | let eX = invoke(eJ, "onModifyWeight", [eT, eC], nil) | |
846 | + | if ((eX == eX)) | |
841 | 847 | then { | |
842 | - | let | |
843 | - | if (( | |
848 | + | let eY = invoke(eJ, "onModifyWeight", [eU, eD], nil) | |
849 | + | if ((eY == eY)) | |
844 | 850 | then { | |
845 | - | let | |
846 | - | if (( | |
851 | + | let eZ = invoke(eJ, "onModifyWeight", [eV, eE], nil) | |
852 | + | if ((eZ == eZ)) | |
847 | 853 | then { | |
848 | - | let | |
849 | - | if (( | |
850 | - | then [IntegerEntry( | |
854 | + | let fa = invoke(eJ, "onModifyWeight", [eW, eF], nil) | |
855 | + | if ((fa == fa)) | |
856 | + | then [IntegerEntry(eL, eR), IntegerEntry(eM, eS), IntegerEntry(eN, eG), IntegerEntry(eO, eH), IntegerEntry(ag(eC, 0), eP), IntegerEntry(ag(eD, 0), eQ), IntegerEntry(ag(eE, 0), eG), IntegerEntry(ag(eF, 0), eH)] | |
851 | 857 | else throw("Strict value is not equal to itself.") | |
852 | 858 | } | |
853 | 859 | else throw("Strict value is not equal to itself.") | |
854 | 860 | } | |
855 | 861 | else throw("Strict value is not equal to itself.") | |
856 | 862 | } | |
857 | 863 | else throw("Strict value is not equal to itself.") | |
858 | 864 | } | |
859 | 865 | } | |
860 | 866 | else throw("Strict value is not equal to itself.") | |
861 | 867 | } | |
862 | 868 | ||
863 | 869 | ||
864 | 870 | ||
865 | - | @Callable( | |
871 | + | @Callable(bR) | |
866 | 872 | func checkWxEmissionPoolLabel (aI,aJ) = { | |
867 | - | let | |
868 | - | let | |
869 | - | if ($isInstanceOf( | |
873 | + | let fb = { | |
874 | + | let bn = getBoolean(aH(aI, aJ)) | |
875 | + | if ($isInstanceOf(bn, "Boolean")) | |
870 | 876 | then { | |
871 | - | let | |
872 | - | | |
877 | + | let dh = bn | |
878 | + | dh | |
873 | 879 | } | |
874 | 880 | else false | |
875 | 881 | } | |
876 | - | $Tuple2(nil, | |
882 | + | $Tuple2(nil, fb) | |
877 | 883 | } | |
878 | 884 | ||
879 | 885 | ||
880 | 886 | ||
881 | - | @Callable( | |
887 | + | @Callable(bR) | |
882 | 888 | func setWxEmissionPoolLabel (aI,aJ) = { | |
883 | - | let | |
884 | - | if (( | |
889 | + | let dz = cE(bR) | |
890 | + | if ((dz == dz)) | |
885 | 891 | then $Tuple2([BooleanEntry(aH(aI, aJ), true)], unit) | |
886 | 892 | else throw("Strict value is not equal to itself.") | |
887 | 893 | } | |
888 | 894 | ||
889 | 895 | ||
890 | 896 | ||
891 | - | @Callable( | |
897 | + | @Callable(bR) | |
892 | 898 | func deleteWxEmissionPoolLabel (aI,aJ) = { | |
893 | - | let | |
899 | + | let dz = if ((bR.caller == this)) | |
894 | 900 | then true | |
895 | - | else | |
896 | - | if (( | |
901 | + | else cE(bR) | |
902 | + | if ((dz == dz)) | |
897 | 903 | then $Tuple2([DeleteEntry(aH(aI, aJ))], unit) | |
898 | 904 | else throw("Strict value is not equal to itself.") | |
899 | 905 | } | |
900 | 906 | ||
901 | 907 | ||
902 | 908 | ||
903 | - | @Callable( | |
904 | - | func onVerificationLoss ( | |
905 | - | let | |
909 | + | @Callable(bR) | |
910 | + | func onVerificationLoss (aR) = { | |
911 | + | let dz = if ((toBase58String(bR.caller.bytes) == valueOrElse(getString(this, X()), ""))) | |
906 | 912 | then true | |
907 | - | else | |
908 | - | if (( | |
913 | + | else bS(bR) | |
914 | + | if ((dz == dz)) | |
909 | 915 | then { | |
910 | - | let | |
911 | - | let | |
916 | + | let dG = bL() | |
917 | + | let fc = if ((size(dG) > 0)) | |
912 | 918 | then true | |
913 | 919 | else K("invalid price assets") | |
914 | - | if (( | |
920 | + | if ((fc == fc)) | |
915 | 921 | then { | |
916 | - | func | |
917 | - | let | |
918 | - | if (( | |
922 | + | func fd (fe,ff) = { | |
923 | + | let db = invoke(this, "deleteWxEmissionPoolLabel", [aR, ff], nil) | |
924 | + | if ((db == db)) | |
919 | 925 | then unit | |
920 | 926 | else throw("Strict value is not equal to itself.") | |
921 | 927 | } | |
922 | 928 | ||
923 | - | let | |
924 | - | let | |
925 | - | let | |
926 | - | let | |
927 | - | func | |
928 | - | then | |
929 | - | else | |
929 | + | let fg = { | |
930 | + | let fh = dG | |
931 | + | let fi = size(fh) | |
932 | + | let fj = unit | |
933 | + | func fk (fl,fm) = if ((fm >= fi)) | |
934 | + | then fl | |
935 | + | else fd(fl, fh[fm]) | |
930 | 936 | ||
931 | - | func | |
932 | - | then | |
937 | + | func fn (fl,fm) = if ((fm >= fi)) | |
938 | + | then fl | |
933 | 939 | else throw("List size exceeds 13") | |
934 | 940 | ||
935 | - | | |
941 | + | fn(fk(fk(fk(fk(fk(fk(fk(fk(fk(fk(fk(fk(fk(fj, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13) | |
936 | 942 | } | |
937 | - | if (( | |
943 | + | if ((fg == fg)) | |
938 | 944 | then $Tuple2(nil, unit) | |
939 | 945 | else throw("Strict value is not equal to itself.") | |
940 | 946 | } | |
941 | 947 | else throw("Strict value is not equal to itself.") | |
942 | 948 | } | |
943 | 949 | else throw("Strict value is not equal to itself.") | |
944 | 950 | } | |
945 | 951 | ||
946 | 952 | ||
947 | 953 | ||
948 | - | @Callable( | |
954 | + | @Callable(bR) | |
949 | 955 | func isPoolOneTokenOperationsDisabledREADONLY (af) = { | |
950 | - | let ee = ct(af) | |
951 | - | let aq = $Tuple2(parseIntValue(ee[C]), parseIntValue(ee[D])) | |
952 | - | let fm = valueOrElse(getBoolean(ap(aq)), false) | |
953 | - | let fn = valueOrElse(getBoolean(as()), false) | |
954 | - | $Tuple2(nil, if (fn) | |
955 | - | then true | |
956 | - | else fm) | |
957 | - | } | |
958 | - | ||
959 | - | ||
960 | - | ||
961 | - | @Callable(bP) | |
962 | - | func isPoolSwapDisabledREADONLY (af) = { | |
963 | - | let ee = ct(af) | |
964 | - | let aq = $Tuple2(parseIntValue(ee[C]), parseIntValue(ee[D])) | |
965 | - | let fo = valueOrElse(getBoolean(at(aq)), false) | |
966 | - | let fp = valueOrElse(getBoolean(av()), false) | |
956 | + | let eg = cv(af) | |
957 | + | let aq = $Tuple2(parseIntValue(eg[C]), parseIntValue(eg[D])) | |
958 | + | let fo = valueOrElse(getBoolean(ap(aq)), false) | |
959 | + | let fp = valueOrElse(getBoolean(as()), false) | |
967 | 960 | $Tuple2(nil, if (fp) | |
968 | 961 | then true | |
969 | 962 | else fo) | |
970 | 963 | } | |
971 | 964 | ||
972 | 965 | ||
973 | 966 | ||
974 | - | @Callable(bP) | |
975 | - | func getInFeeREADONLY (af) = { | |
976 | - | let fq = cF(aK(af), aL(), 0) | |
977 | - | $Tuple2(nil, fq) | |
967 | + | @Callable(bR) | |
968 | + | func isPoolSwapDisabledREADONLY (af) = { | |
969 | + | let eg = cv(af) | |
970 | + | let aq = $Tuple2(parseIntValue(eg[C]), parseIntValue(eg[D])) | |
971 | + | let fq = valueOrElse(getBoolean(at(aq)), false) | |
972 | + | let fr = valueOrElse(getBoolean(av()), false) | |
973 | + | $Tuple2(nil, if (fr) | |
974 | + | then true | |
975 | + | else fq) | |
978 | 976 | } | |
979 | 977 | ||
980 | 978 | ||
981 | 979 | ||
982 | - | @Callable(bP) | |
983 | - | func getOutFeeREADONLY (af) = { | |
984 | - | let fq = cF(aN(af), aO(), fraction(10, b, 10000)) | |
985 | - | $Tuple2(nil, fq) | |
986 | - | } | |
987 | - | ||
988 | - | ||
989 | - | ||
990 | - | @Callable(bP) | |
991 | - | func getSwapFeeREADONLY (fr) = { | |
992 | - | let fs = { | |
993 | - | let bl = getString(this, aM(fr)) | |
994 | - | if ($isInstanceOf(bl, "String")) | |
995 | - | then { | |
996 | - | let bm = bl | |
997 | - | let ft = split(bm, m) | |
998 | - | let fu = parseIntValue(ft[1]) | |
999 | - | let fv = parseIntValue(ft[2]) | |
1000 | - | $Tuple2(fu, fv) | |
1001 | - | } | |
1002 | - | else if ($isInstanceOf(bl, "Unit")) | |
1003 | - | then unit | |
1004 | - | else throw("Match error") | |
1005 | - | } | |
980 | + | @Callable(bR) | |
981 | + | func getInFeeREADONLY (af) = { | |
982 | + | let fs = cH(aK(af), aL(), 0) | |
1006 | 983 | $Tuple2(nil, fs) | |
1007 | 984 | } | |
1008 | 985 | ||
1009 | 986 | ||
1010 | 987 | ||
1011 | - | @Callable(bP) | |
1012 | - | func poolInfoREADONLY (fw,fx) = { | |
1013 | - | let fy = getInteger(this, ak(fw)) | |
1014 | - | let fz = getInteger(this, ak(fx)) | |
1015 | - | let fA = getString(this, aE(value(fy), value(fz))) | |
1016 | - | let fB = getString(this, aF(value(fA))) | |
1017 | - | let dR = if (if (isDefined(fy)) | |
1018 | - | then isDefined(fz) | |
1019 | - | else false) | |
1020 | - | then isDefined(fA) | |
1021 | - | else false | |
1022 | - | let fC = if (dR) | |
1023 | - | then $Tuple2(addressFromStringValue(value(fA)), bi(value(fB))) | |
1024 | - | else unit | |
1025 | - | $Tuple2(nil, fC) | |
988 | + | @Callable(bR) | |
989 | + | func getOutFeeREADONLY (af) = { | |
990 | + | let fs = cH(aN(af), aO(), fraction(10, b, 10000)) | |
991 | + | $Tuple2(nil, fs) | |
1026 | 992 | } | |
1027 | 993 | ||
1028 | 994 | ||
1029 | 995 | ||
1030 | - | @Callable(bP) | |
1031 | - | func getPoolStatusREADONLY (af) = { | |
1032 | - | let cu = split(be(aC(af)), m) | |
1033 | - | let an = cu[1] | |
1034 | - | let ao = cu[2] | |
1035 | - | let cL = split(be(am(an, ao)), m) | |
1036 | - | $Tuple2(nil, parseIntValue(cL[w])) | |
996 | + | @Callable(bR) | |
997 | + | func getSwapFeeREADONLY (ft) = { | |
998 | + | let fu = { | |
999 | + | let bn = getString(this, aM(ft)) | |
1000 | + | if ($isInstanceOf(bn, "String")) | |
1001 | + | then { | |
1002 | + | let bo = bn | |
1003 | + | let fv = split(bo, m) | |
1004 | + | let fw = parseIntValue(fv[1]) | |
1005 | + | let fx = parseIntValue(fv[2]) | |
1006 | + | $Tuple2(fw, fx) | |
1007 | + | } | |
1008 | + | else if ($isInstanceOf(bn, "Unit")) | |
1009 | + | then unit | |
1010 | + | else throw("Match error") | |
1011 | + | } | |
1012 | + | $Tuple2(nil, fu) | |
1037 | 1013 | } | |
1038 | 1014 | ||
1039 | 1015 | ||
1040 | 1016 | ||
1041 | - | @Callable(bP) | |
1042 | - | func getPoolConfigREADONLY (af) = { | |
1043 | - | let cu = split(be(aC(af)), m) | |
1044 | - | let an = cu[1] | |
1045 | - | let ao = cu[2] | |
1046 | - | let cL = split(be(am(an, ao)), m) | |
1047 | - | $Tuple2(nil, cL) | |
1017 | + | @Callable(bR) | |
1018 | + | func poolInfoREADONLY (fy,fz) = { | |
1019 | + | let fA = getInteger(this, ak(fy)) | |
1020 | + | let fB = getInteger(this, ak(fz)) | |
1021 | + | let fC = getString(this, aE(value(fA), value(fB))) | |
1022 | + | let fD = getString(this, aF(value(fC))) | |
1023 | + | let dT = if (if (isDefined(fA)) | |
1024 | + | then isDefined(fB) | |
1025 | + | else false) | |
1026 | + | then isDefined(fC) | |
1027 | + | else false | |
1028 | + | let fE = if (dT) | |
1029 | + | then $Tuple2(addressFromStringValue(value(fC)), bk(value(fD))) | |
1030 | + | else unit | |
1031 | + | $Tuple2(nil, fE) | |
1048 | 1032 | } | |
1049 | 1033 | ||
1050 | 1034 | ||
1051 | 1035 | ||
1052 | - | @Callable( | |
1053 | - | func | |
1054 | - | let | |
1055 | - | let an = | |
1056 | - | let ao = | |
1057 | - | let | |
1058 | - | $Tuple2(nil, | |
1036 | + | @Callable(bR) | |
1037 | + | func getPoolStatusREADONLY (af) = { | |
1038 | + | let cw = split(bg(aC(af)), m) | |
1039 | + | let an = cw[1] | |
1040 | + | let ao = cw[2] | |
1041 | + | let cN = split(bg(am(an, ao)), m) | |
1042 | + | $Tuple2(nil, parseIntValue(cN[w])) | |
1059 | 1043 | } | |
1060 | 1044 | ||
1061 | 1045 | ||
1062 | 1046 | ||
1063 | - | @Callable(bP) | |
1064 | - | func poolExistsREADONLY (aI,aJ) = $Tuple2(nil, cI(aI, aJ)) | |
1065 | - | ||
1066 | - | ||
1067 | - | ||
1068 | - | @Callable(bP) | |
1069 | - | func skipOrderValidationREADONLY (af) = $Tuple2(nil, valueOrElse(getBoolean(aP(af)), false)) | |
1070 | - | ||
1071 | - | ||
1072 | - | ||
1073 | - | @Callable(bP) | |
1074 | - | func getChangeAmpConfigREADONLY (af) = { | |
1075 | - | let fD = getIntegerValue(aQ(af)) | |
1076 | - | let fE = getIntegerValue(aR(af)) | |
1077 | - | let fF = getIntegerValue(aS(af)) | |
1078 | - | $Tuple2(nil, [fD, fE, fF]) | |
1047 | + | @Callable(bR) | |
1048 | + | func getPoolConfigREADONLY (af) = { | |
1049 | + | let cw = split(bg(aC(af)), m) | |
1050 | + | let an = cw[1] | |
1051 | + | let ao = cw[2] | |
1052 | + | let cN = split(bg(am(an, ao)), m) | |
1053 | + | $Tuple2(nil, cN) | |
1079 | 1054 | } | |
1080 | 1055 | ||
1081 | 1056 | ||
1082 | 1057 | ||
1083 | - | @Callable(bP) | |
1084 | - | func getPoolWeightREADONLY (ch) = { | |
1085 | - | let af = be(aG(ch)) | |
1086 | - | let fG = valueOrElse(getInteger(ae(af)), 0) | |
1087 | - | $Tuple2(nil, fG) | |
1058 | + | @Callable(bR) | |
1059 | + | func getPoolConfigByLpAssetIdREADONLY (dY) = { | |
1060 | + | let cw = split(bg(aw(dY)), m) | |
1061 | + | let an = cw[1] | |
1062 | + | let ao = cw[2] | |
1063 | + | let cN = split(bg(am(an, ao)), m) | |
1064 | + | $Tuple2(nil, cN) | |
1088 | 1065 | } | |
1089 | 1066 | ||
1090 | 1067 | ||
1091 | 1068 | ||
1092 | - | @Callable(bP) | |
1069 | + | @Callable(bR) | |
1070 | + | func poolExistsREADONLY (aI,aJ) = $Tuple2(nil, cK(aI, aJ)) | |
1071 | + | ||
1072 | + | ||
1073 | + | ||
1074 | + | @Callable(bR) | |
1075 | + | func skipOrderValidationREADONLY (af) = $Tuple2(nil, valueOrElse(getBoolean(aS(af)), false)) | |
1076 | + | ||
1077 | + | ||
1078 | + | ||
1079 | + | @Callable(bR) | |
1080 | + | func getChangeAmpConfigREADONLY (af) = { | |
1081 | + | let fF = getIntegerValue(aT(af)) | |
1082 | + | let fG = getIntegerValue(aU(af)) | |
1083 | + | let fH = getIntegerValue(aV(af)) | |
1084 | + | $Tuple2(nil, [fF, fG, fH]) | |
1085 | + | } | |
1086 | + | ||
1087 | + | ||
1088 | + | ||
1089 | + | @Callable(bR) | |
1090 | + | func getPoolWeightREADONLY (cj) = { | |
1091 | + | let af = bg(aG(cj)) | |
1092 | + | let fI = valueOrElse(getInteger(ae(af)), 0) | |
1093 | + | $Tuple2(nil, fI) | |
1094 | + | } | |
1095 | + | ||
1096 | + | ||
1097 | + | ||
1098 | + | @Callable(bR) | |
1093 | 1099 | func deletePool (aD) = { | |
1094 | - | let | |
1095 | - | let | |
1096 | - | then if ( | |
1100 | + | let eg = cv(aD) | |
1101 | + | let dz = if ((toString(bR.caller) == cR(aD))) | |
1102 | + | then if (cY(aD)) | |
1097 | 1103 | then true | |
1098 | 1104 | else K("Pool is not empty") | |
1099 | - | else | |
1100 | - | if (( | |
1105 | + | else bS(bR) | |
1106 | + | if ((dz == dz)) | |
1101 | 1107 | then { | |
1102 | - | let | |
1108 | + | let fJ = if ((valueOrElse(getInteger(ae(aD)), 0) == 0)) | |
1103 | 1109 | then true | |
1104 | 1110 | else K("Pool weight is not Zero") | |
1105 | - | if (( | |
1111 | + | if ((fJ == fJ)) | |
1106 | 1112 | then { | |
1107 | - | let | |
1113 | + | let fK = if ((eg[w] == toString(r))) | |
1108 | 1114 | then true | |
1109 | 1115 | else K("Pool must be SHUTDOWN (4)") | |
1110 | - | if (( | |
1116 | + | if ((fK == fK)) | |
1111 | 1117 | then { | |
1112 | - | let | |
1113 | - | let aI = | |
1114 | - | let aJ = | |
1115 | - | let | |
1116 | - | let an = | |
1117 | - | let ao = | |
1118 | - | let | |
1119 | - | let | |
1120 | - | if (( | |
1118 | + | let fL = cQ(aD) | |
1119 | + | let aI = fL._1 | |
1120 | + | let aJ = fL._2 | |
1121 | + | let cj = fL._3 | |
1122 | + | let an = fL._4 | |
1123 | + | let ao = fL._5 | |
1124 | + | let cT = addressFromStringValue(getStringValue(Z())) | |
1125 | + | let fM = invoke(cT, "deletePool", [aI, aJ], nil) | |
1126 | + | if ((fM == fM)) | |
1121 | 1127 | then { | |
1122 | - | let | |
1123 | - | let | |
1124 | - | if (( | |
1128 | + | let dF = addressFromStringValue(getStringValue(Y())) | |
1129 | + | let fN = invoke(dF, "deletePool", [aI, aJ], nil) | |
1130 | + | if ((fN == fN)) | |
1125 | 1131 | then { | |
1126 | - | let | |
1127 | - | let | |
1128 | - | if (( | |
1129 | - | then [DeleteEntry(aF(aD)), DeleteEntry(aC(aD)), DeleteEntry(ay(toString(an), toString(ao))), DeleteEntry(aE(an, ao)), DeleteEntry(am(toString(an), toString(ao))), DeleteEntry(aw( | |
1132 | + | let dE = addressFromStringValue(getStringValue(X())) | |
1133 | + | let fO = invoke(dE, "deletePool", [aI, aJ], nil) | |
1134 | + | if ((fO == fO)) | |
1135 | + | then [DeleteEntry(aF(aD)), DeleteEntry(aC(aD)), DeleteEntry(ay(toString(an), toString(ao))), DeleteEntry(aE(an, ao)), DeleteEntry(am(toString(an), toString(ao))), DeleteEntry(aw(cj)), DeleteEntry(aG(cj)), DeleteEntry(aH(aI, aJ)), DeleteEntry(ae(aD)), DeleteEntry(aB(aD)), DeleteEntry(aK(aD)), DeleteEntry(aN(aD)), DeleteEntry(aS(aD)), DeleteEntry(aT(aD)), DeleteEntry(aU(aD)), DeleteEntry(aV(aD))] | |
1130 | 1136 | else throw("Strict value is not equal to itself.") | |
1131 | 1137 | } | |
1132 | 1138 | else throw("Strict value is not equal to itself.") | |
1133 | 1139 | } | |
1134 | 1140 | else throw("Strict value is not equal to itself.") | |
1135 | 1141 | } | |
1136 | 1142 | else throw("Strict value is not equal to itself.") | |
1137 | 1143 | } | |
1138 | 1144 | else throw("Strict value is not equal to itself.") | |
1139 | 1145 | } | |
1140 | 1146 | else throw("Strict value is not equal to itself.") | |
1141 | 1147 | } | |
1142 | 1148 | ||
1143 | 1149 | ||
1144 | 1150 | ||
1145 | - | @Callable( | |
1146 | - | func getPrice ( | |
1147 | - | let af = addressFromStringValue( | |
1148 | - | let | |
1149 | - | let | |
1150 | - | let | |
1151 | - | let aJ = | |
1152 | - | let | |
1153 | - | let | |
1154 | - | let | |
1155 | - | if ($isInstanceOf( | |
1156 | - | then | |
1157 | - | else throw(($getType( | |
1151 | + | @Callable(bR) | |
1152 | + | func getPrice (ft) = { | |
1153 | + | let af = addressFromStringValue(ft) | |
1154 | + | let cN = cv(ft) | |
1155 | + | let cj = fromBase58String(cN[x]) | |
1156 | + | let fP = cN[y] | |
1157 | + | let aJ = cN[z] | |
1158 | + | let fQ = value(assetInfo(cj)).quantity | |
1159 | + | let fR = { | |
1160 | + | let fS = invoke(af, "getAccBalanceWrapperREADONLY", [fP], nil) | |
1161 | + | if ($isInstanceOf(fS, "Int")) | |
1162 | + | then fS | |
1163 | + | else throw(($getType(fS) + " couldn't be cast to Int")) | |
1158 | 1164 | } | |
1159 | - | let | |
1160 | - | let | |
1161 | - | if ($isInstanceOf( | |
1162 | - | then | |
1163 | - | else throw(($getType( | |
1165 | + | let fT = { | |
1166 | + | let fS = invoke(af, "getAccBalanceWrapperREADONLY", [aJ], nil) | |
1167 | + | if ($isInstanceOf(fS, "Int")) | |
1168 | + | then fS | |
1169 | + | else throw(($getType(fS) + " couldn't be cast to Int")) | |
1164 | 1170 | } | |
1165 | - | let | |
1171 | + | let fU = if ((fQ == 0)) | |
1166 | 1172 | then 0 | |
1167 | 1173 | else { | |
1168 | - | let | |
1169 | - | let | |
1170 | - | if ($isInstanceOf( | |
1171 | - | then | |
1172 | - | else throw(($getType( | |
1174 | + | let fS = ({ | |
1175 | + | let fS = invoke(af, "calcPricesWrapperREADONLY", [fR, fT, fQ], nil) | |
1176 | + | if ($isInstanceOf(fS, "List[Any]")) | |
1177 | + | then fS | |
1178 | + | else throw(($getType(fS) + " couldn't be cast to List[Any]")) | |
1173 | 1179 | })[0] | |
1174 | - | if ($isInstanceOf( | |
1175 | - | then | |
1176 | - | else throw(($getType( | |
1180 | + | if ($isInstanceOf(fS, "String")) | |
1181 | + | then fS | |
1182 | + | else throw(($getType(fS) + " couldn't be cast to String")) | |
1177 | 1183 | } | |
1178 | - | $Tuple2(nil, | |
1184 | + | $Tuple2(nil, fU) | |
1179 | 1185 | } | |
1180 | 1186 | ||
1181 | 1187 | ||
1182 | - | @Verifier(fT) | |
1183 | - | func fU () = { | |
1184 | - | let fV = { | |
1185 | - | let bl = bK() | |
1186 | - | if ($isInstanceOf(bl, "ByteVector")) | |
1188 | + | ||
1189 | + | @Callable(bR) | |
1190 | + | func checkBalance (dY) = { | |
1191 | + | let ft = bg(aG(dY)) | |
1192 | + | let af = addressFromStringValue(ft) | |
1193 | + | let cN = cv(ft) | |
1194 | + | let fy = cN[y] | |
1195 | + | let fz = cN[z] | |
1196 | + | let fV = getIntegerValue(this, aP()) | |
1197 | + | let fW = valueOrElse(getInteger(this, aQ(fy)), fV) | |
1198 | + | let fX = valueOrElse(getInteger(this, aQ(fz)), fV) | |
1199 | + | let fY = { | |
1200 | + | let fS = invoke(af, "getAccBalanceWrapperREADONLY", [fy], nil) | |
1201 | + | if ($isInstanceOf(fS, "Int")) | |
1202 | + | then fS | |
1203 | + | else throw(($getType(fS) + " couldn't be cast to Int")) | |
1204 | + | } | |
1205 | + | let fZ = { | |
1206 | + | let fS = invoke(af, "getAccBalanceWrapperREADONLY", [fz], nil) | |
1207 | + | if ($isInstanceOf(fS, "Int")) | |
1208 | + | then fS | |
1209 | + | else throw(($getType(fS) + " couldn't be cast to Int")) | |
1210 | + | } | |
1211 | + | let ga = (fY >= (fW / 2)) | |
1212 | + | let gb = (fZ >= (fX / 2)) | |
1213 | + | let gc = if (ga) | |
1214 | + | then gb | |
1215 | + | else false | |
1216 | + | $Tuple2(nil, gc) | |
1217 | + | } | |
1218 | + | ||
1219 | + | ||
1220 | + | @Verifier(gd) | |
1221 | + | func ge () = { | |
1222 | + | let gf = { | |
1223 | + | let bn = bM() | |
1224 | + | if ($isInstanceOf(bn, "ByteVector")) | |
1187 | 1225 | then { | |
1188 | - | let | |
1189 | - | | |
1226 | + | let bT = bn | |
1227 | + | bT | |
1190 | 1228 | } | |
1191 | - | else if ($isInstanceOf( | |
1192 | - | then | |
1229 | + | else if ($isInstanceOf(bn, "Unit")) | |
1230 | + | then gd.senderPublicKey | |
1193 | 1231 | else throw("Match error") | |
1194 | 1232 | } | |
1195 | - | sigVerify( | |
1233 | + | sigVerify(gd.bodyBytes, gd.proofs[0], gf) | |
1196 | 1234 | } | |
1197 | 1235 |
github/deemru/w8io/169f3d6 347.35 ms ◑