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