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