tx · HabA9bX1AzF3SyQKHEvMwFU9RpoNmj2bxuyyodhS5joU 3MzKSdTH2jFbypLsoNfrH7QgkzSbx3EYwCA: -0.03600000 Waves 2022.12.07 16:03 [2349958] smart account 3MzKSdTH2jFbypLsoNfrH7QgkzSbx3EYwCA > SELF 0.00000000 Waves
{ "type": 13, "id": "HabA9bX1AzF3SyQKHEvMwFU9RpoNmj2bxuyyodhS5joU", "fee": 3600000, "feeAssetId": null, "timestamp": 1670417916114, "version": 1, "sender": "3MzKSdTH2jFbypLsoNfrH7QgkzSbx3EYwCA", "senderPublicKey": "35yd3qw1gxKDxKwGAykHN9fANbXNWwseaUwbWDj24o3x", "proofs": [ "2ghAx7Eq4b75mmLxVLnh6C8RGkfPrxeCWAwrjnTcUBwgg3ZmLTsxCD7CLgX2EtNXFkmKgGYt4xZBmiYJseQpghD6" ], "script": "base64:BgLNKAgCEgMKAQgSAwoBCBIAEgQKAgEEEgQKAgEEEgMKAQESABIECgIIARIAEgQKAggBEgQKAggBEgQKAgEBEgMKAQESBQoDAQEBEgUKAwEIARIECgIBCBIECgIBCBIECgIICBIECgIICBIECgIIARIAEgMKAQgSBQoDAQEBEgQKAggBEgQKAgEBEgQKAggIEgsKCQgBAQIBAggEBBIGCgQICAEIEgAiBnNjYWxlOCIMc2NhbGU4QmlnSW50IgdzY2FsZTE4Igp6ZXJvQmlnSW50IgRiaWcwIgRiaWcxIgRiaWcyIgRiaWczIgRiaWc0IgpzbGlwcGFnZTREIgt3YXZlc1N0cmluZyIFQW11bHQiBURjb252IgNTRVAiBUVNUFRZIgpQb29sQWN0aXZlIgpQb29sUHV0RGlzIg5Qb29sTWF0Y2hlckRpcyIMUG9vbFNodXRkb3duIg5pZHhQb29sQWRkcmVzcyIJaWR4UG9vbFN0IglpZHhMUEFzSWQiCWlkeEFtQXNJZCIJaWR4UHJBc0lkIgtpZHhBbXRBc0RjbSINaWR4UHJpY2VBc0RjbSILaWR4SUFtdEFzSWQiDWlkeElQcmljZUFzSWQ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AFAmhOkemtLA==", "chainId": 84, "height": 2349958, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: YuiKstiJVDahhwhgWiNNSMcmiAjjYtBtVUNCcuhvxYF Next: D23VDsL3YyfL9gizrDdVvUMiShMHD7EfZTbcreYU4WrX Diff:
Old | New | Differences | |
---|---|---|---|
605 | 605 | ||
606 | 606 | ||
607 | 607 | func eC (eD,eE,eF) = { | |
608 | - | let eG = toBigInt(1000000000000) | |
609 | - | let eH = fraction(dE([eD, eE]), eG, eF) | |
608 | + | let eG = fraction(dE([eD, eE]), c, eF) | |
610 | 609 | if ((eF == e)) | |
611 | 610 | then e | |
612 | - | else | |
611 | + | else eG | |
613 | 612 | } | |
614 | 613 | ||
615 | 614 | ||
616 | - | func | |
617 | - | let | |
618 | - | let | |
619 | - | let | |
620 | - | let | |
621 | - | | |
615 | + | func eH (eI,eJ,eK) = { | |
616 | + | let eL = (toBigInt(bF(aY(bg))) - eI) | |
617 | + | let eM = (toBigInt(bF(aY(bh))) - eJ) | |
618 | + | let eN = (toBigInt(value(assetInfo(bf)).quantity) - eK) | |
619 | + | let eO = eC(eL, eM, eN) | |
620 | + | eO | |
622 | 621 | } | |
623 | 622 | ||
624 | 623 | ||
625 | - | func | |
626 | - | let | |
627 | - | let | |
628 | - | let | |
629 | - | let | |
630 | - | let | |
631 | - | $Tuple2( | |
624 | + | func eP (eQ,eR,eK) = { | |
625 | + | let eL = (bF(aY(bg)) + eQ) | |
626 | + | let eM = (bF(aY(bh)) + eR) | |
627 | + | let eN = (value(assetInfo(bf)).quantity + eK) | |
628 | + | let eG = eC(toBigInt(eL), toBigInt(eM), toBigInt(eN)) | |
629 | + | let eS = [IntegerEntry(al, height), StringEntry(ak, toString(eG))] | |
630 | + | $Tuple2(eS, eG) | |
632 | 631 | } | |
633 | 632 | ||
634 | 633 | ||
635 | - | func | |
634 | + | func eT (eU,eG) = if ((eG >= eU)) | |
636 | 635 | then true | |
637 | 636 | else aK("updated DLp lower than current DLp") | |
638 | 637 | ||
639 | 638 | ||
640 | - | func | |
641 | - | let | |
642 | - | let | |
643 | - | let | |
644 | - | then $Tuple2( | |
645 | - | else $Tuple2(-( | |
646 | - | let | |
647 | - | let | |
639 | + | func eV (eW) = { | |
640 | + | let eX = eW.amount | |
641 | + | let eY = fraction(eW.amount, eW.price, a, FLOOR) | |
642 | + | let eZ = if ((eW.orderType == Buy)) | |
643 | + | then $Tuple2(eX, -(eY)) | |
644 | + | else $Tuple2(-(eX), eY) | |
645 | + | let eQ = eZ._1 | |
646 | + | let eR = eZ._2 | |
648 | 647 | if (if (if (aP()) | |
649 | 648 | then true | |
650 | 649 | else (be == r)) | |
651 | 650 | then true | |
652 | 651 | else (be == s)) | |
653 | 652 | then throw("Admin blocked") | |
654 | - | else if (if (( | |
653 | + | else if (if ((eW.assetPair.amountAsset != bg)) | |
655 | 654 | then true | |
656 | - | else ( | |
655 | + | else (eW.assetPair.priceAsset != bh)) | |
657 | 656 | then throw("Wr assets") | |
658 | 657 | else { | |
659 | - | let | |
660 | - | let | |
661 | - | let | |
662 | - | let | |
663 | - | let | |
664 | - | | |
658 | + | let fa = parseBigIntValue(getStringValue(this, ak)) | |
659 | + | let fb = eP(eQ, eR, 0) | |
660 | + | let fc = fb._1 | |
661 | + | let fd = fb._2 | |
662 | + | let fe = (fd >= fa) | |
663 | + | fe | |
665 | 664 | } | |
666 | 665 | } | |
667 | 666 | ||
668 | 667 | ||
669 | - | func | |
668 | + | func ff (dV) = if ((size(dV.payments) != 1)) | |
670 | 669 | then throw("1 pmnt exp") | |
671 | 670 | else { | |
672 | - | let | |
673 | - | let cs = value( | |
674 | - | let cY = | |
671 | + | let fg = value(dV.payments[0]) | |
672 | + | let cs = value(fg.assetId) | |
673 | + | let cY = fg.amount | |
675 | 674 | let dk = cq(toBase58String(dV.transactionId), toBase58String(cs), cY, dV.caller) | |
676 | 675 | let cM = dk._1 | |
677 | 676 | let cN = dk._2 | |
685 | 684 | } | |
686 | 685 | ||
687 | 686 | ||
688 | - | func | |
689 | - | let dk = cP(ac, bN, value(fk).amount, value(fk).assetId, | |
687 | + | func fh (fi,ac,fj,fk,bN,cV,cW,cX,cY,cZ) = { | |
688 | + | let dk = cP(ac, bN, value(fj).amount, value(fj).assetId, value(fk).amount, value(fk).assetId, fi, (ac == ""), cV, cW, cX, cY, cZ) | |
690 | 689 | let cA = parseIntValue(dk._8) | |
691 | 690 | if (if (if (aP()) | |
692 | 691 | then true | |
698 | 697 | } | |
699 | 698 | ||
700 | 699 | ||
701 | - | func | |
700 | + | func fl (fm,cs,cu,ac,fn) = { | |
702 | 701 | let ba = aS() | |
703 | 702 | let cw = ba[w] | |
704 | 703 | let cx = ba[x] | |
705 | 704 | let cv = ba[v] | |
706 | 705 | let de = parseIntValue(ba[y]) | |
707 | 706 | let df = parseIntValue(ba[z]) | |
708 | - | let | |
709 | - | let | |
707 | + | let eN = toBigInt(valueOrErrorMessage(assetInfo(fromBase58String(cv)), "invalid lp asset").quantity) | |
708 | + | let fo = if ((eN > e)) | |
710 | 709 | then true | |
711 | 710 | else throw("initial deposit requires all coins") | |
712 | - | if (( | |
711 | + | if ((fo == fo)) | |
713 | 712 | then { | |
714 | 713 | let cC = bF(cw) | |
715 | 714 | let cE = bF(cx) | |
716 | - | let | |
715 | + | let fp = if ((ac == "")) | |
717 | 716 | then $Tuple2(cC, cE) | |
718 | 717 | else if ((cs == cw)) | |
719 | - | then if (( | |
718 | + | then if ((fm > cC)) | |
720 | 719 | then throw("invalid payment amount") | |
721 | - | else $Tuple2((cC - | |
720 | + | else $Tuple2((cC - fm), cE) | |
722 | 721 | else if ((cs == cx)) | |
723 | - | then if (( | |
722 | + | then if ((fm > cE)) | |
724 | 723 | then throw("invalid payment amount") | |
725 | - | else $Tuple2(cC, (cE - | |
724 | + | else $Tuple2(cC, (cE - fm)) | |
726 | 725 | else throw("wrong pmtAssetId") | |
727 | - | let | |
728 | - | let | |
729 | - | let | |
730 | - | then $Tuple2( | |
726 | + | let fq = fp._1 | |
727 | + | let fr = fp._2 | |
728 | + | let fs = if ((cs == cw)) | |
729 | + | then $Tuple2(fm, 0) | |
731 | 730 | else if ((cs == cx)) | |
732 | - | then $Tuple2(0, | |
731 | + | then $Tuple2(0, fm) | |
733 | 732 | else throw("invalid payment") | |
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 | |
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) | |
742 | 742 | let fz = (fr + fx) | |
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)) | |
743 | + | let bS = dE([toBigInt(fq), toBigInt(fr)]) | |
744 | + | let bR = dE([toBigInt(fy), toBigInt(fz)]) | |
745 | + | let fA = if ((bR > bS)) | |
747 | 746 | then true | |
748 | 747 | else throw() | |
749 | - | if (( | |
748 | + | if ((fA == fA)) | |
750 | 749 | then { | |
751 | - | let | |
752 | - | let cH = K(bH(H( | |
753 | - | let dD = [IntegerEntry(W(), cH), IntegerEntry(X(height, lastBlock.timestamp), cH), StringEntry(aa(cu, ac), bq( | |
754 | - | let | |
755 | - | let | |
756 | - | let | |
757 | - | let | |
758 | - | let | |
759 | - | $Tuple4(toInt( | |
750 | + | let fB = fraction(eN, (bR - bS), bS) | |
751 | + | let cH = K(bH(H(fz, df), H(fy, de)), a) | |
752 | + | let dD = [IntegerEntry(W(), cH), IntegerEntry(X(height, lastBlock.timestamp), cH), StringEntry(aa(cu, ac), bq(ft, fu, toInt(fB), cH, 0, 0, height, lastBlock.timestamp, 0, 0))] | |
753 | + | let fC = fraction(fr, a, fq) | |
754 | + | let fD = fraction(fm, a, (fC + a)) | |
755 | + | let fE = (fm - fD) | |
756 | + | let fF = fraction(eN, toBigInt(fE), toBigInt(fr)) | |
757 | + | let fG = toInt(fraction((fB - fF), b, fF)) | |
758 | + | $Tuple4(toInt(fB), dD, cp, fG) | |
760 | 759 | } | |
761 | 760 | else throw("Strict value is not equal to itself.") | |
762 | 761 | } | |
764 | 763 | } | |
765 | 764 | ||
766 | 765 | ||
767 | - | func | |
766 | + | func fH (fI,fJ,fK,fi,fL,fM) = { | |
768 | 767 | let ba = aS() | |
769 | 768 | let cv = ba[v] | |
770 | 769 | let cw = ba[w] | |
771 | 770 | let cx = ba[x] | |
772 | - | let | |
773 | - | let | |
774 | - | let | |
775 | - | let cu = if (( | |
776 | - | then | |
777 | - | else | |
778 | - | let | |
779 | - | let cs = value( | |
780 | - | let cY = | |
781 | - | let | |
782 | - | if (( | |
771 | + | let fN = parseIntValue(ba[y]) | |
772 | + | let fO = parseIntValue(ba[z]) | |
773 | + | let fP = ba[u] | |
774 | + | let cu = if ((fi == bp)) | |
775 | + | then fL | |
776 | + | else fi | |
777 | + | let fg = value(fK[0]) | |
778 | + | let cs = value(fg.assetId) | |
779 | + | let cY = fg.amount | |
780 | + | let eO = eH(e, e, e) | |
781 | + | if ((eO == eO)) | |
783 | 782 | then { | |
784 | - | let cr = toBase58String( | |
783 | + | let cr = toBase58String(fM) | |
785 | 784 | if ((cv != toBase58String(cs))) | |
786 | 785 | then throw("Wrong LP") | |
787 | 786 | else { | |
788 | 787 | let cC = bF(cw) | |
789 | 788 | let cE = bF(cx) | |
790 | - | let | |
791 | - | let | |
792 | - | if ($isInstanceOf( | |
793 | - | then | |
794 | - | else throw(($getType( | |
789 | + | let fQ = { | |
790 | + | let fR = invoke(this, "getOneTknV2READONLY", [fI, cY], nil) | |
791 | + | if ($isInstanceOf(fR, "(Int, Int)")) | |
792 | + | then fR | |
793 | + | else throw(($getType(fR) + " couldn't be cast to (Int, Int)")) | |
795 | 794 | } | |
796 | - | if (( | |
795 | + | if ((fQ == fQ)) | |
797 | 796 | then { | |
798 | - | let cp = | |
799 | - | let | |
800 | - | let | |
801 | - | then ( | |
797 | + | let cp = fQ._2 | |
798 | + | let fS = fQ._1 | |
799 | + | let fT = if (if ((fJ > 0)) | |
800 | + | then (fJ > fS) | |
802 | 801 | else false) | |
803 | - | then aK(makeString(["amount to receive is less than ", toString( | |
804 | - | else | |
805 | - | let | |
806 | - | then $Tuple4( | |
807 | - | else if (( | |
808 | - | then $Tuple4(0, | |
802 | + | then aK(makeString(["amount to receive is less than ", toString(fJ)], "")) | |
803 | + | else fS | |
804 | + | let fU = if ((fI == cw)) | |
805 | + | then $Tuple4(fT, 0, ((cC - fT) - cp), cE) | |
806 | + | else if ((fI == cx)) | |
807 | + | then $Tuple4(0, fT, cC, ((cE - fT) - cp)) | |
809 | 808 | else throw("invalid out asset id") | |
810 | - | let | |
811 | - | let | |
812 | - | let | |
813 | - | let | |
814 | - | let | |
815 | - | let | |
816 | - | let | |
809 | + | let fV = fU._1 | |
810 | + | let fW = fU._2 | |
811 | + | let fy = fU._3 | |
812 | + | let fz = fU._4 | |
813 | + | let fX = bH(H(fz, fO), H(fy, fN)) | |
814 | + | let fY = K(fX, a) | |
815 | + | let fZ = if ((fI == "WAVES")) | |
817 | 816 | then unit | |
818 | - | else fromBase58String( | |
819 | - | let | |
820 | - | then [ScriptTransfer(aR, cp, | |
817 | + | else fromBase58String(fI) | |
818 | + | let ga = if ((cp > 0)) | |
819 | + | then [ScriptTransfer(aR, cp, fZ)] | |
821 | 820 | else nil | |
822 | - | let cO = ([ScriptTransfer(cu, | |
821 | + | let cO = ([ScriptTransfer(cu, fT, fZ), StringEntry(ad(toString(cu), cr), bB(fV, fW, cY, fY, height, lastBlock.timestamp)), IntegerEntry(W(), fY), IntegerEntry(X(height, lastBlock.timestamp), fY)] ++ ga) | |
823 | 822 | if ((cO == cO)) | |
824 | 823 | then { | |
825 | - | let | |
826 | - | if (( | |
824 | + | let gb = invoke(aN, "burn", [cY], [AttachedPayment(cs, cY)]) | |
825 | + | if ((gb == gb)) | |
827 | 826 | then { | |
828 | - | let | |
829 | - | let | |
827 | + | let gc = { | |
828 | + | let gd = if ((this == aR)) | |
830 | 829 | then 0 | |
831 | 830 | else cp | |
832 | - | let | |
831 | + | let ge = if ((aW(fI) == bg)) | |
833 | 832 | then true | |
834 | 833 | else false | |
835 | - | if ( | |
836 | - | then $Tuple2(-(( | |
837 | - | else $Tuple2(0, -(( | |
834 | + | if (ge) | |
835 | + | then $Tuple2(-((fS + gd)), 0) | |
836 | + | else $Tuple2(0, -((fS + gd))) | |
838 | 837 | } | |
839 | - | let | |
840 | - | let | |
841 | - | let | |
842 | - | let | |
843 | - | let | |
844 | - | let | |
845 | - | if (( | |
846 | - | then $Tuple2((cO ++ | |
838 | + | let eQ = gc._1 | |
839 | + | let eR = gc._2 | |
840 | + | let gf = eP(eQ, eR, 0) | |
841 | + | let gg = gf._1 | |
842 | + | let eG = gf._2 | |
843 | + | let gh = eT(eO, eG) | |
844 | + | if ((gh == gh)) | |
845 | + | then $Tuple2((cO ++ gg), fT) | |
847 | 846 | else throw("Strict value is not equal to itself.") | |
848 | 847 | } | |
849 | 848 | else throw("Strict value is not equal to itself.") | |
857 | 856 | } | |
858 | 857 | ||
859 | 858 | ||
860 | - | func | |
859 | + | func gi () = { | |
861 | 860 | let aE = getString(U()) | |
862 | 861 | if ($isInstanceOf(aE, "String")) | |
863 | 862 | then { | |
870 | 869 | } | |
871 | 870 | ||
872 | 871 | ||
873 | - | func | |
872 | + | func gj () = { | |
874 | 873 | let aE = getString(V()) | |
875 | 874 | if ($isInstanceOf(aE, "String")) | |
876 | 875 | then { | |
883 | 882 | } | |
884 | 883 | ||
885 | 884 | ||
886 | - | let | |
885 | + | let gk = throw("Permission denied") | |
887 | 886 | ||
888 | - | func | |
889 | - | let aE = | |
887 | + | func gl (dV) = { | |
888 | + | let aE = gi() | |
890 | 889 | if ($isInstanceOf(aE, "ByteVector")) | |
891 | 890 | then { | |
892 | - | let | |
893 | - | (dV.callerPublicKey == | |
891 | + | let gm = aE | |
892 | + | (dV.callerPublicKey == gm) | |
894 | 893 | } | |
895 | 894 | else if ($isInstanceOf(aE, "Unit")) | |
896 | 895 | then (dV.caller == this) | |
898 | 897 | } | |
899 | 898 | ||
900 | 899 | ||
901 | - | func | |
902 | - | let aE = | |
900 | + | func gn (dV) = { | |
901 | + | let aE = gi() | |
903 | 902 | if ($isInstanceOf(aE, "ByteVector")) | |
904 | 903 | then { | |
905 | - | let | |
906 | - | if ((dV.callerPublicKey == | |
904 | + | let gm = aE | |
905 | + | if ((dV.callerPublicKey == gm)) | |
907 | 906 | then true | |
908 | - | else | |
907 | + | else gk | |
909 | 908 | } | |
910 | 909 | else if ($isInstanceOf(aE, "Unit")) | |
911 | 910 | then if ((dV.caller == this)) | |
912 | 911 | then true | |
913 | - | else | |
912 | + | else gk | |
914 | 913 | else throw("Match error") | |
915 | 914 | } | |
916 | 915 | ||
917 | 916 | ||
918 | 917 | @Callable(dV) | |
919 | 918 | func constructor (T) = { | |
920 | - | let ev = | |
919 | + | let ev = gn(dV) | |
921 | 920 | if ((ev == ev)) | |
922 | 921 | then [StringEntry(T(), T)] | |
923 | 922 | else throw("Strict value is not equal to itself.") | |
926 | 925 | ||
927 | 926 | ||
928 | 927 | @Callable(dV) | |
929 | - | func setManager ( | |
930 | - | let ev = | |
928 | + | func setManager (go) = { | |
929 | + | let ev = gn(dV) | |
931 | 930 | if ((ev == ev)) | |
932 | 931 | then { | |
933 | - | let | |
934 | - | if (( | |
935 | - | then [StringEntry(V(), | |
932 | + | let gp = fromBase58String(go) | |
933 | + | if ((gp == gp)) | |
934 | + | then [StringEntry(V(), go)] | |
936 | 935 | else throw("Strict value is not equal to itself.") | |
937 | 936 | } | |
938 | 937 | else throw("Strict value is not equal to itself.") | |
942 | 941 | ||
943 | 942 | @Callable(dV) | |
944 | 943 | func confirmManager () = { | |
945 | - | let cm = | |
946 | - | let | |
944 | + | let cm = gj() | |
945 | + | let gq = if (isDefined(cm)) | |
947 | 946 | then true | |
948 | 947 | else throw("No pending manager") | |
949 | - | if (( | |
948 | + | if ((gq == gq)) | |
950 | 949 | then { | |
951 | - | let | |
950 | + | let gr = if ((dV.callerPublicKey == value(cm))) | |
952 | 951 | then true | |
953 | 952 | else throw("You are not pending manager") | |
954 | - | if (( | |
953 | + | if ((gr == gr)) | |
955 | 954 | then [StringEntry(U(), toBase58String(value(cm))), DeleteEntry(V())] | |
956 | 955 | else throw("Strict value is not equal to itself.") | |
957 | 956 | } | |
961 | 960 | ||
962 | 961 | ||
963 | 962 | @Callable(dV) | |
964 | - | func put (gt | |
965 | - | let | |
966 | - | let | |
967 | - | let | |
968 | - | if ((0 > | |
963 | + | func put (gs,gt) = { | |
964 | + | let gu = bk() | |
965 | + | let gv = valueOrErrorMessage(addressFromString(gu[C]), "Wr st addr") | |
966 | + | let gw = valueOrErrorMessage(addressFromString(gu[E]), "Wr sl addr") | |
967 | + | if ((0 > gs)) | |
969 | 968 | then throw("Wrong slippage") | |
970 | 969 | else if ((size(dV.payments) != 2)) | |
971 | 970 | then throw("2 pmnts expd") | |
972 | 971 | else { | |
973 | - | let | |
974 | - | let | |
975 | - | let | |
976 | - | if (( | |
972 | + | let gx = toBigInt(value(dV.payments[0]).amount) | |
973 | + | let gy = toBigInt(value(dV.payments[1]).amount) | |
974 | + | let eO = eH(gx, gy, toBigInt(0)) | |
975 | + | if ((eO == eO)) | |
977 | 976 | then { | |
978 | - | let | |
979 | - | let dx = | |
980 | - | let | |
981 | - | let cO = | |
982 | - | let dy = | |
983 | - | let dz = | |
984 | - | let cw = | |
985 | - | let cx = | |
977 | + | let gz = fh(toString(dV.caller), toBase58String(dV.transactionId), AttachedPayment(value(dV.payments[0]).assetId, value(dV.payments[0]).amount), dV.payments[1], gs, true, false, true, 0, "") | |
978 | + | let dx = gz._2 | |
979 | + | let gA = gz._7 | |
980 | + | let cO = gz._9 | |
981 | + | let dy = gz._10 | |
982 | + | let dz = gz._11 | |
983 | + | let cw = gz._12 | |
984 | + | let cx = gz._13 | |
986 | 985 | let dk = invoke(aN, "emit", [dx], nil) | |
987 | 986 | if ((dk == dk)) | |
988 | 987 | then { | |
989 | - | let | |
988 | + | let gB = { | |
990 | 989 | let aE = dk | |
991 | 990 | if ($isInstanceOf(aE, "Address")) | |
992 | 991 | then { | |
993 | - | let | |
994 | - | invoke( | |
992 | + | let gC = aE | |
993 | + | invoke(gC, "emit", [dx], nil) | |
995 | 994 | } | |
996 | 995 | else unit | |
997 | 996 | } | |
998 | - | if (( | |
997 | + | if ((gB == gB)) | |
999 | 998 | then { | |
1000 | - | let | |
1001 | - | then invoke( | |
999 | + | let gD = if ((dy > 0)) | |
1000 | + | then invoke(gw, "put", nil, [AttachedPayment(cw, dy)]) | |
1002 | 1001 | else nil | |
1003 | - | if (( | |
1002 | + | if ((gD == gD)) | |
1004 | 1003 | then { | |
1005 | - | let | |
1006 | - | then invoke( | |
1004 | + | let gE = if ((dz > 0)) | |
1005 | + | then invoke(gw, "put", nil, [AttachedPayment(cx, dz)]) | |
1007 | 1006 | else nil | |
1008 | - | if (( | |
1007 | + | if ((gE == gE)) | |
1009 | 1008 | then { | |
1010 | - | let | |
1009 | + | let gF = if (gt) | |
1011 | 1010 | then { | |
1012 | - | let | |
1013 | - | if (( | |
1011 | + | let gG = invoke(gv, "stake", nil, [AttachedPayment(gA, dx)]) | |
1012 | + | if ((gG == gG)) | |
1014 | 1013 | then nil | |
1015 | 1014 | else throw("Strict value is not equal to itself.") | |
1016 | 1015 | } | |
1017 | - | else [ScriptTransfer(dV.caller, dx, | |
1018 | - | let | |
1019 | - | let | |
1020 | - | let | |
1021 | - | let | |
1022 | - | if (( | |
1023 | - | then ((cO ++ | |
1016 | + | else [ScriptTransfer(dV.caller, dx, gA)] | |
1017 | + | let gH = eP(0, 0, 0) | |
1018 | + | let gg = gH._1 | |
1019 | + | let eG = gH._2 | |
1020 | + | let gh = eT(eO, eG) | |
1021 | + | if ((gh == gh)) | |
1022 | + | then ((cO ++ gF) ++ gg) | |
1024 | 1023 | else throw("Strict value is not equal to itself.") | |
1025 | 1024 | } | |
1026 | 1025 | else throw("Strict value is not equal to itself.") | |
1038 | 1037 | ||
1039 | 1038 | ||
1040 | 1039 | @Callable(dV) | |
1041 | - | func putOneTknV2 ( | |
1042 | - | let | |
1043 | - | let | |
1044 | - | if ($isInstanceOf( | |
1045 | - | then | |
1046 | - | else throw(($getType( | |
1040 | + | func putOneTknV2 (fJ,gt) = { | |
1041 | + | let gI = { | |
1042 | + | let fR = invoke(aN, "isPoolOneTokenOperationsDisabledREADONLY", [toString(this)], nil) | |
1043 | + | if ($isInstanceOf(fR, "Boolean")) | |
1044 | + | then fR | |
1045 | + | else throw(($getType(fR) + " couldn't be cast to Boolean")) | |
1047 | 1046 | } | |
1048 | - | let | |
1047 | + | let gJ = if (if (if (aP()) | |
1049 | 1048 | then true | |
1050 | 1049 | else (be == q)) | |
1051 | 1050 | then true | |
1052 | 1051 | else (be == s)) | |
1053 | 1052 | then true | |
1054 | - | else | |
1055 | - | let | |
1053 | + | else gI | |
1054 | + | let gK = [if (if (!(gJ)) | |
1056 | 1055 | then true | |
1057 | - | else | |
1056 | + | else gl(dV)) | |
1058 | 1057 | then true | |
1059 | 1058 | else aK("put operation is blocked by admin"), if ((size(dV.payments) == 1)) | |
1060 | 1059 | then true | |
1061 | 1060 | else aK("exactly 1 payment are expected")] | |
1062 | - | if (( | |
1061 | + | if ((gK == gK)) | |
1063 | 1062 | then { | |
1064 | 1063 | let ba = aS() | |
1065 | 1064 | let cw = ba[w] | |
1066 | 1065 | let cx = ba[x] | |
1067 | 1066 | let cv = fromBase58String(ba[v]) | |
1068 | - | let | |
1069 | - | let | |
1067 | + | let fN = parseIntValue(ba[y]) | |
1068 | + | let fO = parseIntValue(ba[z]) | |
1070 | 1069 | let cu = if ((dV.caller == this)) | |
1071 | 1070 | then dV.originCaller | |
1072 | 1071 | else dV.caller | |
1073 | - | let | |
1074 | - | let cs = toBase58String(value( | |
1075 | - | let cY = | |
1076 | - | let | |
1077 | - | if (( | |
1072 | + | let fg = value(dV.payments[0]) | |
1073 | + | let cs = toBase58String(value(fg.assetId)) | |
1074 | + | let cY = fg.amount | |
1075 | + | let gL = fl(cY, cs, toString(cu), toBase58String(dV.transactionId), true) | |
1076 | + | if ((gL == gL)) | |
1078 | 1077 | then { | |
1079 | - | let cp = | |
1080 | - | let cO = | |
1081 | - | let | |
1082 | - | let dx = if (if (( | |
1083 | - | then ( | |
1078 | + | let cp = gL._3 | |
1079 | + | let cO = gL._2 | |
1080 | + | let gM = gL._1 | |
1081 | + | let dx = if (if ((fJ > 0)) | |
1082 | + | then (fJ > gM) | |
1084 | 1083 | else false) | |
1085 | - | then aK(makeString(["amount to receive is less than ", toString( | |
1086 | - | else | |
1087 | - | let | |
1088 | - | if (( | |
1084 | + | then aK(makeString(["amount to receive is less than ", toString(fJ)], "")) | |
1085 | + | else gM | |
1086 | + | let gz = invoke(aN, "emit", [dx], nil) | |
1087 | + | if ((gz == gz)) | |
1089 | 1088 | then { | |
1090 | - | let | |
1091 | - | let aE = | |
1089 | + | let gB = { | |
1090 | + | let aE = gz | |
1092 | 1091 | if ($isInstanceOf(aE, "Address")) | |
1093 | 1092 | then { | |
1094 | - | let | |
1095 | - | invoke( | |
1093 | + | let gC = aE | |
1094 | + | invoke(gC, "emit", [dx], nil) | |
1096 | 1095 | } | |
1097 | 1096 | else unit | |
1098 | 1097 | } | |
1099 | - | if (( | |
1098 | + | if ((gB == gB)) | |
1100 | 1099 | then { | |
1101 | - | let | |
1100 | + | let gF = if (gt) | |
1102 | 1101 | then { | |
1103 | - | let | |
1104 | - | if (( | |
1102 | + | let gG = invoke(bm, "stake", nil, [AttachedPayment(cv, dx)]) | |
1103 | + | if ((gG == gG)) | |
1105 | 1104 | then nil | |
1106 | 1105 | else throw("Strict value is not equal to itself.") | |
1107 | 1106 | } | |
1108 | 1107 | else [ScriptTransfer(dV.caller, dx, cv)] | |
1109 | - | let | |
1108 | + | let ga = if ((cp > 0)) | |
1110 | 1109 | then [ScriptTransfer(aR, cp, fromBase58String(cs))] | |
1111 | 1110 | else nil | |
1112 | - | let | |
1111 | + | let gN = if ((this == aR)) | |
1113 | 1112 | then $Tuple2(0, 0) | |
1114 | 1113 | else { | |
1115 | - | let | |
1114 | + | let gO = if ((fg.assetId == bg)) | |
1116 | 1115 | then true | |
1117 | 1116 | else false | |
1118 | - | if ( | |
1117 | + | if (gO) | |
1119 | 1118 | then $Tuple2(-(cp), 0) | |
1120 | 1119 | else $Tuple2(0, -(cp)) | |
1121 | 1120 | } | |
1122 | - | let | |
1123 | - | let | |
1124 | - | let | |
1125 | - | let | |
1126 | - | let | |
1127 | - | $Tuple2((((cO ++ | |
1121 | + | let eQ = gN._1 | |
1122 | + | let eR = gN._2 | |
1123 | + | let gP = eP(eQ, eR, 0) | |
1124 | + | let gg = gP._1 | |
1125 | + | let eG = gP._2 | |
1126 | + | $Tuple2((((cO ++ gF) ++ ga) ++ gg), dx) | |
1128 | 1127 | } | |
1129 | 1128 | else throw("Strict value is not equal to itself.") | |
1130 | 1129 | } | |
1138 | 1137 | ||
1139 | 1138 | ||
1140 | 1139 | @Callable(dV) | |
1141 | - | func putForFree ( | |
1140 | + | func putForFree (gQ) = if ((0 > gQ)) | |
1142 | 1141 | then throw("Wrong slpg") | |
1143 | 1142 | else if ((size(dV.payments) != 2)) | |
1144 | 1143 | then throw("2 pmnts expd") | |
1145 | 1144 | else { | |
1146 | - | let | |
1147 | - | let cO = | |
1148 | - | let | |
1149 | - | let | |
1150 | - | let | |
1151 | - | if (( | |
1145 | + | let gR = fh(toString(dV.caller), toBase58String(dV.transactionId), AttachedPayment(value(dV.payments[0]).assetId, value(dV.payments[0]).amount), dV.payments[1], gQ, false, false, true, 0, "") | |
1146 | + | let cO = gR._9 | |
1147 | + | let gx = toBigInt(value(dV.payments[0]).amount) | |
1148 | + | let gy = toBigInt(value(dV.payments[1]).amount) | |
1149 | + | let eO = eH(gx, gy, toBigInt(0)) | |
1150 | + | if ((eO == eO)) | |
1152 | 1151 | then { | |
1153 | - | let | |
1154 | - | let | |
1155 | - | let | |
1156 | - | let | |
1157 | - | if (( | |
1158 | - | then (cO ++ | |
1152 | + | let gS = eP(0, 0, 0) | |
1153 | + | let gg = gS._1 | |
1154 | + | let eG = gS._2 | |
1155 | + | let gh = eT(eO, eG) | |
1156 | + | if ((gh == gh)) | |
1157 | + | then (cO ++ gg) | |
1159 | 1158 | else throw("Strict value is not equal to itself.") | |
1160 | 1159 | } | |
1161 | 1160 | else throw("Strict value is not equal to itself.") | |
1165 | 1164 | ||
1166 | 1165 | @Callable(dV) | |
1167 | 1166 | func get () = { | |
1168 | - | let dk = | |
1169 | - | let | |
1167 | + | let dk = ff(dV) | |
1168 | + | let gT = dk._1 | |
1170 | 1169 | let cN = dk._2 | |
1171 | 1170 | let cY = dk._3 | |
1172 | 1171 | let cs = dk._4 | |
1174 | 1173 | let ew = invoke(aN, "burn", [cY], [AttachedPayment(cs, cY)]) | |
1175 | 1174 | if ((ew == ew)) | |
1176 | 1175 | then { | |
1177 | - | let | |
1178 | - | let | |
1179 | - | let | |
1180 | - | let | |
1181 | - | let | |
1182 | - | if (( | |
1183 | - | then (cO ++ | |
1176 | + | let eO = eH(toBigInt(0), toBigInt(0), toBigInt(cY)) | |
1177 | + | let gU = eP(-(gT), -(cN), 0) | |
1178 | + | let gg = gU._1 | |
1179 | + | let eG = gU._2 | |
1180 | + | let gh = eT(eO, eG) | |
1181 | + | if ((gh == gh)) | |
1182 | + | then (cO ++ gg) | |
1184 | 1183 | else throw("Strict value is not equal to itself.") | |
1185 | 1184 | } | |
1186 | 1185 | else throw("Strict value is not equal to itself.") | |
1189 | 1188 | ||
1190 | 1189 | ||
1191 | 1190 | @Callable(dV) | |
1192 | - | func getOneTknV2 (fJ | |
1193 | - | let | |
1194 | - | let | |
1195 | - | if ($isInstanceOf( | |
1196 | - | then | |
1197 | - | else throw(($getType( | |
1191 | + | func getOneTknV2 (fI,fJ) = { | |
1192 | + | let gI = { | |
1193 | + | let fR = invoke(aN, "isPoolOneTokenOperationsDisabledREADONLY", [toString(this)], nil) | |
1194 | + | if ($isInstanceOf(fR, "Boolean")) | |
1195 | + | then fR | |
1196 | + | else throw(($getType(fR) + " couldn't be cast to Boolean")) | |
1198 | 1197 | } | |
1199 | - | let | |
1198 | + | let gV = if (if (aP()) | |
1200 | 1199 | then true | |
1201 | 1200 | else (be == s)) | |
1202 | 1201 | then true | |
1203 | - | else | |
1204 | - | let | |
1202 | + | else gI | |
1203 | + | let gK = [if (if (!(gV)) | |
1205 | 1204 | then true | |
1206 | - | else | |
1205 | + | else gl(dV)) | |
1207 | 1206 | then true | |
1208 | 1207 | else aK("get operation is blocked by admin"), if ((size(dV.payments) == 1)) | |
1209 | 1208 | then true | |
1210 | 1209 | else aK("exactly 1 payment are expected")] | |
1211 | - | if (( | |
1210 | + | if ((gK == gK)) | |
1212 | 1211 | then { | |
1213 | - | let | |
1214 | - | let cO = | |
1215 | - | let | |
1216 | - | $Tuple2(cO, | |
1212 | + | let gW = fH(fI, fJ, dV.payments, dV.caller, dV.originCaller, dV.transactionId) | |
1213 | + | let cO = gW._1 | |
1214 | + | let fT = gW._2 | |
1215 | + | $Tuple2(cO, fT) | |
1217 | 1216 | } | |
1218 | 1217 | else throw("Strict value is not equal to itself.") | |
1219 | 1218 | } | |
1222 | 1221 | ||
1223 | 1222 | @Callable(dV) | |
1224 | 1223 | func refreshDLp () = { | |
1225 | - | let | |
1226 | - | let | |
1224 | + | let gX = valueOrElse(getInteger(al), 0) | |
1225 | + | let gY = if (((height - gX) >= ao)) | |
1227 | 1226 | then unit | |
1228 | 1227 | else aK(makeString([toString(ao), " blocks have not passed since the previous call"], "")) | |
1229 | - | if (( | |
1228 | + | if ((gY == gY)) | |
1230 | 1229 | then { | |
1231 | - | let | |
1232 | - | let | |
1233 | - | let | |
1234 | - | let | |
1235 | - | let | |
1236 | - | then | |
1230 | + | let fa = valueOrErrorMessage(parseBigInt(valueOrElse(getString(this, ak), "0")), aM("invalid dLp")) | |
1231 | + | let gZ = eP(0, 0, 0) | |
1232 | + | let ha = gZ._1 | |
1233 | + | let eG = gZ._2 | |
1234 | + | let eS = if ((fa != eG)) | |
1235 | + | then ha | |
1237 | 1236 | else aK("nothing to refresh") | |
1238 | - | $Tuple2( | |
1237 | + | $Tuple2(eS, toString(eG)) | |
1239 | 1238 | } | |
1240 | 1239 | else throw("Strict value is not equal to itself.") | |
1241 | 1240 | } | |
1243 | 1242 | ||
1244 | 1243 | ||
1245 | 1244 | @Callable(dV) | |
1246 | - | func getOneTknV2READONLY ( | |
1245 | + | func getOneTknV2READONLY (fI,hb) = { | |
1247 | 1246 | let ba = aS() | |
1248 | 1247 | let cw = ba[w] | |
1249 | 1248 | let cx = ba[x] | |
1251 | 1250 | let dF = [toBigInt(bF(cw)), toBigInt(bF(cx))] | |
1252 | 1251 | let eF = toBigInt(valueOrErrorMessage(assetInfo(fromBase58String(cv)), "invalid lp asset").quantity) | |
1253 | 1252 | let bS = dE(dF) | |
1254 | - | let bR = (bS - fraction(toBigInt( | |
1255 | - | let | |
1253 | + | let bR = (bS - fraction(toBigInt(hb), bS, eF)) | |
1254 | + | let hc = if ((fI == cw)) | |
1256 | 1255 | then 0 | |
1257 | - | else if (( | |
1256 | + | else if ((fI == cx)) | |
1258 | 1257 | then 1 | |
1259 | 1258 | else throw("invalid out asset id") | |
1260 | - | let | |
1261 | - | let | |
1262 | - | let | |
1263 | - | let | |
1264 | - | let | |
1265 | - | let cp = | |
1266 | - | $Tuple2(nil, $Tuple2( | |
1259 | + | let hd = es(dF, hc, bR) | |
1260 | + | let he = (dF[hc] - hd) | |
1261 | + | let hf = max([0, toInt((he - f))]) | |
1262 | + | let hg = cn(hf) | |
1263 | + | let fS = hg._1 | |
1264 | + | let cp = hg._2 | |
1265 | + | $Tuple2(nil, $Tuple2(fS, cp)) | |
1267 | 1266 | } | |
1268 | 1267 | ||
1269 | 1268 | ||
1270 | 1269 | ||
1271 | 1270 | @Callable(dV) | |
1272 | - | func getOneTknV2WithBonusREADONLY ( | |
1271 | + | func getOneTknV2WithBonusREADONLY (fI,hb) = { | |
1273 | 1272 | let ba = aS() | |
1274 | 1273 | let cw = ba[w] | |
1275 | 1274 | let cx = ba[x] | |
1276 | 1275 | let cv = ba[v] | |
1277 | 1276 | let cC = bF(cw) | |
1278 | 1277 | let cE = bF(cx) | |
1279 | - | let | |
1280 | - | let | |
1281 | - | if ($isInstanceOf( | |
1282 | - | then | |
1283 | - | else throw(($getType( | |
1278 | + | let hh = { | |
1279 | + | let fR = invoke(this, "getOneTknV2READONLY", [fI, hb], nil) | |
1280 | + | if ($isInstanceOf(fR, "(Int, Int)")) | |
1281 | + | then fR | |
1282 | + | else throw(($getType(fR) + " couldn't be cast to (Int, Int)")) | |
1284 | 1283 | } | |
1285 | - | let | |
1286 | - | let cp = | |
1287 | - | let dk = cq("", cv, | |
1284 | + | let fS = hh._1 | |
1285 | + | let cp = hh._2 | |
1286 | + | let dk = cq("", cv, hb, this) | |
1288 | 1287 | let cM = dk._1 | |
1289 | 1288 | let cN = dk._2 | |
1290 | - | let | |
1291 | - | let | |
1292 | - | then if (( | |
1289 | + | let hi = (cM + cN) | |
1290 | + | let fG = if ((hi == 0)) | |
1291 | + | then if ((fS == 0)) | |
1293 | 1292 | then 0 | |
1294 | 1293 | else throw("bonus calculation error") | |
1295 | - | else fraction(( | |
1296 | - | $Tuple2(nil, $Tuple3( | |
1294 | + | else fraction((fS - hi), a, hi) | |
1295 | + | $Tuple2(nil, $Tuple3(fS, cp, fG)) | |
1297 | 1296 | } | |
1298 | 1297 | ||
1299 | 1298 | ||
1300 | 1299 | ||
1301 | 1300 | @Callable(dV) | |
1302 | - | func getNoLess (hk | |
1303 | - | let dk = | |
1301 | + | func getNoLess (hj,hk) = { | |
1302 | + | let dk = ff(dV) | |
1304 | 1303 | let cM = dk._1 | |
1305 | 1304 | let cN = dk._2 | |
1306 | 1305 | let cY = dk._3 | |
1307 | 1306 | let cs = dk._4 | |
1308 | 1307 | let cO = dk._5 | |
1309 | - | if (( | |
1310 | - | then throw(((("Failed: " + toString(cM)) + " < ") + toString( | |
1311 | - | else if (( | |
1312 | - | then throw(((("Failed: " + toString(cN)) + " < ") + toString( | |
1308 | + | if ((hj > cM)) | |
1309 | + | then throw(((("Failed: " + toString(cM)) + " < ") + toString(hj))) | |
1310 | + | else if ((hk > cN)) | |
1311 | + | then throw(((("Failed: " + toString(cN)) + " < ") + toString(hk))) | |
1313 | 1312 | else { | |
1314 | - | let | |
1315 | - | let | |
1316 | - | if (( | |
1313 | + | let eO = eH(toBigInt(0), toBigInt(0), toBigInt(cY)) | |
1314 | + | let hl = invoke(aN, "burn", [cY], [AttachedPayment(cs, cY)]) | |
1315 | + | if ((hl == hl)) | |
1317 | 1316 | then { | |
1318 | - | let | |
1319 | - | let | |
1320 | - | let | |
1321 | - | let | |
1322 | - | if (( | |
1323 | - | then (cO ++ | |
1317 | + | let hm = eP(-(cM), -(cN), 0) | |
1318 | + | let gg = hm._1 | |
1319 | + | let eG = hm._2 | |
1320 | + | let gh = eT(eO, eG) | |
1321 | + | if ((gh == gh)) | |
1322 | + | then (cO ++ gg) | |
1324 | 1323 | else throw("Strict value is not equal to itself.") | |
1325 | 1324 | } | |
1326 | 1325 | else throw("Strict value is not equal to itself.") | |
1331 | 1330 | ||
1332 | 1331 | @Callable(dV) | |
1333 | 1332 | func unstakeAndGet (co) = { | |
1334 | - | let | |
1333 | + | let hn = if ((size(dV.payments) != 0)) | |
1335 | 1334 | then throw("No pmnts expd") | |
1336 | 1335 | else true | |
1337 | - | if (( | |
1336 | + | if ((hn == hn)) | |
1338 | 1337 | then { | |
1339 | 1338 | let ce = aS() | |
1340 | - | let | |
1341 | - | let | |
1342 | - | let | |
1343 | - | let | |
1344 | - | let | |
1345 | - | if (( | |
1339 | + | let ho = bk() | |
1340 | + | let gA = fromBase58String(ce[v]) | |
1341 | + | let hp = valueOrErrorMessage(addressFromString(ho[C]), "Wr st addr") | |
1342 | + | let eO = eH(toBigInt(0), toBigInt(0), toBigInt(0)) | |
1343 | + | let hq = invoke(hp, "unstake", [toBase58String(gA), co], nil) | |
1344 | + | if ((hq == hq)) | |
1346 | 1345 | then { | |
1347 | - | let dk = cq(toBase58String(dV.transactionId), toBase58String( | |
1346 | + | let dk = cq(toBase58String(dV.transactionId), toBase58String(gA), co, dV.caller) | |
1348 | 1347 | let cM = dk._1 | |
1349 | 1348 | let cN = dk._2 | |
1350 | 1349 | let cA = parseIntValue(dk._9) | |
1351 | 1350 | let cO = dk._10 | |
1352 | - | let | |
1351 | + | let hr = if (if (aP()) | |
1353 | 1352 | then true | |
1354 | 1353 | else (cA == s)) | |
1355 | 1354 | then throw(("Blocked: " + toString(cA))) | |
1356 | 1355 | else true | |
1357 | - | if (( | |
1356 | + | if ((hr == hr)) | |
1358 | 1357 | then { | |
1359 | - | let | |
1360 | - | if (( | |
1358 | + | let hs = invoke(aN, "burn", [co], [AttachedPayment(gA, co)]) | |
1359 | + | if ((hs == hs)) | |
1361 | 1360 | then { | |
1362 | - | let | |
1363 | - | let | |
1364 | - | let | |
1365 | - | let | |
1366 | - | if (( | |
1367 | - | then (cO ++ | |
1361 | + | let ht = eP(-(cM), -(cN), 0) | |
1362 | + | let gg = ht._1 | |
1363 | + | let eG = ht._2 | |
1364 | + | let gh = eT(eO, eG) | |
1365 | + | if ((gh == gh)) | |
1366 | + | then (cO ++ gg) | |
1368 | 1367 | else throw("Strict value is not equal to itself.") | |
1369 | 1368 | } | |
1370 | 1369 | else throw("Strict value is not equal to itself.") | |
1379 | 1378 | ||
1380 | 1379 | ||
1381 | 1380 | @Callable(dV) | |
1382 | - | func unstakeAndGetNoLess (hv, | |
1383 | - | let | |
1381 | + | func unstakeAndGetNoLess (hu,hv,hk) = { | |
1382 | + | let gV = if (aP()) | |
1384 | 1383 | then true | |
1385 | 1384 | else (be == s) | |
1386 | - | let | |
1385 | + | let gK = [if (!(gV)) | |
1387 | 1386 | then true | |
1388 | 1387 | else throw("get operation is blocked by admin"), if ((size(dV.payments) == 0)) | |
1389 | 1388 | then true | |
1390 | 1389 | else throw("no payments are expected")] | |
1391 | - | if (( | |
1390 | + | if ((gK == gK)) | |
1392 | 1391 | then { | |
1393 | - | let | |
1394 | - | let | |
1395 | - | if (( | |
1392 | + | let eO = eH(toBigInt(0), toBigInt(0), toBigInt(0)) | |
1393 | + | let hq = invoke(bm, "unstake", [toBase58String(bf), hu], nil) | |
1394 | + | if ((hq == hq)) | |
1396 | 1395 | then { | |
1397 | - | let | |
1398 | - | let cM = | |
1399 | - | let cN = | |
1400 | - | let cO = | |
1401 | - | let | |
1396 | + | let hw = cq(toBase58String(dV.transactionId), toBase58String(bf), hu, dV.caller) | |
1397 | + | let cM = hw._1 | |
1398 | + | let cN = hw._2 | |
1399 | + | let cO = hw._10 | |
1400 | + | let hx = [if ((cM >= hv)) | |
1402 | 1401 | then true | |
1403 | - | else throw(makeString(["amount asset amount to receive is less than ", toString( | |
1402 | + | else throw(makeString(["amount asset amount to receive is less than ", toString(hv)], "")), if ((cN >= hk)) | |
1404 | 1403 | then true | |
1405 | - | else throw(makeString(["price asset amount to receive is less than ", toString( | |
1406 | - | if (( | |
1404 | + | else throw(makeString(["price asset amount to receive is less than ", toString(hk)], ""))] | |
1405 | + | if ((hx == hx)) | |
1407 | 1406 | then { | |
1408 | - | let | |
1409 | - | if (( | |
1407 | + | let hl = invoke(aN, "burn", [hu], [AttachedPayment(bf, hu)]) | |
1408 | + | if ((hl == hl)) | |
1410 | 1409 | then { | |
1411 | - | let | |
1412 | - | let | |
1413 | - | let | |
1414 | - | let | |
1415 | - | if (( | |
1416 | - | then (cO ++ | |
1410 | + | let hy = eP(-(cM), -(cN), 0) | |
1411 | + | let gg = hy._1 | |
1412 | + | let eG = hy._2 | |
1413 | + | let gh = eT(eO, eG) | |
1414 | + | if ((gh == gh)) | |
1415 | + | then (cO ++ gg) | |
1417 | 1416 | else throw("Strict value is not equal to itself.") | |
1418 | 1417 | } | |
1419 | 1418 | else throw("Strict value is not equal to itself.") | |
1428 | 1427 | ||
1429 | 1428 | ||
1430 | 1429 | @Callable(dV) | |
1431 | - | func unstakeAndGetOneTknV2 ( | |
1432 | - | let | |
1433 | - | let | |
1434 | - | if ($isInstanceOf( | |
1435 | - | then | |
1436 | - | else throw(($getType( | |
1430 | + | func unstakeAndGetOneTknV2 (hu,fI,fJ) = { | |
1431 | + | let gI = { | |
1432 | + | let fR = invoke(aN, "isPoolOneTokenOperationsDisabledREADONLY", [toString(this)], nil) | |
1433 | + | if ($isInstanceOf(fR, "Boolean")) | |
1434 | + | then fR | |
1435 | + | else throw(($getType(fR) + " couldn't be cast to Boolean")) | |
1437 | 1436 | } | |
1438 | - | let | |
1437 | + | let gV = if (if (aP()) | |
1439 | 1438 | then true | |
1440 | 1439 | else (be == s)) | |
1441 | 1440 | then true | |
1442 | - | else | |
1443 | - | let | |
1441 | + | else gI | |
1442 | + | let gK = [if (if (!(gV)) | |
1444 | 1443 | then true | |
1445 | - | else | |
1444 | + | else gl(dV)) | |
1446 | 1445 | then true | |
1447 | 1446 | else aK("get operation is blocked by admin"), if ((size(dV.payments) == 0)) | |
1448 | 1447 | then true | |
1449 | 1448 | else aK("no payments are expected")] | |
1450 | - | if (( | |
1449 | + | if ((gK == gK)) | |
1451 | 1450 | then { | |
1452 | 1451 | let ce = aS() | |
1453 | - | let | |
1454 | - | let | |
1455 | - | let | |
1456 | - | let | |
1457 | - | if (( | |
1452 | + | let ho = bk() | |
1453 | + | let gA = fromBase58String(ce[v]) | |
1454 | + | let hp = valueOrErrorMessage(addressFromString(ho[C]), "Wr st addr") | |
1455 | + | let hq = invoke(hp, "unstake", [toBase58String(gA), hu], nil) | |
1456 | + | if ((hq == hq)) | |
1458 | 1457 | then { | |
1459 | - | let | |
1460 | - | let cO = | |
1461 | - | let | |
1462 | - | $Tuple2(cO, | |
1458 | + | let hz = fH(fI, fJ, [AttachedPayment(gA, hu)], dV.caller, dV.originCaller, dV.transactionId) | |
1459 | + | let cO = hz._1 | |
1460 | + | let fT = hz._2 | |
1461 | + | $Tuple2(cO, fT) | |
1463 | 1462 | } | |
1464 | 1463 | else throw("Strict value is not equal to itself.") | |
1465 | 1464 | } | |
1469 | 1468 | ||
1470 | 1469 | ||
1471 | 1470 | @Callable(dV) | |
1472 | - | func putOneTknV2WithBonusREADONLY (hB | |
1471 | + | func putOneTknV2WithBonusREADONLY (hA,hB) = { | |
1473 | 1472 | let ba = aS() | |
1474 | 1473 | let cw = ba[w] | |
1475 | 1474 | let cx = ba[x] | |
1476 | 1475 | let cv = ba[v] | |
1477 | - | let | |
1478 | - | let | |
1479 | - | let cO = | |
1480 | - | let cp = | |
1481 | - | let | |
1482 | - | $Tuple2(nil, $Tuple3( | |
1476 | + | let hC = fl(hA, hB, "", "", true) | |
1477 | + | let fB = hC._1 | |
1478 | + | let cO = hC._2 | |
1479 | + | let cp = hC._3 | |
1480 | + | let fG = hC._4 | |
1481 | + | $Tuple2(nil, $Tuple3(fB, cp, fG)) | |
1483 | 1482 | } | |
1484 | 1483 | ||
1485 | 1484 | ||
1486 | 1485 | ||
1487 | 1486 | @Callable(dV) | |
1488 | - | func putOneTknV2WithoutTakeFeeREADONLY (hB | |
1487 | + | func putOneTknV2WithoutTakeFeeREADONLY (hA,hB) = { | |
1489 | 1488 | let ba = aS() | |
1490 | 1489 | let cw = ba[w] | |
1491 | 1490 | let cx = ba[x] | |
1492 | 1491 | let cv = ba[v] | |
1493 | - | let | |
1494 | - | let | |
1495 | - | let cO = | |
1496 | - | let cp = | |
1497 | - | let | |
1498 | - | $Tuple2(nil, $Tuple3( | |
1492 | + | let hD = fl(hA, hB, "", "", false) | |
1493 | + | let fB = hD._1 | |
1494 | + | let cO = hD._2 | |
1495 | + | let cp = hD._3 | |
1496 | + | let fG = hD._4 | |
1497 | + | $Tuple2(nil, $Tuple3(fB, cp, fG)) | |
1499 | 1498 | } | |
1500 | 1499 | ||
1501 | 1500 | ||
1502 | 1501 | ||
1503 | 1502 | @Callable(dV) | |
1504 | - | func activate (hF | |
1503 | + | func activate (hE,hF) = if ((toString(dV.caller) != toString(aN))) | |
1505 | 1504 | then throw("denied") | |
1506 | - | else $Tuple2([StringEntry(ae(), | |
1505 | + | else $Tuple2([StringEntry(ae(), hE), StringEntry(af(), hF)], "success") | |
1507 | 1506 | ||
1508 | 1507 | ||
1509 | 1508 | ||
1510 | 1509 | @Callable(dV) | |
1511 | - | func setS ( | |
1512 | - | then | |
1513 | - | else [StringEntry( | |
1510 | + | func setS (hG,hr) = if ((toString(dV.caller) != aG(this, ah()))) | |
1511 | + | then gk | |
1512 | + | else [StringEntry(hG, hr)] | |
1514 | 1513 | ||
1515 | 1514 | ||
1516 | 1515 | ||
1517 | 1516 | @Callable(dV) | |
1518 | - | func setI ( | |
1519 | - | then | |
1520 | - | else [IntegerEntry( | |
1517 | + | func setI (hG,hr) = if ((toString(dV.caller) != aG(this, ah()))) | |
1518 | + | then gk | |
1519 | + | else [IntegerEntry(hG, hr)] | |
1521 | 1520 | ||
1522 | 1521 | ||
1523 | 1522 | ||
1533 | 1532 | ||
1534 | 1533 | @Callable(dV) | |
1535 | 1534 | func calcPricesWrapperREADONLY (bY,bZ,cd) = { | |
1536 | - | let | |
1537 | - | $Tuple2(nil, [toString( | |
1535 | + | let hH = cc(bY, bZ, cd) | |
1536 | + | $Tuple2(nil, [toString(hH[0]), toString(hH[1]), toString(hH[2])]) | |
1538 | 1537 | } | |
1539 | 1538 | ||
1540 | 1539 | ||
1541 | 1540 | ||
1542 | 1541 | @Callable(dV) | |
1543 | - | func fromX18WrapperREADONLY (L, | |
1542 | + | func fromX18WrapperREADONLY (L,hI) = $Tuple2(nil, K(parseBigIntValue(L), hI)) | |
1544 | 1543 | ||
1545 | 1544 | ||
1546 | 1545 | ||
1555 | 1554 | ||
1556 | 1555 | ||
1557 | 1556 | @Callable(dV) | |
1558 | - | func estimatePutOperationWrapperREADONLY (cr,bN,cQ,cR,cS,cT, | |
1557 | + | func estimatePutOperationWrapperREADONLY (cr,bN,cQ,cR,cS,cT,hJ,cU,cV) = $Tuple2(nil, cP(cr, bN, cQ, cR, cS, cT, hJ, cU, cV, true, false, 0, "")) | |
1559 | 1558 | ||
1560 | 1559 | ||
1561 | 1560 | ||
1562 | 1561 | @Callable(dV) | |
1563 | - | func estimateGetOperationWrapperREADONLY (cr, | |
1564 | - | let dk = cq(cr, | |
1562 | + | func estimateGetOperationWrapperREADONLY (cr,hK,ct,hJ) = { | |
1563 | + | let dk = cq(cr, hK, ct, addressFromStringValue(hJ)) | |
1565 | 1564 | $Tuple2(nil, $Tuple10(dk._1, dk._2, dk._3, dk._4, dk._5, dk._6, dk._7, toString(dk._8), dk._9, dk._10)) | |
1566 | 1565 | } | |
1567 | 1566 | ||
1571 | 1570 | func getFeeREADONLY () = $Tuple2(nil, aj) | |
1572 | 1571 | ||
1573 | 1572 | ||
1574 | - | @Verifier( | |
1575 | - | func | |
1576 | - | let | |
1577 | - | let aE = | |
1573 | + | @Verifier(hL) | |
1574 | + | func hM () = { | |
1575 | + | let hN = { | |
1576 | + | let aE = gi() | |
1578 | 1577 | if ($isInstanceOf(aE, "ByteVector")) | |
1579 | 1578 | then { | |
1580 | - | let | |
1581 | - | | |
1579 | + | let gm = aE | |
1580 | + | gm | |
1582 | 1581 | } | |
1583 | 1582 | else if ($isInstanceOf(aE, "Unit")) | |
1584 | - | then | |
1583 | + | then hL.senderPublicKey | |
1585 | 1584 | else throw("Match error") | |
1586 | 1585 | } | |
1587 | - | let aE = | |
1586 | + | let aE = hL | |
1588 | 1587 | if ($isInstanceOf(aE, "Order")) | |
1589 | 1588 | then { | |
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) | |
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) | |
1596 | 1597 | then hR | |
1597 | 1598 | else false) | |
1598 | - | then hS | |
1599 | - | else false) | |
1600 | 1599 | then true | |
1601 | - | else az(hQ, hR | |
1600 | + | else az(hP, hQ, hR) | |
1602 | 1601 | } | |
1603 | 1602 | else if ($isInstanceOf(aE, "SetScriptTransaction")) | |
1604 | 1603 | then { | |
1605 | 1604 | let dI = aE | |
1606 | - | let | |
1607 | - | let | |
1608 | - | let | |
1609 | - | if (if (( | |
1610 | - | then ( | |
1605 | + | let hS = blake2b256(value(dI.script)) | |
1606 | + | let hT = fromBase64String(value(getString(aN, ax()))) | |
1607 | + | let hU = scriptHash(this) | |
1608 | + | if (if ((hT == hS)) | |
1609 | + | then (hU != hS) | |
1611 | 1610 | else false) | |
1612 | 1611 | then true | |
1613 | - | else sigVerify( | |
1612 | + | else sigVerify(hL.bodyBytes, hL.proofs[0], hN) | |
1614 | 1613 | } | |
1615 | - | else sigVerify( | |
1614 | + | else sigVerify(hL.bodyBytes, hL.proofs[0], hN) | |
1616 | 1615 | } | |
1617 | 1616 |
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 = toBigInt(1000000000000) | |
609 | - | let eH = fraction(dE([eD, eE]), eG, eF) | |
608 | + | let eG = fraction(dE([eD, eE]), c, eF) | |
610 | 609 | if ((eF == e)) | |
611 | 610 | then e | |
612 | - | else | |
611 | + | else eG | |
613 | 612 | } | |
614 | 613 | ||
615 | 614 | ||
616 | - | func | |
617 | - | let | |
618 | - | let | |
619 | - | let | |
620 | - | let | |
621 | - | | |
615 | + | func eH (eI,eJ,eK) = { | |
616 | + | let eL = (toBigInt(bF(aY(bg))) - eI) | |
617 | + | let eM = (toBigInt(bF(aY(bh))) - eJ) | |
618 | + | let eN = (toBigInt(value(assetInfo(bf)).quantity) - eK) | |
619 | + | let eO = eC(eL, eM, eN) | |
620 | + | eO | |
622 | 621 | } | |
623 | 622 | ||
624 | 623 | ||
625 | - | func | |
626 | - | let | |
627 | - | let | |
628 | - | let | |
629 | - | let | |
630 | - | let | |
631 | - | $Tuple2( | |
624 | + | func eP (eQ,eR,eK) = { | |
625 | + | let eL = (bF(aY(bg)) + eQ) | |
626 | + | let eM = (bF(aY(bh)) + eR) | |
627 | + | let eN = (value(assetInfo(bf)).quantity + eK) | |
628 | + | let eG = eC(toBigInt(eL), toBigInt(eM), toBigInt(eN)) | |
629 | + | let eS = [IntegerEntry(al, height), StringEntry(ak, toString(eG))] | |
630 | + | $Tuple2(eS, eG) | |
632 | 631 | } | |
633 | 632 | ||
634 | 633 | ||
635 | - | func | |
634 | + | func eT (eU,eG) = if ((eG >= eU)) | |
636 | 635 | then true | |
637 | 636 | else aK("updated DLp lower than current DLp") | |
638 | 637 | ||
639 | 638 | ||
640 | - | func | |
641 | - | let | |
642 | - | let | |
643 | - | let | |
644 | - | then $Tuple2( | |
645 | - | else $Tuple2(-( | |
646 | - | let | |
647 | - | let | |
639 | + | func eV (eW) = { | |
640 | + | let eX = eW.amount | |
641 | + | let eY = fraction(eW.amount, eW.price, a, FLOOR) | |
642 | + | let eZ = if ((eW.orderType == Buy)) | |
643 | + | then $Tuple2(eX, -(eY)) | |
644 | + | else $Tuple2(-(eX), eY) | |
645 | + | let eQ = eZ._1 | |
646 | + | let eR = eZ._2 | |
648 | 647 | if (if (if (aP()) | |
649 | 648 | then true | |
650 | 649 | else (be == r)) | |
651 | 650 | then true | |
652 | 651 | else (be == s)) | |
653 | 652 | then throw("Admin blocked") | |
654 | - | else if (if (( | |
653 | + | else if (if ((eW.assetPair.amountAsset != bg)) | |
655 | 654 | then true | |
656 | - | else ( | |
655 | + | else (eW.assetPair.priceAsset != bh)) | |
657 | 656 | then throw("Wr assets") | |
658 | 657 | else { | |
659 | - | let | |
660 | - | let | |
661 | - | let | |
662 | - | let | |
663 | - | let | |
664 | - | | |
658 | + | let fa = parseBigIntValue(getStringValue(this, ak)) | |
659 | + | let fb = eP(eQ, eR, 0) | |
660 | + | let fc = fb._1 | |
661 | + | let fd = fb._2 | |
662 | + | let fe = (fd >= fa) | |
663 | + | fe | |
665 | 664 | } | |
666 | 665 | } | |
667 | 666 | ||
668 | 667 | ||
669 | - | func | |
668 | + | func ff (dV) = if ((size(dV.payments) != 1)) | |
670 | 669 | then throw("1 pmnt exp") | |
671 | 670 | else { | |
672 | - | let | |
673 | - | let cs = value( | |
674 | - | let cY = | |
671 | + | let fg = value(dV.payments[0]) | |
672 | + | let cs = value(fg.assetId) | |
673 | + | let cY = fg.amount | |
675 | 674 | let dk = cq(toBase58String(dV.transactionId), toBase58String(cs), cY, dV.caller) | |
676 | 675 | let cM = dk._1 | |
677 | 676 | let cN = dk._2 | |
678 | 677 | let cA = parseIntValue(dk._9) | |
679 | 678 | let cO = dk._10 | |
680 | 679 | if (if (aP()) | |
681 | 680 | then true | |
682 | 681 | else (cA == s)) | |
683 | 682 | then throw(("Admin blocked: " + toString(cA))) | |
684 | 683 | else $Tuple5(cM, cN, cY, cs, cO) | |
685 | 684 | } | |
686 | 685 | ||
687 | 686 | ||
688 | - | func | |
689 | - | let dk = cP(ac, bN, value(fk).amount, value(fk).assetId, | |
687 | + | func fh (fi,ac,fj,fk,bN,cV,cW,cX,cY,cZ) = { | |
688 | + | let dk = cP(ac, bN, value(fj).amount, value(fj).assetId, value(fk).amount, value(fk).assetId, fi, (ac == ""), cV, cW, cX, cY, cZ) | |
690 | 689 | let cA = parseIntValue(dk._8) | |
691 | 690 | if (if (if (aP()) | |
692 | 691 | then true | |
693 | 692 | else (cA == q)) | |
694 | 693 | then true | |
695 | 694 | else (cA == s)) | |
696 | 695 | then throw(("Blocked:" + toString(cA))) | |
697 | 696 | else dk | |
698 | 697 | } | |
699 | 698 | ||
700 | 699 | ||
701 | - | func | |
700 | + | func fl (fm,cs,cu,ac,fn) = { | |
702 | 701 | let ba = aS() | |
703 | 702 | let cw = ba[w] | |
704 | 703 | let cx = ba[x] | |
705 | 704 | let cv = ba[v] | |
706 | 705 | let de = parseIntValue(ba[y]) | |
707 | 706 | let df = parseIntValue(ba[z]) | |
708 | - | let | |
709 | - | let | |
707 | + | let eN = toBigInt(valueOrErrorMessage(assetInfo(fromBase58String(cv)), "invalid lp asset").quantity) | |
708 | + | let fo = if ((eN > e)) | |
710 | 709 | then true | |
711 | 710 | else throw("initial deposit requires all coins") | |
712 | - | if (( | |
711 | + | if ((fo == fo)) | |
713 | 712 | then { | |
714 | 713 | let cC = bF(cw) | |
715 | 714 | let cE = bF(cx) | |
716 | - | let | |
715 | + | let fp = if ((ac == "")) | |
717 | 716 | then $Tuple2(cC, cE) | |
718 | 717 | else if ((cs == cw)) | |
719 | - | then if (( | |
718 | + | then if ((fm > cC)) | |
720 | 719 | then throw("invalid payment amount") | |
721 | - | else $Tuple2((cC - | |
720 | + | else $Tuple2((cC - fm), cE) | |
722 | 721 | else if ((cs == cx)) | |
723 | - | then if (( | |
722 | + | then if ((fm > cE)) | |
724 | 723 | then throw("invalid payment amount") | |
725 | - | else $Tuple2(cC, (cE - | |
724 | + | else $Tuple2(cC, (cE - fm)) | |
726 | 725 | else throw("wrong pmtAssetId") | |
727 | - | let | |
728 | - | let | |
729 | - | let | |
730 | - | then $Tuple2( | |
726 | + | let fq = fp._1 | |
727 | + | let fr = fp._2 | |
728 | + | let fs = if ((cs == cw)) | |
729 | + | then $Tuple2(fm, 0) | |
731 | 730 | else if ((cs == cx)) | |
732 | - | then $Tuple2(0, | |
731 | + | then $Tuple2(0, fm) | |
733 | 732 | else throw("invalid payment") | |
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 | |
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) | |
742 | 742 | let fz = (fr + fx) | |
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)) | |
743 | + | let bS = dE([toBigInt(fq), toBigInt(fr)]) | |
744 | + | let bR = dE([toBigInt(fy), toBigInt(fz)]) | |
745 | + | let fA = if ((bR > bS)) | |
747 | 746 | then true | |
748 | 747 | else throw() | |
749 | - | if (( | |
748 | + | if ((fA == fA)) | |
750 | 749 | then { | |
751 | - | let | |
752 | - | let cH = K(bH(H( | |
753 | - | let dD = [IntegerEntry(W(), cH), IntegerEntry(X(height, lastBlock.timestamp), cH), StringEntry(aa(cu, ac), bq( | |
754 | - | let | |
755 | - | let | |
756 | - | let | |
757 | - | let | |
758 | - | let | |
759 | - | $Tuple4(toInt( | |
750 | + | let fB = fraction(eN, (bR - bS), bS) | |
751 | + | let cH = K(bH(H(fz, df), H(fy, de)), a) | |
752 | + | let dD = [IntegerEntry(W(), cH), IntegerEntry(X(height, lastBlock.timestamp), cH), StringEntry(aa(cu, ac), bq(ft, fu, toInt(fB), cH, 0, 0, height, lastBlock.timestamp, 0, 0))] | |
753 | + | let fC = fraction(fr, a, fq) | |
754 | + | let fD = fraction(fm, a, (fC + a)) | |
755 | + | let fE = (fm - fD) | |
756 | + | let fF = fraction(eN, toBigInt(fE), toBigInt(fr)) | |
757 | + | let fG = toInt(fraction((fB - fF), b, fF)) | |
758 | + | $Tuple4(toInt(fB), dD, cp, fG) | |
760 | 759 | } | |
761 | 760 | else throw("Strict value is not equal to itself.") | |
762 | 761 | } | |
763 | 762 | else throw("Strict value is not equal to itself.") | |
764 | 763 | } | |
765 | 764 | ||
766 | 765 | ||
767 | - | func | |
766 | + | func fH (fI,fJ,fK,fi,fL,fM) = { | |
768 | 767 | let ba = aS() | |
769 | 768 | let cv = ba[v] | |
770 | 769 | let cw = ba[w] | |
771 | 770 | let cx = ba[x] | |
772 | - | let | |
773 | - | let | |
774 | - | let | |
775 | - | let cu = if (( | |
776 | - | then | |
777 | - | else | |
778 | - | let | |
779 | - | let cs = value( | |
780 | - | let cY = | |
781 | - | let | |
782 | - | if (( | |
771 | + | let fN = parseIntValue(ba[y]) | |
772 | + | let fO = parseIntValue(ba[z]) | |
773 | + | let fP = ba[u] | |
774 | + | let cu = if ((fi == bp)) | |
775 | + | then fL | |
776 | + | else fi | |
777 | + | let fg = value(fK[0]) | |
778 | + | let cs = value(fg.assetId) | |
779 | + | let cY = fg.amount | |
780 | + | let eO = eH(e, e, e) | |
781 | + | if ((eO == eO)) | |
783 | 782 | then { | |
784 | - | let cr = toBase58String( | |
783 | + | let cr = toBase58String(fM) | |
785 | 784 | if ((cv != toBase58String(cs))) | |
786 | 785 | then throw("Wrong LP") | |
787 | 786 | else { | |
788 | 787 | let cC = bF(cw) | |
789 | 788 | let cE = bF(cx) | |
790 | - | let | |
791 | - | let | |
792 | - | if ($isInstanceOf( | |
793 | - | then | |
794 | - | else throw(($getType( | |
789 | + | let fQ = { | |
790 | + | let fR = invoke(this, "getOneTknV2READONLY", [fI, cY], nil) | |
791 | + | if ($isInstanceOf(fR, "(Int, Int)")) | |
792 | + | then fR | |
793 | + | else throw(($getType(fR) + " couldn't be cast to (Int, Int)")) | |
795 | 794 | } | |
796 | - | if (( | |
795 | + | if ((fQ == fQ)) | |
797 | 796 | then { | |
798 | - | let cp = | |
799 | - | let | |
800 | - | let | |
801 | - | then ( | |
797 | + | let cp = fQ._2 | |
798 | + | let fS = fQ._1 | |
799 | + | let fT = if (if ((fJ > 0)) | |
800 | + | then (fJ > fS) | |
802 | 801 | else false) | |
803 | - | then aK(makeString(["amount to receive is less than ", toString( | |
804 | - | else | |
805 | - | let | |
806 | - | then $Tuple4( | |
807 | - | else if (( | |
808 | - | then $Tuple4(0, | |
802 | + | then aK(makeString(["amount to receive is less than ", toString(fJ)], "")) | |
803 | + | else fS | |
804 | + | let fU = if ((fI == cw)) | |
805 | + | then $Tuple4(fT, 0, ((cC - fT) - cp), cE) | |
806 | + | else if ((fI == cx)) | |
807 | + | then $Tuple4(0, fT, cC, ((cE - fT) - cp)) | |
809 | 808 | else throw("invalid out asset id") | |
810 | - | let | |
811 | - | let | |
812 | - | let | |
813 | - | let | |
814 | - | let | |
815 | - | let | |
816 | - | let | |
809 | + | let fV = fU._1 | |
810 | + | let fW = fU._2 | |
811 | + | let fy = fU._3 | |
812 | + | let fz = fU._4 | |
813 | + | let fX = bH(H(fz, fO), H(fy, fN)) | |
814 | + | let fY = K(fX, a) | |
815 | + | let fZ = if ((fI == "WAVES")) | |
817 | 816 | then unit | |
818 | - | else fromBase58String( | |
819 | - | let | |
820 | - | then [ScriptTransfer(aR, cp, | |
817 | + | else fromBase58String(fI) | |
818 | + | let ga = if ((cp > 0)) | |
819 | + | then [ScriptTransfer(aR, cp, fZ)] | |
821 | 820 | else nil | |
822 | - | let cO = ([ScriptTransfer(cu, | |
821 | + | let cO = ([ScriptTransfer(cu, fT, fZ), StringEntry(ad(toString(cu), cr), bB(fV, fW, cY, fY, height, lastBlock.timestamp)), IntegerEntry(W(), fY), IntegerEntry(X(height, lastBlock.timestamp), fY)] ++ ga) | |
823 | 822 | if ((cO == cO)) | |
824 | 823 | then { | |
825 | - | let | |
826 | - | if (( | |
824 | + | let gb = invoke(aN, "burn", [cY], [AttachedPayment(cs, cY)]) | |
825 | + | if ((gb == gb)) | |
827 | 826 | then { | |
828 | - | let | |
829 | - | let | |
827 | + | let gc = { | |
828 | + | let gd = if ((this == aR)) | |
830 | 829 | then 0 | |
831 | 830 | else cp | |
832 | - | let | |
831 | + | let ge = if ((aW(fI) == bg)) | |
833 | 832 | then true | |
834 | 833 | else false | |
835 | - | if ( | |
836 | - | then $Tuple2(-(( | |
837 | - | else $Tuple2(0, -(( | |
834 | + | if (ge) | |
835 | + | then $Tuple2(-((fS + gd)), 0) | |
836 | + | else $Tuple2(0, -((fS + gd))) | |
838 | 837 | } | |
839 | - | let | |
840 | - | let | |
841 | - | let | |
842 | - | let | |
843 | - | let | |
844 | - | let | |
845 | - | if (( | |
846 | - | then $Tuple2((cO ++ | |
838 | + | let eQ = gc._1 | |
839 | + | let eR = gc._2 | |
840 | + | let gf = eP(eQ, eR, 0) | |
841 | + | let gg = gf._1 | |
842 | + | let eG = gf._2 | |
843 | + | let gh = eT(eO, eG) | |
844 | + | if ((gh == gh)) | |
845 | + | then $Tuple2((cO ++ gg), fT) | |
847 | 846 | else throw("Strict value is not equal to itself.") | |
848 | 847 | } | |
849 | 848 | else throw("Strict value is not equal to itself.") | |
850 | 849 | } | |
851 | 850 | else throw("Strict value is not equal to itself.") | |
852 | 851 | } | |
853 | 852 | else throw("Strict value is not equal to itself.") | |
854 | 853 | } | |
855 | 854 | } | |
856 | 855 | else throw("Strict value is not equal to itself.") | |
857 | 856 | } | |
858 | 857 | ||
859 | 858 | ||
860 | - | func | |
859 | + | func gi () = { | |
861 | 860 | let aE = getString(U()) | |
862 | 861 | if ($isInstanceOf(aE, "String")) | |
863 | 862 | then { | |
864 | 863 | let dI = aE | |
865 | 864 | fromBase58String(dI) | |
866 | 865 | } | |
867 | 866 | else if ($isInstanceOf(aE, "Unit")) | |
868 | 867 | then unit | |
869 | 868 | else throw("Match error") | |
870 | 869 | } | |
871 | 870 | ||
872 | 871 | ||
873 | - | func | |
872 | + | func gj () = { | |
874 | 873 | let aE = getString(V()) | |
875 | 874 | if ($isInstanceOf(aE, "String")) | |
876 | 875 | then { | |
877 | 876 | let dI = aE | |
878 | 877 | fromBase58String(dI) | |
879 | 878 | } | |
880 | 879 | else if ($isInstanceOf(aE, "Unit")) | |
881 | 880 | then unit | |
882 | 881 | else throw("Match error") | |
883 | 882 | } | |
884 | 883 | ||
885 | 884 | ||
886 | - | let | |
885 | + | let gk = throw("Permission denied") | |
887 | 886 | ||
888 | - | func | |
889 | - | let aE = | |
887 | + | func gl (dV) = { | |
888 | + | let aE = gi() | |
890 | 889 | if ($isInstanceOf(aE, "ByteVector")) | |
891 | 890 | then { | |
892 | - | let | |
893 | - | (dV.callerPublicKey == | |
891 | + | let gm = aE | |
892 | + | (dV.callerPublicKey == gm) | |
894 | 893 | } | |
895 | 894 | else if ($isInstanceOf(aE, "Unit")) | |
896 | 895 | then (dV.caller == this) | |
897 | 896 | else throw("Match error") | |
898 | 897 | } | |
899 | 898 | ||
900 | 899 | ||
901 | - | func | |
902 | - | let aE = | |
900 | + | func gn (dV) = { | |
901 | + | let aE = gi() | |
903 | 902 | if ($isInstanceOf(aE, "ByteVector")) | |
904 | 903 | then { | |
905 | - | let | |
906 | - | if ((dV.callerPublicKey == | |
904 | + | let gm = aE | |
905 | + | if ((dV.callerPublicKey == gm)) | |
907 | 906 | then true | |
908 | - | else | |
907 | + | else gk | |
909 | 908 | } | |
910 | 909 | else if ($isInstanceOf(aE, "Unit")) | |
911 | 910 | then if ((dV.caller == this)) | |
912 | 911 | then true | |
913 | - | else | |
912 | + | else gk | |
914 | 913 | else throw("Match error") | |
915 | 914 | } | |
916 | 915 | ||
917 | 916 | ||
918 | 917 | @Callable(dV) | |
919 | 918 | func constructor (T) = { | |
920 | - | let ev = | |
919 | + | let ev = gn(dV) | |
921 | 920 | if ((ev == ev)) | |
922 | 921 | then [StringEntry(T(), T)] | |
923 | 922 | else throw("Strict value is not equal to itself.") | |
924 | 923 | } | |
925 | 924 | ||
926 | 925 | ||
927 | 926 | ||
928 | 927 | @Callable(dV) | |
929 | - | func setManager ( | |
930 | - | let ev = | |
928 | + | func setManager (go) = { | |
929 | + | let ev = gn(dV) | |
931 | 930 | if ((ev == ev)) | |
932 | 931 | then { | |
933 | - | let | |
934 | - | if (( | |
935 | - | then [StringEntry(V(), | |
932 | + | let gp = fromBase58String(go) | |
933 | + | if ((gp == gp)) | |
934 | + | then [StringEntry(V(), go)] | |
936 | 935 | else throw("Strict value is not equal to itself.") | |
937 | 936 | } | |
938 | 937 | else throw("Strict value is not equal to itself.") | |
939 | 938 | } | |
940 | 939 | ||
941 | 940 | ||
942 | 941 | ||
943 | 942 | @Callable(dV) | |
944 | 943 | func confirmManager () = { | |
945 | - | let cm = | |
946 | - | let | |
944 | + | let cm = gj() | |
945 | + | let gq = if (isDefined(cm)) | |
947 | 946 | then true | |
948 | 947 | else throw("No pending manager") | |
949 | - | if (( | |
948 | + | if ((gq == gq)) | |
950 | 949 | then { | |
951 | - | let | |
950 | + | let gr = if ((dV.callerPublicKey == value(cm))) | |
952 | 951 | then true | |
953 | 952 | else throw("You are not pending manager") | |
954 | - | if (( | |
953 | + | if ((gr == gr)) | |
955 | 954 | then [StringEntry(U(), toBase58String(value(cm))), DeleteEntry(V())] | |
956 | 955 | else throw("Strict value is not equal to itself.") | |
957 | 956 | } | |
958 | 957 | else throw("Strict value is not equal to itself.") | |
959 | 958 | } | |
960 | 959 | ||
961 | 960 | ||
962 | 961 | ||
963 | 962 | @Callable(dV) | |
964 | - | func put (gt | |
965 | - | let | |
966 | - | let | |
967 | - | let | |
968 | - | if ((0 > | |
963 | + | func put (gs,gt) = { | |
964 | + | let gu = bk() | |
965 | + | let gv = valueOrErrorMessage(addressFromString(gu[C]), "Wr st addr") | |
966 | + | let gw = valueOrErrorMessage(addressFromString(gu[E]), "Wr sl addr") | |
967 | + | if ((0 > gs)) | |
969 | 968 | then throw("Wrong slippage") | |
970 | 969 | else if ((size(dV.payments) != 2)) | |
971 | 970 | then throw("2 pmnts expd") | |
972 | 971 | else { | |
973 | - | let | |
974 | - | let | |
975 | - | let | |
976 | - | if (( | |
972 | + | let gx = toBigInt(value(dV.payments[0]).amount) | |
973 | + | let gy = toBigInt(value(dV.payments[1]).amount) | |
974 | + | let eO = eH(gx, gy, toBigInt(0)) | |
975 | + | if ((eO == eO)) | |
977 | 976 | then { | |
978 | - | let | |
979 | - | let dx = | |
980 | - | let | |
981 | - | let cO = | |
982 | - | let dy = | |
983 | - | let dz = | |
984 | - | let cw = | |
985 | - | let cx = | |
977 | + | let gz = fh(toString(dV.caller), toBase58String(dV.transactionId), AttachedPayment(value(dV.payments[0]).assetId, value(dV.payments[0]).amount), dV.payments[1], gs, true, false, true, 0, "") | |
978 | + | let dx = gz._2 | |
979 | + | let gA = gz._7 | |
980 | + | let cO = gz._9 | |
981 | + | let dy = gz._10 | |
982 | + | let dz = gz._11 | |
983 | + | let cw = gz._12 | |
984 | + | let cx = gz._13 | |
986 | 985 | let dk = invoke(aN, "emit", [dx], nil) | |
987 | 986 | if ((dk == dk)) | |
988 | 987 | then { | |
989 | - | let | |
988 | + | let gB = { | |
990 | 989 | let aE = dk | |
991 | 990 | if ($isInstanceOf(aE, "Address")) | |
992 | 991 | then { | |
993 | - | let | |
994 | - | invoke( | |
992 | + | let gC = aE | |
993 | + | invoke(gC, "emit", [dx], nil) | |
995 | 994 | } | |
996 | 995 | else unit | |
997 | 996 | } | |
998 | - | if (( | |
997 | + | if ((gB == gB)) | |
999 | 998 | then { | |
1000 | - | let | |
1001 | - | then invoke( | |
999 | + | let gD = if ((dy > 0)) | |
1000 | + | then invoke(gw, "put", nil, [AttachedPayment(cw, dy)]) | |
1002 | 1001 | else nil | |
1003 | - | if (( | |
1002 | + | if ((gD == gD)) | |
1004 | 1003 | then { | |
1005 | - | let | |
1006 | - | then invoke( | |
1004 | + | let gE = if ((dz > 0)) | |
1005 | + | then invoke(gw, "put", nil, [AttachedPayment(cx, dz)]) | |
1007 | 1006 | else nil | |
1008 | - | if (( | |
1007 | + | if ((gE == gE)) | |
1009 | 1008 | then { | |
1010 | - | let | |
1009 | + | let gF = if (gt) | |
1011 | 1010 | then { | |
1012 | - | let | |
1013 | - | if (( | |
1011 | + | let gG = invoke(gv, "stake", nil, [AttachedPayment(gA, dx)]) | |
1012 | + | if ((gG == gG)) | |
1014 | 1013 | then nil | |
1015 | 1014 | else throw("Strict value is not equal to itself.") | |
1016 | 1015 | } | |
1017 | - | else [ScriptTransfer(dV.caller, dx, | |
1018 | - | let | |
1019 | - | let | |
1020 | - | let | |
1021 | - | let | |
1022 | - | if (( | |
1023 | - | then ((cO ++ | |
1016 | + | else [ScriptTransfer(dV.caller, dx, gA)] | |
1017 | + | let gH = eP(0, 0, 0) | |
1018 | + | let gg = gH._1 | |
1019 | + | let eG = gH._2 | |
1020 | + | let gh = eT(eO, eG) | |
1021 | + | if ((gh == gh)) | |
1022 | + | then ((cO ++ gF) ++ gg) | |
1024 | 1023 | else throw("Strict value is not equal to itself.") | |
1025 | 1024 | } | |
1026 | 1025 | else throw("Strict value is not equal to itself.") | |
1027 | 1026 | } | |
1028 | 1027 | else throw("Strict value is not equal to itself.") | |
1029 | 1028 | } | |
1030 | 1029 | else throw("Strict value is not equal to itself.") | |
1031 | 1030 | } | |
1032 | 1031 | else throw("Strict value is not equal to itself.") | |
1033 | 1032 | } | |
1034 | 1033 | else throw("Strict value is not equal to itself.") | |
1035 | 1034 | } | |
1036 | 1035 | } | |
1037 | 1036 | ||
1038 | 1037 | ||
1039 | 1038 | ||
1040 | 1039 | @Callable(dV) | |
1041 | - | func putOneTknV2 ( | |
1042 | - | let | |
1043 | - | let | |
1044 | - | if ($isInstanceOf( | |
1045 | - | then | |
1046 | - | else throw(($getType( | |
1040 | + | func putOneTknV2 (fJ,gt) = { | |
1041 | + | let gI = { | |
1042 | + | let fR = invoke(aN, "isPoolOneTokenOperationsDisabledREADONLY", [toString(this)], nil) | |
1043 | + | if ($isInstanceOf(fR, "Boolean")) | |
1044 | + | then fR | |
1045 | + | else throw(($getType(fR) + " couldn't be cast to Boolean")) | |
1047 | 1046 | } | |
1048 | - | let | |
1047 | + | let gJ = if (if (if (aP()) | |
1049 | 1048 | then true | |
1050 | 1049 | else (be == q)) | |
1051 | 1050 | then true | |
1052 | 1051 | else (be == s)) | |
1053 | 1052 | then true | |
1054 | - | else | |
1055 | - | let | |
1053 | + | else gI | |
1054 | + | let gK = [if (if (!(gJ)) | |
1056 | 1055 | then true | |
1057 | - | else | |
1056 | + | else gl(dV)) | |
1058 | 1057 | then true | |
1059 | 1058 | else aK("put operation is blocked by admin"), if ((size(dV.payments) == 1)) | |
1060 | 1059 | then true | |
1061 | 1060 | else aK("exactly 1 payment are expected")] | |
1062 | - | if (( | |
1061 | + | if ((gK == gK)) | |
1063 | 1062 | then { | |
1064 | 1063 | let ba = aS() | |
1065 | 1064 | let cw = ba[w] | |
1066 | 1065 | let cx = ba[x] | |
1067 | 1066 | let cv = fromBase58String(ba[v]) | |
1068 | - | let | |
1069 | - | let | |
1067 | + | let fN = parseIntValue(ba[y]) | |
1068 | + | let fO = parseIntValue(ba[z]) | |
1070 | 1069 | let cu = if ((dV.caller == this)) | |
1071 | 1070 | then dV.originCaller | |
1072 | 1071 | else dV.caller | |
1073 | - | let | |
1074 | - | let cs = toBase58String(value( | |
1075 | - | let cY = | |
1076 | - | let | |
1077 | - | if (( | |
1072 | + | let fg = value(dV.payments[0]) | |
1073 | + | let cs = toBase58String(value(fg.assetId)) | |
1074 | + | let cY = fg.amount | |
1075 | + | let gL = fl(cY, cs, toString(cu), toBase58String(dV.transactionId), true) | |
1076 | + | if ((gL == gL)) | |
1078 | 1077 | then { | |
1079 | - | let cp = | |
1080 | - | let cO = | |
1081 | - | let | |
1082 | - | let dx = if (if (( | |
1083 | - | then ( | |
1078 | + | let cp = gL._3 | |
1079 | + | let cO = gL._2 | |
1080 | + | let gM = gL._1 | |
1081 | + | let dx = if (if ((fJ > 0)) | |
1082 | + | then (fJ > gM) | |
1084 | 1083 | else false) | |
1085 | - | then aK(makeString(["amount to receive is less than ", toString( | |
1086 | - | else | |
1087 | - | let | |
1088 | - | if (( | |
1084 | + | then aK(makeString(["amount to receive is less than ", toString(fJ)], "")) | |
1085 | + | else gM | |
1086 | + | let gz = invoke(aN, "emit", [dx], nil) | |
1087 | + | if ((gz == gz)) | |
1089 | 1088 | then { | |
1090 | - | let | |
1091 | - | let aE = | |
1089 | + | let gB = { | |
1090 | + | let aE = gz | |
1092 | 1091 | if ($isInstanceOf(aE, "Address")) | |
1093 | 1092 | then { | |
1094 | - | let | |
1095 | - | invoke( | |
1093 | + | let gC = aE | |
1094 | + | invoke(gC, "emit", [dx], nil) | |
1096 | 1095 | } | |
1097 | 1096 | else unit | |
1098 | 1097 | } | |
1099 | - | if (( | |
1098 | + | if ((gB == gB)) | |
1100 | 1099 | then { | |
1101 | - | let | |
1100 | + | let gF = if (gt) | |
1102 | 1101 | then { | |
1103 | - | let | |
1104 | - | if (( | |
1102 | + | let gG = invoke(bm, "stake", nil, [AttachedPayment(cv, dx)]) | |
1103 | + | if ((gG == gG)) | |
1105 | 1104 | then nil | |
1106 | 1105 | else throw("Strict value is not equal to itself.") | |
1107 | 1106 | } | |
1108 | 1107 | else [ScriptTransfer(dV.caller, dx, cv)] | |
1109 | - | let | |
1108 | + | let ga = if ((cp > 0)) | |
1110 | 1109 | then [ScriptTransfer(aR, cp, fromBase58String(cs))] | |
1111 | 1110 | else nil | |
1112 | - | let | |
1111 | + | let gN = if ((this == aR)) | |
1113 | 1112 | then $Tuple2(0, 0) | |
1114 | 1113 | else { | |
1115 | - | let | |
1114 | + | let gO = if ((fg.assetId == bg)) | |
1116 | 1115 | then true | |
1117 | 1116 | else false | |
1118 | - | if ( | |
1117 | + | if (gO) | |
1119 | 1118 | then $Tuple2(-(cp), 0) | |
1120 | 1119 | else $Tuple2(0, -(cp)) | |
1121 | 1120 | } | |
1122 | - | let | |
1123 | - | let | |
1124 | - | let | |
1125 | - | let | |
1126 | - | let | |
1127 | - | $Tuple2((((cO ++ | |
1121 | + | let eQ = gN._1 | |
1122 | + | let eR = gN._2 | |
1123 | + | let gP = eP(eQ, eR, 0) | |
1124 | + | let gg = gP._1 | |
1125 | + | let eG = gP._2 | |
1126 | + | $Tuple2((((cO ++ gF) ++ ga) ++ gg), dx) | |
1128 | 1127 | } | |
1129 | 1128 | else throw("Strict value is not equal to itself.") | |
1130 | 1129 | } | |
1131 | 1130 | else throw("Strict value is not equal to itself.") | |
1132 | 1131 | } | |
1133 | 1132 | else throw("Strict value is not equal to itself.") | |
1134 | 1133 | } | |
1135 | 1134 | else throw("Strict value is not equal to itself.") | |
1136 | 1135 | } | |
1137 | 1136 | ||
1138 | 1137 | ||
1139 | 1138 | ||
1140 | 1139 | @Callable(dV) | |
1141 | - | func putForFree ( | |
1140 | + | func putForFree (gQ) = if ((0 > gQ)) | |
1142 | 1141 | then throw("Wrong slpg") | |
1143 | 1142 | else if ((size(dV.payments) != 2)) | |
1144 | 1143 | then throw("2 pmnts expd") | |
1145 | 1144 | else { | |
1146 | - | let | |
1147 | - | let cO = | |
1148 | - | let | |
1149 | - | let | |
1150 | - | let | |
1151 | - | if (( | |
1145 | + | let gR = fh(toString(dV.caller), toBase58String(dV.transactionId), AttachedPayment(value(dV.payments[0]).assetId, value(dV.payments[0]).amount), dV.payments[1], gQ, false, false, true, 0, "") | |
1146 | + | let cO = gR._9 | |
1147 | + | let gx = toBigInt(value(dV.payments[0]).amount) | |
1148 | + | let gy = toBigInt(value(dV.payments[1]).amount) | |
1149 | + | let eO = eH(gx, gy, toBigInt(0)) | |
1150 | + | if ((eO == eO)) | |
1152 | 1151 | then { | |
1153 | - | let | |
1154 | - | let | |
1155 | - | let | |
1156 | - | let | |
1157 | - | if (( | |
1158 | - | then (cO ++ | |
1152 | + | let gS = eP(0, 0, 0) | |
1153 | + | let gg = gS._1 | |
1154 | + | let eG = gS._2 | |
1155 | + | let gh = eT(eO, eG) | |
1156 | + | if ((gh == gh)) | |
1157 | + | then (cO ++ gg) | |
1159 | 1158 | else throw("Strict value is not equal to itself.") | |
1160 | 1159 | } | |
1161 | 1160 | else throw("Strict value is not equal to itself.") | |
1162 | 1161 | } | |
1163 | 1162 | ||
1164 | 1163 | ||
1165 | 1164 | ||
1166 | 1165 | @Callable(dV) | |
1167 | 1166 | func get () = { | |
1168 | - | let dk = | |
1169 | - | let | |
1167 | + | let dk = ff(dV) | |
1168 | + | let gT = dk._1 | |
1170 | 1169 | let cN = dk._2 | |
1171 | 1170 | let cY = dk._3 | |
1172 | 1171 | let cs = dk._4 | |
1173 | 1172 | let cO = dk._5 | |
1174 | 1173 | let ew = invoke(aN, "burn", [cY], [AttachedPayment(cs, cY)]) | |
1175 | 1174 | if ((ew == ew)) | |
1176 | 1175 | then { | |
1177 | - | let | |
1178 | - | let | |
1179 | - | let | |
1180 | - | let | |
1181 | - | let | |
1182 | - | if (( | |
1183 | - | then (cO ++ | |
1176 | + | let eO = eH(toBigInt(0), toBigInt(0), toBigInt(cY)) | |
1177 | + | let gU = eP(-(gT), -(cN), 0) | |
1178 | + | let gg = gU._1 | |
1179 | + | let eG = gU._2 | |
1180 | + | let gh = eT(eO, eG) | |
1181 | + | if ((gh == gh)) | |
1182 | + | then (cO ++ gg) | |
1184 | 1183 | else throw("Strict value is not equal to itself.") | |
1185 | 1184 | } | |
1186 | 1185 | else throw("Strict value is not equal to itself.") | |
1187 | 1186 | } | |
1188 | 1187 | ||
1189 | 1188 | ||
1190 | 1189 | ||
1191 | 1190 | @Callable(dV) | |
1192 | - | func getOneTknV2 (fJ | |
1193 | - | let | |
1194 | - | let | |
1195 | - | if ($isInstanceOf( | |
1196 | - | then | |
1197 | - | else throw(($getType( | |
1191 | + | func getOneTknV2 (fI,fJ) = { | |
1192 | + | let gI = { | |
1193 | + | let fR = invoke(aN, "isPoolOneTokenOperationsDisabledREADONLY", [toString(this)], nil) | |
1194 | + | if ($isInstanceOf(fR, "Boolean")) | |
1195 | + | then fR | |
1196 | + | else throw(($getType(fR) + " couldn't be cast to Boolean")) | |
1198 | 1197 | } | |
1199 | - | let | |
1198 | + | let gV = if (if (aP()) | |
1200 | 1199 | then true | |
1201 | 1200 | else (be == s)) | |
1202 | 1201 | then true | |
1203 | - | else | |
1204 | - | let | |
1202 | + | else gI | |
1203 | + | let gK = [if (if (!(gV)) | |
1205 | 1204 | then true | |
1206 | - | else | |
1205 | + | else gl(dV)) | |
1207 | 1206 | then true | |
1208 | 1207 | else aK("get operation is blocked by admin"), if ((size(dV.payments) == 1)) | |
1209 | 1208 | then true | |
1210 | 1209 | else aK("exactly 1 payment are expected")] | |
1211 | - | if (( | |
1210 | + | if ((gK == gK)) | |
1212 | 1211 | then { | |
1213 | - | let | |
1214 | - | let cO = | |
1215 | - | let | |
1216 | - | $Tuple2(cO, | |
1212 | + | let gW = fH(fI, fJ, dV.payments, dV.caller, dV.originCaller, dV.transactionId) | |
1213 | + | let cO = gW._1 | |
1214 | + | let fT = gW._2 | |
1215 | + | $Tuple2(cO, fT) | |
1217 | 1216 | } | |
1218 | 1217 | else throw("Strict value is not equal to itself.") | |
1219 | 1218 | } | |
1220 | 1219 | ||
1221 | 1220 | ||
1222 | 1221 | ||
1223 | 1222 | @Callable(dV) | |
1224 | 1223 | func refreshDLp () = { | |
1225 | - | let | |
1226 | - | let | |
1224 | + | let gX = valueOrElse(getInteger(al), 0) | |
1225 | + | let gY = if (((height - gX) >= ao)) | |
1227 | 1226 | then unit | |
1228 | 1227 | else aK(makeString([toString(ao), " blocks have not passed since the previous call"], "")) | |
1229 | - | if (( | |
1228 | + | if ((gY == gY)) | |
1230 | 1229 | then { | |
1231 | - | let | |
1232 | - | let | |
1233 | - | let | |
1234 | - | let | |
1235 | - | let | |
1236 | - | then | |
1230 | + | let fa = valueOrErrorMessage(parseBigInt(valueOrElse(getString(this, ak), "0")), aM("invalid dLp")) | |
1231 | + | let gZ = eP(0, 0, 0) | |
1232 | + | let ha = gZ._1 | |
1233 | + | let eG = gZ._2 | |
1234 | + | let eS = if ((fa != eG)) | |
1235 | + | then ha | |
1237 | 1236 | else aK("nothing to refresh") | |
1238 | - | $Tuple2( | |
1237 | + | $Tuple2(eS, toString(eG)) | |
1239 | 1238 | } | |
1240 | 1239 | else throw("Strict value is not equal to itself.") | |
1241 | 1240 | } | |
1242 | 1241 | ||
1243 | 1242 | ||
1244 | 1243 | ||
1245 | 1244 | @Callable(dV) | |
1246 | - | func getOneTknV2READONLY ( | |
1245 | + | func getOneTknV2READONLY (fI,hb) = { | |
1247 | 1246 | let ba = aS() | |
1248 | 1247 | let cw = ba[w] | |
1249 | 1248 | let cx = ba[x] | |
1250 | 1249 | let cv = ba[v] | |
1251 | 1250 | let dF = [toBigInt(bF(cw)), toBigInt(bF(cx))] | |
1252 | 1251 | let eF = toBigInt(valueOrErrorMessage(assetInfo(fromBase58String(cv)), "invalid lp asset").quantity) | |
1253 | 1252 | let bS = dE(dF) | |
1254 | - | let bR = (bS - fraction(toBigInt( | |
1255 | - | let | |
1253 | + | let bR = (bS - fraction(toBigInt(hb), bS, eF)) | |
1254 | + | let hc = if ((fI == cw)) | |
1256 | 1255 | then 0 | |
1257 | - | else if (( | |
1256 | + | else if ((fI == cx)) | |
1258 | 1257 | then 1 | |
1259 | 1258 | else throw("invalid out asset id") | |
1260 | - | let | |
1261 | - | let | |
1262 | - | let | |
1263 | - | let | |
1264 | - | let | |
1265 | - | let cp = | |
1266 | - | $Tuple2(nil, $Tuple2( | |
1259 | + | let hd = es(dF, hc, bR) | |
1260 | + | let he = (dF[hc] - hd) | |
1261 | + | let hf = max([0, toInt((he - f))]) | |
1262 | + | let hg = cn(hf) | |
1263 | + | let fS = hg._1 | |
1264 | + | let cp = hg._2 | |
1265 | + | $Tuple2(nil, $Tuple2(fS, cp)) | |
1267 | 1266 | } | |
1268 | 1267 | ||
1269 | 1268 | ||
1270 | 1269 | ||
1271 | 1270 | @Callable(dV) | |
1272 | - | func getOneTknV2WithBonusREADONLY ( | |
1271 | + | func getOneTknV2WithBonusREADONLY (fI,hb) = { | |
1273 | 1272 | let ba = aS() | |
1274 | 1273 | let cw = ba[w] | |
1275 | 1274 | let cx = ba[x] | |
1276 | 1275 | let cv = ba[v] | |
1277 | 1276 | let cC = bF(cw) | |
1278 | 1277 | let cE = bF(cx) | |
1279 | - | let | |
1280 | - | let | |
1281 | - | if ($isInstanceOf( | |
1282 | - | then | |
1283 | - | else throw(($getType( | |
1278 | + | let hh = { | |
1279 | + | let fR = invoke(this, "getOneTknV2READONLY", [fI, hb], nil) | |
1280 | + | if ($isInstanceOf(fR, "(Int, Int)")) | |
1281 | + | then fR | |
1282 | + | else throw(($getType(fR) + " couldn't be cast to (Int, Int)")) | |
1284 | 1283 | } | |
1285 | - | let | |
1286 | - | let cp = | |
1287 | - | let dk = cq("", cv, | |
1284 | + | let fS = hh._1 | |
1285 | + | let cp = hh._2 | |
1286 | + | let dk = cq("", cv, hb, this) | |
1288 | 1287 | let cM = dk._1 | |
1289 | 1288 | let cN = dk._2 | |
1290 | - | let | |
1291 | - | let | |
1292 | - | then if (( | |
1289 | + | let hi = (cM + cN) | |
1290 | + | let fG = if ((hi == 0)) | |
1291 | + | then if ((fS == 0)) | |
1293 | 1292 | then 0 | |
1294 | 1293 | else throw("bonus calculation error") | |
1295 | - | else fraction(( | |
1296 | - | $Tuple2(nil, $Tuple3( | |
1294 | + | else fraction((fS - hi), a, hi) | |
1295 | + | $Tuple2(nil, $Tuple3(fS, cp, fG)) | |
1297 | 1296 | } | |
1298 | 1297 | ||
1299 | 1298 | ||
1300 | 1299 | ||
1301 | 1300 | @Callable(dV) | |
1302 | - | func getNoLess (hk | |
1303 | - | let dk = | |
1301 | + | func getNoLess (hj,hk) = { | |
1302 | + | let dk = ff(dV) | |
1304 | 1303 | let cM = dk._1 | |
1305 | 1304 | let cN = dk._2 | |
1306 | 1305 | let cY = dk._3 | |
1307 | 1306 | let cs = dk._4 | |
1308 | 1307 | let cO = dk._5 | |
1309 | - | if (( | |
1310 | - | then throw(((("Failed: " + toString(cM)) + " < ") + toString( | |
1311 | - | else if (( | |
1312 | - | then throw(((("Failed: " + toString(cN)) + " < ") + toString( | |
1308 | + | if ((hj > cM)) | |
1309 | + | then throw(((("Failed: " + toString(cM)) + " < ") + toString(hj))) | |
1310 | + | else if ((hk > cN)) | |
1311 | + | then throw(((("Failed: " + toString(cN)) + " < ") + toString(hk))) | |
1313 | 1312 | else { | |
1314 | - | let | |
1315 | - | let | |
1316 | - | if (( | |
1313 | + | let eO = eH(toBigInt(0), toBigInt(0), toBigInt(cY)) | |
1314 | + | let hl = invoke(aN, "burn", [cY], [AttachedPayment(cs, cY)]) | |
1315 | + | if ((hl == hl)) | |
1317 | 1316 | then { | |
1318 | - | let | |
1319 | - | let | |
1320 | - | let | |
1321 | - | let | |
1322 | - | if (( | |
1323 | - | then (cO ++ | |
1317 | + | let hm = eP(-(cM), -(cN), 0) | |
1318 | + | let gg = hm._1 | |
1319 | + | let eG = hm._2 | |
1320 | + | let gh = eT(eO, eG) | |
1321 | + | if ((gh == gh)) | |
1322 | + | then (cO ++ gg) | |
1324 | 1323 | else throw("Strict value is not equal to itself.") | |
1325 | 1324 | } | |
1326 | 1325 | else throw("Strict value is not equal to itself.") | |
1327 | 1326 | } | |
1328 | 1327 | } | |
1329 | 1328 | ||
1330 | 1329 | ||
1331 | 1330 | ||
1332 | 1331 | @Callable(dV) | |
1333 | 1332 | func unstakeAndGet (co) = { | |
1334 | - | let | |
1333 | + | let hn = if ((size(dV.payments) != 0)) | |
1335 | 1334 | then throw("No pmnts expd") | |
1336 | 1335 | else true | |
1337 | - | if (( | |
1336 | + | if ((hn == hn)) | |
1338 | 1337 | then { | |
1339 | 1338 | let ce = aS() | |
1340 | - | let | |
1341 | - | let | |
1342 | - | let | |
1343 | - | let | |
1344 | - | let | |
1345 | - | if (( | |
1339 | + | let ho = bk() | |
1340 | + | let gA = fromBase58String(ce[v]) | |
1341 | + | let hp = valueOrErrorMessage(addressFromString(ho[C]), "Wr st addr") | |
1342 | + | let eO = eH(toBigInt(0), toBigInt(0), toBigInt(0)) | |
1343 | + | let hq = invoke(hp, "unstake", [toBase58String(gA), co], nil) | |
1344 | + | if ((hq == hq)) | |
1346 | 1345 | then { | |
1347 | - | let dk = cq(toBase58String(dV.transactionId), toBase58String( | |
1346 | + | let dk = cq(toBase58String(dV.transactionId), toBase58String(gA), co, dV.caller) | |
1348 | 1347 | let cM = dk._1 | |
1349 | 1348 | let cN = dk._2 | |
1350 | 1349 | let cA = parseIntValue(dk._9) | |
1351 | 1350 | let cO = dk._10 | |
1352 | - | let | |
1351 | + | let hr = if (if (aP()) | |
1353 | 1352 | then true | |
1354 | 1353 | else (cA == s)) | |
1355 | 1354 | then throw(("Blocked: " + toString(cA))) | |
1356 | 1355 | else true | |
1357 | - | if (( | |
1356 | + | if ((hr == hr)) | |
1358 | 1357 | then { | |
1359 | - | let | |
1360 | - | if (( | |
1358 | + | let hs = invoke(aN, "burn", [co], [AttachedPayment(gA, co)]) | |
1359 | + | if ((hs == hs)) | |
1361 | 1360 | then { | |
1362 | - | let | |
1363 | - | let | |
1364 | - | let | |
1365 | - | let | |
1366 | - | if (( | |
1367 | - | then (cO ++ | |
1361 | + | let ht = eP(-(cM), -(cN), 0) | |
1362 | + | let gg = ht._1 | |
1363 | + | let eG = ht._2 | |
1364 | + | let gh = eT(eO, eG) | |
1365 | + | if ((gh == gh)) | |
1366 | + | then (cO ++ gg) | |
1368 | 1367 | else throw("Strict value is not equal to itself.") | |
1369 | 1368 | } | |
1370 | 1369 | else throw("Strict value is not equal to itself.") | |
1371 | 1370 | } | |
1372 | 1371 | else throw("Strict value is not equal to itself.") | |
1373 | 1372 | } | |
1374 | 1373 | else throw("Strict value is not equal to itself.") | |
1375 | 1374 | } | |
1376 | 1375 | else throw("Strict value is not equal to itself.") | |
1377 | 1376 | } | |
1378 | 1377 | ||
1379 | 1378 | ||
1380 | 1379 | ||
1381 | 1380 | @Callable(dV) | |
1382 | - | func unstakeAndGetNoLess (hv, | |
1383 | - | let | |
1381 | + | func unstakeAndGetNoLess (hu,hv,hk) = { | |
1382 | + | let gV = if (aP()) | |
1384 | 1383 | then true | |
1385 | 1384 | else (be == s) | |
1386 | - | let | |
1385 | + | let gK = [if (!(gV)) | |
1387 | 1386 | then true | |
1388 | 1387 | else throw("get operation is blocked by admin"), if ((size(dV.payments) == 0)) | |
1389 | 1388 | then true | |
1390 | 1389 | else throw("no payments are expected")] | |
1391 | - | if (( | |
1390 | + | if ((gK == gK)) | |
1392 | 1391 | then { | |
1393 | - | let | |
1394 | - | let | |
1395 | - | if (( | |
1392 | + | let eO = eH(toBigInt(0), toBigInt(0), toBigInt(0)) | |
1393 | + | let hq = invoke(bm, "unstake", [toBase58String(bf), hu], nil) | |
1394 | + | if ((hq == hq)) | |
1396 | 1395 | then { | |
1397 | - | let | |
1398 | - | let cM = | |
1399 | - | let cN = | |
1400 | - | let cO = | |
1401 | - | let | |
1396 | + | let hw = cq(toBase58String(dV.transactionId), toBase58String(bf), hu, dV.caller) | |
1397 | + | let cM = hw._1 | |
1398 | + | let cN = hw._2 | |
1399 | + | let cO = hw._10 | |
1400 | + | let hx = [if ((cM >= hv)) | |
1402 | 1401 | then true | |
1403 | - | else throw(makeString(["amount asset amount to receive is less than ", toString( | |
1402 | + | else throw(makeString(["amount asset amount to receive is less than ", toString(hv)], "")), if ((cN >= hk)) | |
1404 | 1403 | then true | |
1405 | - | else throw(makeString(["price asset amount to receive is less than ", toString( | |
1406 | - | if (( | |
1404 | + | else throw(makeString(["price asset amount to receive is less than ", toString(hk)], ""))] | |
1405 | + | if ((hx == hx)) | |
1407 | 1406 | then { | |
1408 | - | let | |
1409 | - | if (( | |
1407 | + | let hl = invoke(aN, "burn", [hu], [AttachedPayment(bf, hu)]) | |
1408 | + | if ((hl == hl)) | |
1410 | 1409 | then { | |
1411 | - | let | |
1412 | - | let | |
1413 | - | let | |
1414 | - | let | |
1415 | - | if (( | |
1416 | - | then (cO ++ | |
1410 | + | let hy = eP(-(cM), -(cN), 0) | |
1411 | + | let gg = hy._1 | |
1412 | + | let eG = hy._2 | |
1413 | + | let gh = eT(eO, eG) | |
1414 | + | if ((gh == gh)) | |
1415 | + | then (cO ++ gg) | |
1417 | 1416 | else throw("Strict value is not equal to itself.") | |
1418 | 1417 | } | |
1419 | 1418 | else throw("Strict value is not equal to itself.") | |
1420 | 1419 | } | |
1421 | 1420 | else throw("Strict value is not equal to itself.") | |
1422 | 1421 | } | |
1423 | 1422 | else throw("Strict value is not equal to itself.") | |
1424 | 1423 | } | |
1425 | 1424 | else throw("Strict value is not equal to itself.") | |
1426 | 1425 | } | |
1427 | 1426 | ||
1428 | 1427 | ||
1429 | 1428 | ||
1430 | 1429 | @Callable(dV) | |
1431 | - | func unstakeAndGetOneTknV2 ( | |
1432 | - | let | |
1433 | - | let | |
1434 | - | if ($isInstanceOf( | |
1435 | - | then | |
1436 | - | else throw(($getType( | |
1430 | + | func unstakeAndGetOneTknV2 (hu,fI,fJ) = { | |
1431 | + | let gI = { | |
1432 | + | let fR = invoke(aN, "isPoolOneTokenOperationsDisabledREADONLY", [toString(this)], nil) | |
1433 | + | if ($isInstanceOf(fR, "Boolean")) | |
1434 | + | then fR | |
1435 | + | else throw(($getType(fR) + " couldn't be cast to Boolean")) | |
1437 | 1436 | } | |
1438 | - | let | |
1437 | + | let gV = if (if (aP()) | |
1439 | 1438 | then true | |
1440 | 1439 | else (be == s)) | |
1441 | 1440 | then true | |
1442 | - | else | |
1443 | - | let | |
1441 | + | else gI | |
1442 | + | let gK = [if (if (!(gV)) | |
1444 | 1443 | then true | |
1445 | - | else | |
1444 | + | else gl(dV)) | |
1446 | 1445 | then true | |
1447 | 1446 | else aK("get operation is blocked by admin"), if ((size(dV.payments) == 0)) | |
1448 | 1447 | then true | |
1449 | 1448 | else aK("no payments are expected")] | |
1450 | - | if (( | |
1449 | + | if ((gK == gK)) | |
1451 | 1450 | then { | |
1452 | 1451 | let ce = aS() | |
1453 | - | let | |
1454 | - | let | |
1455 | - | let | |
1456 | - | let | |
1457 | - | if (( | |
1452 | + | let ho = bk() | |
1453 | + | let gA = fromBase58String(ce[v]) | |
1454 | + | let hp = valueOrErrorMessage(addressFromString(ho[C]), "Wr st addr") | |
1455 | + | let hq = invoke(hp, "unstake", [toBase58String(gA), hu], nil) | |
1456 | + | if ((hq == hq)) | |
1458 | 1457 | then { | |
1459 | - | let | |
1460 | - | let cO = | |
1461 | - | let | |
1462 | - | $Tuple2(cO, | |
1458 | + | let hz = fH(fI, fJ, [AttachedPayment(gA, hu)], dV.caller, dV.originCaller, dV.transactionId) | |
1459 | + | let cO = hz._1 | |
1460 | + | let fT = hz._2 | |
1461 | + | $Tuple2(cO, fT) | |
1463 | 1462 | } | |
1464 | 1463 | else throw("Strict value is not equal to itself.") | |
1465 | 1464 | } | |
1466 | 1465 | else throw("Strict value is not equal to itself.") | |
1467 | 1466 | } | |
1468 | 1467 | ||
1469 | 1468 | ||
1470 | 1469 | ||
1471 | 1470 | @Callable(dV) | |
1472 | - | func putOneTknV2WithBonusREADONLY (hB | |
1471 | + | func putOneTknV2WithBonusREADONLY (hA,hB) = { | |
1473 | 1472 | let ba = aS() | |
1474 | 1473 | let cw = ba[w] | |
1475 | 1474 | let cx = ba[x] | |
1476 | 1475 | let cv = ba[v] | |
1477 | - | let | |
1478 | - | let | |
1479 | - | let cO = | |
1480 | - | let cp = | |
1481 | - | let | |
1482 | - | $Tuple2(nil, $Tuple3( | |
1476 | + | let hC = fl(hA, hB, "", "", true) | |
1477 | + | let fB = hC._1 | |
1478 | + | let cO = hC._2 | |
1479 | + | let cp = hC._3 | |
1480 | + | let fG = hC._4 | |
1481 | + | $Tuple2(nil, $Tuple3(fB, cp, fG)) | |
1483 | 1482 | } | |
1484 | 1483 | ||
1485 | 1484 | ||
1486 | 1485 | ||
1487 | 1486 | @Callable(dV) | |
1488 | - | func putOneTknV2WithoutTakeFeeREADONLY (hB | |
1487 | + | func putOneTknV2WithoutTakeFeeREADONLY (hA,hB) = { | |
1489 | 1488 | let ba = aS() | |
1490 | 1489 | let cw = ba[w] | |
1491 | 1490 | let cx = ba[x] | |
1492 | 1491 | let cv = ba[v] | |
1493 | - | let | |
1494 | - | let | |
1495 | - | let cO = | |
1496 | - | let cp = | |
1497 | - | let | |
1498 | - | $Tuple2(nil, $Tuple3( | |
1492 | + | let hD = fl(hA, hB, "", "", false) | |
1493 | + | let fB = hD._1 | |
1494 | + | let cO = hD._2 | |
1495 | + | let cp = hD._3 | |
1496 | + | let fG = hD._4 | |
1497 | + | $Tuple2(nil, $Tuple3(fB, cp, fG)) | |
1499 | 1498 | } | |
1500 | 1499 | ||
1501 | 1500 | ||
1502 | 1501 | ||
1503 | 1502 | @Callable(dV) | |
1504 | - | func activate (hF | |
1503 | + | func activate (hE,hF) = if ((toString(dV.caller) != toString(aN))) | |
1505 | 1504 | then throw("denied") | |
1506 | - | else $Tuple2([StringEntry(ae(), | |
1505 | + | else $Tuple2([StringEntry(ae(), hE), StringEntry(af(), hF)], "success") | |
1507 | 1506 | ||
1508 | 1507 | ||
1509 | 1508 | ||
1510 | 1509 | @Callable(dV) | |
1511 | - | func setS ( | |
1512 | - | then | |
1513 | - | else [StringEntry( | |
1510 | + | func setS (hG,hr) = if ((toString(dV.caller) != aG(this, ah()))) | |
1511 | + | then gk | |
1512 | + | else [StringEntry(hG, hr)] | |
1514 | 1513 | ||
1515 | 1514 | ||
1516 | 1515 | ||
1517 | 1516 | @Callable(dV) | |
1518 | - | func setI ( | |
1519 | - | then | |
1520 | - | else [IntegerEntry( | |
1517 | + | func setI (hG,hr) = if ((toString(dV.caller) != aG(this, ah()))) | |
1518 | + | then gk | |
1519 | + | else [IntegerEntry(hG, hr)] | |
1521 | 1520 | ||
1522 | 1521 | ||
1523 | 1522 | ||
1524 | 1523 | @Callable(dV) | |
1525 | 1524 | func getPoolConfigWrapperREADONLY () = $Tuple2(nil, aS()) | |
1526 | 1525 | ||
1527 | 1526 | ||
1528 | 1527 | ||
1529 | 1528 | @Callable(dV) | |
1530 | 1529 | func getAccBalanceWrapperREADONLY (bG) = $Tuple2(nil, bF(bG)) | |
1531 | 1530 | ||
1532 | 1531 | ||
1533 | 1532 | ||
1534 | 1533 | @Callable(dV) | |
1535 | 1534 | func calcPricesWrapperREADONLY (bY,bZ,cd) = { | |
1536 | - | let | |
1537 | - | $Tuple2(nil, [toString( | |
1535 | + | let hH = cc(bY, bZ, cd) | |
1536 | + | $Tuple2(nil, [toString(hH[0]), toString(hH[1]), toString(hH[2])]) | |
1538 | 1537 | } | |
1539 | 1538 | ||
1540 | 1539 | ||
1541 | 1540 | ||
1542 | 1541 | @Callable(dV) | |
1543 | - | func fromX18WrapperREADONLY (L, | |
1542 | + | func fromX18WrapperREADONLY (L,hI) = $Tuple2(nil, K(parseBigIntValue(L), hI)) | |
1544 | 1543 | ||
1545 | 1544 | ||
1546 | 1545 | ||
1547 | 1546 | @Callable(dV) | |
1548 | 1547 | func toX18WrapperREADONLY (I,J) = $Tuple2(nil, toString(H(I, J))) | |
1549 | 1548 | ||
1550 | 1549 | ||
1551 | 1550 | ||
1552 | 1551 | @Callable(dV) | |
1553 | 1552 | func calcPriceBigIntWrapperREADONLY (bI,bJ) = $Tuple2(nil, toString(bH(parseBigIntValue(bI), parseBigIntValue(bJ)))) | |
1554 | 1553 | ||
1555 | 1554 | ||
1556 | 1555 | ||
1557 | 1556 | @Callable(dV) | |
1558 | - | func estimatePutOperationWrapperREADONLY (cr,bN,cQ,cR,cS,cT, | |
1557 | + | func estimatePutOperationWrapperREADONLY (cr,bN,cQ,cR,cS,cT,hJ,cU,cV) = $Tuple2(nil, cP(cr, bN, cQ, cR, cS, cT, hJ, cU, cV, true, false, 0, "")) | |
1559 | 1558 | ||
1560 | 1559 | ||
1561 | 1560 | ||
1562 | 1561 | @Callable(dV) | |
1563 | - | func estimateGetOperationWrapperREADONLY (cr, | |
1564 | - | let dk = cq(cr, | |
1562 | + | func estimateGetOperationWrapperREADONLY (cr,hK,ct,hJ) = { | |
1563 | + | let dk = cq(cr, hK, ct, addressFromStringValue(hJ)) | |
1565 | 1564 | $Tuple2(nil, $Tuple10(dk._1, dk._2, dk._3, dk._4, dk._5, dk._6, dk._7, toString(dk._8), dk._9, dk._10)) | |
1566 | 1565 | } | |
1567 | 1566 | ||
1568 | 1567 | ||
1569 | 1568 | ||
1570 | 1569 | @Callable(dV) | |
1571 | 1570 | func getFeeREADONLY () = $Tuple2(nil, aj) | |
1572 | 1571 | ||
1573 | 1572 | ||
1574 | - | @Verifier( | |
1575 | - | func | |
1576 | - | let | |
1577 | - | let aE = | |
1573 | + | @Verifier(hL) | |
1574 | + | func hM () = { | |
1575 | + | let hN = { | |
1576 | + | let aE = gi() | |
1578 | 1577 | if ($isInstanceOf(aE, "ByteVector")) | |
1579 | 1578 | then { | |
1580 | - | let | |
1581 | - | | |
1579 | + | let gm = aE | |
1580 | + | gm | |
1582 | 1581 | } | |
1583 | 1582 | else if ($isInstanceOf(aE, "Unit")) | |
1584 | - | then | |
1583 | + | then hL.senderPublicKey | |
1585 | 1584 | else throw("Match error") | |
1586 | 1585 | } | |
1587 | - | let aE = | |
1586 | + | let aE = hL | |
1588 | 1587 | if ($isInstanceOf(aE, "Order")) | |
1589 | 1588 | then { | |
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) | |
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) | |
1596 | 1597 | then hR | |
1597 | 1598 | else false) | |
1598 | - | then hS | |
1599 | - | else false) | |
1600 | 1599 | then true | |
1601 | - | else az(hQ, hR | |
1600 | + | else az(hP, hQ, hR) | |
1602 | 1601 | } | |
1603 | 1602 | else if ($isInstanceOf(aE, "SetScriptTransaction")) | |
1604 | 1603 | then { | |
1605 | 1604 | let dI = aE | |
1606 | - | let | |
1607 | - | let | |
1608 | - | let | |
1609 | - | if (if (( | |
1610 | - | then ( | |
1605 | + | let hS = blake2b256(value(dI.script)) | |
1606 | + | let hT = fromBase64String(value(getString(aN, ax()))) | |
1607 | + | let hU = scriptHash(this) | |
1608 | + | if (if ((hT == hS)) | |
1609 | + | then (hU != hS) | |
1611 | 1610 | else false) | |
1612 | 1611 | then true | |
1613 | - | else sigVerify( | |
1612 | + | else sigVerify(hL.bodyBytes, hL.proofs[0], hN) | |
1614 | 1613 | } | |
1615 | - | else sigVerify( | |
1614 | + | else sigVerify(hL.bodyBytes, hL.proofs[0], hN) | |
1616 | 1615 | } | |
1617 | 1616 |
github/deemru/w8io/026f985 344.93 ms ◑