tx · GDy6DKPHHxygNKUq9udograSwJjBVz2kEcNaJrdPLF7E 3MsMP2pb2p8MDd6Rxb7XEXqqwEhE8ATfyai: -0.02300000 Waves 2023.02.16 17:53 [2452306] smart account 3MsMP2pb2p8MDd6Rxb7XEXqqwEhE8ATfyai > SELF 0.00000000 Waves
{ "type": 13, "id": "GDy6DKPHHxygNKUq9udograSwJjBVz2kEcNaJrdPLF7E", "fee": 2300000, "feeAssetId": null, "timestamp": 1676559232956, "version": 2, "chainId": 84, "sender": "3MsMP2pb2p8MDd6Rxb7XEXqqwEhE8ATfyai", "senderPublicKey": "2JEaBjtjvMoNGKZmL9QxYefa1VkMJM3vMW8rNvTs9R2H", "proofs": [ "4CxPoGZHutCS9Lf4FCBgbKjwSDetQKwPNpdEK5pppA36dsyH8i4dsrrvs8GZQwppMKehTchHcgxS1NnXniiVcNiv" ], "script": "base64:BgKwJggCEgASBAoCCAgSAwoBCBIKCggICAgICAgIARIDCgEIEgYKBAgICAgSBAoCCBgSAwoBCBIECgIIGBIDCgEIEgASAwoBGBIKCggICAgICAEICBIECgIIARIDCgEBEgMKAQESBAoCCAESBgoECAgICBIECgIICBIECgIICBIECgIICBIDCgEIEgMKAQgSAwoBCBIDCgEIEgMKAQgSAwoBCBIECgIICCIGU0NBTEU4IgVNVUxUOCIHU0NBTEUxOCIGTVVMVDE4Ig5QT09MV0VJR0hUTVVMVCIOR1dYdmlydHVhbFBPT0wiDGxhYmVsUG9vbHNMcCINZGVmYXVsdFNwcmVhZCIRZGVjaW1hbHNNdWx0UHJpY2UiA1NFUCIFRU1QVFkiClBvb2xBY3RpdmUiD1Bvb2xQdXREaXNhYmxlZCITUG9vbE1hdGNoZXJEaXNhYmxlZCIMUG9vbFNodXRkb3duIhJpZHhJbnRlcm5hbEFzc2V0SWQiD2lkeFJlc3V0QWN0aW9ucyIgaWR4SWZBc3NldElkQ2FsY3VsYXRpb25QZXJmb3JtZWQiDmlkeFBvb2xBZGRyZXNzIg1pZHhQb29sU3Rh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XQBBQFaBQFqBAJhaAkAkQMCBQJiTQABBAJhaQkAkQMCBQJiTQACBAJjZAkAtQkCCQECYUYBCQECYWcCBQJhaAUCYWkFAWoJAJQKAgUDbmlsCQENcGFyc2VJbnRWYWx1ZQEJAJEDAgUCY2QFAXQCYmgBGGdldFBvb2xDb25maWdCeUxwQXNzZXRJZAECY1YEAmJNCQC1CQIJAQJhRgEJAQJhbgEFAmNWBQFqBAJhaAkAkQMCBQJiTQABBAJhaQkAkQMCBQJiTQACBAJjZAkAtQkCCQECYUYBCQECYWcCBQJhaAUCYWkFAWoJAJQKAgUDbmlsBQJjZAJiaAEScG9vbEV4aXN0c1JFQURPTkxZAgJhegJhQQkAlAoCBQNuaWwJAQJjYQIFAmF6BQJhQQECZXIBAmVzAAQCZXQEAmJhCQECYmMAAwkAAQIFAmJhAgpCeXRlVmVjdG9yBAJiagUCYmEFAmJqAwkAAQIFAmJhAgRVbml0CAUCZXIPc2VuZGVyUHVibGljS2V5CQACAQILTWF0Y2ggZXJyb3IJAPQDAwgFAmVyCWJvZHlCeXRlcwkAkQMCCAUCZXIGcHJvb2ZzAAAFAmV0DEWbsQ==", "height": 2452306, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: RfVvRpPYsqrkmTxBW8jA1ZTLYNMDsUszYsKCKXErxSj Next: B2xhnz7vEsqM2BvPsZMRag1e4UFpd1MFUmf8KN7p5S6g Diff:
Old | New | Differences | |
---|---|---|---|
337 | 337 | func bX (aG,bY,bZ) = valueOrElse(getInteger(this, aG), valueOrElse(getInteger(this, bY), bZ)) | |
338 | 338 | ||
339 | 339 | ||
340 | + | func ca (az,aA) = { | |
341 | + | let ah = getInteger(ae(az)) | |
342 | + | let ai = getInteger(ae(aA)) | |
343 | + | if (if ((ah == unit)) | |
344 | + | then true | |
345 | + | else (ai == unit)) | |
346 | + | then false | |
347 | + | else { | |
348 | + | let cb = toString(value(ah)) | |
349 | + | let cc = toString(value(ai)) | |
350 | + | let cd = getString(ag(cb, cc)) | |
351 | + | let ce = getString(ag(cc, cb)) | |
352 | + | let cf = if ((cd != unit)) | |
353 | + | then true | |
354 | + | else (ce != unit) | |
355 | + | cf | |
356 | + | } | |
357 | + | } | |
358 | + | ||
359 | + | ||
340 | 360 | @Callable(bh) | |
341 | 361 | func getSwapContractREADONLY () = $Tuple2(nil, aF(I())) | |
342 | 362 | ||
343 | 363 | ||
344 | 364 | ||
345 | 365 | @Callable(bh) | |
346 | - | func getLpAssetFromPoolAssetsREADONLY ( | |
347 | - | then ( | |
366 | + | func getLpAssetFromPoolAssetsREADONLY (cg,ch) = if (if ((cg == "8LQW8f7P5d5PZM7GtZEBgaqRPGSzS3DfPuiXrURJ4AJS")) | |
367 | + | then (ch == "WAVES") | |
348 | 368 | else false) | |
349 | 369 | then $Tuple2(nil, unit) | |
350 | 370 | else { | |
351 | - | let | |
352 | - | let | |
353 | - | let | |
354 | - | let | |
371 | + | let ci = value(getInteger(this, ae(cg))) | |
372 | + | let cj = value(getInteger(this, ae(ch))) | |
373 | + | let ck = getString(this, ap(toString(ci), toString(cj))) | |
374 | + | let cl = if ((ck == unit)) | |
355 | 375 | then unit | |
356 | - | else drop(value( | |
357 | - | $Tuple2(nil, | |
376 | + | else drop(value(ck), 4) | |
377 | + | $Tuple2(nil, cl) | |
358 | 378 | } | |
359 | 379 | ||
360 | 380 | ||
361 | 381 | ||
362 | 382 | @Callable(bh) | |
363 | - | func getPoolAddressFromLpAssetREADONLY ( | |
383 | + | func getPoolAddressFromLpAssetREADONLY (cm) = $Tuple2(nil, valueOrElse(getString(this, ax(cm)), "")) | |
364 | 384 | ||
365 | 385 | ||
366 | 386 | ||
367 | 387 | @Callable(bh) | |
368 | - | func constructor ( | |
369 | - | let | |
370 | - | if (( | |
371 | - | then [StringEntry(J(), bw( | |
388 | + | func constructor (cn,co,bn,bo,bp,bq,cp,cq) = { | |
389 | + | let cr = bi(bh) | |
390 | + | if ((cr == cr)) | |
391 | + | then [StringEntry(J(), bw(cn, co, bn, bo, bp, bq, cp)), IntegerEntry(V(), cq)] | |
372 | 392 | else throw("Strict value is not equal to itself.") | |
373 | 393 | } | |
374 | 394 | ||
375 | 395 | ||
376 | 396 | ||
377 | 397 | @Callable(bh) | |
378 | - | func constructorV2 ( | |
379 | - | let | |
380 | - | if (( | |
398 | + | func constructorV2 (cs) = { | |
399 | + | let cr = bi(bh) | |
400 | + | if ((cr == cr)) | |
381 | 401 | then { | |
382 | - | let | |
383 | - | if (( | |
384 | - | then [StringEntry(M(), | |
402 | + | let ct = addressFromPublicKey(fromBase58String(cs)) | |
403 | + | if ((ct == ct)) | |
404 | + | then [StringEntry(M(), cs)] | |
385 | 405 | else throw("Strict value is not equal to itself.") | |
386 | 406 | } | |
387 | 407 | else throw("Strict value is not equal to itself.") | |
391 | 411 | ||
392 | 412 | @Callable(bh) | |
393 | 413 | func constructorV3 (bs,bt,bu,bv) = { | |
394 | - | let | |
395 | - | if (( | |
414 | + | let cr = bi(bh) | |
415 | + | if ((cr == cr)) | |
396 | 416 | then { | |
397 | 417 | let aV = split(aF(J()), j) | |
398 | 418 | [StringEntry(J(), bk(aV[1], aV[2], aV[3], aV[4], aV[5], aV[6], aV[7], bs, bt, bu, bv))] | |
403 | 423 | ||
404 | 424 | ||
405 | 425 | @Callable(bh) | |
406 | - | func constructorV4 ( | |
407 | - | let | |
408 | - | if (( | |
409 | - | then [StringEntry(N(), | |
426 | + | func constructorV4 (cu,cv) = { | |
427 | + | let cr = bi(bh) | |
428 | + | if ((cr == cr)) | |
429 | + | then [StringEntry(N(), cu), StringEntry(O(), makeString(cv, j))] | |
410 | 430 | else throw("Strict value is not equal to itself.") | |
411 | 431 | } | |
412 | 432 | ||
413 | 433 | ||
414 | 434 | ||
415 | 435 | @Callable(bh) | |
416 | - | func constructorV5 ( | |
417 | - | let | |
418 | - | if (( | |
419 | - | then [StringEntry(S(), | |
436 | + | func constructorV5 (cw) = { | |
437 | + | let cr = bi(bh) | |
438 | + | if ((cr == cr)) | |
439 | + | then [StringEntry(S(), cw)] | |
420 | 440 | else throw("Strict value is not equal to itself.") | |
421 | 441 | } | |
422 | 442 | ||
423 | 443 | ||
424 | 444 | ||
425 | 445 | @Callable(bh) | |
426 | - | func constructorV6 ( | |
427 | - | let | |
446 | + | func constructorV6 (cx,cy) = { | |
447 | + | let cz = [bi(bh), if ((addressFromString(cx) != unit)) | |
428 | 448 | then true | |
429 | 449 | else "invalid voting emission contract address"] | |
430 | - | if (( | |
431 | - | then [StringEntry(T(), | |
450 | + | if ((cz == cz)) | |
451 | + | then [StringEntry(T(), cx), StringEntry(U(), makeString(cy, j))] | |
432 | 452 | else throw("Strict value is not equal to itself.") | |
433 | 453 | } | |
434 | 454 | ||
435 | 455 | ||
436 | 456 | ||
437 | 457 | @Callable(bh) | |
438 | - | func setManager ( | |
439 | - | let | |
440 | - | if (( | |
458 | + | func setManager (cA) = { | |
459 | + | let cr = bi(bh) | |
460 | + | if ((cr == cr)) | |
441 | 461 | then { | |
442 | - | let | |
443 | - | if (( | |
444 | - | then [StringEntry(Q(), | |
462 | + | let cB = fromBase58String(cA) | |
463 | + | if ((cB == cB)) | |
464 | + | then [StringEntry(Q(), cA)] | |
445 | 465 | else throw("Strict value is not equal to itself.") | |
446 | 466 | } | |
447 | 467 | else throw("Strict value is not equal to itself.") | |
451 | 471 | ||
452 | 472 | @Callable(bh) | |
453 | 473 | func confirmManager () = { | |
454 | - | let | |
455 | - | let | |
474 | + | let cC = bd() | |
475 | + | let cD = if (isDefined(cC)) | |
456 | 476 | then true | |
457 | 477 | else throw("No pending manager") | |
458 | - | if (( | |
478 | + | if ((cD == cD)) | |
459 | 479 | then { | |
460 | - | let | |
480 | + | let cE = if ((bh.callerPublicKey == value(cC))) | |
461 | 481 | then true | |
462 | 482 | else throw("You are not pending manager") | |
463 | - | if (( | |
464 | - | then [StringEntry(P(), toBase58String(value( | |
483 | + | if ((cE == cE)) | |
484 | + | then [StringEntry(P(), toBase58String(value(cC))), DeleteEntry(Q())] | |
465 | 485 | else throw("Strict value is not equal to itself.") | |
466 | 486 | } | |
467 | 487 | else throw("Strict value is not equal to itself.") | |
470 | 490 | ||
471 | 491 | ||
472 | 492 | @Callable(bh) | |
473 | - | func setAdmins ( | |
474 | - | let | |
475 | - | if (( | |
476 | - | then [StringEntry(R(), makeString( | |
493 | + | func setAdmins (cF) = { | |
494 | + | let cr = bi(bh) | |
495 | + | if ((cr == cr)) | |
496 | + | then [StringEntry(R(), makeString(cF, j))] | |
477 | 497 | else throw("Strict value is not equal to itself.") | |
478 | 498 | } | |
479 | 499 | ||
480 | 500 | ||
481 | 501 | ||
482 | 502 | @Callable(bh) | |
483 | - | func activateNewPool (Z,bA,bB, | |
484 | - | let | |
485 | - | if (( | |
503 | + | func activateNewPool (Z,bA,bB,cG,cH,cI,bH,cJ) = { | |
504 | + | let cr = bU(bh) | |
505 | + | if ((cr == cr)) | |
486 | 506 | then if (isDefined(getString(at(Z)))) | |
487 | 507 | then throw((("Pool address " + Z) + " already registered.")) | |
488 | 508 | else { | |
489 | - | let | |
490 | - | let | |
491 | - | let | |
509 | + | let cK = bN(bA, 1) | |
510 | + | let cL = cK._1 | |
511 | + | let cM = bN(bB, if (cK._3) | |
492 | 512 | then 2 | |
493 | 513 | else 1) | |
494 | - | let | |
495 | - | let | |
496 | - | let | |
497 | - | let | |
498 | - | if ( | |
514 | + | let cN = cM._1 | |
515 | + | let cO = valueOrErrorMessage(scriptHash(addressFromStringValue(Z)), ("No script has been found on pool account " + Z)) | |
516 | + | let cP = getBinaryValue(L()) | |
517 | + | let cQ = ca(bA, bB) | |
518 | + | if (cQ) | |
499 | 519 | then throw((((("Pool " + bA) + "/") + bB) + " has already been activated.")) | |
500 | 520 | else { | |
501 | - | let | |
502 | - | let | |
521 | + | let cR = value(getString(this, ag(toString(cL), toString(cN)))) | |
522 | + | let cS = if ((bA == "WAVES")) | |
503 | 523 | then i | |
504 | 524 | else pow(10, 0, value(assetInfo(fromBase58String(bA))).decimals, 0, 0, DOWN) | |
505 | - | let | |
525 | + | let cT = if ((bB == "WAVES")) | |
506 | 526 | then i | |
507 | 527 | else pow(10, 0, value(assetInfo(fromBase58String(bB))).decimals, 0, 0, DOWN) | |
508 | - | let | |
509 | - | let bz = calculateAssetId( | |
510 | - | let | |
511 | - | let | |
512 | - | if (( | |
513 | - | then if (( | |
528 | + | let cU = Issue(cG, cH, 1, 8, true) | |
529 | + | let bz = calculateAssetId(cU) | |
530 | + | let cV = toBase58String(bz) | |
531 | + | let cW = invoke(addressFromStringValue(Z), "activate", [bA, bB], nil) | |
532 | + | if ((cW == cW)) | |
533 | + | then if ((cW != "success")) | |
514 | 534 | then throw("Pool initialisation error happened.") | |
515 | 535 | else { | |
516 | - | let | |
517 | - | let | |
518 | - | if (( | |
536 | + | let cw = addressFromStringValue(aF(S())) | |
537 | + | let cX = invoke(cw, "createOrUpdate", [cV, cG, false], nil) | |
538 | + | if ((cX == cX)) | |
519 | 539 | then { | |
520 | - | let | |
521 | - | if (( | |
540 | + | let cY = invoke(cw, "addLabel", [cV, g], nil) | |
541 | + | if ((cY == cY)) | |
522 | 542 | then { | |
523 | - | let | |
524 | - | if (( | |
543 | + | let cZ = invoke(cw, "setLogo", [cV, cJ], nil) | |
544 | + | if ((cZ == cZ)) | |
525 | 545 | then { | |
526 | - | let | |
527 | - | if (( | |
546 | + | let da = invoke(cw, "addAssetsLink", [bA, bB, cV], nil) | |
547 | + | if ((da == da)) | |
528 | 548 | then { | |
529 | - | let | |
530 | - | if (( | |
531 | - | then $Tuple2((( | |
549 | + | let db = invoke(cw, "increaseAssetPoolsNumber", [bA], nil) | |
550 | + | if ((db == db)) | |
551 | + | then $Tuple2(((cK._2 ++ cM._2) ++ [cU, Burn(bz, 1), StringEntry(ag(toString(cL), toString(cN)), bx(Z, toString(l), cV, bA, bB, cS, cT, cL, cN, i, bH)), StringEntry(an(cV), bI(cL, cN)), StringEntry(ap(toString(cL), toString(cN)), ("%s__" + cV)), StringEntry(at(Z), bI(cL, cN)), StringEntry(av(cL, cN), Z), StringEntry(ax(cV), Z), StringEntry(aw(Z), cV), IntegerEntry(Y(Z), cI), IntegerEntry(as(Z), h)]), cV) | |
532 | 552 | else throw("Strict value is not equal to itself.") | |
533 | 553 | } | |
534 | 554 | else throw("Strict value is not equal to itself.") | |
548 | 568 | ||
549 | 569 | ||
550 | 570 | @Callable(bh) | |
551 | - | func managePool (Z, | |
552 | - | let | |
553 | - | if (( | |
571 | + | func managePool (Z,dc) = { | |
572 | + | let cr = bi(bh) | |
573 | + | if ((cr == cr)) | |
554 | 574 | then { | |
555 | - | let | |
556 | - | let by = | |
557 | - | let | |
558 | - | let bA = | |
559 | - | let bB = | |
560 | - | let | |
561 | - | let | |
562 | - | let | |
563 | - | let | |
564 | - | let | |
565 | - | let bH = | |
566 | - | [StringEntry(ag(toString( | |
575 | + | let dd = bL(Z) | |
576 | + | let by = dd[t] | |
577 | + | let cV = dd[u] | |
578 | + | let bA = dd[v] | |
579 | + | let bB = dd[w] | |
580 | + | let cS = parseIntValue(dd[x]) | |
581 | + | let cT = parseIntValue(dd[y]) | |
582 | + | let cL = parseIntValue(dd[z]) | |
583 | + | let cN = parseIntValue(dd[A]) | |
584 | + | let de = parseIntValue(dd[B]) | |
585 | + | let bH = dd[C] | |
586 | + | [StringEntry(ag(toString(cL), toString(cN)), bx(Z, toString(dc), cV, bA, bB, cS, cT, cL, cN, de, bH))] | |
567 | 587 | } | |
568 | 588 | else throw("Strict value is not equal to itself.") | |
569 | 589 | } | |
571 | 591 | ||
572 | 592 | ||
573 | 593 | @Callable(bh) | |
574 | - | func emit ( | |
575 | - | let | |
576 | - | let | |
577 | - | let | |
578 | - | let | |
579 | - | let | |
580 | - | let | |
581 | - | if ((0 >= | |
594 | + | func emit (df) = { | |
595 | + | let dg = bh.caller | |
596 | + | let dh = bh.originCaller | |
597 | + | let di = valueOrErrorMessage(getString(aw(toString(dg))), "Invalid LP address called me.") | |
598 | + | let dj = fromBase58String(di) | |
599 | + | let cv = split(valueOrElse(getString(O()), k), j) | |
600 | + | let cu = addressFromStringValue(valueOrErrorMessage(getString(N()), "Legacy factory contract does not exists.")) | |
601 | + | if ((0 >= df)) | |
582 | 602 | then nil | |
583 | - | else if (containsElement( | |
584 | - | then $Tuple2(nil, | |
585 | - | else $Tuple2([Reissue( | |
603 | + | else if (containsElement(cv, toString(dg))) | |
604 | + | then $Tuple2(nil, cu) | |
605 | + | else $Tuple2([Reissue(dj, df, true), ScriptTransfer(bh.caller, df, dj)], "success") | |
586 | 606 | } | |
587 | 607 | ||
588 | 608 | ||
589 | 609 | ||
590 | 610 | @Callable(bh) | |
591 | - | func burn ( | |
592 | - | let | |
593 | - | let | |
594 | - | let | |
595 | - | let | |
596 | - | let | |
597 | - | let | |
598 | - | if (( | |
611 | + | func burn (dk) = { | |
612 | + | let dg = bh.caller | |
613 | + | let dh = bh.originCaller | |
614 | + | let dl = value(bh.payments[0]) | |
615 | + | let dm = value(dl.amount) | |
616 | + | let dn = toBase58String(value(dl.assetId)) | |
617 | + | let do = valueOrErrorMessage(getString(aw(toString(dg))), "Invalid LP address called me.") | |
618 | + | if ((dn != do)) | |
599 | 619 | then throw("Invalid asset passed.") | |
600 | - | else if (( | |
620 | + | else if ((dk != dm)) | |
601 | 621 | then throw("Invalid amount passed.") | |
602 | 622 | else { | |
603 | - | let | |
604 | - | $Tuple2([Burn( | |
623 | + | let dj = fromBase58String(do) | |
624 | + | $Tuple2([Burn(dj, dk)], "success") | |
605 | 625 | } | |
606 | 626 | } | |
607 | 627 | ||
608 | 628 | ||
609 | 629 | ||
610 | 630 | @Callable(bh) | |
611 | - | func modifyWeight (bz, | |
612 | - | let | |
631 | + | func modifyWeight (bz,dp) = { | |
632 | + | let cr = if ((toBase58String(bh.caller.bytes) == valueOrElse(getString(this, T()), ""))) | |
613 | 633 | then true | |
614 | 634 | else bi(bh) | |
615 | - | if (( | |
635 | + | if ((cr == cr)) | |
616 | 636 | then { | |
617 | 637 | let au = aF(ax(bz)) | |
618 | - | let | |
619 | - | let | |
620 | - | let | |
621 | - | let | |
622 | - | let | |
638 | + | let dq = Y(au) | |
639 | + | let dr = Y(f) | |
640 | + | let ds = valueOrElse(getInteger(dr), 0) | |
641 | + | let cI = valueOrElse(getInteger(dq), 0) | |
642 | + | let dt = dp | |
623 | 643 | let aV = split(aF(J()), j) | |
624 | - | let | |
625 | - | let | |
626 | - | if (( | |
644 | + | let cn = aX(aV) | |
645 | + | let du = invoke(cn, "onModifyWeight", [bz, au], nil) | |
646 | + | if ((du == du)) | |
627 | 647 | then { | |
628 | - | let | |
648 | + | let dv = if ((ds == 0)) | |
629 | 649 | then nil | |
630 | - | else [IntegerEntry( | |
631 | - | let | |
632 | - | let | |
633 | - | let | |
650 | + | else [IntegerEntry(dr, 0)] | |
651 | + | let dw = aa(au, 0) | |
652 | + | let dx = getInteger(dw) | |
653 | + | let dy = if ((dx == unit)) | |
634 | 654 | then nil | |
635 | - | else [DeleteEntry( | |
636 | - | (([IntegerEntry( | |
655 | + | else [DeleteEntry(dw)] | |
656 | + | (([IntegerEntry(dq, dt)] ++ dv) ++ dy) | |
637 | 657 | } | |
638 | 658 | else throw("Strict value is not equal to itself.") | |
639 | 659 | } | |
643 | 663 | ||
644 | 664 | ||
645 | 665 | @Callable(bh) | |
646 | - | func modifyWeights ( | |
647 | - | let | |
648 | - | if (( | |
666 | + | func modifyWeights (dz,dA,dB,dC) = { | |
667 | + | let cr = bi(bh) | |
668 | + | if ((cr == cr)) | |
649 | 669 | then { | |
650 | - | let | |
651 | - | let | |
652 | - | let | |
670 | + | let dD = ((5 * e) / 100) | |
671 | + | let dE = ((5 * e) / 100) | |
672 | + | let dF = ((5 * e) / 100) | |
653 | 673 | let aV = split(aF(J()), j) | |
654 | - | let | |
655 | - | let | |
656 | - | let | |
657 | - | let | |
658 | - | let | |
659 | - | let | |
660 | - | let | |
661 | - | let | |
662 | - | let | |
663 | - | let | |
664 | - | if ((0 >= | |
665 | - | then throw(("invalid btcWeightNew: " + toString( | |
666 | - | else if ((0 >= | |
667 | - | then throw(("invalid ethWeightNew: " + toString( | |
674 | + | let dG = aX(aV) | |
675 | + | let dH = aY(aV) | |
676 | + | let dI = Y(dz) | |
677 | + | let dJ = Y(dA) | |
678 | + | let dK = Y(dB) | |
679 | + | let dL = Y(dC) | |
680 | + | let dM = aI(dI) | |
681 | + | let dN = aI(dJ) | |
682 | + | let dO = (dM - dF) | |
683 | + | let dP = (dN - dF) | |
684 | + | if ((0 >= dO)) | |
685 | + | then throw(("invalid btcWeightNew: " + toString(dO))) | |
686 | + | else if ((0 >= dP)) | |
687 | + | then throw(("invalid ethWeightNew: " + toString(dP))) | |
668 | 688 | else { | |
669 | - | let | |
670 | - | let | |
671 | - | let | |
672 | - | let | |
673 | - | let | |
674 | - | if (( | |
689 | + | let dQ = aF(aw(dz)) | |
690 | + | let dR = aF(aw(dA)) | |
691 | + | let dS = aF(aw(dB)) | |
692 | + | let dT = aF(aw(dC)) | |
693 | + | let dU = invoke(dG, "onModifyWeight", [dQ, dz], nil) | |
694 | + | if ((dU == dU)) | |
675 | 695 | then { | |
676 | - | let | |
677 | - | if (( | |
696 | + | let dV = invoke(dG, "onModifyWeight", [dR, dA], nil) | |
697 | + | if ((dV == dV)) | |
678 | 698 | then { | |
679 | - | let | |
680 | - | if (( | |
699 | + | let dW = invoke(dG, "onModifyWeight", [dS, dB], nil) | |
700 | + | if ((dW == dW)) | |
681 | 701 | then { | |
682 | - | let | |
683 | - | if (( | |
684 | - | then [IntegerEntry( | |
702 | + | let dX = invoke(dG, "onModifyWeight", [dT, dC], nil) | |
703 | + | if ((dX == dX)) | |
704 | + | then [IntegerEntry(dI, dO), IntegerEntry(dJ, dP), IntegerEntry(dK, dD), IntegerEntry(dL, dE), IntegerEntry(aa(dz, 0), dM), IntegerEntry(aa(dA, 0), dN), IntegerEntry(aa(dB, 0), dD), IntegerEntry(aa(dC, 0), dE)] | |
685 | 705 | else throw("Strict value is not equal to itself.") | |
686 | 706 | } | |
687 | 707 | else throw("Strict value is not equal to itself.") | |
698 | 718 | ||
699 | 719 | @Callable(bh) | |
700 | 720 | func checkWxEmissionPoolLabel (az,aA) = { | |
701 | - | let | |
721 | + | let dY = { | |
702 | 722 | let ba = getBoolean(ay(az, aA)) | |
703 | 723 | if ($isInstanceOf(ba, "Boolean")) | |
704 | 724 | then { | |
705 | - | let | |
706 | - | | |
725 | + | let dZ = ba | |
726 | + | dZ | |
707 | 727 | } | |
708 | 728 | else false | |
709 | 729 | } | |
710 | - | $Tuple2(nil, | |
730 | + | $Tuple2(nil, dY) | |
711 | 731 | } | |
712 | 732 | ||
713 | 733 | ||
714 | 734 | ||
715 | 735 | @Callable(bh) | |
716 | 736 | func setWxEmissionPoolLabel (az,aA) = { | |
717 | - | let | |
718 | - | if (( | |
737 | + | let cr = bU(bh) | |
738 | + | if ((cr == cr)) | |
719 | 739 | then $Tuple2([BooleanEntry(ay(az, aA), true)], unit) | |
720 | 740 | else throw("Strict value is not equal to itself.") | |
721 | 741 | } | |
724 | 744 | ||
725 | 745 | @Callable(bh) | |
726 | 746 | func deleteWxEmissionPoolLabel (az,aA) = { | |
727 | - | let | |
747 | + | let cr = if (bg(bh)) | |
728 | 748 | then true | |
729 | 749 | else bU(bh) | |
730 | - | if (( | |
750 | + | if ((cr == cr)) | |
731 | 751 | then $Tuple2([DeleteEntry(ay(az, aA))], unit) | |
732 | 752 | else throw("Strict value is not equal to itself.") | |
733 | 753 | } | |
735 | 755 | ||
736 | 756 | ||
737 | 757 | @Callable(bh) | |
738 | - | func onVerificationLoss ( | |
739 | - | let | |
758 | + | func onVerificationLoss (ea) = { | |
759 | + | let cr = if ((toBase58String(bh.caller.bytes) == valueOrElse(getString(this, S()), ""))) | |
740 | 760 | then true | |
741 | 761 | else bi(bh) | |
742 | - | if (( | |
762 | + | if ((cr == cr)) | |
743 | 763 | then { | |
744 | - | let | |
745 | - | let | |
764 | + | let cy = aZ() | |
765 | + | let eb = if ((size(cy) > 0)) | |
746 | 766 | then true | |
747 | 767 | else throw("invalid price assets") | |
748 | - | if (( | |
768 | + | if ((eb == eb)) | |
749 | 769 | then { | |
750 | - | func | |
751 | - | let | |
752 | - | if (( | |
770 | + | func ec (ed,ee) = { | |
771 | + | let ef = invoke(this, "deleteWxEmissionPoolLabel", [ea, ee], nil) | |
772 | + | if ((ef == ef)) | |
753 | 773 | then unit | |
754 | 774 | else throw("Strict value is not equal to itself.") | |
755 | 775 | } | |
756 | 776 | ||
757 | - | let | |
758 | - | let | |
759 | - | let | |
760 | - | let | |
761 | - | func | |
762 | - | then | |
763 | - | else | |
777 | + | let eg = { | |
778 | + | let eh = cy | |
779 | + | let ei = size(eh) | |
780 | + | let ej = unit | |
781 | + | func ek (el,em) = if ((em >= ei)) | |
782 | + | then el | |
783 | + | else ec(el, eh[em]) | |
764 | 784 | ||
765 | - | func | |
766 | - | then | |
785 | + | func en (el,em) = if ((em >= ei)) | |
786 | + | then el | |
767 | 787 | else throw("List size exceeds 1") | |
768 | 788 | ||
769 | - | | |
789 | + | en(ek(ej, 0), 1) | |
770 | 790 | } | |
771 | - | if (( | |
791 | + | if ((eg == eg)) | |
772 | 792 | then $Tuple2(nil, unit) | |
773 | 793 | else throw("Strict value is not equal to itself.") | |
774 | 794 | } | |
781 | 801 | ||
782 | 802 | @Callable(bh) | |
783 | 803 | func isPoolOneTokenOperationsDisabledREADONLY (Z) = { | |
784 | - | let | |
785 | - | let ak = $Tuple2(parseIntValue( | |
786 | - | let | |
787 | - | let | |
788 | - | $Tuple2(nil, if ( | |
804 | + | let dd = bL(Z) | |
805 | + | let ak = $Tuple2(parseIntValue(dd[z]), parseIntValue(dd[A])) | |
806 | + | let eo = valueOrElse(getBoolean(aj(ak)), false) | |
807 | + | let ep = valueOrElse(getBoolean(am()), false) | |
808 | + | $Tuple2(nil, if (ep) | |
789 | 809 | then true | |
790 | - | else | |
810 | + | else eo) | |
791 | 811 | } | |
792 | 812 | ||
793 | 813 | ||
794 | 814 | ||
795 | 815 | @Callable(bh) | |
796 | 816 | func getInFeeREADONLY (Z) = { | |
797 | - | let | |
798 | - | $Tuple2(nil, | |
817 | + | let eq = bX(aB(Z), aC(), 0) | |
818 | + | $Tuple2(nil, eq) | |
799 | 819 | } | |
800 | 820 | ||
801 | 821 | ||
802 | 822 | ||
803 | 823 | @Callable(bh) | |
804 | 824 | func getOutFeeREADONLY (Z) = { | |
805 | - | let | |
806 | - | $Tuple2(nil, | |
825 | + | let eq = bX(aD(Z), aE(), fraction(10, b, 10000)) | |
826 | + | $Tuple2(nil, eq) | |
807 | 827 | } | |
808 | 828 | ||
809 | 829 | ||
813 | 833 | let bM = split(aF(at(Z)), j) | |
814 | 834 | let ah = bM[1] | |
815 | 835 | let ai = bM[2] | |
816 | - | let | |
817 | - | $Tuple2(nil, parseIntValue( | |
836 | + | let cd = split(aF(ag(ah, ai)), j) | |
837 | + | $Tuple2(nil, parseIntValue(cd[t])) | |
818 | 838 | } | |
819 | 839 | ||
820 | 840 | ||
821 | 841 | ||
822 | 842 | @Callable(bh) | |
823 | - | func getPoolConfigByLpAssetId ( | |
824 | - | let bM = split(aF(an( | |
843 | + | func getPoolConfigByLpAssetId (cV) = { | |
844 | + | let bM = split(aF(an(cV)), j) | |
825 | 845 | let ah = bM[1] | |
826 | 846 | let ai = bM[2] | |
827 | - | let | |
828 | - | $Tuple2(nil, | |
847 | + | let cd = split(aF(ag(ah, ai)), j) | |
848 | + | $Tuple2(nil, cd) | |
829 | 849 | } | |
830 | 850 | ||
831 | 851 | ||
832 | - | @Verifier(el) | |
833 | - | func em () = { | |
834 | - | let en = { | |
852 | + | ||
853 | + | @Callable(bh) | |
854 | + | func poolExistsREADONLY (az,aA) = $Tuple2(nil, ca(az, aA)) | |
855 | + | ||
856 | + | ||
857 | + | @Verifier(er) | |
858 | + | func es () = { | |
859 | + | let et = { | |
835 | 860 | let ba = bc() | |
836 | 861 | if ($isInstanceOf(ba, "ByteVector")) | |
837 | 862 | then { | |
839 | 864 | bj | |
840 | 865 | } | |
841 | 866 | else if ($isInstanceOf(ba, "Unit")) | |
842 | - | then | |
867 | + | then er.senderPublicKey | |
843 | 868 | else throw("Match error") | |
844 | 869 | } | |
845 | - | sigVerify( | |
870 | + | sigVerify(er.bodyBytes, er.proofs[0], et) | |
846 | 871 | } | |
847 | 872 |
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 = 18 | |
9 | 9 | ||
10 | 10 | let d = toBigInt(1000000000000000000) | |
11 | 11 | ||
12 | 12 | let e = b | |
13 | 13 | ||
14 | 14 | let f = "GWXvirtualPOOL" | |
15 | 15 | ||
16 | 16 | let g = "POOLS_LP" | |
17 | 17 | ||
18 | 18 | let h = 2000000 | |
19 | 19 | ||
20 | 20 | let i = ((100 * 1000) * 1000) | |
21 | 21 | ||
22 | 22 | let j = "__" | |
23 | 23 | ||
24 | 24 | let k = "" | |
25 | 25 | ||
26 | 26 | let l = 1 | |
27 | 27 | ||
28 | 28 | let m = 2 | |
29 | 29 | ||
30 | 30 | let n = 3 | |
31 | 31 | ||
32 | 32 | let o = 4 | |
33 | 33 | ||
34 | 34 | let p = 1 | |
35 | 35 | ||
36 | 36 | let q = 2 | |
37 | 37 | ||
38 | 38 | let r = 3 | |
39 | 39 | ||
40 | 40 | let s = 1 | |
41 | 41 | ||
42 | 42 | let t = 2 | |
43 | 43 | ||
44 | 44 | let u = 3 | |
45 | 45 | ||
46 | 46 | let v = 4 | |
47 | 47 | ||
48 | 48 | let w = 5 | |
49 | 49 | ||
50 | 50 | let x = 6 | |
51 | 51 | ||
52 | 52 | let y = 7 | |
53 | 53 | ||
54 | 54 | let z = 8 | |
55 | 55 | ||
56 | 56 | let A = 9 | |
57 | 57 | ||
58 | 58 | let B = 10 | |
59 | 59 | ||
60 | 60 | let C = 11 | |
61 | 61 | ||
62 | 62 | let D = "WX_EMISSION" | |
63 | 63 | ||
64 | 64 | let E = [D] | |
65 | 65 | ||
66 | 66 | func F () = "%s__allowedLpScriptHash" | |
67 | 67 | ||
68 | 68 | ||
69 | 69 | func G () = "%s__allowedLpStableScriptHash" | |
70 | 70 | ||
71 | 71 | ||
72 | 72 | func H () = "%s__allowedLpStableAddonScriptHash" | |
73 | 73 | ||
74 | 74 | ||
75 | 75 | func I () = "%s__swapContract" | |
76 | 76 | ||
77 | 77 | ||
78 | 78 | func J () = "%s__factoryConfig" | |
79 | 79 | ||
80 | 80 | ||
81 | 81 | func K () = "%s__lpTokensList" | |
82 | 82 | ||
83 | 83 | ||
84 | 84 | func L () = "%s%s__pool__scriptHash" | |
85 | 85 | ||
86 | 86 | ||
87 | 87 | func M () = "%s%s__matcher__publicKey" | |
88 | 88 | ||
89 | 89 | ||
90 | 90 | func N () = "%s__legacyFactoryContract" | |
91 | 91 | ||
92 | 92 | ||
93 | 93 | func O () = "%s__legacyPools" | |
94 | 94 | ||
95 | 95 | ||
96 | 96 | func P () = "%s__managerPublicKey" | |
97 | 97 | ||
98 | 98 | ||
99 | 99 | func Q () = "%s__pendingManagerPublicKey" | |
100 | 100 | ||
101 | 101 | ||
102 | 102 | func R () = "%s__adminPubKeys" | |
103 | 103 | ||
104 | 104 | ||
105 | 105 | func S () = "%s__assetsStoreContract" | |
106 | 106 | ||
107 | 107 | ||
108 | 108 | func T () = "%s__votingEmissionContract" | |
109 | 109 | ||
110 | 110 | ||
111 | 111 | func U () = makeString(["%s", "priceAssets"], j) | |
112 | 112 | ||
113 | 113 | ||
114 | 114 | func V () = "%s__priceDecimals" | |
115 | 115 | ||
116 | 116 | ||
117 | 117 | func W () = "%s__shutdown" | |
118 | 118 | ||
119 | 119 | ||
120 | 120 | func X () = "%s__nextInternalAssetId" | |
121 | 121 | ||
122 | 122 | ||
123 | 123 | func Y (Z) = ("%s%s__poolWeight__" + Z) | |
124 | 124 | ||
125 | 125 | ||
126 | 126 | func aa (Z,ab) = ((("%s%s__poolWeight__" + Z) + "__") + toString(ab)) | |
127 | 127 | ||
128 | 128 | ||
129 | 129 | func ac (ad) = ("%s%s%d__mappings__internal2baseAssetId__" + toString(ad)) | |
130 | 130 | ||
131 | 131 | ||
132 | 132 | func ae (af) = ("%s%s%s__mappings__baseAsset2internalId__" + af) | |
133 | 133 | ||
134 | 134 | ||
135 | 135 | func ag (ah,ai) = (((("%d%d%s__" + ah) + "__") + ai) + "__config") | |
136 | 136 | ||
137 | 137 | ||
138 | 138 | func aj (ak) = { | |
139 | 139 | let al = ak | |
140 | 140 | let ah = al._1 | |
141 | 141 | let ai = al._2 | |
142 | 142 | makeString(["%d%d%s", toString(ah), toString(ai), "oneTokenOperationsDisabled"], j) | |
143 | 143 | } | |
144 | 144 | ||
145 | 145 | ||
146 | 146 | func am () = makeString(["%s", "oneTokenOperationsDisabled"], j) | |
147 | 147 | ||
148 | 148 | ||
149 | 149 | func an (ao) = (("%s%s%s__" + ao) + "__mappings__lpAsset2Pool") | |
150 | 150 | ||
151 | 151 | ||
152 | 152 | func ap (aq,ar) = (((("%d%d%s%s__" + aq) + "__") + ar) + "__mappings__PoolAssets2LpAsset") | |
153 | 153 | ||
154 | 154 | ||
155 | 155 | func as (Z) = ("%s%s__spread__" + Z) | |
156 | 156 | ||
157 | 157 | ||
158 | 158 | func at (au) = (("%s%s%s__" + au) + "__mappings__poolContract2PoolAssets") | |
159 | 159 | ||
160 | 160 | ||
161 | 161 | func av (aq,ar) = (((("%d%d%s%s__" + toString(aq)) + "__") + toString(ar)) + "__mappings__poolAssets2PoolContract") | |
162 | 162 | ||
163 | 163 | ||
164 | 164 | func aw (au) = (("%s%s%s__" + au) + "__mappings__poolContract2LpAsset") | |
165 | 165 | ||
166 | 166 | ||
167 | 167 | func ax (ao) = (("%s%s%s__" + ao) + "__mappings__lpAsset2PoolContract") | |
168 | 168 | ||
169 | 169 | ||
170 | 170 | func ay (az,aA) = ((("%s%s%s__wxEmission__" + az) + "__") + aA) | |
171 | 171 | ||
172 | 172 | ||
173 | 173 | func aB (Z) = ("%s%s__inFee__" + Z) | |
174 | 174 | ||
175 | 175 | ||
176 | 176 | func aC () = "%s__inFeeDefault" | |
177 | 177 | ||
178 | 178 | ||
179 | 179 | func aD (Z) = ("%s%s__outFee__" + Z) | |
180 | 180 | ||
181 | 181 | ||
182 | 182 | func aE () = "%s__outFeeDefault" | |
183 | 183 | ||
184 | 184 | ||
185 | 185 | func aF (aG) = valueOrErrorMessage(getString(this, aG), ("No data for this.key=" + aG)) | |
186 | 186 | ||
187 | 187 | ||
188 | 188 | func aH (aG) = valueOrErrorMessage(getBoolean(this, aG), ("No data for this.key=" + aG)) | |
189 | 189 | ||
190 | 190 | ||
191 | 191 | func aI (aG) = valueOrErrorMessage(getInteger(this, aG), ("No data for this.key=" + aG)) | |
192 | 192 | ||
193 | 193 | ||
194 | 194 | let aJ = 1 | |
195 | 195 | ||
196 | 196 | let aK = 2 | |
197 | 197 | ||
198 | 198 | let aL = 3 | |
199 | 199 | ||
200 | 200 | let aM = 4 | |
201 | 201 | ||
202 | 202 | let aN = 5 | |
203 | 203 | ||
204 | 204 | let aO = 6 | |
205 | 205 | ||
206 | 206 | let aP = 7 | |
207 | 207 | ||
208 | 208 | let aQ = 8 | |
209 | 209 | ||
210 | 210 | let aR = 9 | |
211 | 211 | ||
212 | 212 | let aS = 10 | |
213 | 213 | ||
214 | 214 | let aT = 11 | |
215 | 215 | ||
216 | 216 | func aU (aV) = addressFromStringValue(aV[aK]) | |
217 | 217 | ||
218 | 218 | ||
219 | 219 | func aW (aV) = addressFromStringValue(aV[aN]) | |
220 | 220 | ||
221 | 221 | ||
222 | 222 | func aX (aV) = addressFromStringValue(aV[aJ]) | |
223 | 223 | ||
224 | 224 | ||
225 | 225 | func aY (aV) = addressFromStringValue(aV[aS]) | |
226 | 226 | ||
227 | 227 | ||
228 | 228 | func aZ () = { | |
229 | 229 | let ba = getString(U()) | |
230 | 230 | if ($isInstanceOf(ba, "String")) | |
231 | 231 | then { | |
232 | 232 | let bb = ba | |
233 | 233 | if ((size(bb) == 0)) | |
234 | 234 | then nil | |
235 | 235 | else split(bb, j) | |
236 | 236 | } | |
237 | 237 | else nil | |
238 | 238 | } | |
239 | 239 | ||
240 | 240 | ||
241 | 241 | func bc () = { | |
242 | 242 | let ba = getString(P()) | |
243 | 243 | if ($isInstanceOf(ba, "String")) | |
244 | 244 | then { | |
245 | 245 | let bb = ba | |
246 | 246 | fromBase58String(bb) | |
247 | 247 | } | |
248 | 248 | else if ($isInstanceOf(ba, "Unit")) | |
249 | 249 | then unit | |
250 | 250 | else throw("Match error") | |
251 | 251 | } | |
252 | 252 | ||
253 | 253 | ||
254 | 254 | func bd () = { | |
255 | 255 | let ba = getString(Q()) | |
256 | 256 | if ($isInstanceOf(ba, "String")) | |
257 | 257 | then { | |
258 | 258 | let bb = ba | |
259 | 259 | fromBase58String(bb) | |
260 | 260 | } | |
261 | 261 | else if ($isInstanceOf(ba, "Unit")) | |
262 | 262 | then unit | |
263 | 263 | else throw("Match error") | |
264 | 264 | } | |
265 | 265 | ||
266 | 266 | ||
267 | 267 | let be = throw("Permission denied") | |
268 | 268 | ||
269 | 269 | let bf = throw("Test error here") | |
270 | 270 | ||
271 | 271 | func bg (bh) = if ((bh.caller == this)) | |
272 | 272 | then true | |
273 | 273 | else be | |
274 | 274 | ||
275 | 275 | ||
276 | 276 | func bi (bh) = { | |
277 | 277 | let ba = bc() | |
278 | 278 | if ($isInstanceOf(ba, "ByteVector")) | |
279 | 279 | then { | |
280 | 280 | let bj = ba | |
281 | 281 | if ((bh.callerPublicKey == bj)) | |
282 | 282 | then true | |
283 | 283 | else be | |
284 | 284 | } | |
285 | 285 | else if ($isInstanceOf(ba, "Unit")) | |
286 | 286 | then bg(bh) | |
287 | 287 | else throw("Match error") | |
288 | 288 | } | |
289 | 289 | ||
290 | 290 | ||
291 | 291 | func bk (bl,bm,bn,bo,bp,bq,br,bs,bt,bu,bv) = makeString(["%s%s%s%s%s%s%s%s%s%s%s", bl, bm, bn, bo, bp, bq, br, bs, bt, bu, bv], j) | |
292 | 292 | ||
293 | 293 | ||
294 | 294 | func bw (bl,bm,bn,bo,bp,bq,br) = makeString(["%s%s%s%s%s%s", bl, bm, bn, bo, bp, bq, br], j) | |
295 | 295 | ||
296 | 296 | ||
297 | 297 | func bx (Z,by,bz,bA,bB,bC,bD,bE,bF,bG,bH) = makeString(["%s%d%s%s%s%d%d%d%d%d%s", Z, by, bz, bA, bB, toString(bC), toString(bD), toString(bE), toString(bF), toString(bG), bH], j) | |
298 | 298 | ||
299 | 299 | ||
300 | 300 | func bI (bJ,bK) = makeString(["%d%d", toString(bJ), toString(bK)], j) | |
301 | 301 | ||
302 | 302 | ||
303 | 303 | func bL (Z) = { | |
304 | 304 | let bM = split(aF(at(Z)), j) | |
305 | 305 | let ah = bM[1] | |
306 | 306 | let ai = bM[2] | |
307 | 307 | split(aF(ag(ah, ai)), j) | |
308 | 308 | } | |
309 | 309 | ||
310 | 310 | ||
311 | 311 | func bN (bO,bP) = { | |
312 | 312 | let bQ = valueOrElse(getInteger(this, ae(bO)), 0) | |
313 | 313 | let bR = valueOrElse(getInteger(this, X()), 0) | |
314 | 314 | let bS = if ((bQ == 0)) | |
315 | 315 | then { | |
316 | 316 | let bT = (bR + bP) | |
317 | 317 | $Tuple3(bT, [IntegerEntry(X(), bT), IntegerEntry(ae(bO), bT), StringEntry(ac(bT), bO)], true) | |
318 | 318 | } | |
319 | 319 | else $Tuple3(bQ, nil, false) | |
320 | 320 | bS | |
321 | 321 | } | |
322 | 322 | ||
323 | 323 | ||
324 | 324 | func bU (bh) = { | |
325 | 325 | let bV = split(valueOrElse(getString(R()), k), j) | |
326 | 326 | if (containsElement(bV, toBase58String(bh.callerPublicKey))) | |
327 | 327 | then true | |
328 | 328 | else { | |
329 | 329 | let bW = bi(bh) | |
330 | 330 | if ((bW == bW)) | |
331 | 331 | then true | |
332 | 332 | else throw("Strict value is not equal to itself.") | |
333 | 333 | } | |
334 | 334 | } | |
335 | 335 | ||
336 | 336 | ||
337 | 337 | func bX (aG,bY,bZ) = valueOrElse(getInteger(this, aG), valueOrElse(getInteger(this, bY), bZ)) | |
338 | 338 | ||
339 | 339 | ||
340 | + | func ca (az,aA) = { | |
341 | + | let ah = getInteger(ae(az)) | |
342 | + | let ai = getInteger(ae(aA)) | |
343 | + | if (if ((ah == unit)) | |
344 | + | then true | |
345 | + | else (ai == unit)) | |
346 | + | then false | |
347 | + | else { | |
348 | + | let cb = toString(value(ah)) | |
349 | + | let cc = toString(value(ai)) | |
350 | + | let cd = getString(ag(cb, cc)) | |
351 | + | let ce = getString(ag(cc, cb)) | |
352 | + | let cf = if ((cd != unit)) | |
353 | + | then true | |
354 | + | else (ce != unit) | |
355 | + | cf | |
356 | + | } | |
357 | + | } | |
358 | + | ||
359 | + | ||
340 | 360 | @Callable(bh) | |
341 | 361 | func getSwapContractREADONLY () = $Tuple2(nil, aF(I())) | |
342 | 362 | ||
343 | 363 | ||
344 | 364 | ||
345 | 365 | @Callable(bh) | |
346 | - | func getLpAssetFromPoolAssetsREADONLY ( | |
347 | - | then ( | |
366 | + | func getLpAssetFromPoolAssetsREADONLY (cg,ch) = if (if ((cg == "8LQW8f7P5d5PZM7GtZEBgaqRPGSzS3DfPuiXrURJ4AJS")) | |
367 | + | then (ch == "WAVES") | |
348 | 368 | else false) | |
349 | 369 | then $Tuple2(nil, unit) | |
350 | 370 | else { | |
351 | - | let | |
352 | - | let | |
353 | - | let | |
354 | - | let | |
371 | + | let ci = value(getInteger(this, ae(cg))) | |
372 | + | let cj = value(getInteger(this, ae(ch))) | |
373 | + | let ck = getString(this, ap(toString(ci), toString(cj))) | |
374 | + | let cl = if ((ck == unit)) | |
355 | 375 | then unit | |
356 | - | else drop(value( | |
357 | - | $Tuple2(nil, | |
376 | + | else drop(value(ck), 4) | |
377 | + | $Tuple2(nil, cl) | |
358 | 378 | } | |
359 | 379 | ||
360 | 380 | ||
361 | 381 | ||
362 | 382 | @Callable(bh) | |
363 | - | func getPoolAddressFromLpAssetREADONLY ( | |
383 | + | func getPoolAddressFromLpAssetREADONLY (cm) = $Tuple2(nil, valueOrElse(getString(this, ax(cm)), "")) | |
364 | 384 | ||
365 | 385 | ||
366 | 386 | ||
367 | 387 | @Callable(bh) | |
368 | - | func constructor ( | |
369 | - | let | |
370 | - | if (( | |
371 | - | then [StringEntry(J(), bw( | |
388 | + | func constructor (cn,co,bn,bo,bp,bq,cp,cq) = { | |
389 | + | let cr = bi(bh) | |
390 | + | if ((cr == cr)) | |
391 | + | then [StringEntry(J(), bw(cn, co, bn, bo, bp, bq, cp)), IntegerEntry(V(), cq)] | |
372 | 392 | else throw("Strict value is not equal to itself.") | |
373 | 393 | } | |
374 | 394 | ||
375 | 395 | ||
376 | 396 | ||
377 | 397 | @Callable(bh) | |
378 | - | func constructorV2 ( | |
379 | - | let | |
380 | - | if (( | |
398 | + | func constructorV2 (cs) = { | |
399 | + | let cr = bi(bh) | |
400 | + | if ((cr == cr)) | |
381 | 401 | then { | |
382 | - | let | |
383 | - | if (( | |
384 | - | then [StringEntry(M(), | |
402 | + | let ct = addressFromPublicKey(fromBase58String(cs)) | |
403 | + | if ((ct == ct)) | |
404 | + | then [StringEntry(M(), cs)] | |
385 | 405 | else throw("Strict value is not equal to itself.") | |
386 | 406 | } | |
387 | 407 | else throw("Strict value is not equal to itself.") | |
388 | 408 | } | |
389 | 409 | ||
390 | 410 | ||
391 | 411 | ||
392 | 412 | @Callable(bh) | |
393 | 413 | func constructorV3 (bs,bt,bu,bv) = { | |
394 | - | let | |
395 | - | if (( | |
414 | + | let cr = bi(bh) | |
415 | + | if ((cr == cr)) | |
396 | 416 | then { | |
397 | 417 | let aV = split(aF(J()), j) | |
398 | 418 | [StringEntry(J(), bk(aV[1], aV[2], aV[3], aV[4], aV[5], aV[6], aV[7], bs, bt, bu, bv))] | |
399 | 419 | } | |
400 | 420 | else throw("Strict value is not equal to itself.") | |
401 | 421 | } | |
402 | 422 | ||
403 | 423 | ||
404 | 424 | ||
405 | 425 | @Callable(bh) | |
406 | - | func constructorV4 ( | |
407 | - | let | |
408 | - | if (( | |
409 | - | then [StringEntry(N(), | |
426 | + | func constructorV4 (cu,cv) = { | |
427 | + | let cr = bi(bh) | |
428 | + | if ((cr == cr)) | |
429 | + | then [StringEntry(N(), cu), StringEntry(O(), makeString(cv, j))] | |
410 | 430 | else throw("Strict value is not equal to itself.") | |
411 | 431 | } | |
412 | 432 | ||
413 | 433 | ||
414 | 434 | ||
415 | 435 | @Callable(bh) | |
416 | - | func constructorV5 ( | |
417 | - | let | |
418 | - | if (( | |
419 | - | then [StringEntry(S(), | |
436 | + | func constructorV5 (cw) = { | |
437 | + | let cr = bi(bh) | |
438 | + | if ((cr == cr)) | |
439 | + | then [StringEntry(S(), cw)] | |
420 | 440 | else throw("Strict value is not equal to itself.") | |
421 | 441 | } | |
422 | 442 | ||
423 | 443 | ||
424 | 444 | ||
425 | 445 | @Callable(bh) | |
426 | - | func constructorV6 ( | |
427 | - | let | |
446 | + | func constructorV6 (cx,cy) = { | |
447 | + | let cz = [bi(bh), if ((addressFromString(cx) != unit)) | |
428 | 448 | then true | |
429 | 449 | else "invalid voting emission contract address"] | |
430 | - | if (( | |
431 | - | then [StringEntry(T(), | |
450 | + | if ((cz == cz)) | |
451 | + | then [StringEntry(T(), cx), StringEntry(U(), makeString(cy, j))] | |
432 | 452 | else throw("Strict value is not equal to itself.") | |
433 | 453 | } | |
434 | 454 | ||
435 | 455 | ||
436 | 456 | ||
437 | 457 | @Callable(bh) | |
438 | - | func setManager ( | |
439 | - | let | |
440 | - | if (( | |
458 | + | func setManager (cA) = { | |
459 | + | let cr = bi(bh) | |
460 | + | if ((cr == cr)) | |
441 | 461 | then { | |
442 | - | let | |
443 | - | if (( | |
444 | - | then [StringEntry(Q(), | |
462 | + | let cB = fromBase58String(cA) | |
463 | + | if ((cB == cB)) | |
464 | + | then [StringEntry(Q(), cA)] | |
445 | 465 | else throw("Strict value is not equal to itself.") | |
446 | 466 | } | |
447 | 467 | else throw("Strict value is not equal to itself.") | |
448 | 468 | } | |
449 | 469 | ||
450 | 470 | ||
451 | 471 | ||
452 | 472 | @Callable(bh) | |
453 | 473 | func confirmManager () = { | |
454 | - | let | |
455 | - | let | |
474 | + | let cC = bd() | |
475 | + | let cD = if (isDefined(cC)) | |
456 | 476 | then true | |
457 | 477 | else throw("No pending manager") | |
458 | - | if (( | |
478 | + | if ((cD == cD)) | |
459 | 479 | then { | |
460 | - | let | |
480 | + | let cE = if ((bh.callerPublicKey == value(cC))) | |
461 | 481 | then true | |
462 | 482 | else throw("You are not pending manager") | |
463 | - | if (( | |
464 | - | then [StringEntry(P(), toBase58String(value( | |
483 | + | if ((cE == cE)) | |
484 | + | then [StringEntry(P(), toBase58String(value(cC))), DeleteEntry(Q())] | |
465 | 485 | else throw("Strict value is not equal to itself.") | |
466 | 486 | } | |
467 | 487 | else throw("Strict value is not equal to itself.") | |
468 | 488 | } | |
469 | 489 | ||
470 | 490 | ||
471 | 491 | ||
472 | 492 | @Callable(bh) | |
473 | - | func setAdmins ( | |
474 | - | let | |
475 | - | if (( | |
476 | - | then [StringEntry(R(), makeString( | |
493 | + | func setAdmins (cF) = { | |
494 | + | let cr = bi(bh) | |
495 | + | if ((cr == cr)) | |
496 | + | then [StringEntry(R(), makeString(cF, j))] | |
477 | 497 | else throw("Strict value is not equal to itself.") | |
478 | 498 | } | |
479 | 499 | ||
480 | 500 | ||
481 | 501 | ||
482 | 502 | @Callable(bh) | |
483 | - | func activateNewPool (Z,bA,bB, | |
484 | - | let | |
485 | - | if (( | |
503 | + | func activateNewPool (Z,bA,bB,cG,cH,cI,bH,cJ) = { | |
504 | + | let cr = bU(bh) | |
505 | + | if ((cr == cr)) | |
486 | 506 | then if (isDefined(getString(at(Z)))) | |
487 | 507 | then throw((("Pool address " + Z) + " already registered.")) | |
488 | 508 | else { | |
489 | - | let | |
490 | - | let | |
491 | - | let | |
509 | + | let cK = bN(bA, 1) | |
510 | + | let cL = cK._1 | |
511 | + | let cM = bN(bB, if (cK._3) | |
492 | 512 | then 2 | |
493 | 513 | else 1) | |
494 | - | let | |
495 | - | let | |
496 | - | let | |
497 | - | let | |
498 | - | if ( | |
514 | + | let cN = cM._1 | |
515 | + | let cO = valueOrErrorMessage(scriptHash(addressFromStringValue(Z)), ("No script has been found on pool account " + Z)) | |
516 | + | let cP = getBinaryValue(L()) | |
517 | + | let cQ = ca(bA, bB) | |
518 | + | if (cQ) | |
499 | 519 | then throw((((("Pool " + bA) + "/") + bB) + " has already been activated.")) | |
500 | 520 | else { | |
501 | - | let | |
502 | - | let | |
521 | + | let cR = value(getString(this, ag(toString(cL), toString(cN)))) | |
522 | + | let cS = if ((bA == "WAVES")) | |
503 | 523 | then i | |
504 | 524 | else pow(10, 0, value(assetInfo(fromBase58String(bA))).decimals, 0, 0, DOWN) | |
505 | - | let | |
525 | + | let cT = if ((bB == "WAVES")) | |
506 | 526 | then i | |
507 | 527 | else pow(10, 0, value(assetInfo(fromBase58String(bB))).decimals, 0, 0, DOWN) | |
508 | - | let | |
509 | - | let bz = calculateAssetId( | |
510 | - | let | |
511 | - | let | |
512 | - | if (( | |
513 | - | then if (( | |
528 | + | let cU = Issue(cG, cH, 1, 8, true) | |
529 | + | let bz = calculateAssetId(cU) | |
530 | + | let cV = toBase58String(bz) | |
531 | + | let cW = invoke(addressFromStringValue(Z), "activate", [bA, bB], nil) | |
532 | + | if ((cW == cW)) | |
533 | + | then if ((cW != "success")) | |
514 | 534 | then throw("Pool initialisation error happened.") | |
515 | 535 | else { | |
516 | - | let | |
517 | - | let | |
518 | - | if (( | |
536 | + | let cw = addressFromStringValue(aF(S())) | |
537 | + | let cX = invoke(cw, "createOrUpdate", [cV, cG, false], nil) | |
538 | + | if ((cX == cX)) | |
519 | 539 | then { | |
520 | - | let | |
521 | - | if (( | |
540 | + | let cY = invoke(cw, "addLabel", [cV, g], nil) | |
541 | + | if ((cY == cY)) | |
522 | 542 | then { | |
523 | - | let | |
524 | - | if (( | |
543 | + | let cZ = invoke(cw, "setLogo", [cV, cJ], nil) | |
544 | + | if ((cZ == cZ)) | |
525 | 545 | then { | |
526 | - | let | |
527 | - | if (( | |
546 | + | let da = invoke(cw, "addAssetsLink", [bA, bB, cV], nil) | |
547 | + | if ((da == da)) | |
528 | 548 | then { | |
529 | - | let | |
530 | - | if (( | |
531 | - | then $Tuple2((( | |
549 | + | let db = invoke(cw, "increaseAssetPoolsNumber", [bA], nil) | |
550 | + | if ((db == db)) | |
551 | + | then $Tuple2(((cK._2 ++ cM._2) ++ [cU, Burn(bz, 1), StringEntry(ag(toString(cL), toString(cN)), bx(Z, toString(l), cV, bA, bB, cS, cT, cL, cN, i, bH)), StringEntry(an(cV), bI(cL, cN)), StringEntry(ap(toString(cL), toString(cN)), ("%s__" + cV)), StringEntry(at(Z), bI(cL, cN)), StringEntry(av(cL, cN), Z), StringEntry(ax(cV), Z), StringEntry(aw(Z), cV), IntegerEntry(Y(Z), cI), IntegerEntry(as(Z), h)]), cV) | |
532 | 552 | else throw("Strict value is not equal to itself.") | |
533 | 553 | } | |
534 | 554 | else throw("Strict value is not equal to itself.") | |
535 | 555 | } | |
536 | 556 | else throw("Strict value is not equal to itself.") | |
537 | 557 | } | |
538 | 558 | else throw("Strict value is not equal to itself.") | |
539 | 559 | } | |
540 | 560 | else throw("Strict value is not equal to itself.") | |
541 | 561 | } | |
542 | 562 | else throw("Strict value is not equal to itself.") | |
543 | 563 | } | |
544 | 564 | } | |
545 | 565 | else throw("Strict value is not equal to itself.") | |
546 | 566 | } | |
547 | 567 | ||
548 | 568 | ||
549 | 569 | ||
550 | 570 | @Callable(bh) | |
551 | - | func managePool (Z, | |
552 | - | let | |
553 | - | if (( | |
571 | + | func managePool (Z,dc) = { | |
572 | + | let cr = bi(bh) | |
573 | + | if ((cr == cr)) | |
554 | 574 | then { | |
555 | - | let | |
556 | - | let by = | |
557 | - | let | |
558 | - | let bA = | |
559 | - | let bB = | |
560 | - | let | |
561 | - | let | |
562 | - | let | |
563 | - | let | |
564 | - | let | |
565 | - | let bH = | |
566 | - | [StringEntry(ag(toString( | |
575 | + | let dd = bL(Z) | |
576 | + | let by = dd[t] | |
577 | + | let cV = dd[u] | |
578 | + | let bA = dd[v] | |
579 | + | let bB = dd[w] | |
580 | + | let cS = parseIntValue(dd[x]) | |
581 | + | let cT = parseIntValue(dd[y]) | |
582 | + | let cL = parseIntValue(dd[z]) | |
583 | + | let cN = parseIntValue(dd[A]) | |
584 | + | let de = parseIntValue(dd[B]) | |
585 | + | let bH = dd[C] | |
586 | + | [StringEntry(ag(toString(cL), toString(cN)), bx(Z, toString(dc), cV, bA, bB, cS, cT, cL, cN, de, bH))] | |
567 | 587 | } | |
568 | 588 | else throw("Strict value is not equal to itself.") | |
569 | 589 | } | |
570 | 590 | ||
571 | 591 | ||
572 | 592 | ||
573 | 593 | @Callable(bh) | |
574 | - | func emit ( | |
575 | - | let | |
576 | - | let | |
577 | - | let | |
578 | - | let | |
579 | - | let | |
580 | - | let | |
581 | - | if ((0 >= | |
594 | + | func emit (df) = { | |
595 | + | let dg = bh.caller | |
596 | + | let dh = bh.originCaller | |
597 | + | let di = valueOrErrorMessage(getString(aw(toString(dg))), "Invalid LP address called me.") | |
598 | + | let dj = fromBase58String(di) | |
599 | + | let cv = split(valueOrElse(getString(O()), k), j) | |
600 | + | let cu = addressFromStringValue(valueOrErrorMessage(getString(N()), "Legacy factory contract does not exists.")) | |
601 | + | if ((0 >= df)) | |
582 | 602 | then nil | |
583 | - | else if (containsElement( | |
584 | - | then $Tuple2(nil, | |
585 | - | else $Tuple2([Reissue( | |
603 | + | else if (containsElement(cv, toString(dg))) | |
604 | + | then $Tuple2(nil, cu) | |
605 | + | else $Tuple2([Reissue(dj, df, true), ScriptTransfer(bh.caller, df, dj)], "success") | |
586 | 606 | } | |
587 | 607 | ||
588 | 608 | ||
589 | 609 | ||
590 | 610 | @Callable(bh) | |
591 | - | func burn ( | |
592 | - | let | |
593 | - | let | |
594 | - | let | |
595 | - | let | |
596 | - | let | |
597 | - | let | |
598 | - | if (( | |
611 | + | func burn (dk) = { | |
612 | + | let dg = bh.caller | |
613 | + | let dh = bh.originCaller | |
614 | + | let dl = value(bh.payments[0]) | |
615 | + | let dm = value(dl.amount) | |
616 | + | let dn = toBase58String(value(dl.assetId)) | |
617 | + | let do = valueOrErrorMessage(getString(aw(toString(dg))), "Invalid LP address called me.") | |
618 | + | if ((dn != do)) | |
599 | 619 | then throw("Invalid asset passed.") | |
600 | - | else if (( | |
620 | + | else if ((dk != dm)) | |
601 | 621 | then throw("Invalid amount passed.") | |
602 | 622 | else { | |
603 | - | let | |
604 | - | $Tuple2([Burn( | |
623 | + | let dj = fromBase58String(do) | |
624 | + | $Tuple2([Burn(dj, dk)], "success") | |
605 | 625 | } | |
606 | 626 | } | |
607 | 627 | ||
608 | 628 | ||
609 | 629 | ||
610 | 630 | @Callable(bh) | |
611 | - | func modifyWeight (bz, | |
612 | - | let | |
631 | + | func modifyWeight (bz,dp) = { | |
632 | + | let cr = if ((toBase58String(bh.caller.bytes) == valueOrElse(getString(this, T()), ""))) | |
613 | 633 | then true | |
614 | 634 | else bi(bh) | |
615 | - | if (( | |
635 | + | if ((cr == cr)) | |
616 | 636 | then { | |
617 | 637 | let au = aF(ax(bz)) | |
618 | - | let | |
619 | - | let | |
620 | - | let | |
621 | - | let | |
622 | - | let | |
638 | + | let dq = Y(au) | |
639 | + | let dr = Y(f) | |
640 | + | let ds = valueOrElse(getInteger(dr), 0) | |
641 | + | let cI = valueOrElse(getInteger(dq), 0) | |
642 | + | let dt = dp | |
623 | 643 | let aV = split(aF(J()), j) | |
624 | - | let | |
625 | - | let | |
626 | - | if (( | |
644 | + | let cn = aX(aV) | |
645 | + | let du = invoke(cn, "onModifyWeight", [bz, au], nil) | |
646 | + | if ((du == du)) | |
627 | 647 | then { | |
628 | - | let | |
648 | + | let dv = if ((ds == 0)) | |
629 | 649 | then nil | |
630 | - | else [IntegerEntry( | |
631 | - | let | |
632 | - | let | |
633 | - | let | |
650 | + | else [IntegerEntry(dr, 0)] | |
651 | + | let dw = aa(au, 0) | |
652 | + | let dx = getInteger(dw) | |
653 | + | let dy = if ((dx == unit)) | |
634 | 654 | then nil | |
635 | - | else [DeleteEntry( | |
636 | - | (([IntegerEntry( | |
655 | + | else [DeleteEntry(dw)] | |
656 | + | (([IntegerEntry(dq, dt)] ++ dv) ++ dy) | |
637 | 657 | } | |
638 | 658 | else throw("Strict value is not equal to itself.") | |
639 | 659 | } | |
640 | 660 | else throw("Strict value is not equal to itself.") | |
641 | 661 | } | |
642 | 662 | ||
643 | 663 | ||
644 | 664 | ||
645 | 665 | @Callable(bh) | |
646 | - | func modifyWeights ( | |
647 | - | let | |
648 | - | if (( | |
666 | + | func modifyWeights (dz,dA,dB,dC) = { | |
667 | + | let cr = bi(bh) | |
668 | + | if ((cr == cr)) | |
649 | 669 | then { | |
650 | - | let | |
651 | - | let | |
652 | - | let | |
670 | + | let dD = ((5 * e) / 100) | |
671 | + | let dE = ((5 * e) / 100) | |
672 | + | let dF = ((5 * e) / 100) | |
653 | 673 | let aV = split(aF(J()), j) | |
654 | - | let | |
655 | - | let | |
656 | - | let | |
657 | - | let | |
658 | - | let | |
659 | - | let | |
660 | - | let | |
661 | - | let | |
662 | - | let | |
663 | - | let | |
664 | - | if ((0 >= | |
665 | - | then throw(("invalid btcWeightNew: " + toString( | |
666 | - | else if ((0 >= | |
667 | - | then throw(("invalid ethWeightNew: " + toString( | |
674 | + | let dG = aX(aV) | |
675 | + | let dH = aY(aV) | |
676 | + | let dI = Y(dz) | |
677 | + | let dJ = Y(dA) | |
678 | + | let dK = Y(dB) | |
679 | + | let dL = Y(dC) | |
680 | + | let dM = aI(dI) | |
681 | + | let dN = aI(dJ) | |
682 | + | let dO = (dM - dF) | |
683 | + | let dP = (dN - dF) | |
684 | + | if ((0 >= dO)) | |
685 | + | then throw(("invalid btcWeightNew: " + toString(dO))) | |
686 | + | else if ((0 >= dP)) | |
687 | + | then throw(("invalid ethWeightNew: " + toString(dP))) | |
668 | 688 | else { | |
669 | - | let | |
670 | - | let | |
671 | - | let | |
672 | - | let | |
673 | - | let | |
674 | - | if (( | |
689 | + | let dQ = aF(aw(dz)) | |
690 | + | let dR = aF(aw(dA)) | |
691 | + | let dS = aF(aw(dB)) | |
692 | + | let dT = aF(aw(dC)) | |
693 | + | let dU = invoke(dG, "onModifyWeight", [dQ, dz], nil) | |
694 | + | if ((dU == dU)) | |
675 | 695 | then { | |
676 | - | let | |
677 | - | if (( | |
696 | + | let dV = invoke(dG, "onModifyWeight", [dR, dA], nil) | |
697 | + | if ((dV == dV)) | |
678 | 698 | then { | |
679 | - | let | |
680 | - | if (( | |
699 | + | let dW = invoke(dG, "onModifyWeight", [dS, dB], nil) | |
700 | + | if ((dW == dW)) | |
681 | 701 | then { | |
682 | - | let | |
683 | - | if (( | |
684 | - | then [IntegerEntry( | |
702 | + | let dX = invoke(dG, "onModifyWeight", [dT, dC], nil) | |
703 | + | if ((dX == dX)) | |
704 | + | then [IntegerEntry(dI, dO), IntegerEntry(dJ, dP), IntegerEntry(dK, dD), IntegerEntry(dL, dE), IntegerEntry(aa(dz, 0), dM), IntegerEntry(aa(dA, 0), dN), IntegerEntry(aa(dB, 0), dD), IntegerEntry(aa(dC, 0), dE)] | |
685 | 705 | else throw("Strict value is not equal to itself.") | |
686 | 706 | } | |
687 | 707 | else throw("Strict value is not equal to itself.") | |
688 | 708 | } | |
689 | 709 | else throw("Strict value is not equal to itself.") | |
690 | 710 | } | |
691 | 711 | else throw("Strict value is not equal to itself.") | |
692 | 712 | } | |
693 | 713 | } | |
694 | 714 | else throw("Strict value is not equal to itself.") | |
695 | 715 | } | |
696 | 716 | ||
697 | 717 | ||
698 | 718 | ||
699 | 719 | @Callable(bh) | |
700 | 720 | func checkWxEmissionPoolLabel (az,aA) = { | |
701 | - | let | |
721 | + | let dY = { | |
702 | 722 | let ba = getBoolean(ay(az, aA)) | |
703 | 723 | if ($isInstanceOf(ba, "Boolean")) | |
704 | 724 | then { | |
705 | - | let | |
706 | - | | |
725 | + | let dZ = ba | |
726 | + | dZ | |
707 | 727 | } | |
708 | 728 | else false | |
709 | 729 | } | |
710 | - | $Tuple2(nil, | |
730 | + | $Tuple2(nil, dY) | |
711 | 731 | } | |
712 | 732 | ||
713 | 733 | ||
714 | 734 | ||
715 | 735 | @Callable(bh) | |
716 | 736 | func setWxEmissionPoolLabel (az,aA) = { | |
717 | - | let | |
718 | - | if (( | |
737 | + | let cr = bU(bh) | |
738 | + | if ((cr == cr)) | |
719 | 739 | then $Tuple2([BooleanEntry(ay(az, aA), true)], unit) | |
720 | 740 | else throw("Strict value is not equal to itself.") | |
721 | 741 | } | |
722 | 742 | ||
723 | 743 | ||
724 | 744 | ||
725 | 745 | @Callable(bh) | |
726 | 746 | func deleteWxEmissionPoolLabel (az,aA) = { | |
727 | - | let | |
747 | + | let cr = if (bg(bh)) | |
728 | 748 | then true | |
729 | 749 | else bU(bh) | |
730 | - | if (( | |
750 | + | if ((cr == cr)) | |
731 | 751 | then $Tuple2([DeleteEntry(ay(az, aA))], unit) | |
732 | 752 | else throw("Strict value is not equal to itself.") | |
733 | 753 | } | |
734 | 754 | ||
735 | 755 | ||
736 | 756 | ||
737 | 757 | @Callable(bh) | |
738 | - | func onVerificationLoss ( | |
739 | - | let | |
758 | + | func onVerificationLoss (ea) = { | |
759 | + | let cr = if ((toBase58String(bh.caller.bytes) == valueOrElse(getString(this, S()), ""))) | |
740 | 760 | then true | |
741 | 761 | else bi(bh) | |
742 | - | if (( | |
762 | + | if ((cr == cr)) | |
743 | 763 | then { | |
744 | - | let | |
745 | - | let | |
764 | + | let cy = aZ() | |
765 | + | let eb = if ((size(cy) > 0)) | |
746 | 766 | then true | |
747 | 767 | else throw("invalid price assets") | |
748 | - | if (( | |
768 | + | if ((eb == eb)) | |
749 | 769 | then { | |
750 | - | func | |
751 | - | let | |
752 | - | if (( | |
770 | + | func ec (ed,ee) = { | |
771 | + | let ef = invoke(this, "deleteWxEmissionPoolLabel", [ea, ee], nil) | |
772 | + | if ((ef == ef)) | |
753 | 773 | then unit | |
754 | 774 | else throw("Strict value is not equal to itself.") | |
755 | 775 | } | |
756 | 776 | ||
757 | - | let | |
758 | - | let | |
759 | - | let | |
760 | - | let | |
761 | - | func | |
762 | - | then | |
763 | - | else | |
777 | + | let eg = { | |
778 | + | let eh = cy | |
779 | + | let ei = size(eh) | |
780 | + | let ej = unit | |
781 | + | func ek (el,em) = if ((em >= ei)) | |
782 | + | then el | |
783 | + | else ec(el, eh[em]) | |
764 | 784 | ||
765 | - | func | |
766 | - | then | |
785 | + | func en (el,em) = if ((em >= ei)) | |
786 | + | then el | |
767 | 787 | else throw("List size exceeds 1") | |
768 | 788 | ||
769 | - | | |
789 | + | en(ek(ej, 0), 1) | |
770 | 790 | } | |
771 | - | if (( | |
791 | + | if ((eg == eg)) | |
772 | 792 | then $Tuple2(nil, unit) | |
773 | 793 | else throw("Strict value is not equal to itself.") | |
774 | 794 | } | |
775 | 795 | else throw("Strict value is not equal to itself.") | |
776 | 796 | } | |
777 | 797 | else throw("Strict value is not equal to itself.") | |
778 | 798 | } | |
779 | 799 | ||
780 | 800 | ||
781 | 801 | ||
782 | 802 | @Callable(bh) | |
783 | 803 | func isPoolOneTokenOperationsDisabledREADONLY (Z) = { | |
784 | - | let | |
785 | - | let ak = $Tuple2(parseIntValue( | |
786 | - | let | |
787 | - | let | |
788 | - | $Tuple2(nil, if ( | |
804 | + | let dd = bL(Z) | |
805 | + | let ak = $Tuple2(parseIntValue(dd[z]), parseIntValue(dd[A])) | |
806 | + | let eo = valueOrElse(getBoolean(aj(ak)), false) | |
807 | + | let ep = valueOrElse(getBoolean(am()), false) | |
808 | + | $Tuple2(nil, if (ep) | |
789 | 809 | then true | |
790 | - | else | |
810 | + | else eo) | |
791 | 811 | } | |
792 | 812 | ||
793 | 813 | ||
794 | 814 | ||
795 | 815 | @Callable(bh) | |
796 | 816 | func getInFeeREADONLY (Z) = { | |
797 | - | let | |
798 | - | $Tuple2(nil, | |
817 | + | let eq = bX(aB(Z), aC(), 0) | |
818 | + | $Tuple2(nil, eq) | |
799 | 819 | } | |
800 | 820 | ||
801 | 821 | ||
802 | 822 | ||
803 | 823 | @Callable(bh) | |
804 | 824 | func getOutFeeREADONLY (Z) = { | |
805 | - | let | |
806 | - | $Tuple2(nil, | |
825 | + | let eq = bX(aD(Z), aE(), fraction(10, b, 10000)) | |
826 | + | $Tuple2(nil, eq) | |
807 | 827 | } | |
808 | 828 | ||
809 | 829 | ||
810 | 830 | ||
811 | 831 | @Callable(bh) | |
812 | 832 | func getPoolStatusREADONLY (Z) = { | |
813 | 833 | let bM = split(aF(at(Z)), j) | |
814 | 834 | let ah = bM[1] | |
815 | 835 | let ai = bM[2] | |
816 | - | let | |
817 | - | $Tuple2(nil, parseIntValue( | |
836 | + | let cd = split(aF(ag(ah, ai)), j) | |
837 | + | $Tuple2(nil, parseIntValue(cd[t])) | |
818 | 838 | } | |
819 | 839 | ||
820 | 840 | ||
821 | 841 | ||
822 | 842 | @Callable(bh) | |
823 | - | func getPoolConfigByLpAssetId ( | |
824 | - | let bM = split(aF(an( | |
843 | + | func getPoolConfigByLpAssetId (cV) = { | |
844 | + | let bM = split(aF(an(cV)), j) | |
825 | 845 | let ah = bM[1] | |
826 | 846 | let ai = bM[2] | |
827 | - | let | |
828 | - | $Tuple2(nil, | |
847 | + | let cd = split(aF(ag(ah, ai)), j) | |
848 | + | $Tuple2(nil, cd) | |
829 | 849 | } | |
830 | 850 | ||
831 | 851 | ||
832 | - | @Verifier(el) | |
833 | - | func em () = { | |
834 | - | let en = { | |
852 | + | ||
853 | + | @Callable(bh) | |
854 | + | func poolExistsREADONLY (az,aA) = $Tuple2(nil, ca(az, aA)) | |
855 | + | ||
856 | + | ||
857 | + | @Verifier(er) | |
858 | + | func es () = { | |
859 | + | let et = { | |
835 | 860 | let ba = bc() | |
836 | 861 | if ($isInstanceOf(ba, "ByteVector")) | |
837 | 862 | then { | |
838 | 863 | let bj = ba | |
839 | 864 | bj | |
840 | 865 | } | |
841 | 866 | else if ($isInstanceOf(ba, "Unit")) | |
842 | - | then | |
867 | + | then er.senderPublicKey | |
843 | 868 | else throw("Match error") | |
844 | 869 | } | |
845 | - | sigVerify( | |
870 | + | sigVerify(er.bodyBytes, er.proofs[0], et) | |
846 | 871 | } | |
847 | 872 |
github/deemru/w8io/026f985 185.78 ms ◑