tx · Aykfwr5jGhNU1JhkCPYo8TqJ3CeJcoZe7MeXSiyMnhgb 3MxWgDbE9EmjQj8b3LfFwa91FZizptyeQXS: -0.14000000 Waves 2022.10.24 16:06 [2286532] smart account 3MxWgDbE9EmjQj8b3LfFwa91FZizptyeQXS > SELF 0.00000000 Waves
{ "type": 13, "id": "Aykfwr5jGhNU1JhkCPYo8TqJ3CeJcoZe7MeXSiyMnhgb", "fee": 14000000, "feeAssetId": null, "timestamp": 1666616810525, "version": 2, "chainId": 84, "sender": "3MxWgDbE9EmjQj8b3LfFwa91FZizptyeQXS", "senderPublicKey": "C7xgcYqQ8qV8rmvzAjhQWq4cz82F6VJfXMNygvrTXsfW", "proofs": [ "5BZXzsSYq9yZD9Y2Uxc3H4ykVxPn5wUPMqtRW7gytH79Jn1omvsmQdSBFcx7QGMDeiQ8cfxzcT4C8QZqSYWGUGq9", "3AnhyBKhrqvBbai5RR9CGhEn1hQwdmfJanoQ1oPZDKfwcjZTKfbwxUUqSd4dTYA11cjASpFA5HCWLAESp36G4tiD" ], "script": "base64:BgJmCAISBAoCEQESBQoDCAEBEgUKAwEEARIECgIRCBIDCgEBEgYKBAgIAQgSBAoCCAESAwoBERIECgIRARIFCgMBCAgSBAoCCAESBQoDCAEBEgASABIECgIRBBIECgIBARIAEgASABIAWAAJUFJFQ0lTSU9OAMCEPQAFTUFYX0EAwIQ9AAxNQVhfQV9DSEFOR0UACgAIREVDSU1BTFMABgANTUlOX1JBTVBfVElNRQkAaQIAgKMFADwAB3ZlcnNpb24CBTMuMC4wAAhrVmVyc2lvbgIHdmVyc2lvbgAHa0Fzc2V0cwIJYXNzZXRfaWRzAA1rQXNzZXRCYWxhbmNlAghfYmFsYW5jZQAHa0FjdGl2ZQIGYWN0aXZlAAZrQ2F1c2UCDnNodXRkb3duX2NhdXNlAA1rU2hhcmVBc3NldElkAg5zaGFyZV9hc3NldF9pZAARa1NoYXJlQXNzZXRTdXBwbHkCEnNoYXJlX2Fzc2V0X3N1cHB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AFBHRoaXMJAAACCAUDaW52CGZ1bmN0aW9uAhl0YWtlSW50b0FjY291bnRFeHRyYUZ1bmRzBwQNc2lnbmVkQnlBZG1pbgMDAwkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAAUMYWRtaW5QdWJLZXkxBgkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAAUMYWRtaW5QdWJLZXkyBgkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAAUMYWRtaW5QdWJLZXkzBgkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAAURYWRtaW5QdWJLZXlJbnZva2UDAwUTY2FsbFRha2VJbnRvQWNjb3VudAUNc2lnbmVkQnlBZG1pbgcGBRNtdWx0aVNpZ25lZEJ5QWRtaW5zBRNtdWx0aVNpZ25lZEJ5QWRtaW5z1L0Ezw==", "height": 2286532, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 9GDJqh7tMaqmqFFHYGC89reXt68bGsNyNuufFpxj1mEp Next: H5nDHCAQYfWvdHmpwq6BAKet1aHwZp2YKtdkh8e4rTVo Diff:
Old | New | Differences | |
---|---|---|---|
736 | 736 | let bV = if ((Z == 0)) | |
737 | 737 | then 0 | |
738 | 738 | else bq(aW, ba) | |
739 | - | let cx = da.payments | |
740 | - | let dj = size(cx) | |
741 | - | func dk (dl) = if ((dj > ai)) | |
739 | + | let dj = if ((size(da.payments) > ai)) | |
740 | + | then $Tuple2(removeByIndex(da.payments, (size(da.payments) - 1)), [da.payments[(size(da.payments) - 1)]]) | |
741 | + | else $Tuple2(da.payments, nil) | |
742 | + | let cx = dj._1 | |
743 | + | let dk = dj._2 | |
744 | + | let dl = size(cx) | |
745 | + | func dm (dn) = if ((dl > ai)) | |
742 | 746 | then throw(("payments size > " + toString(ai))) | |
743 | - | else if ((1 > | |
747 | + | else if ((1 > dl)) | |
744 | 748 | then throw("payments size < 1") | |
745 | 749 | else if (if ((Z == 0)) | |
746 | - | then (ai != | |
750 | + | then (ai != dl) | |
747 | 751 | else false) | |
748 | 752 | then throw("initial deposit requires all coins") | |
749 | 753 | else { | |
750 | - | func | |
754 | + | func do (aM,cM) = if (containsElement(ah, ci(cM.assetId))) | |
751 | 755 | then true | |
752 | 756 | else throw("Invalid asset in payment") | |
753 | 757 | ||
756 | 760 | let aQ = false | |
757 | 761 | func aR (aS,aT) = if ((aT >= aP)) | |
758 | 762 | then aS | |
759 | - | else | |
763 | + | else do(aS, aO[aT]) | |
760 | 764 | ||
761 | 765 | func aU (aS,aT) = if ((aT >= aP)) | |
762 | 766 | then aS | |
765 | 769 | aU(aR(aR(aR(aR(aR(aR(aR(aR(aR(aR(aQ, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
766 | 770 | } | |
767 | 771 | ||
768 | - | if (!( | |
772 | + | if (!(dm(dl))) | |
769 | 773 | then throw() | |
770 | 774 | else { | |
771 | 775 | let cH = cD() | |
773 | 777 | then (cJ(cH._2) ++ cK(da.caller, cx)) | |
774 | 778 | else { | |
775 | 779 | func cL (aM,aN) = { | |
776 | - | let | |
777 | - | let cO = | |
778 | - | let ao = | |
779 | - | func | |
780 | - | then ( | |
781 | - | else | |
780 | + | let dp = aM | |
781 | + | let cO = dp._1 | |
782 | + | let ao = dp._2 | |
783 | + | func dq (dr,cM) = if ((ci(cM.assetId) == aN)) | |
784 | + | then (dr + cM.amount) | |
785 | + | else dr | |
782 | 786 | ||
783 | - | let | |
787 | + | let ds = { | |
784 | 788 | let aO = cx | |
785 | 789 | let aP = size(aO) | |
786 | 790 | let aQ = aW[ao] | |
787 | 791 | func aR (aS,aT) = if ((aT >= aP)) | |
788 | 792 | then aS | |
789 | - | else | |
793 | + | else dq(aS, aO[aT]) | |
790 | 794 | ||
791 | 795 | func aU (aS,aT) = if ((aT >= aP)) | |
792 | 796 | then aS | |
794 | 798 | ||
795 | 799 | aU(aR(aR(aR(aR(aR(aR(aR(aR(aR(aR(aQ, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
796 | 800 | } | |
797 | - | $Tuple2((cO :+ | |
801 | + | $Tuple2((cO :+ ds), (ao + 1)) | |
798 | 802 | } | |
799 | 803 | ||
800 | - | let | |
804 | + | let dt = { | |
801 | 805 | let aO = ah | |
802 | 806 | let aP = size(aO) | |
803 | 807 | let aQ = $Tuple2(nil, 0) | |
811 | 815 | ||
812 | 816 | aU(aR(aR(aR(aR(aR(aR(aR(aR(aR(aR(aQ, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
813 | 817 | } | |
814 | - | let cO = | |
815 | - | let | |
818 | + | let cO = dt._1 | |
819 | + | let du = dt._2 | |
816 | 820 | if (cN(cO)) | |
817 | 821 | then throw() | |
818 | 822 | else { | |
821 | 825 | then throw("D1 > D0") | |
822 | 826 | else { | |
823 | 827 | let bS = ax(da.caller) | |
824 | - | func | |
825 | - | let | |
826 | - | let | |
827 | - | let | |
828 | - | let ao = | |
828 | + | func dv (aM,dr) = { | |
829 | + | let dw = aM | |
830 | + | let dx = dw._1 | |
831 | + | let dy = dw._2 | |
832 | + | let ao = dw._3 | |
829 | 833 | if ((Z > 0)) | |
830 | 834 | then { | |
831 | 835 | let bT = ((fraction(ab, bS, aa, CEILING) * ai) / (4 * (ai - 1))) | |
832 | - | let | |
833 | - | let | |
834 | - | let | |
835 | - | then ( | |
836 | - | else ( | |
837 | - | fraction(bT, | |
836 | + | let dz = { | |
837 | + | let dA = fraction(bW, aW[ao], bV) | |
838 | + | let dB = if ((dA > dr)) | |
839 | + | then (dA - dr) | |
840 | + | else (dr - dA) | |
841 | + | fraction(bT, dB, aa) | |
838 | 842 | } | |
839 | - | let | |
840 | - | let | |
841 | - | let | |
842 | - | let | |
843 | - | let | |
844 | - | let | |
845 | - | then cm(( | |
846 | - | else cy( | |
847 | - | if (( | |
843 | + | let dC = fraction(dz, ac, aa) | |
844 | + | let dD = (dr - dz) | |
845 | + | let dE = (dr - dz) | |
846 | + | let dF = (dr - aW[ao]) | |
847 | + | let dG = (dz - dC) | |
848 | + | let dH = if ((dF > 0)) | |
849 | + | then cm((dF - dz), ah[ao]) | |
850 | + | else cy(dz, ah[ao]) | |
851 | + | if ((dH == dH)) | |
848 | 852 | then { | |
849 | - | let | |
850 | - | then invoke(U, "airDrop", nil, [AttachedPayment(fromBase58String(ah[ao]), | |
853 | + | let dI = if ((dG > 0)) | |
854 | + | then invoke(U, "airDrop", nil, [AttachedPayment(fromBase58String(ah[ao]), dG)]) | |
851 | 855 | else 0 | |
852 | - | if (( | |
853 | - | then $Tuple3(( | |
856 | + | if ((dI == dI)) | |
857 | + | then $Tuple3((dx :+ dE), (dy ++ [ScriptTransfer(P, dC, fromBase58String(ah[ao])), IntegerEntry((ah[ao] + i), dD)]), (ao + 1)) | |
854 | 858 | else throw("Strict value is not equal to itself.") | |
855 | 859 | } | |
856 | 860 | else throw("Strict value is not equal to itself.") | |
857 | 861 | } | |
858 | 862 | else { | |
859 | - | let | |
860 | - | if (( | |
861 | - | then $Tuple3(( | |
863 | + | let dH = cm(dr, ah[ao]) | |
864 | + | if ((dH == dH)) | |
865 | + | then $Tuple3((dx :+ dr), (dy :+ IntegerEntry((ah[ao] + i), dr)), (ao + 1)) | |
862 | 866 | else throw("Strict value is not equal to itself.") | |
863 | 867 | } | |
864 | 868 | } | |
865 | 869 | ||
866 | - | let | |
870 | + | let dJ = { | |
867 | 871 | let aO = cO | |
868 | 872 | let aP = size(aO) | |
869 | 873 | let aQ = $Tuple3(nil, nil, 0) | |
870 | 874 | func bl (aS,aT) = if ((aT >= aP)) | |
871 | 875 | then aS | |
872 | - | else | |
876 | + | else dv(aS, aO[aT]) | |
873 | 877 | ||
874 | 878 | func bm (aS,aT) = if ((aT >= aP)) | |
875 | 879 | then aS | |
877 | 881 | ||
878 | 882 | bm(bl(bl(bl(bl(bl(bl(bl(bl(bl(bl(aQ, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
879 | 883 | } | |
880 | - | let | |
881 | - | let | |
882 | - | let | |
883 | - | let | |
884 | + | let dx = dJ._1 | |
885 | + | let dy = dJ._2 | |
886 | + | let dK = bq(dx, ba) | |
887 | + | let dL = if ((Z == 0)) | |
884 | 888 | then bW | |
885 | - | else fraction(Z, ( | |
886 | - | if (av(( | |
889 | + | else fraction(Z, (dK - bV), bV) | |
890 | + | if (av((dL >= dg))) | |
887 | 891 | then throw("Slippage screwed you") | |
888 | 892 | else if (dh) | |
889 | 893 | then { | |
890 | - | let | |
891 | - | if (( | |
894 | + | let dM = invoke(this, "reissueShare", [dL], nil) | |
895 | + | if ((dM == dM)) | |
892 | 896 | then { | |
893 | - | let | |
894 | - | if (( | |
895 | - | then ( | |
897 | + | let dN = invoke(T, "lockShareTokens", [toString(this), di], ([AttachedPayment(Y, dL)] ++ dk)) | |
898 | + | if ((dN == dN)) | |
899 | + | then (dy :+ IntegerEntry(m, (Z + dL))) | |
896 | 900 | else throw("Strict value is not equal to itself.") | |
897 | 901 | } | |
898 | 902 | else throw("Strict value is not equal to itself.") | |
899 | 903 | } | |
900 | - | else ( | |
904 | + | else (dy ++ [Reissue(Y, dL, true), ScriptTransfer(da.caller, dL, Y), IntegerEntry(m, (Z + dL))]) | |
901 | 905 | } | |
902 | 906 | } | |
903 | 907 | } | |
916 | 920 | else { | |
917 | 921 | let bV = bq(aW, ba) | |
918 | 922 | let bS = ax(az) | |
919 | - | func | |
920 | - | let | |
921 | - | let | |
922 | - | let ao = | |
923 | + | func dO (aM,dr) = { | |
924 | + | let dP = aM | |
925 | + | let dx = dP._1 | |
926 | + | let ao = dP._2 | |
923 | 927 | let bT = ((fraction(ab, bS, aa, CEILING) * ai) / (4 * (ai - 1))) | |
924 | - | let | |
925 | - | let | |
926 | - | let | |
927 | - | then ( | |
928 | - | else ( | |
929 | - | fraction(bT, | |
928 | + | let dz = { | |
929 | + | let dA = fraction(bW, aW[ao], bV) | |
930 | + | let dB = if ((dA > dr)) | |
931 | + | then (dA - dr) | |
932 | + | else (dr - dA) | |
933 | + | fraction(bT, dB, aa) | |
930 | 934 | } | |
931 | - | let | |
932 | - | $Tuple2(( | |
935 | + | let dE = (dr - dz) | |
936 | + | $Tuple2((dx :+ dE), (ao + 1)) | |
933 | 937 | } | |
934 | 938 | ||
935 | - | let | |
939 | + | let dQ = { | |
936 | 940 | let aO = cO | |
937 | 941 | let aP = size(aO) | |
938 | 942 | let aQ = $Tuple2(nil, 0) | |
939 | 943 | func aR (aS,aT) = if ((aT >= aP)) | |
940 | 944 | then aS | |
941 | - | else | |
945 | + | else dO(aS, aO[aT]) | |
942 | 946 | ||
943 | 947 | func aU (aS,aT) = if ((aT >= aP)) | |
944 | 948 | then aS | |
946 | 950 | ||
947 | 951 | aU(aR(aR(aR(aR(aR(aR(aR(aR(aR(aR(aQ, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
948 | 952 | } | |
949 | - | let | |
950 | - | let | |
951 | - | let | |
952 | - | let | |
953 | - | $Tuple2(nil, | |
953 | + | let dx = dQ._1 | |
954 | + | let du = dQ._2 | |
955 | + | let dK = bq(dx, ba) | |
956 | + | let dR = fraction(Z, (dK - bV), bV) | |
957 | + | $Tuple2(nil, dR) | |
954 | 958 | } | |
955 | 959 | } | |
956 | 960 | ||
962 | 966 | ||
963 | 967 | ||
964 | 968 | @Callable(da) | |
965 | - | func getDy ( | |
969 | + | func getDy (dS,dT,dU,dV) = { | |
966 | 970 | let aW = aK() | |
967 | - | let | |
968 | - | let | |
969 | - | let bu = (aW[ | |
970 | - | let bH = br( | |
971 | - | let ch = ((aW[ | |
972 | - | let bS = ax(Address(fromBase58String( | |
971 | + | let dW = valueOrErrorMessage(indexOf(ah, dS), "unknown token in") | |
972 | + | let dX = valueOrErrorMessage(indexOf(ah, dT), "unknown token out") | |
973 | + | let bu = (aW[dW] + dU) | |
974 | + | let bH = br(dW, dX, bu, aW) | |
975 | + | let ch = ((aW[dX] - bH) - 1) | |
976 | + | let bS = ax(Address(fromBase58String(dV))) | |
973 | 977 | let bT = fraction(fraction(ab, bS, aa, CEILING), ch, aa) | |
974 | 978 | $Tuple2(nil, $Tuple2((ch - bT), bT)) | |
975 | 979 | } | |
977 | 981 | ||
978 | 982 | ||
979 | 983 | @Callable(da) | |
980 | - | func exchange ( | |
984 | + | func exchange (dY,dZ) = valueOrElse(am(), if ((size(da.payments) != 1)) | |
981 | 985 | then throw("size(payments) != 1") | |
982 | 986 | else { | |
983 | 987 | let cH = cD() | |
985 | 989 | then (cJ(cH._2) ++ cK(da.caller, da.payments)) | |
986 | 990 | else { | |
987 | 991 | let cM = da.payments[0] | |
988 | - | let | |
989 | - | let | |
990 | - | let | |
991 | - | let | |
992 | - | let | |
992 | + | let ea = ci(cM.assetId) | |
993 | + | let eb = fromBase58String(dY) | |
994 | + | let dU = cM.amount | |
995 | + | let dW = valueOrErrorMessage(indexOf(ah, ea), "unknown token in") | |
996 | + | let dX = valueOrErrorMessage(indexOf(ah, dY), "unknown token out") | |
993 | 997 | let aW = aK() | |
994 | - | let bu = (aW[ | |
995 | - | let bH = br( | |
996 | - | let | |
998 | + | let bu = (aW[dW] + dU) | |
999 | + | let bH = br(dW, dX, bu, aW) | |
1000 | + | let ec = ((aW[dX] - bH) - 1) | |
997 | 1001 | let bS = ax(da.originCaller) | |
998 | - | let bT = fraction( | |
999 | - | let ch = ( | |
1000 | - | let | |
1001 | - | if (av((ch >= | |
1002 | + | let bT = fraction(ec, fraction(ab, bS, aa, CEILING), aa) | |
1003 | + | let ch = (ec - bT) | |
1004 | + | let dC = fraction(bT, ac, aa) | |
1005 | + | if (av((ch >= dZ))) | |
1002 | 1006 | then throw("Exchange resulted in fewer coins than expected") | |
1003 | 1007 | else { | |
1004 | - | func | |
1005 | - | let | |
1006 | - | let cO = | |
1007 | - | let ao = | |
1008 | - | if ((ao == | |
1009 | - | then $Tuple2((cO :+ ( | |
1010 | - | else if ((ao == | |
1011 | - | then $Tuple2((cO :+ ( | |
1012 | - | else $Tuple2((cO :+ | |
1008 | + | func ed (aM,ee) = { | |
1009 | + | let ef = aM | |
1010 | + | let cO = ef._1 | |
1011 | + | let ao = ef._2 | |
1012 | + | if ((ao == dW)) | |
1013 | + | then $Tuple2((cO :+ (ee + dU)), (ao + 1)) | |
1014 | + | else if ((ao == dX)) | |
1015 | + | then $Tuple2((cO :+ (ee - ec)), (ao + 1)) | |
1016 | + | else $Tuple2((cO :+ ee), (ao + 1)) | |
1013 | 1017 | } | |
1014 | 1018 | ||
1015 | - | let | |
1019 | + | let eg = { | |
1016 | 1020 | let aO = aW | |
1017 | 1021 | let aP = size(aO) | |
1018 | 1022 | let aQ = $Tuple2(nil, 0) | |
1019 | 1023 | func aR (aS,aT) = if ((aT >= aP)) | |
1020 | 1024 | then aS | |
1021 | - | else | |
1025 | + | else ed(aS, aO[aT]) | |
1022 | 1026 | ||
1023 | 1027 | func aU (aS,aT) = if ((aT >= aP)) | |
1024 | 1028 | then aS | |
1026 | 1030 | ||
1027 | 1031 | aU(aR(aR(aR(aR(aR(aR(aR(aR(aR(aR(aQ, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
1028 | 1032 | } | |
1029 | - | let cO = | |
1030 | - | let ao = | |
1033 | + | let cO = eg._1 | |
1034 | + | let ao = eg._2 | |
1031 | 1035 | if (cN(cO)) | |
1032 | 1036 | then throw() | |
1033 | 1037 | else { | |
1034 | - | let | |
1035 | - | if (( | |
1038 | + | let dN = cm(cM.amount, ci(cM.assetId)) | |
1039 | + | if ((dN == dN)) | |
1036 | 1040 | then { | |
1037 | - | let | |
1038 | - | if (( | |
1041 | + | let eh = cy(ec, dY) | |
1042 | + | if ((eh == eh)) | |
1039 | 1043 | then { | |
1040 | - | let | |
1041 | - | let | |
1042 | - | then invoke(U, "airDrop", nil, [AttachedPayment( | |
1044 | + | let dG = (bT - dC) | |
1045 | + | let dI = if ((dG > 0)) | |
1046 | + | then invoke(U, "airDrop", nil, [AttachedPayment(eb, dG)]) | |
1043 | 1047 | else 0 | |
1044 | - | if (( | |
1045 | - | then $Tuple2([IntegerEntry(( | |
1048 | + | if ((dI == dI)) | |
1049 | + | then $Tuple2([IntegerEntry((ea + i), bu), IntegerEntry((dY + i), (aW[dX] - ec)), ScriptTransfer(da.caller, ch, eb), ScriptTransfer(P, dC, eb)], [ch, eb]) | |
1046 | 1050 | else throw("Strict value is not equal to itself.") | |
1047 | 1051 | } | |
1048 | 1052 | else throw("Strict value is not equal to itself.") | |
1056 | 1060 | ||
1057 | 1061 | ||
1058 | 1062 | @Callable(da) | |
1059 | - | func withdraw ( | |
1063 | + | func withdraw (ei) = valueOrElse(am(), if ((size(da.payments) != 1)) | |
1060 | 1064 | then throw("size(payments) != 1") | |
1061 | 1065 | else { | |
1062 | - | let | |
1063 | - | let | |
1064 | - | if ((Y != | |
1066 | + | let ej = da.payments[0].amount | |
1067 | + | let ek = da.payments[0].assetId | |
1068 | + | if ((Y != ek)) | |
1065 | 1069 | then throw("unknown payment token") | |
1066 | 1070 | else { | |
1067 | 1071 | let cH = cD() | |
1068 | 1072 | if (cH._1) | |
1069 | 1073 | then (cJ(cH._2) ++ cK(da.originCaller, da.payments)) | |
1070 | 1074 | else { | |
1071 | - | func | |
1072 | - | let | |
1073 | - | let | |
1074 | - | let ao = | |
1075 | - | let | |
1076 | - | if (av(( | |
1075 | + | func dv (aM,el) = { | |
1076 | + | let em = aM | |
1077 | + | let dy = em._1 | |
1078 | + | let ao = em._2 | |
1079 | + | let en = fraction(el, ej, Z) | |
1080 | + | if (av((en >= ei[ao]))) | |
1077 | 1081 | then throw("Withdrawal resulted in fewer coins than expected") | |
1078 | 1082 | else { | |
1079 | - | let | |
1080 | - | if (( | |
1081 | - | then $Tuple2(( | |
1083 | + | let eh = cy(en, ah[ao]) | |
1084 | + | if ((eh == eh)) | |
1085 | + | then $Tuple2((dy ++ [IntegerEntry((ah[ao] + i), (el - en)), ScriptTransfer(da.originCaller, en, fromBase58String(ah[ao]))]), (ao + 1)) | |
1082 | 1086 | else throw("Strict value is not equal to itself.") | |
1083 | 1087 | } | |
1084 | 1088 | } | |
1085 | 1089 | ||
1086 | - | let | |
1090 | + | let eo = { | |
1087 | 1091 | let aO = aK() | |
1088 | 1092 | let aP = size(aO) | |
1089 | 1093 | let aQ = $Tuple2(nil, 0) | |
1090 | 1094 | func aR (aS,aT) = if ((aT >= aP)) | |
1091 | 1095 | then aS | |
1092 | - | else | |
1096 | + | else dv(aS, aO[aT]) | |
1093 | 1097 | ||
1094 | 1098 | func aU (aS,aT) = if ((aT >= aP)) | |
1095 | 1099 | then aS | |
1097 | 1101 | ||
1098 | 1102 | aU(aR(aR(aR(aR(aR(aR(aR(aR(aR(aR(aQ, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
1099 | 1103 | } | |
1100 | - | let | |
1101 | - | let ao = | |
1102 | - | ( | |
1104 | + | let dy = eo._1 | |
1105 | + | let ao = eo._2 | |
1106 | + | (dy ++ [Burn(Y, ej), IntegerEntry(m, (Z - ej))]) | |
1103 | 1107 | } | |
1104 | 1108 | } | |
1105 | 1109 | }) | |
1107 | 1111 | ||
1108 | 1112 | ||
1109 | 1113 | @Callable(da) | |
1110 | - | func withdrawWithUnlock ( | |
1114 | + | func withdrawWithUnlock (ei,ep) = valueOrElse(am(), if ((0 >= ep)) | |
1111 | 1115 | then throw("Unlock amount must be positive") | |
1112 | 1116 | else { | |
1113 | 1117 | let cH = cD() | |
1114 | 1118 | if (cH._1) | |
1115 | 1119 | then (cJ(cH._2) ++ cK(da.caller, da.payments)) | |
1116 | 1120 | else { | |
1117 | - | let | |
1121 | + | let ej = if ((size(da.payments) > 0)) | |
1118 | 1122 | then if ((size(da.payments) != 1)) | |
1119 | 1123 | then throw("size(payments) != 1") | |
1120 | 1124 | else { | |
1121 | - | let | |
1122 | - | if ((Y != | |
1125 | + | let ek = da.payments[0].assetId | |
1126 | + | if ((Y != ek)) | |
1123 | 1127 | then throw("unknown payment token") | |
1124 | 1128 | else da.payments[0].amount | |
1125 | 1129 | } | |
1126 | 1130 | else 0 | |
1127 | - | let | |
1128 | - | if (( | |
1131 | + | let eq = invoke(T, "withdrawShareTokens", [toString(this), ep], nil) | |
1132 | + | if ((eq == eq)) | |
1129 | 1133 | then { | |
1130 | - | let | |
1131 | - | let | |
1132 | - | if (( | |
1134 | + | let er = (ej + ep) | |
1135 | + | let dH = invoke(this, "withdraw", [ei], [AttachedPayment(Y, er)]) | |
1136 | + | if ((dH == dH)) | |
1133 | 1137 | then nil | |
1134 | 1138 | else throw("Strict value is not equal to itself.") | |
1135 | 1139 | } | |
1140 | 1144 | ||
1141 | 1145 | ||
1142 | 1146 | @Callable(da) | |
1143 | - | func calcWithdrawOneCoin ( | |
1147 | + | func calcWithdrawOneCoin (es,dY,az) = if ((0 >= es)) | |
1144 | 1148 | then throw("Amount must be positive") | |
1145 | 1149 | else { | |
1146 | - | let ao = valueOrErrorMessage(indexOf(ah, | |
1147 | - | $Tuple2(nil, bP(aK(), | |
1150 | + | let ao = valueOrErrorMessage(indexOf(ah, dY), "unknown token out") | |
1151 | + | $Tuple2(nil, bP(aK(), es, ao, Address(fromBase58String(az)))._1) | |
1148 | 1152 | } | |
1149 | 1153 | ||
1150 | 1154 | ||
1151 | 1155 | ||
1152 | 1156 | @Callable(da) | |
1153 | - | func withdrawOneCoin ( | |
1157 | + | func withdrawOneCoin (dY,et) = valueOrElse(am(), if ((size(da.payments) != 1)) | |
1154 | 1158 | then throw("size(payments) != 1") | |
1155 | 1159 | else { | |
1156 | 1160 | let cH = cD() | |
1157 | 1161 | if (cH._1) | |
1158 | 1162 | then (cJ(cH._2) ++ cK(da.originCaller, da.payments)) | |
1159 | 1163 | else { | |
1160 | - | let | |
1161 | - | let | |
1162 | - | if (( | |
1164 | + | let ej = da.payments[0].amount | |
1165 | + | let ek = da.payments[0].assetId | |
1166 | + | if ((ek != Y)) | |
1163 | 1167 | then throw("unknown token") | |
1164 | 1168 | else { | |
1165 | - | let | |
1166 | - | let | |
1169 | + | let eu = valueOrErrorMessage(indexOf(ah, dY), "unknown token out") | |
1170 | + | let eb = fromBase58String(dY) | |
1167 | 1171 | let aW = aK() | |
1168 | - | let | |
1169 | - | let ch = | |
1170 | - | let | |
1171 | - | if (av((ch >= | |
1172 | + | let ev = bP(aW, ej, eu, da.originCaller) | |
1173 | + | let ch = ev._1 | |
1174 | + | let ew = ev._2 | |
1175 | + | if (av((ch >= et))) | |
1172 | 1176 | then throw("Not enough coins removed") | |
1173 | 1177 | else { | |
1174 | - | let | |
1175 | - | let | |
1176 | - | func | |
1177 | - | let | |
1178 | - | let cO = | |
1179 | - | let ao = | |
1180 | - | if ((ao == | |
1181 | - | then $Tuple2((cO :+ ( | |
1182 | - | else $Tuple2((cO :+ | |
1178 | + | let dC = fraction(ew, ac, aa) | |
1179 | + | let ex = (ch + ew) | |
1180 | + | func ed (aM,ee) = { | |
1181 | + | let ey = aM | |
1182 | + | let cO = ey._1 | |
1183 | + | let ao = ey._2 | |
1184 | + | if ((ao == eu)) | |
1185 | + | then $Tuple2((cO :+ (ee - ex)), (ao + 1)) | |
1186 | + | else $Tuple2((cO :+ ee), (ao + 1)) | |
1183 | 1187 | } | |
1184 | 1188 | ||
1185 | - | let | |
1189 | + | let ez = { | |
1186 | 1190 | let aO = aW | |
1187 | 1191 | let aP = size(aO) | |
1188 | 1192 | let aQ = $Tuple2(nil, 0) | |
1189 | 1193 | func aR (aS,aT) = if ((aT >= aP)) | |
1190 | 1194 | then aS | |
1191 | - | else | |
1195 | + | else ed(aS, aO[aT]) | |
1192 | 1196 | ||
1193 | 1197 | func aU (aS,aT) = if ((aT >= aP)) | |
1194 | 1198 | then aS | |
1196 | 1200 | ||
1197 | 1201 | aU(aR(aR(aR(aR(aR(aR(aR(aR(aR(aR(aQ, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
1198 | 1202 | } | |
1199 | - | let cO = | |
1200 | - | let | |
1203 | + | let cO = ez._1 | |
1204 | + | let eA = ez._2 | |
1201 | 1205 | if (cN(cO)) | |
1202 | 1206 | then throw() | |
1203 | 1207 | else { | |
1204 | - | let | |
1205 | - | if (( | |
1208 | + | let eh = cy(ex, dY) | |
1209 | + | if ((eh == eh)) | |
1206 | 1210 | then { | |
1207 | - | let | |
1208 | - | let | |
1209 | - | then invoke(U, "airDrop", nil, [AttachedPayment( | |
1211 | + | let dG = (ew - dC) | |
1212 | + | let dI = if ((dG > 0)) | |
1213 | + | then invoke(U, "airDrop", nil, [AttachedPayment(eb, dG)]) | |
1210 | 1214 | else 0 | |
1211 | - | if (( | |
1212 | - | then [ScriptTransfer(da.originCaller, ch, | |
1215 | + | if ((dI == dI)) | |
1216 | + | then [ScriptTransfer(da.originCaller, ch, eb), IntegerEntry((ah[eu] + i), (aW[eu] - ex)), Burn(Y, ej), ScriptTransfer(P, dC, eb), IntegerEntry(m, (Z - ej))] | |
1213 | 1217 | else throw("Strict value is not equal to itself.") | |
1214 | 1218 | } | |
1215 | 1219 | else throw("Strict value is not equal to itself.") | |
1222 | 1226 | ||
1223 | 1227 | ||
1224 | 1228 | @Callable(da) | |
1225 | - | func withdrawOneCoinWithUnlock ( | |
1229 | + | func withdrawOneCoinWithUnlock (dY,et,ep) = valueOrElse(am(), if ((0 >= ep)) | |
1226 | 1230 | then throw("Unlock amount must be positive") | |
1227 | 1231 | else { | |
1228 | 1232 | let cH = cD() | |
1229 | 1233 | if (cH._1) | |
1230 | 1234 | then (cJ(cH._2) ++ cK(da.caller, da.payments)) | |
1231 | 1235 | else { | |
1232 | - | let | |
1236 | + | let ej = if ((size(da.payments) > 0)) | |
1233 | 1237 | then if ((size(da.payments) != 1)) | |
1234 | 1238 | then throw("size(payments) != 1") | |
1235 | 1239 | else { | |
1236 | - | let | |
1237 | - | if ((Y != | |
1240 | + | let ek = da.payments[0].assetId | |
1241 | + | if ((Y != ek)) | |
1238 | 1242 | then throw("unknown payment token") | |
1239 | 1243 | else da.payments[0].amount | |
1240 | 1244 | } | |
1241 | 1245 | else 0 | |
1242 | - | let | |
1243 | - | if (( | |
1246 | + | let eq = invoke(T, "withdrawShareTokens", [toString(this), ep], nil) | |
1247 | + | if ((eq == eq)) | |
1244 | 1248 | then { | |
1245 | - | let | |
1246 | - | let | |
1247 | - | if (( | |
1249 | + | let er = (ej + ep) | |
1250 | + | let dH = invoke(this, "withdrawOneCoin", [dY, et], [AttachedPayment(Y, er)]) | |
1251 | + | if ((dH == dH)) | |
1248 | 1252 | then nil | |
1249 | 1253 | else throw("Strict value is not equal to itself.") | |
1250 | 1254 | } | |
1268 | 1272 | ||
1269 | 1273 | ||
1270 | 1274 | @Callable(da) | |
1271 | - | func calcTokenAmount ( | |
1275 | + | func calcTokenAmount (eB,eC) = { | |
1272 | 1276 | let ba = aF() | |
1273 | - | let | |
1274 | - | let bV = bq( | |
1275 | - | func | |
1276 | - | let | |
1277 | - | let cO = | |
1278 | - | let ao = | |
1279 | - | let | |
1280 | - | then | |
1281 | - | else -( | |
1282 | - | $Tuple2((cO :+ | |
1277 | + | let eD = aK() | |
1278 | + | let bV = bq(eD, ba) | |
1279 | + | func eE (aM,el) = { | |
1280 | + | let eF = aM | |
1281 | + | let cO = eF._1 | |
1282 | + | let ao = eF._2 | |
1283 | + | let dr = (el + (if (eC) | |
1284 | + | then eB[ao] | |
1285 | + | else -(eB[ao]))) | |
1286 | + | $Tuple2((cO :+ dr), (ao + 1)) | |
1283 | 1287 | } | |
1284 | 1288 | ||
1285 | - | let cO = ( let aO = | |
1289 | + | let cO = ( let aO = eD | |
1286 | 1290 | let aP = size(aO) | |
1287 | 1291 | let aQ = $Tuple2(nil, 0) | |
1288 | 1292 | func aR (aS,aT) = if ((aT >= aP)) | |
1289 | 1293 | then aS | |
1290 | - | else | |
1294 | + | else eE(aS, aO[aT]) | |
1291 | 1295 | ||
1292 | 1296 | func aU (aS,aT) = if ((aT >= aP)) | |
1293 | 1297 | then aS | |
1295 | 1299 | ||
1296 | 1300 | aU(aR(aR(aR(aR(aR(aR(aR(aR(aR(aR(aQ, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10))._1 | |
1297 | 1301 | let bW = bq(cO, ba) | |
1298 | - | let | |
1302 | + | let eG = if (eC) | |
1299 | 1303 | then (bW - bV) | |
1300 | 1304 | else (bV - bW) | |
1301 | - | $Tuple2(nil, fraction( | |
1305 | + | $Tuple2(nil, fraction(eG, Z, bV)) | |
1302 | 1306 | } | |
1303 | 1307 | ||
1304 | 1308 | ||
1305 | 1309 | ||
1306 | 1310 | @Callable(da) | |
1307 | - | func rampA ( | |
1311 | + | func rampA (eH,eI) = valueOrElse(am(), valueOrElse(an(da), if (av((au >= (af + e)))) | |
1308 | 1312 | then throw("too often") | |
1309 | - | else if (av(( | |
1313 | + | else if (av((eI >= (au + e)))) | |
1310 | 1314 | then throw("insufficient time") | |
1311 | 1315 | else { | |
1312 | - | let | |
1313 | - | if (av(if (( | |
1314 | - | then (b > | |
1316 | + | let eJ = aF() | |
1317 | + | if (av(if ((eH > 0)) | |
1318 | + | then (b > eH) | |
1315 | 1319 | else false)) | |
1316 | 1320 | then throw("out of base range") | |
1317 | - | else if (av(if (if (( | |
1318 | - | then (( | |
1321 | + | else if (av(if (if ((eH >= eJ)) | |
1322 | + | then ((eJ * c) >= eH) | |
1319 | 1323 | else false) | |
1320 | 1324 | then true | |
1321 | - | else if (( | |
1322 | - | then (( | |
1325 | + | else if ((eJ > eH)) | |
1326 | + | then ((eH * c) >= eJ) | |
1323 | 1327 | else false)) | |
1324 | 1328 | then throw("out of range") | |
1325 | - | else [IntegerEntry("initial_A", | |
1329 | + | else [IntegerEntry("initial_A", eJ), IntegerEntry("future_A", eH), IntegerEntry("initial_A_time", au), IntegerEntry("future_A_time", eI)] | |
1326 | 1330 | })) | |
1327 | 1331 | ||
1328 | 1332 | ||
1329 | 1333 | ||
1330 | 1334 | @Callable(da) | |
1331 | 1335 | func stopRampA () = valueOrElse(am(), valueOrElse(an(da), { | |
1332 | - | let | |
1333 | - | [IntegerEntry("initial_A", | |
1336 | + | let eK = aF() | |
1337 | + | [IntegerEntry("initial_A", eK), IntegerEntry("future_A", eK), IntegerEntry("initial_A_time", au), IntegerEntry("future_A_time", au)] | |
1334 | 1338 | })) | |
1335 | 1339 | ||
1336 | 1340 | ||
1353 | 1357 | func takeIntoAccountExtraFunds () = valueOrElse(am(), if ((da.caller != P)) | |
1354 | 1358 | then throw("Only the wallet can call this function") | |
1355 | 1359 | else { | |
1356 | - | let | |
1357 | - | func | |
1358 | - | let | |
1359 | - | let | |
1360 | - | let ao = | |
1361 | - | let | |
1362 | - | let | |
1363 | - | let | |
1364 | - | if ((0 > | |
1360 | + | let eD = aK() | |
1361 | + | func eL (aM,aN) = { | |
1362 | + | let eM = aM | |
1363 | + | let eN = eM._1 | |
1364 | + | let ao = eM._2 | |
1365 | + | let eO = fromBase58String(aN) | |
1366 | + | let eP = (assetBalance(this, eO) + cA(eO)) | |
1367 | + | let eQ = (eP - eD[ao]) | |
1368 | + | if ((0 > eQ)) | |
1365 | 1369 | then aj(("Enroll amount negative for asset" + aN)) | |
1366 | 1370 | else { | |
1367 | - | let | |
1368 | - | then invoke(U, "airDrop", nil, [AttachedPayment( | |
1371 | + | let dI = if ((eQ > 0)) | |
1372 | + | then invoke(U, "airDrop", nil, [AttachedPayment(eO, eQ)]) | |
1369 | 1373 | else 0 | |
1370 | - | if (( | |
1371 | - | then $Tuple2(( | |
1374 | + | if ((dI == dI)) | |
1375 | + | then $Tuple2((eN + eQ), (ao + 1)) | |
1372 | 1376 | else throw("Strict value is not equal to itself.") | |
1373 | 1377 | } | |
1374 | 1378 | } | |
1375 | 1379 | ||
1376 | - | let | |
1380 | + | let du = { | |
1377 | 1381 | let aO = ah | |
1378 | 1382 | let aP = size(aO) | |
1379 | 1383 | let aQ = $Tuple2(0, 0) | |
1380 | 1384 | func aR (aS,aT) = if ((aT >= aP)) | |
1381 | 1385 | then aS | |
1382 | - | else | |
1386 | + | else eL(aS, aO[aT]) | |
1383 | 1387 | ||
1384 | 1388 | func aU (aS,aT) = if ((aT >= aP)) | |
1385 | 1389 | then aS | |
1387 | 1391 | ||
1388 | 1392 | aU(aR(aR(aR(aR(aR(aR(aR(aR(aR(aR(aQ, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
1389 | 1393 | } | |
1390 | - | if (( | |
1394 | + | if ((du._1 == 0)) | |
1391 | 1395 | then throw("No money to take") | |
1392 | 1396 | else nil | |
1393 | 1397 | }) | |
1394 | 1398 | ||
1395 | 1399 | ||
1396 | - | @Verifier( | |
1397 | - | func | |
1398 | - | let | |
1399 | - | let | |
1400 | + | @Verifier(eR) | |
1401 | + | func eS () = { | |
1402 | + | let eT = { | |
1403 | + | let eU = if (sigVerify(eR.bodyBytes, eR.proofs[0], L)) | |
1400 | 1404 | then 1 | |
1401 | 1405 | else 0 | |
1402 | - | let | |
1406 | + | let eV = if (sigVerify(eR.bodyBytes, eR.proofs[1], M)) | |
1403 | 1407 | then 1 | |
1404 | 1408 | else 0 | |
1405 | - | let | |
1409 | + | let eW = if (sigVerify(eR.bodyBytes, eR.proofs[2], N)) | |
1406 | 1410 | then 1 | |
1407 | 1411 | else 0 | |
1408 | - | ((( | |
1412 | + | (((eU + eV) + eW) >= 2) | |
1409 | 1413 | } | |
1410 | - | let I = | |
1414 | + | let I = eR | |
1411 | 1415 | if ($isInstanceOf(I, "InvokeScriptTransaction")) | |
1412 | 1416 | then { | |
1413 | - | let | |
1414 | - | let | |
1415 | - | then ( | |
1417 | + | let dH = I | |
1418 | + | let eX = if ((dH.dApp == this)) | |
1419 | + | then (dH.function == "takeIntoAccountExtraFunds") | |
1416 | 1420 | else false | |
1417 | - | let | |
1421 | + | let eY = if (if (if (sigVerify(eR.bodyBytes, eR.proofs[0], L)) | |
1418 | 1422 | then true | |
1419 | - | else sigVerify( | |
1423 | + | else sigVerify(eR.bodyBytes, eR.proofs[0], M)) | |
1420 | 1424 | then true | |
1421 | - | else sigVerify( | |
1425 | + | else sigVerify(eR.bodyBytes, eR.proofs[0], N)) | |
1422 | 1426 | then true | |
1423 | - | else sigVerify( | |
1424 | - | if (if ( | |
1425 | - | then | |
1427 | + | else sigVerify(eR.bodyBytes, eR.proofs[0], O) | |
1428 | + | if (if (eX) | |
1429 | + | then eY | |
1426 | 1430 | else false) | |
1427 | 1431 | then true | |
1428 | - | else | |
1432 | + | else eT | |
1429 | 1433 | } | |
1430 | - | else | |
1434 | + | else eT | |
1431 | 1435 | } | |
1432 | 1436 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = 1000000 | |
5 | 5 | ||
6 | 6 | let b = 1000000 | |
7 | 7 | ||
8 | 8 | let c = 10 | |
9 | 9 | ||
10 | 10 | let d = 6 | |
11 | 11 | ||
12 | 12 | let e = (86400 / 60) | |
13 | 13 | ||
14 | 14 | let f = "3.0.0" | |
15 | 15 | ||
16 | 16 | let g = "version" | |
17 | 17 | ||
18 | 18 | let h = "asset_ids" | |
19 | 19 | ||
20 | 20 | let i = "_balance" | |
21 | 21 | ||
22 | 22 | let j = "active" | |
23 | 23 | ||
24 | 24 | let k = "shutdown_cause" | |
25 | 25 | ||
26 | 26 | let l = "share_asset_id" | |
27 | 27 | ||
28 | 28 | let m = "share_asset_supply" | |
29 | 29 | ||
30 | 30 | let n = "commission" | |
31 | 31 | ||
32 | 32 | let o = "dAppThresholdCoef" | |
33 | 33 | ||
34 | 34 | let p = "staking_usdnnsbt_address" | |
35 | 35 | ||
36 | 36 | let q = "discounts" | |
37 | 37 | ||
38 | 38 | let r = "discount_values" | |
39 | 39 | ||
40 | 40 | let s = "_SWOP_amount" | |
41 | 41 | ||
42 | 42 | let t = "_GSwop_amount" | |
43 | 43 | ||
44 | 44 | let u = "admin_pub_1" | |
45 | 45 | ||
46 | 46 | let v = "admin_pub_2" | |
47 | 47 | ||
48 | 48 | let w = "admin_pub_3" | |
49 | 49 | ||
50 | 50 | let x = "admin_invoke_pub" | |
51 | 51 | ||
52 | 52 | let y = "money_box_address" | |
53 | 53 | ||
54 | 54 | let z = "governance_address" | |
55 | 55 | ||
56 | 56 | let B = "voting_address" | |
57 | 57 | ||
58 | 58 | let C = "farming_address" | |
59 | 59 | ||
60 | 60 | let E = "lp_farming" | |
61 | 61 | ||
62 | 62 | let F = Address(base58'3MvVBtsXroQpy1tsPw21TU2ET9A8WfmrNjz') | |
63 | 63 | ||
64 | 64 | func G (H) = { | |
65 | 65 | let I = getString(F, H) | |
66 | 66 | if ($isInstanceOf(I, "String")) | |
67 | 67 | then { | |
68 | 68 | let J = I | |
69 | 69 | fromBase58String(J) | |
70 | 70 | } | |
71 | 71 | else { | |
72 | 72 | let K = I | |
73 | 73 | throw((H + "is empty")) | |
74 | 74 | } | |
75 | 75 | } | |
76 | 76 | ||
77 | 77 | ||
78 | 78 | let L = G(u) | |
79 | 79 | ||
80 | 80 | let M = G(v) | |
81 | 81 | ||
82 | 82 | let N = G(w) | |
83 | 83 | ||
84 | 84 | let O = G(x) | |
85 | 85 | ||
86 | 86 | let P = Address(G(y)) | |
87 | 87 | ||
88 | 88 | let Q = Address(G(z)) | |
89 | 89 | ||
90 | 90 | let R = Address(G(p)) | |
91 | 91 | ||
92 | 92 | let S = Address(G(B)) | |
93 | 93 | ||
94 | 94 | let T = Address(G(C)) | |
95 | 95 | ||
96 | 96 | let U = Address(G(E)) | |
97 | 97 | ||
98 | 98 | let V = base58'DG2xFkPdDwKUoBkzGAhQtLpSGzfXLiCYPEzeKH2Ad24p' | |
99 | 99 | ||
100 | 100 | let W = [toBase58String(V)] | |
101 | 101 | ||
102 | 102 | let X = getBooleanValue(this, j) | |
103 | 103 | ||
104 | 104 | let Y = fromBase58String(getStringValue(this, l)) | |
105 | 105 | ||
106 | 106 | let Z = getIntegerValue(this, m) | |
107 | 107 | ||
108 | 108 | let aa = 1000000 | |
109 | 109 | ||
110 | 110 | let ab = getIntegerValue(this, n) | |
111 | 111 | ||
112 | 112 | let ac = fraction(40, aa, 100) | |
113 | 113 | ||
114 | 114 | let ad = getIntegerValue(this, "initial_A") | |
115 | 115 | ||
116 | 116 | let ae = getIntegerValue(this, "future_A") | |
117 | 117 | ||
118 | 118 | let af = valueOrElse(getInteger(this, "initial_A_time"), 0) | |
119 | 119 | ||
120 | 120 | let ag = valueOrElse(getInteger(this, "future_A_time"), 0) | |
121 | 121 | ||
122 | 122 | let ah = split(getStringValue(this, h), ",") | |
123 | 123 | ||
124 | 124 | let ai = size(ah) | |
125 | 125 | ||
126 | 126 | func aj (ak) = [BooleanEntry(j, false), StringEntry(k, ak)] | |
127 | 127 | ||
128 | 128 | ||
129 | 129 | func al () = throw("DApp is already active") | |
130 | 130 | ||
131 | 131 | ||
132 | 132 | func am () = if (X) | |
133 | 133 | then unit | |
134 | 134 | else throw("DApp is inactive at this moment") | |
135 | 135 | ||
136 | 136 | ||
137 | 137 | func an (ao) = if (containsElement([L, M, N], ao.callerPublicKey)) | |
138 | 138 | then unit | |
139 | 139 | else throw("Only admin can call this function") | |
140 | 140 | ||
141 | 141 | ||
142 | 142 | func ap (ao) = if ((this == ao.caller)) | |
143 | 143 | then unit | |
144 | 144 | else throw("Only contract itself can call this function") | |
145 | 145 | ||
146 | 146 | ||
147 | 147 | let aq = toBigInt(2) | |
148 | 148 | ||
149 | 149 | let ar = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] | |
150 | 150 | ||
151 | 151 | let as = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14] | |
152 | 152 | ||
153 | 153 | let at = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15] | |
154 | 154 | ||
155 | 155 | let au = height | |
156 | 156 | ||
157 | 157 | func av (aw) = if (aw) | |
158 | 158 | then false | |
159 | 159 | else true | |
160 | 160 | ||
161 | 161 | ||
162 | 162 | func ax (ay) = { | |
163 | 163 | let az = { | |
164 | 164 | let I = ay | |
165 | 165 | if ($isInstanceOf(I, "Address")) | |
166 | 166 | then { | |
167 | 167 | let aA = I | |
168 | 168 | toString(aA) | |
169 | 169 | } | |
170 | 170 | else if ($isInstanceOf(I, "String")) | |
171 | 171 | then { | |
172 | 172 | let aA = I | |
173 | 173 | aA | |
174 | 174 | } | |
175 | 175 | else throw("Unknow type of user Addr") | |
176 | 176 | } | |
177 | 177 | let aB = valueOrElse(getInteger(Q, (az + t)), 0) | |
178 | 178 | let aC = valueOrElse(getInteger(Q, (az + t)), aB) | |
179 | 179 | let aD = split(getStringValue(F, r), ",") | |
180 | 180 | let aE = split(getStringValue(F, q), ",") | |
181 | 181 | if (if ((aC >= parseIntValue(aD[0]))) | |
182 | 182 | then (parseIntValue(aD[1]) > aC) | |
183 | 183 | else false) | |
184 | 184 | then (aa - parseIntValue(aE[0])) | |
185 | 185 | else if (if ((aC >= parseIntValue(aD[1]))) | |
186 | 186 | then (parseIntValue(aD[2]) > aC) | |
187 | 187 | else false) | |
188 | 188 | then (aa - parseIntValue(aE[1])) | |
189 | 189 | else if (if ((aC >= parseIntValue(aD[2]))) | |
190 | 190 | then (parseIntValue(aD[3]) > aC) | |
191 | 191 | else false) | |
192 | 192 | then (aa - parseIntValue(aE[2])) | |
193 | 193 | else if (if ((aC >= parseIntValue(aD[3]))) | |
194 | 194 | then (parseIntValue(aD[4]) > aC) | |
195 | 195 | else false) | |
196 | 196 | then (aa - parseIntValue(aE[3])) | |
197 | 197 | else if ((aC >= parseIntValue(aD[4]))) | |
198 | 198 | then (aa - parseIntValue(aE[4])) | |
199 | 199 | else aa | |
200 | 200 | } | |
201 | 201 | ||
202 | 202 | ||
203 | 203 | func aF () = { | |
204 | 204 | let aG = ag | |
205 | 205 | let aH = ae | |
206 | 206 | if ((aG > au)) | |
207 | 207 | then { | |
208 | 208 | let aI = ad | |
209 | 209 | let aJ = af | |
210 | 210 | if ((aH > aI)) | |
211 | 211 | then (aI + (((aH - aI) * (au - aJ)) / (aG - aJ))) | |
212 | 212 | else (aI - (((aI - aH) * (au - aJ)) / (aG - aJ))) | |
213 | 213 | } | |
214 | 214 | else aH | |
215 | 215 | } | |
216 | 216 | ||
217 | 217 | ||
218 | 218 | func aK () = { | |
219 | 219 | func aL (aM,aN) = (aM :+ valueOrElse(getInteger(this, (aN + i)), 0)) | |
220 | 220 | ||
221 | 221 | let aO = ah | |
222 | 222 | let aP = size(aO) | |
223 | 223 | let aQ = nil | |
224 | 224 | func aR (aS,aT) = if ((aT >= aP)) | |
225 | 225 | then aS | |
226 | 226 | else aL(aS, aO[aT]) | |
227 | 227 | ||
228 | 228 | func aU (aS,aT) = if ((aT >= aP)) | |
229 | 229 | then aS | |
230 | 230 | else throw("List size exceeds 10") | |
231 | 231 | ||
232 | 232 | aU(aR(aR(aR(aR(aR(aR(aR(aR(aR(aR(aQ, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
233 | 233 | } | |
234 | 234 | ||
235 | 235 | ||
236 | 236 | func aV (aW) = aW | |
237 | 237 | ||
238 | 238 | ||
239 | 239 | func aX (aM,aY) = (aM + aY) | |
240 | 240 | ||
241 | 241 | ||
242 | 242 | func aZ (aW,ba) = { | |
243 | 243 | let bb = invoke(this, "D", [aW, ba], nil) | |
244 | 244 | if ($isInstanceOf(bb, "Int")) | |
245 | 245 | then bb | |
246 | 246 | else throw(($getType(bb) + " couldn't be cast to Int")) | |
247 | 247 | } | |
248 | 248 | ||
249 | 249 | ||
250 | 250 | func bc (aW,ba) = { | |
251 | 251 | let bd = { | |
252 | 252 | let aO = aW | |
253 | 253 | let aP = size(aO) | |
254 | 254 | let aQ = 0 | |
255 | 255 | func aR (aS,aT) = if ((aT >= aP)) | |
256 | 256 | then aS | |
257 | 257 | else aX(aS, aO[aT]) | |
258 | 258 | ||
259 | 259 | func aU (aS,aT) = if ((aT >= aP)) | |
260 | 260 | then aS | |
261 | 261 | else throw("List size exceeds 10") | |
262 | 262 | ||
263 | 263 | aU(aR(aR(aR(aR(aR(aR(aR(aR(aR(aR(aQ, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
264 | 264 | } | |
265 | 265 | if ((bd == 0)) | |
266 | 266 | then 0 | |
267 | 267 | else { | |
268 | 268 | let be = (ba * ai) | |
269 | 269 | let bf = (toBigInt(be) * toBigInt(bd)) | |
270 | 270 | let bg = toBigInt((be - 1)) | |
271 | 271 | func bh (aM,ao) = if ((aM._2 == true)) | |
272 | 272 | then aM | |
273 | 273 | else { | |
274 | 274 | let bi = aM._1 | |
275 | 275 | func bj (bk,ao) = if ((ai > ao)) | |
276 | 276 | then ((bk * bi) / (toBigInt(aW[ao]) * toBigInt(ai))) | |
277 | 277 | else bk | |
278 | 278 | ||
279 | 279 | let bk = { | |
280 | 280 | let aO = ar | |
281 | 281 | let aP = size(aO) | |
282 | 282 | let aQ = bi | |
283 | 283 | func bl (aS,aT) = if ((aT >= aP)) | |
284 | 284 | then aS | |
285 | 285 | else bj(aS, aO[aT]) | |
286 | 286 | ||
287 | 287 | func bm (aS,aT) = if ((aT >= aP)) | |
288 | 288 | then aS | |
289 | 289 | else throw("List size exceeds 10") | |
290 | 290 | ||
291 | 291 | bm(bl(bl(bl(bl(bl(bl(bl(bl(bl(bl(aQ, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
292 | 292 | } | |
293 | 293 | let bn = fraction((bf + (toBigInt(ai) * bk)), bi, ((bg * bi) + (toBigInt((ai + 1)) * bk))) | |
294 | 294 | if ((bn > bi)) | |
295 | 295 | then if ((1 >= toInt((bn - bi)))) | |
296 | 296 | then $Tuple2(bn, true) | |
297 | 297 | else $Tuple2(bn, false) | |
298 | 298 | else if ((1 >= toInt((bi - bn)))) | |
299 | 299 | then $Tuple2(bn, true) | |
300 | 300 | else $Tuple2(bn, false) | |
301 | 301 | } | |
302 | 302 | ||
303 | 303 | let bo = { | |
304 | 304 | let aO = as | |
305 | 305 | let aP = size(aO) | |
306 | 306 | let aQ = $Tuple2(toBigInt(bd), false) | |
307 | 307 | func bl (aS,aT) = if ((aT >= aP)) | |
308 | 308 | then aS | |
309 | 309 | else bh(aS, aO[aT]) | |
310 | 310 | ||
311 | 311 | func bm (aS,aT) = if ((aT >= aP)) | |
312 | 312 | then aS | |
313 | 313 | else throw("List size exceeds 15") | |
314 | 314 | ||
315 | 315 | bm(bl(bl(bl(bl(bl(bl(bl(bl(bl(bl(bl(bl(bl(bl(bl(aQ, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15) | |
316 | 316 | } | |
317 | 317 | let bn = bo._1 | |
318 | 318 | let bp = bo._2 | |
319 | 319 | if ((bp == false)) | |
320 | 320 | then throw(("get_D() not finished with " + toString(bn))) | |
321 | 321 | else toInt(bn) | |
322 | 322 | } | |
323 | 323 | } | |
324 | 324 | ||
325 | 325 | ||
326 | 326 | func bq (aW,ba) = aZ(aV(aW), ba) | |
327 | 327 | ||
328 | 328 | ||
329 | 329 | func br (bs,bt,bu,bv) = if (av((bs != bt))) | |
330 | 330 | then throw("same coin") | |
331 | 331 | else if (av(if ((bt >= 0)) | |
332 | 332 | then (bs >= 0) | |
333 | 333 | else false)) | |
334 | 334 | then throw("below zero") | |
335 | 335 | else if (av(if ((ai > bt)) | |
336 | 336 | then (ai > bs) | |
337 | 337 | else false)) | |
338 | 338 | then throw("above N_COINS") | |
339 | 339 | else { | |
340 | 340 | let ba = aF() | |
341 | 341 | let bn = aZ(bv, ba) | |
342 | 342 | let be = (ba * ai) | |
343 | 343 | func bw (aM,ao) = { | |
344 | 344 | let bx = aM | |
345 | 345 | let by = bx._1 | |
346 | 346 | let bz = bx._2 | |
347 | 347 | let bA = if ((bs == ao)) | |
348 | 348 | then bu | |
349 | 349 | else bv[ao] | |
350 | 350 | if (if ((ao != bt)) | |
351 | 351 | then (ai > ao) | |
352 | 352 | else false) | |
353 | 353 | then $Tuple2((by + bA), fraction(bz, toBigInt(bn), toBigInt((bA * ai)))) | |
354 | 354 | else $Tuple2(by, bz) | |
355 | 355 | } | |
356 | 356 | ||
357 | 357 | let bB = { | |
358 | 358 | let aO = ar | |
359 | 359 | let aP = size(aO) | |
360 | 360 | let aQ = $Tuple2(0, toBigInt(bn)) | |
361 | 361 | func aR (aS,aT) = if ((aT >= aP)) | |
362 | 362 | then aS | |
363 | 363 | else bw(aS, aO[aT]) | |
364 | 364 | ||
365 | 365 | func aU (aS,aT) = if ((aT >= aP)) | |
366 | 366 | then aS | |
367 | 367 | else throw("List size exceeds 10") | |
368 | 368 | ||
369 | 369 | aU(aR(aR(aR(aR(aR(aR(aR(aR(aR(aR(aQ, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
370 | 370 | } | |
371 | 371 | let by = bB._1 | |
372 | 372 | let bC = bB._2 | |
373 | 373 | let bz = fraction(bC, toBigInt(bn), toBigInt((be * ai))) | |
374 | 374 | let bD = toBigInt(((by + (bn / be)) - bn)) | |
375 | 375 | func bE (aM,bF) = if ((aM._2 == true)) | |
376 | 376 | then aM | |
377 | 377 | else { | |
378 | 378 | let bG = aM._1 | |
379 | 379 | let bH = (((bG * bG) + bz) / ((aq * bG) + bD)) | |
380 | 380 | if ((bH > bG)) | |
381 | 381 | then if ((1 >= toInt((bH - bG)))) | |
382 | 382 | then $Tuple2(bH, true) | |
383 | 383 | else $Tuple2(bH, false) | |
384 | 384 | else if ((1 >= toInt((bG - bH)))) | |
385 | 385 | then $Tuple2(bH, true) | |
386 | 386 | else $Tuple2(bH, false) | |
387 | 387 | } | |
388 | 388 | ||
389 | 389 | let bI = { | |
390 | 390 | let aO = at | |
391 | 391 | let aP = size(aO) | |
392 | 392 | let aQ = $Tuple2(toBigInt(bn), false) | |
393 | 393 | func bl (aS,aT) = if ((aT >= aP)) | |
394 | 394 | then aS | |
395 | 395 | else bE(aS, aO[aT]) | |
396 | 396 | ||
397 | 397 | func bm (aS,aT) = if ((aT >= aP)) | |
398 | 398 | then aS | |
399 | 399 | else throw("List size exceeds 16") | |
400 | 400 | ||
401 | 401 | bm(bl(bl(bl(bl(bl(bl(bl(bl(bl(bl(bl(bl(bl(bl(bl(bl(aQ, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16) | |
402 | 402 | } | |
403 | 403 | let bH = bI._1 | |
404 | 404 | let bp = bI._2 | |
405 | 405 | if ((bp == false)) | |
406 | 406 | then throw(("getY() not finished with " + toString(bH))) | |
407 | 407 | else toInt(bH) | |
408 | 408 | } | |
409 | 409 | ||
410 | 410 | ||
411 | 411 | func bJ (bK,bs,aW,bn) = if (av((bs >= 0))) | |
412 | 412 | then throw("i below zero") | |
413 | 413 | else if (av((ai > bs))) | |
414 | 414 | then throw("i above N_COINS") | |
415 | 415 | else { | |
416 | 416 | let be = (bK * ai) | |
417 | 417 | func bw (aM,ao) = { | |
418 | 418 | let bL = aM | |
419 | 419 | let by = bL._1 | |
420 | 420 | let bz = bL._2 | |
421 | 421 | let bA = if (if ((bs != ao)) | |
422 | 422 | then (ai > ao) | |
423 | 423 | else false) | |
424 | 424 | then aW[ao] | |
425 | 425 | else 0 | |
426 | 426 | if (if ((ai > ao)) | |
427 | 427 | then (bs != ao) | |
428 | 428 | else false) | |
429 | 429 | then $Tuple2((by + bA), fraction(bz, toBigInt(bn), toBigInt((bA * ai)))) | |
430 | 430 | else $Tuple2(by, bz) | |
431 | 431 | } | |
432 | 432 | ||
433 | 433 | let bM = { | |
434 | 434 | let aO = ar | |
435 | 435 | let aP = size(aO) | |
436 | 436 | let aQ = $Tuple2(0, toBigInt(bn)) | |
437 | 437 | func aR (aS,aT) = if ((aT >= aP)) | |
438 | 438 | then aS | |
439 | 439 | else bw(aS, aO[aT]) | |
440 | 440 | ||
441 | 441 | func aU (aS,aT) = if ((aT >= aP)) | |
442 | 442 | then aS | |
443 | 443 | else throw("List size exceeds 10") | |
444 | 444 | ||
445 | 445 | aU(aR(aR(aR(aR(aR(aR(aR(aR(aR(aR(aQ, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
446 | 446 | } | |
447 | 447 | let by = bM._1 | |
448 | 448 | let bC = bM._2 | |
449 | 449 | let bz = fraction(bC, toBigInt(bn), toBigInt((be * ai))) | |
450 | 450 | let bD = toBigInt(((by + (bn / be)) - bn)) | |
451 | 451 | func bN (aM,ao) = if ((aM._2 == true)) | |
452 | 452 | then aM | |
453 | 453 | else { | |
454 | 454 | let bG = aM._1 | |
455 | 455 | let bH = (((bG * bG) + bz) / ((aq * bG) + bD)) | |
456 | 456 | if ((bH > bG)) | |
457 | 457 | then if ((1 >= toInt((bH - bG)))) | |
458 | 458 | then $Tuple2(bH, true) | |
459 | 459 | else $Tuple2(bH, false) | |
460 | 460 | else if ((1 >= toInt((bG - bH)))) | |
461 | 461 | then $Tuple2(bH, true) | |
462 | 462 | else $Tuple2(bH, false) | |
463 | 463 | } | |
464 | 464 | ||
465 | 465 | let bO = { | |
466 | 466 | let aO = at | |
467 | 467 | let aP = size(aO) | |
468 | 468 | let aQ = $Tuple2(toBigInt(bn), false) | |
469 | 469 | func bl (aS,aT) = if ((aT >= aP)) | |
470 | 470 | then aS | |
471 | 471 | else bN(aS, aO[aT]) | |
472 | 472 | ||
473 | 473 | func bm (aS,aT) = if ((aT >= aP)) | |
474 | 474 | then aS | |
475 | 475 | else throw("List size exceeds 16") | |
476 | 476 | ||
477 | 477 | bm(bl(bl(bl(bl(bl(bl(bl(bl(bl(bl(bl(bl(bl(bl(bl(bl(aQ, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16) | |
478 | 478 | } | |
479 | 479 | let bH = bO._1 | |
480 | 480 | let bp = bO._2 | |
481 | 481 | if ((bp == false)) | |
482 | 482 | then throw(("get_y_D() not finished with " + toString(bH))) | |
483 | 483 | else toInt(bH) | |
484 | 484 | } | |
485 | 485 | ||
486 | 486 | ||
487 | 487 | func bP (aW,bQ,ao,bR) = { | |
488 | 488 | let bS = ax(bR) | |
489 | 489 | let ba = aF() | |
490 | 490 | let bT = ((fraction(ab, bS, aa, CEILING) * ai) / (4 * (ai - 1))) | |
491 | 491 | let bU = Z | |
492 | 492 | let bV = aZ(aW, ba) | |
493 | 493 | let bW = (bV - fraction(bQ, bV, bU)) | |
494 | 494 | let bX = bJ(ba, ao, aW, bW) | |
495 | 495 | let bY = (aW[ao] - bX) | |
496 | 496 | func bZ (aM,ca) = { | |
497 | 497 | let cb = aM | |
498 | 498 | let cc = cb._1 | |
499 | 499 | let cd = cb._2 | |
500 | 500 | let ce = if ((cd == ao)) | |
501 | 501 | then (fraction(ca, bW, bV) - bX) | |
502 | 502 | else (ca - fraction(ca, bW, bV)) | |
503 | 503 | $Tuple2((cc :+ (ca - fraction(bT, ce, aa))), (cd + 1)) | |
504 | 504 | } | |
505 | 505 | ||
506 | 506 | let cf = { | |
507 | 507 | let aO = aW | |
508 | 508 | let aP = size(aO) | |
509 | 509 | let aQ = $Tuple2(nil, 0) | |
510 | 510 | func aR (aS,aT) = if ((aT >= aP)) | |
511 | 511 | then aS | |
512 | 512 | else bZ(aS, aO[aT]) | |
513 | 513 | ||
514 | 514 | func aU (aS,aT) = if ((aT >= aP)) | |
515 | 515 | then aS | |
516 | 516 | else throw("List size exceeds 10") | |
517 | 517 | ||
518 | 518 | aU(aR(aR(aR(aR(aR(aR(aR(aR(aR(aR(aQ, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
519 | 519 | } | |
520 | 520 | let cc = cf._1 | |
521 | 521 | let cd = cf._2 | |
522 | 522 | let cg = cc[ao] | |
523 | 523 | let ch = ((cg - bJ(ba, ao, cc, bW)) - 1) | |
524 | 524 | $Tuple2(ch, (bY - ch)) | |
525 | 525 | } | |
526 | 526 | ||
527 | 527 | ||
528 | 528 | func ci (aN) = { | |
529 | 529 | let I = aN | |
530 | 530 | if ($isInstanceOf(I, "ByteVector")) | |
531 | 531 | then { | |
532 | 532 | let cj = I | |
533 | 533 | toBase58String(cj) | |
534 | 534 | } | |
535 | 535 | else if ($isInstanceOf(I, "Unit")) | |
536 | 536 | then { | |
537 | 537 | let ck = I | |
538 | 538 | "WAVES" | |
539 | 539 | } | |
540 | 540 | else throw("Match error") | |
541 | 541 | } | |
542 | 542 | ||
543 | 543 | ||
544 | 544 | func cl (cm,aN) = if (cm) | |
545 | 545 | then $Tuple2("lockNeutrino", R) | |
546 | 546 | else $Tuple2("unlockNeutrino", R) | |
547 | 547 | ||
548 | 548 | ||
549 | 549 | func cn (cm,co,aN) = if (cm) | |
550 | 550 | then { | |
551 | 551 | let cp = cl(cm, aN) | |
552 | 552 | let cq = cp._1 | |
553 | 553 | let cr = cp._2 | |
554 | 554 | $Tuple4(cq, cr, nil, [AttachedPayment(aN, co)]) | |
555 | 555 | } | |
556 | 556 | else { | |
557 | 557 | let cs = cl(cm, aN) | |
558 | 558 | let cq = cs._1 | |
559 | 559 | let cr = cs._2 | |
560 | 560 | $Tuple4(cq, cr, [co, toBase58String(aN)], nil) | |
561 | 561 | } | |
562 | 562 | ||
563 | 563 | ||
564 | 564 | func cm (co,ct) = if (containsElement(W, ct)) | |
565 | 565 | then { | |
566 | 566 | let cu = cn(true, co, fromBase58String(ct)) | |
567 | 567 | let cq = cu._1 | |
568 | 568 | let cv = cu._2 | |
569 | 569 | let cw = cu._3 | |
570 | 570 | let cx = cu._4 | |
571 | 571 | invoke(cv, cq, cw, cx) | |
572 | 572 | } | |
573 | 573 | else 0 | |
574 | 574 | ||
575 | 575 | ||
576 | 576 | func cy (co,ct) = if (containsElement(W, ct)) | |
577 | 577 | then { | |
578 | 578 | let cz = cn(false, co, fromBase58String(ct)) | |
579 | 579 | let cq = cz._1 | |
580 | 580 | let cv = cz._2 | |
581 | 581 | let cw = cz._3 | |
582 | 582 | let cx = cz._4 | |
583 | 583 | invoke(cv, cq, cw, cx) | |
584 | 584 | } | |
585 | 585 | else 0 | |
586 | 586 | ||
587 | 587 | ||
588 | 588 | func cA (aN) = { | |
589 | 589 | let cB = { | |
590 | 590 | let I = aN | |
591 | 591 | if ($isInstanceOf(I, "ByteVector")) | |
592 | 592 | then { | |
593 | 593 | let cC = I | |
594 | 594 | if ((cC == V)) | |
595 | 595 | then getInteger(R, ((("rpd_balance_" + toBase58String(cC)) + "_") + toString(this))) | |
596 | 596 | else 0 | |
597 | 597 | } | |
598 | 598 | else if ($isInstanceOf(I, "Unit")) | |
599 | 599 | then 0 | |
600 | 600 | else throw("Match error") | |
601 | 601 | } | |
602 | 602 | let I = cB | |
603 | 603 | if ($isInstanceOf(I, "Int")) | |
604 | 604 | then { | |
605 | 605 | let ao = I | |
606 | 606 | ao | |
607 | 607 | } | |
608 | 608 | else 0 | |
609 | 609 | } | |
610 | 610 | ||
611 | 611 | ||
612 | 612 | func cD () = { | |
613 | 613 | let cE = aK() | |
614 | 614 | func cF (aM,aN) = { | |
615 | 615 | let cG = aM | |
616 | 616 | let cH = cG._1 | |
617 | 617 | let ao = cG._2 | |
618 | 618 | if (cH) | |
619 | 619 | then $Tuple2(cH, ao) | |
620 | 620 | else { | |
621 | 621 | let cI = (assetBalance(this, fromBase58String(aN)) + cA(fromBase58String(aN))) | |
622 | 622 | if ((cE[ao] > cI)) | |
623 | 623 | then $Tuple2(true, ao) | |
624 | 624 | else $Tuple2(false, (ao + 1)) | |
625 | 625 | } | |
626 | 626 | } | |
627 | 627 | ||
628 | 628 | let aO = ah | |
629 | 629 | let aP = size(aO) | |
630 | 630 | let aQ = $Tuple2(false, 0) | |
631 | 631 | func aR (aS,aT) = if ((aT >= aP)) | |
632 | 632 | then aS | |
633 | 633 | else cF(aS, aO[aT]) | |
634 | 634 | ||
635 | 635 | func aU (aS,aT) = if ((aT >= aP)) | |
636 | 636 | then aS | |
637 | 637 | else throw("List size exceeds 10") | |
638 | 638 | ||
639 | 639 | aU(aR(aR(aR(aR(aR(aR(aR(aR(aR(aR(aQ, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
640 | 640 | } | |
641 | 641 | ||
642 | 642 | ||
643 | 643 | func cJ (ao) = aj(("Suspicious state with asset: " + ah[ao])) | |
644 | 644 | ||
645 | 645 | ||
646 | 646 | func cK (bR,cx) = { | |
647 | 647 | func cL (aM,cM) = (aM :+ ScriptTransfer(bR, cM.amount, cM.assetId)) | |
648 | 648 | ||
649 | 649 | let aO = cx | |
650 | 650 | let aP = size(aO) | |
651 | 651 | let aQ = nil | |
652 | 652 | func aR (aS,aT) = if ((aT >= aP)) | |
653 | 653 | then aS | |
654 | 654 | else cL(aS, aO[aT]) | |
655 | 655 | ||
656 | 656 | func aU (aS,aT) = if ((aT >= aP)) | |
657 | 657 | then aS | |
658 | 658 | else throw("List size exceeds 10") | |
659 | 659 | ||
660 | 660 | aU(aR(aR(aR(aR(aR(aR(aR(aR(aR(aR(aQ, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
661 | 661 | } | |
662 | 662 | ||
663 | 663 | ||
664 | 664 | func cN (cO) = { | |
665 | 665 | let cP = valueOrErrorMessage(getInteger(this, o), "No dAppThresholdCoef key") | |
666 | 666 | let cQ = 10000 | |
667 | 667 | let cR = max(cO) | |
668 | 668 | let cS = min(cO) | |
669 | 669 | let cT = fraction(cR, cQ, cS) | |
670 | 670 | if ((cT > (cP * cQ))) | |
671 | 671 | then throw("New balance in assets of the DApp is less than threshold") | |
672 | 672 | else false | |
673 | 673 | } | |
674 | 674 | ||
675 | 675 | ||
676 | 676 | func cU (ah) = { | |
677 | 677 | let cV = split(ah, ",") | |
678 | 678 | if ((size(cV) > 10)) | |
679 | 679 | then throw("To many coins, max coins size 10") | |
680 | 680 | else { | |
681 | 681 | func cW (cX,aN) = { | |
682 | 682 | let cY = valueOrErrorMessage(fromBase58String(aN), ("fromBase58String: " + aN)) | |
683 | 683 | let cZ = valueOrErrorMessage(assetInfo(cY), ("assetInfo: " + aN)).decimals | |
684 | 684 | if ((cZ != d)) | |
685 | 685 | then throw("wrong decimals") | |
686 | 686 | else false | |
687 | 687 | } | |
688 | 688 | ||
689 | 689 | let aO = cV | |
690 | 690 | let aP = size(aO) | |
691 | 691 | let aQ = false | |
692 | 692 | func aR (aS,aT) = if ((aT >= aP)) | |
693 | 693 | then aS | |
694 | 694 | else cW(aS, aO[aT]) | |
695 | 695 | ||
696 | 696 | func aU (aS,aT) = if ((aT >= aP)) | |
697 | 697 | then aS | |
698 | 698 | else throw("List size exceeds 10") | |
699 | 699 | ||
700 | 700 | aU(aR(aR(aR(aR(aR(aR(aR(aR(aR(aR(aQ, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
701 | 701 | } | |
702 | 702 | } | |
703 | 703 | ||
704 | 704 | ||
705 | 705 | @Callable(da) | |
706 | 706 | func D (aW,ba) = { | |
707 | 707 | let bn = bc(aW, ba) | |
708 | 708 | $Tuple2([IntegerEntry("D", bn)], bn) | |
709 | 709 | } | |
710 | 710 | ||
711 | 711 | ||
712 | 712 | ||
713 | 713 | @Callable(da) | |
714 | 714 | func init (ah,aF,db) = if (!(isDataStorageUntouched(this))) | |
715 | 715 | then throw("Already initialized") | |
716 | 716 | else if ((0 >= aF)) | |
717 | 717 | then throw("Amp must be must > 0") | |
718 | 718 | else if ((0 >= db)) | |
719 | 719 | then throw("dApp Threshold Coef must be > 0") | |
720 | 720 | else { | |
721 | 721 | let dc = "s_Multi_USD" | |
722 | 722 | let dd = ("ShareToken of SwopFi protocol for MultiStable USD pool at address " + toString(this)) | |
723 | 723 | let de = Issue(dc, dd, 0, 6, true) | |
724 | 724 | let df = calculateAssetId(de) | |
725 | 725 | if (cU(ah)) | |
726 | 726 | then throw() | |
727 | 727 | else [StringEntry(g, f), StringEntry(h, ah), IntegerEntry("initial_A", aF), IntegerEntry("future_A", aF), IntegerEntry(n, getIntegerValue(F, "base_fee_flat")), StringEntry(l, toBase58String(df)), IntegerEntry(m, 0), IntegerEntry(o, db), BooleanEntry(j, true), de] | |
728 | 728 | } | |
729 | 729 | ||
730 | 730 | ||
731 | 731 | ||
732 | 732 | @Callable(da) | |
733 | 733 | func addLiquidity (dg,dh,di) = valueOrElse(am(), { | |
734 | 734 | let ba = aF() | |
735 | 735 | let aW = aK() | |
736 | 736 | let bV = if ((Z == 0)) | |
737 | 737 | then 0 | |
738 | 738 | else bq(aW, ba) | |
739 | - | let cx = da.payments | |
740 | - | let dj = size(cx) | |
741 | - | func dk (dl) = if ((dj > ai)) | |
739 | + | let dj = if ((size(da.payments) > ai)) | |
740 | + | then $Tuple2(removeByIndex(da.payments, (size(da.payments) - 1)), [da.payments[(size(da.payments) - 1)]]) | |
741 | + | else $Tuple2(da.payments, nil) | |
742 | + | let cx = dj._1 | |
743 | + | let dk = dj._2 | |
744 | + | let dl = size(cx) | |
745 | + | func dm (dn) = if ((dl > ai)) | |
742 | 746 | then throw(("payments size > " + toString(ai))) | |
743 | - | else if ((1 > | |
747 | + | else if ((1 > dl)) | |
744 | 748 | then throw("payments size < 1") | |
745 | 749 | else if (if ((Z == 0)) | |
746 | - | then (ai != | |
750 | + | then (ai != dl) | |
747 | 751 | else false) | |
748 | 752 | then throw("initial deposit requires all coins") | |
749 | 753 | else { | |
750 | - | func | |
754 | + | func do (aM,cM) = if (containsElement(ah, ci(cM.assetId))) | |
751 | 755 | then true | |
752 | 756 | else throw("Invalid asset in payment") | |
753 | 757 | ||
754 | 758 | let aO = cx | |
755 | 759 | let aP = size(aO) | |
756 | 760 | let aQ = false | |
757 | 761 | func aR (aS,aT) = if ((aT >= aP)) | |
758 | 762 | then aS | |
759 | - | else | |
763 | + | else do(aS, aO[aT]) | |
760 | 764 | ||
761 | 765 | func aU (aS,aT) = if ((aT >= aP)) | |
762 | 766 | then aS | |
763 | 767 | else throw("List size exceeds 10") | |
764 | 768 | ||
765 | 769 | aU(aR(aR(aR(aR(aR(aR(aR(aR(aR(aR(aQ, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
766 | 770 | } | |
767 | 771 | ||
768 | - | if (!( | |
772 | + | if (!(dm(dl))) | |
769 | 773 | then throw() | |
770 | 774 | else { | |
771 | 775 | let cH = cD() | |
772 | 776 | if (cH._1) | |
773 | 777 | then (cJ(cH._2) ++ cK(da.caller, cx)) | |
774 | 778 | else { | |
775 | 779 | func cL (aM,aN) = { | |
776 | - | let | |
777 | - | let cO = | |
778 | - | let ao = | |
779 | - | func | |
780 | - | then ( | |
781 | - | else | |
780 | + | let dp = aM | |
781 | + | let cO = dp._1 | |
782 | + | let ao = dp._2 | |
783 | + | func dq (dr,cM) = if ((ci(cM.assetId) == aN)) | |
784 | + | then (dr + cM.amount) | |
785 | + | else dr | |
782 | 786 | ||
783 | - | let | |
787 | + | let ds = { | |
784 | 788 | let aO = cx | |
785 | 789 | let aP = size(aO) | |
786 | 790 | let aQ = aW[ao] | |
787 | 791 | func aR (aS,aT) = if ((aT >= aP)) | |
788 | 792 | then aS | |
789 | - | else | |
793 | + | else dq(aS, aO[aT]) | |
790 | 794 | ||
791 | 795 | func aU (aS,aT) = if ((aT >= aP)) | |
792 | 796 | then aS | |
793 | 797 | else throw("List size exceeds 10") | |
794 | 798 | ||
795 | 799 | aU(aR(aR(aR(aR(aR(aR(aR(aR(aR(aR(aQ, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
796 | 800 | } | |
797 | - | $Tuple2((cO :+ | |
801 | + | $Tuple2((cO :+ ds), (ao + 1)) | |
798 | 802 | } | |
799 | 803 | ||
800 | - | let | |
804 | + | let dt = { | |
801 | 805 | let aO = ah | |
802 | 806 | let aP = size(aO) | |
803 | 807 | let aQ = $Tuple2(nil, 0) | |
804 | 808 | func aR (aS,aT) = if ((aT >= aP)) | |
805 | 809 | then aS | |
806 | 810 | else cL(aS, aO[aT]) | |
807 | 811 | ||
808 | 812 | func aU (aS,aT) = if ((aT >= aP)) | |
809 | 813 | then aS | |
810 | 814 | else throw("List size exceeds 10") | |
811 | 815 | ||
812 | 816 | aU(aR(aR(aR(aR(aR(aR(aR(aR(aR(aR(aQ, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
813 | 817 | } | |
814 | - | let cO = | |
815 | - | let | |
818 | + | let cO = dt._1 | |
819 | + | let du = dt._2 | |
816 | 820 | if (cN(cO)) | |
817 | 821 | then throw() | |
818 | 822 | else { | |
819 | 823 | let bW = bq(cO, ba) | |
820 | 824 | if (av((bW > bV))) | |
821 | 825 | then throw("D1 > D0") | |
822 | 826 | else { | |
823 | 827 | let bS = ax(da.caller) | |
824 | - | func | |
825 | - | let | |
826 | - | let | |
827 | - | let | |
828 | - | let ao = | |
828 | + | func dv (aM,dr) = { | |
829 | + | let dw = aM | |
830 | + | let dx = dw._1 | |
831 | + | let dy = dw._2 | |
832 | + | let ao = dw._3 | |
829 | 833 | if ((Z > 0)) | |
830 | 834 | then { | |
831 | 835 | let bT = ((fraction(ab, bS, aa, CEILING) * ai) / (4 * (ai - 1))) | |
832 | - | let | |
833 | - | let | |
834 | - | let | |
835 | - | then ( | |
836 | - | else ( | |
837 | - | fraction(bT, | |
836 | + | let dz = { | |
837 | + | let dA = fraction(bW, aW[ao], bV) | |
838 | + | let dB = if ((dA > dr)) | |
839 | + | then (dA - dr) | |
840 | + | else (dr - dA) | |
841 | + | fraction(bT, dB, aa) | |
838 | 842 | } | |
839 | - | let | |
840 | - | let | |
841 | - | let | |
842 | - | let | |
843 | - | let | |
844 | - | let | |
845 | - | then cm(( | |
846 | - | else cy( | |
847 | - | if (( | |
843 | + | let dC = fraction(dz, ac, aa) | |
844 | + | let dD = (dr - dz) | |
845 | + | let dE = (dr - dz) | |
846 | + | let dF = (dr - aW[ao]) | |
847 | + | let dG = (dz - dC) | |
848 | + | let dH = if ((dF > 0)) | |
849 | + | then cm((dF - dz), ah[ao]) | |
850 | + | else cy(dz, ah[ao]) | |
851 | + | if ((dH == dH)) | |
848 | 852 | then { | |
849 | - | let | |
850 | - | then invoke(U, "airDrop", nil, [AttachedPayment(fromBase58String(ah[ao]), | |
853 | + | let dI = if ((dG > 0)) | |
854 | + | then invoke(U, "airDrop", nil, [AttachedPayment(fromBase58String(ah[ao]), dG)]) | |
851 | 855 | else 0 | |
852 | - | if (( | |
853 | - | then $Tuple3(( | |
856 | + | if ((dI == dI)) | |
857 | + | then $Tuple3((dx :+ dE), (dy ++ [ScriptTransfer(P, dC, fromBase58String(ah[ao])), IntegerEntry((ah[ao] + i), dD)]), (ao + 1)) | |
854 | 858 | else throw("Strict value is not equal to itself.") | |
855 | 859 | } | |
856 | 860 | else throw("Strict value is not equal to itself.") | |
857 | 861 | } | |
858 | 862 | else { | |
859 | - | let | |
860 | - | if (( | |
861 | - | then $Tuple3(( | |
863 | + | let dH = cm(dr, ah[ao]) | |
864 | + | if ((dH == dH)) | |
865 | + | then $Tuple3((dx :+ dr), (dy :+ IntegerEntry((ah[ao] + i), dr)), (ao + 1)) | |
862 | 866 | else throw("Strict value is not equal to itself.") | |
863 | 867 | } | |
864 | 868 | } | |
865 | 869 | ||
866 | - | let | |
870 | + | let dJ = { | |
867 | 871 | let aO = cO | |
868 | 872 | let aP = size(aO) | |
869 | 873 | let aQ = $Tuple3(nil, nil, 0) | |
870 | 874 | func bl (aS,aT) = if ((aT >= aP)) | |
871 | 875 | then aS | |
872 | - | else | |
876 | + | else dv(aS, aO[aT]) | |
873 | 877 | ||
874 | 878 | func bm (aS,aT) = if ((aT >= aP)) | |
875 | 879 | then aS | |
876 | 880 | else throw("List size exceeds 10") | |
877 | 881 | ||
878 | 882 | bm(bl(bl(bl(bl(bl(bl(bl(bl(bl(bl(aQ, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
879 | 883 | } | |
880 | - | let | |
881 | - | let | |
882 | - | let | |
883 | - | let | |
884 | + | let dx = dJ._1 | |
885 | + | let dy = dJ._2 | |
886 | + | let dK = bq(dx, ba) | |
887 | + | let dL = if ((Z == 0)) | |
884 | 888 | then bW | |
885 | - | else fraction(Z, ( | |
886 | - | if (av(( | |
889 | + | else fraction(Z, (dK - bV), bV) | |
890 | + | if (av((dL >= dg))) | |
887 | 891 | then throw("Slippage screwed you") | |
888 | 892 | else if (dh) | |
889 | 893 | then { | |
890 | - | let | |
891 | - | if (( | |
894 | + | let dM = invoke(this, "reissueShare", [dL], nil) | |
895 | + | if ((dM == dM)) | |
892 | 896 | then { | |
893 | - | let | |
894 | - | if (( | |
895 | - | then ( | |
897 | + | let dN = invoke(T, "lockShareTokens", [toString(this), di], ([AttachedPayment(Y, dL)] ++ dk)) | |
898 | + | if ((dN == dN)) | |
899 | + | then (dy :+ IntegerEntry(m, (Z + dL))) | |
896 | 900 | else throw("Strict value is not equal to itself.") | |
897 | 901 | } | |
898 | 902 | else throw("Strict value is not equal to itself.") | |
899 | 903 | } | |
900 | - | else ( | |
904 | + | else (dy ++ [Reissue(Y, dL, true), ScriptTransfer(da.caller, dL, Y), IntegerEntry(m, (Z + dL))]) | |
901 | 905 | } | |
902 | 906 | } | |
903 | 907 | } | |
904 | 908 | } | |
905 | 909 | }) | |
906 | 910 | ||
907 | 911 | ||
908 | 912 | ||
909 | 913 | @Callable(da) | |
910 | 914 | func calcMintAmount (cO,az) = { | |
911 | 915 | let ba = aF() | |
912 | 916 | let aW = aK() | |
913 | 917 | let bW = bq(cO, ba) | |
914 | 918 | if ((Z == 0)) | |
915 | 919 | then $Tuple2(nil, bW) | |
916 | 920 | else { | |
917 | 921 | let bV = bq(aW, ba) | |
918 | 922 | let bS = ax(az) | |
919 | - | func | |
920 | - | let | |
921 | - | let | |
922 | - | let ao = | |
923 | + | func dO (aM,dr) = { | |
924 | + | let dP = aM | |
925 | + | let dx = dP._1 | |
926 | + | let ao = dP._2 | |
923 | 927 | let bT = ((fraction(ab, bS, aa, CEILING) * ai) / (4 * (ai - 1))) | |
924 | - | let | |
925 | - | let | |
926 | - | let | |
927 | - | then ( | |
928 | - | else ( | |
929 | - | fraction(bT, | |
928 | + | let dz = { | |
929 | + | let dA = fraction(bW, aW[ao], bV) | |
930 | + | let dB = if ((dA > dr)) | |
931 | + | then (dA - dr) | |
932 | + | else (dr - dA) | |
933 | + | fraction(bT, dB, aa) | |
930 | 934 | } | |
931 | - | let | |
932 | - | $Tuple2(( | |
935 | + | let dE = (dr - dz) | |
936 | + | $Tuple2((dx :+ dE), (ao + 1)) | |
933 | 937 | } | |
934 | 938 | ||
935 | - | let | |
939 | + | let dQ = { | |
936 | 940 | let aO = cO | |
937 | 941 | let aP = size(aO) | |
938 | 942 | let aQ = $Tuple2(nil, 0) | |
939 | 943 | func aR (aS,aT) = if ((aT >= aP)) | |
940 | 944 | then aS | |
941 | - | else | |
945 | + | else dO(aS, aO[aT]) | |
942 | 946 | ||
943 | 947 | func aU (aS,aT) = if ((aT >= aP)) | |
944 | 948 | then aS | |
945 | 949 | else throw("List size exceeds 10") | |
946 | 950 | ||
947 | 951 | aU(aR(aR(aR(aR(aR(aR(aR(aR(aR(aR(aQ, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
948 | 952 | } | |
949 | - | let | |
950 | - | let | |
951 | - | let | |
952 | - | let | |
953 | - | $Tuple2(nil, | |
953 | + | let dx = dQ._1 | |
954 | + | let du = dQ._2 | |
955 | + | let dK = bq(dx, ba) | |
956 | + | let dR = fraction(Z, (dK - bV), bV) | |
957 | + | $Tuple2(nil, dR) | |
954 | 958 | } | |
955 | 959 | } | |
956 | 960 | ||
957 | 961 | ||
958 | 962 | ||
959 | 963 | @Callable(da) | |
960 | 964 | func reissueShare (co) = valueOrElse(ap(da), [Reissue(Y, co, true)]) | |
961 | 965 | ||
962 | 966 | ||
963 | 967 | ||
964 | 968 | @Callable(da) | |
965 | - | func getDy ( | |
969 | + | func getDy (dS,dT,dU,dV) = { | |
966 | 970 | let aW = aK() | |
967 | - | let | |
968 | - | let | |
969 | - | let bu = (aW[ | |
970 | - | let bH = br( | |
971 | - | let ch = ((aW[ | |
972 | - | let bS = ax(Address(fromBase58String( | |
971 | + | let dW = valueOrErrorMessage(indexOf(ah, dS), "unknown token in") | |
972 | + | let dX = valueOrErrorMessage(indexOf(ah, dT), "unknown token out") | |
973 | + | let bu = (aW[dW] + dU) | |
974 | + | let bH = br(dW, dX, bu, aW) | |
975 | + | let ch = ((aW[dX] - bH) - 1) | |
976 | + | let bS = ax(Address(fromBase58String(dV))) | |
973 | 977 | let bT = fraction(fraction(ab, bS, aa, CEILING), ch, aa) | |
974 | 978 | $Tuple2(nil, $Tuple2((ch - bT), bT)) | |
975 | 979 | } | |
976 | 980 | ||
977 | 981 | ||
978 | 982 | ||
979 | 983 | @Callable(da) | |
980 | - | func exchange ( | |
984 | + | func exchange (dY,dZ) = valueOrElse(am(), if ((size(da.payments) != 1)) | |
981 | 985 | then throw("size(payments) != 1") | |
982 | 986 | else { | |
983 | 987 | let cH = cD() | |
984 | 988 | if (cH._1) | |
985 | 989 | then (cJ(cH._2) ++ cK(da.caller, da.payments)) | |
986 | 990 | else { | |
987 | 991 | let cM = da.payments[0] | |
988 | - | let | |
989 | - | let | |
990 | - | let | |
991 | - | let | |
992 | - | let | |
992 | + | let ea = ci(cM.assetId) | |
993 | + | let eb = fromBase58String(dY) | |
994 | + | let dU = cM.amount | |
995 | + | let dW = valueOrErrorMessage(indexOf(ah, ea), "unknown token in") | |
996 | + | let dX = valueOrErrorMessage(indexOf(ah, dY), "unknown token out") | |
993 | 997 | let aW = aK() | |
994 | - | let bu = (aW[ | |
995 | - | let bH = br( | |
996 | - | let | |
998 | + | let bu = (aW[dW] + dU) | |
999 | + | let bH = br(dW, dX, bu, aW) | |
1000 | + | let ec = ((aW[dX] - bH) - 1) | |
997 | 1001 | let bS = ax(da.originCaller) | |
998 | - | let bT = fraction( | |
999 | - | let ch = ( | |
1000 | - | let | |
1001 | - | if (av((ch >= | |
1002 | + | let bT = fraction(ec, fraction(ab, bS, aa, CEILING), aa) | |
1003 | + | let ch = (ec - bT) | |
1004 | + | let dC = fraction(bT, ac, aa) | |
1005 | + | if (av((ch >= dZ))) | |
1002 | 1006 | then throw("Exchange resulted in fewer coins than expected") | |
1003 | 1007 | else { | |
1004 | - | func | |
1005 | - | let | |
1006 | - | let cO = | |
1007 | - | let ao = | |
1008 | - | if ((ao == | |
1009 | - | then $Tuple2((cO :+ ( | |
1010 | - | else if ((ao == | |
1011 | - | then $Tuple2((cO :+ ( | |
1012 | - | else $Tuple2((cO :+ | |
1008 | + | func ed (aM,ee) = { | |
1009 | + | let ef = aM | |
1010 | + | let cO = ef._1 | |
1011 | + | let ao = ef._2 | |
1012 | + | if ((ao == dW)) | |
1013 | + | then $Tuple2((cO :+ (ee + dU)), (ao + 1)) | |
1014 | + | else if ((ao == dX)) | |
1015 | + | then $Tuple2((cO :+ (ee - ec)), (ao + 1)) | |
1016 | + | else $Tuple2((cO :+ ee), (ao + 1)) | |
1013 | 1017 | } | |
1014 | 1018 | ||
1015 | - | let | |
1019 | + | let eg = { | |
1016 | 1020 | let aO = aW | |
1017 | 1021 | let aP = size(aO) | |
1018 | 1022 | let aQ = $Tuple2(nil, 0) | |
1019 | 1023 | func aR (aS,aT) = if ((aT >= aP)) | |
1020 | 1024 | then aS | |
1021 | - | else | |
1025 | + | else ed(aS, aO[aT]) | |
1022 | 1026 | ||
1023 | 1027 | func aU (aS,aT) = if ((aT >= aP)) | |
1024 | 1028 | then aS | |
1025 | 1029 | else throw("List size exceeds 10") | |
1026 | 1030 | ||
1027 | 1031 | aU(aR(aR(aR(aR(aR(aR(aR(aR(aR(aR(aQ, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
1028 | 1032 | } | |
1029 | - | let cO = | |
1030 | - | let ao = | |
1033 | + | let cO = eg._1 | |
1034 | + | let ao = eg._2 | |
1031 | 1035 | if (cN(cO)) | |
1032 | 1036 | then throw() | |
1033 | 1037 | else { | |
1034 | - | let | |
1035 | - | if (( | |
1038 | + | let dN = cm(cM.amount, ci(cM.assetId)) | |
1039 | + | if ((dN == dN)) | |
1036 | 1040 | then { | |
1037 | - | let | |
1038 | - | if (( | |
1041 | + | let eh = cy(ec, dY) | |
1042 | + | if ((eh == eh)) | |
1039 | 1043 | then { | |
1040 | - | let | |
1041 | - | let | |
1042 | - | then invoke(U, "airDrop", nil, [AttachedPayment( | |
1044 | + | let dG = (bT - dC) | |
1045 | + | let dI = if ((dG > 0)) | |
1046 | + | then invoke(U, "airDrop", nil, [AttachedPayment(eb, dG)]) | |
1043 | 1047 | else 0 | |
1044 | - | if (( | |
1045 | - | then $Tuple2([IntegerEntry(( | |
1048 | + | if ((dI == dI)) | |
1049 | + | then $Tuple2([IntegerEntry((ea + i), bu), IntegerEntry((dY + i), (aW[dX] - ec)), ScriptTransfer(da.caller, ch, eb), ScriptTransfer(P, dC, eb)], [ch, eb]) | |
1046 | 1050 | else throw("Strict value is not equal to itself.") | |
1047 | 1051 | } | |
1048 | 1052 | else throw("Strict value is not equal to itself.") | |
1049 | 1053 | } | |
1050 | 1054 | else throw("Strict value is not equal to itself.") | |
1051 | 1055 | } | |
1052 | 1056 | } | |
1053 | 1057 | } | |
1054 | 1058 | }) | |
1055 | 1059 | ||
1056 | 1060 | ||
1057 | 1061 | ||
1058 | 1062 | @Callable(da) | |
1059 | - | func withdraw ( | |
1063 | + | func withdraw (ei) = valueOrElse(am(), if ((size(da.payments) != 1)) | |
1060 | 1064 | then throw("size(payments) != 1") | |
1061 | 1065 | else { | |
1062 | - | let | |
1063 | - | let | |
1064 | - | if ((Y != | |
1066 | + | let ej = da.payments[0].amount | |
1067 | + | let ek = da.payments[0].assetId | |
1068 | + | if ((Y != ek)) | |
1065 | 1069 | then throw("unknown payment token") | |
1066 | 1070 | else { | |
1067 | 1071 | let cH = cD() | |
1068 | 1072 | if (cH._1) | |
1069 | 1073 | then (cJ(cH._2) ++ cK(da.originCaller, da.payments)) | |
1070 | 1074 | else { | |
1071 | - | func | |
1072 | - | let | |
1073 | - | let | |
1074 | - | let ao = | |
1075 | - | let | |
1076 | - | if (av(( | |
1075 | + | func dv (aM,el) = { | |
1076 | + | let em = aM | |
1077 | + | let dy = em._1 | |
1078 | + | let ao = em._2 | |
1079 | + | let en = fraction(el, ej, Z) | |
1080 | + | if (av((en >= ei[ao]))) | |
1077 | 1081 | then throw("Withdrawal resulted in fewer coins than expected") | |
1078 | 1082 | else { | |
1079 | - | let | |
1080 | - | if (( | |
1081 | - | then $Tuple2(( | |
1083 | + | let eh = cy(en, ah[ao]) | |
1084 | + | if ((eh == eh)) | |
1085 | + | then $Tuple2((dy ++ [IntegerEntry((ah[ao] + i), (el - en)), ScriptTransfer(da.originCaller, en, fromBase58String(ah[ao]))]), (ao + 1)) | |
1082 | 1086 | else throw("Strict value is not equal to itself.") | |
1083 | 1087 | } | |
1084 | 1088 | } | |
1085 | 1089 | ||
1086 | - | let | |
1090 | + | let eo = { | |
1087 | 1091 | let aO = aK() | |
1088 | 1092 | let aP = size(aO) | |
1089 | 1093 | let aQ = $Tuple2(nil, 0) | |
1090 | 1094 | func aR (aS,aT) = if ((aT >= aP)) | |
1091 | 1095 | then aS | |
1092 | - | else | |
1096 | + | else dv(aS, aO[aT]) | |
1093 | 1097 | ||
1094 | 1098 | func aU (aS,aT) = if ((aT >= aP)) | |
1095 | 1099 | then aS | |
1096 | 1100 | else throw("List size exceeds 10") | |
1097 | 1101 | ||
1098 | 1102 | aU(aR(aR(aR(aR(aR(aR(aR(aR(aR(aR(aQ, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
1099 | 1103 | } | |
1100 | - | let | |
1101 | - | let ao = | |
1102 | - | ( | |
1104 | + | let dy = eo._1 | |
1105 | + | let ao = eo._2 | |
1106 | + | (dy ++ [Burn(Y, ej), IntegerEntry(m, (Z - ej))]) | |
1103 | 1107 | } | |
1104 | 1108 | } | |
1105 | 1109 | }) | |
1106 | 1110 | ||
1107 | 1111 | ||
1108 | 1112 | ||
1109 | 1113 | @Callable(da) | |
1110 | - | func withdrawWithUnlock ( | |
1114 | + | func withdrawWithUnlock (ei,ep) = valueOrElse(am(), if ((0 >= ep)) | |
1111 | 1115 | then throw("Unlock amount must be positive") | |
1112 | 1116 | else { | |
1113 | 1117 | let cH = cD() | |
1114 | 1118 | if (cH._1) | |
1115 | 1119 | then (cJ(cH._2) ++ cK(da.caller, da.payments)) | |
1116 | 1120 | else { | |
1117 | - | let | |
1121 | + | let ej = if ((size(da.payments) > 0)) | |
1118 | 1122 | then if ((size(da.payments) != 1)) | |
1119 | 1123 | then throw("size(payments) != 1") | |
1120 | 1124 | else { | |
1121 | - | let | |
1122 | - | if ((Y != | |
1125 | + | let ek = da.payments[0].assetId | |
1126 | + | if ((Y != ek)) | |
1123 | 1127 | then throw("unknown payment token") | |
1124 | 1128 | else da.payments[0].amount | |
1125 | 1129 | } | |
1126 | 1130 | else 0 | |
1127 | - | let | |
1128 | - | if (( | |
1131 | + | let eq = invoke(T, "withdrawShareTokens", [toString(this), ep], nil) | |
1132 | + | if ((eq == eq)) | |
1129 | 1133 | then { | |
1130 | - | let | |
1131 | - | let | |
1132 | - | if (( | |
1134 | + | let er = (ej + ep) | |
1135 | + | let dH = invoke(this, "withdraw", [ei], [AttachedPayment(Y, er)]) | |
1136 | + | if ((dH == dH)) | |
1133 | 1137 | then nil | |
1134 | 1138 | else throw("Strict value is not equal to itself.") | |
1135 | 1139 | } | |
1136 | 1140 | else throw("Strict value is not equal to itself.") | |
1137 | 1141 | } | |
1138 | 1142 | }) | |
1139 | 1143 | ||
1140 | 1144 | ||
1141 | 1145 | ||
1142 | 1146 | @Callable(da) | |
1143 | - | func calcWithdrawOneCoin ( | |
1147 | + | func calcWithdrawOneCoin (es,dY,az) = if ((0 >= es)) | |
1144 | 1148 | then throw("Amount must be positive") | |
1145 | 1149 | else { | |
1146 | - | let ao = valueOrErrorMessage(indexOf(ah, | |
1147 | - | $Tuple2(nil, bP(aK(), | |
1150 | + | let ao = valueOrErrorMessage(indexOf(ah, dY), "unknown token out") | |
1151 | + | $Tuple2(nil, bP(aK(), es, ao, Address(fromBase58String(az)))._1) | |
1148 | 1152 | } | |
1149 | 1153 | ||
1150 | 1154 | ||
1151 | 1155 | ||
1152 | 1156 | @Callable(da) | |
1153 | - | func withdrawOneCoin ( | |
1157 | + | func withdrawOneCoin (dY,et) = valueOrElse(am(), if ((size(da.payments) != 1)) | |
1154 | 1158 | then throw("size(payments) != 1") | |
1155 | 1159 | else { | |
1156 | 1160 | let cH = cD() | |
1157 | 1161 | if (cH._1) | |
1158 | 1162 | then (cJ(cH._2) ++ cK(da.originCaller, da.payments)) | |
1159 | 1163 | else { | |
1160 | - | let | |
1161 | - | let | |
1162 | - | if (( | |
1164 | + | let ej = da.payments[0].amount | |
1165 | + | let ek = da.payments[0].assetId | |
1166 | + | if ((ek != Y)) | |
1163 | 1167 | then throw("unknown token") | |
1164 | 1168 | else { | |
1165 | - | let | |
1166 | - | let | |
1169 | + | let eu = valueOrErrorMessage(indexOf(ah, dY), "unknown token out") | |
1170 | + | let eb = fromBase58String(dY) | |
1167 | 1171 | let aW = aK() | |
1168 | - | let | |
1169 | - | let ch = | |
1170 | - | let | |
1171 | - | if (av((ch >= | |
1172 | + | let ev = bP(aW, ej, eu, da.originCaller) | |
1173 | + | let ch = ev._1 | |
1174 | + | let ew = ev._2 | |
1175 | + | if (av((ch >= et))) | |
1172 | 1176 | then throw("Not enough coins removed") | |
1173 | 1177 | else { | |
1174 | - | let | |
1175 | - | let | |
1176 | - | func | |
1177 | - | let | |
1178 | - | let cO = | |
1179 | - | let ao = | |
1180 | - | if ((ao == | |
1181 | - | then $Tuple2((cO :+ ( | |
1182 | - | else $Tuple2((cO :+ | |
1178 | + | let dC = fraction(ew, ac, aa) | |
1179 | + | let ex = (ch + ew) | |
1180 | + | func ed (aM,ee) = { | |
1181 | + | let ey = aM | |
1182 | + | let cO = ey._1 | |
1183 | + | let ao = ey._2 | |
1184 | + | if ((ao == eu)) | |
1185 | + | then $Tuple2((cO :+ (ee - ex)), (ao + 1)) | |
1186 | + | else $Tuple2((cO :+ ee), (ao + 1)) | |
1183 | 1187 | } | |
1184 | 1188 | ||
1185 | - | let | |
1189 | + | let ez = { | |
1186 | 1190 | let aO = aW | |
1187 | 1191 | let aP = size(aO) | |
1188 | 1192 | let aQ = $Tuple2(nil, 0) | |
1189 | 1193 | func aR (aS,aT) = if ((aT >= aP)) | |
1190 | 1194 | then aS | |
1191 | - | else | |
1195 | + | else ed(aS, aO[aT]) | |
1192 | 1196 | ||
1193 | 1197 | func aU (aS,aT) = if ((aT >= aP)) | |
1194 | 1198 | then aS | |
1195 | 1199 | else throw("List size exceeds 10") | |
1196 | 1200 | ||
1197 | 1201 | aU(aR(aR(aR(aR(aR(aR(aR(aR(aR(aR(aQ, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
1198 | 1202 | } | |
1199 | - | let cO = | |
1200 | - | let | |
1203 | + | let cO = ez._1 | |
1204 | + | let eA = ez._2 | |
1201 | 1205 | if (cN(cO)) | |
1202 | 1206 | then throw() | |
1203 | 1207 | else { | |
1204 | - | let | |
1205 | - | if (( | |
1208 | + | let eh = cy(ex, dY) | |
1209 | + | if ((eh == eh)) | |
1206 | 1210 | then { | |
1207 | - | let | |
1208 | - | let | |
1209 | - | then invoke(U, "airDrop", nil, [AttachedPayment( | |
1211 | + | let dG = (ew - dC) | |
1212 | + | let dI = if ((dG > 0)) | |
1213 | + | then invoke(U, "airDrop", nil, [AttachedPayment(eb, dG)]) | |
1210 | 1214 | else 0 | |
1211 | - | if (( | |
1212 | - | then [ScriptTransfer(da.originCaller, ch, | |
1215 | + | if ((dI == dI)) | |
1216 | + | then [ScriptTransfer(da.originCaller, ch, eb), IntegerEntry((ah[eu] + i), (aW[eu] - ex)), Burn(Y, ej), ScriptTransfer(P, dC, eb), IntegerEntry(m, (Z - ej))] | |
1213 | 1217 | else throw("Strict value is not equal to itself.") | |
1214 | 1218 | } | |
1215 | 1219 | else throw("Strict value is not equal to itself.") | |
1216 | 1220 | } | |
1217 | 1221 | } | |
1218 | 1222 | } | |
1219 | 1223 | } | |
1220 | 1224 | }) | |
1221 | 1225 | ||
1222 | 1226 | ||
1223 | 1227 | ||
1224 | 1228 | @Callable(da) | |
1225 | - | func withdrawOneCoinWithUnlock ( | |
1229 | + | func withdrawOneCoinWithUnlock (dY,et,ep) = valueOrElse(am(), if ((0 >= ep)) | |
1226 | 1230 | then throw("Unlock amount must be positive") | |
1227 | 1231 | else { | |
1228 | 1232 | let cH = cD() | |
1229 | 1233 | if (cH._1) | |
1230 | 1234 | then (cJ(cH._2) ++ cK(da.caller, da.payments)) | |
1231 | 1235 | else { | |
1232 | - | let | |
1236 | + | let ej = if ((size(da.payments) > 0)) | |
1233 | 1237 | then if ((size(da.payments) != 1)) | |
1234 | 1238 | then throw("size(payments) != 1") | |
1235 | 1239 | else { | |
1236 | - | let | |
1237 | - | if ((Y != | |
1240 | + | let ek = da.payments[0].assetId | |
1241 | + | if ((Y != ek)) | |
1238 | 1242 | then throw("unknown payment token") | |
1239 | 1243 | else da.payments[0].amount | |
1240 | 1244 | } | |
1241 | 1245 | else 0 | |
1242 | - | let | |
1243 | - | if (( | |
1246 | + | let eq = invoke(T, "withdrawShareTokens", [toString(this), ep], nil) | |
1247 | + | if ((eq == eq)) | |
1244 | 1248 | then { | |
1245 | - | let | |
1246 | - | let | |
1247 | - | if (( | |
1249 | + | let er = (ej + ep) | |
1250 | + | let dH = invoke(this, "withdrawOneCoin", [dY, et], [AttachedPayment(Y, er)]) | |
1251 | + | if ((dH == dH)) | |
1248 | 1252 | then nil | |
1249 | 1253 | else throw("Strict value is not equal to itself.") | |
1250 | 1254 | } | |
1251 | 1255 | else throw("Strict value is not equal to itself.") | |
1252 | 1256 | } | |
1253 | 1257 | }) | |
1254 | 1258 | ||
1255 | 1259 | ||
1256 | 1260 | ||
1257 | 1261 | @Callable(da) | |
1258 | 1262 | func A () = $Tuple2(nil, aF()) | |
1259 | 1263 | ||
1260 | 1264 | ||
1261 | 1265 | ||
1262 | 1266 | @Callable(da) | |
1263 | 1267 | func getVirtualPrice () = { | |
1264 | 1268 | let bn = aZ(aK(), aF()) | |
1265 | 1269 | $Tuple2(nil, fraction(bn, a, Z)) | |
1266 | 1270 | } | |
1267 | 1271 | ||
1268 | 1272 | ||
1269 | 1273 | ||
1270 | 1274 | @Callable(da) | |
1271 | - | func calcTokenAmount ( | |
1275 | + | func calcTokenAmount (eB,eC) = { | |
1272 | 1276 | let ba = aF() | |
1273 | - | let | |
1274 | - | let bV = bq( | |
1275 | - | func | |
1276 | - | let | |
1277 | - | let cO = | |
1278 | - | let ao = | |
1279 | - | let | |
1280 | - | then | |
1281 | - | else -( | |
1282 | - | $Tuple2((cO :+ | |
1277 | + | let eD = aK() | |
1278 | + | let bV = bq(eD, ba) | |
1279 | + | func eE (aM,el) = { | |
1280 | + | let eF = aM | |
1281 | + | let cO = eF._1 | |
1282 | + | let ao = eF._2 | |
1283 | + | let dr = (el + (if (eC) | |
1284 | + | then eB[ao] | |
1285 | + | else -(eB[ao]))) | |
1286 | + | $Tuple2((cO :+ dr), (ao + 1)) | |
1283 | 1287 | } | |
1284 | 1288 | ||
1285 | - | let cO = ( let aO = | |
1289 | + | let cO = ( let aO = eD | |
1286 | 1290 | let aP = size(aO) | |
1287 | 1291 | let aQ = $Tuple2(nil, 0) | |
1288 | 1292 | func aR (aS,aT) = if ((aT >= aP)) | |
1289 | 1293 | then aS | |
1290 | - | else | |
1294 | + | else eE(aS, aO[aT]) | |
1291 | 1295 | ||
1292 | 1296 | func aU (aS,aT) = if ((aT >= aP)) | |
1293 | 1297 | then aS | |
1294 | 1298 | else throw("List size exceeds 10") | |
1295 | 1299 | ||
1296 | 1300 | aU(aR(aR(aR(aR(aR(aR(aR(aR(aR(aR(aQ, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10))._1 | |
1297 | 1301 | let bW = bq(cO, ba) | |
1298 | - | let | |
1302 | + | let eG = if (eC) | |
1299 | 1303 | then (bW - bV) | |
1300 | 1304 | else (bV - bW) | |
1301 | - | $Tuple2(nil, fraction( | |
1305 | + | $Tuple2(nil, fraction(eG, Z, bV)) | |
1302 | 1306 | } | |
1303 | 1307 | ||
1304 | 1308 | ||
1305 | 1309 | ||
1306 | 1310 | @Callable(da) | |
1307 | - | func rampA ( | |
1311 | + | func rampA (eH,eI) = valueOrElse(am(), valueOrElse(an(da), if (av((au >= (af + e)))) | |
1308 | 1312 | then throw("too often") | |
1309 | - | else if (av(( | |
1313 | + | else if (av((eI >= (au + e)))) | |
1310 | 1314 | then throw("insufficient time") | |
1311 | 1315 | else { | |
1312 | - | let | |
1313 | - | if (av(if (( | |
1314 | - | then (b > | |
1316 | + | let eJ = aF() | |
1317 | + | if (av(if ((eH > 0)) | |
1318 | + | then (b > eH) | |
1315 | 1319 | else false)) | |
1316 | 1320 | then throw("out of base range") | |
1317 | - | else if (av(if (if (( | |
1318 | - | then (( | |
1321 | + | else if (av(if (if ((eH >= eJ)) | |
1322 | + | then ((eJ * c) >= eH) | |
1319 | 1323 | else false) | |
1320 | 1324 | then true | |
1321 | - | else if (( | |
1322 | - | then (( | |
1325 | + | else if ((eJ > eH)) | |
1326 | + | then ((eH * c) >= eJ) | |
1323 | 1327 | else false)) | |
1324 | 1328 | then throw("out of range") | |
1325 | - | else [IntegerEntry("initial_A", | |
1329 | + | else [IntegerEntry("initial_A", eJ), IntegerEntry("future_A", eH), IntegerEntry("initial_A_time", au), IntegerEntry("future_A_time", eI)] | |
1326 | 1330 | })) | |
1327 | 1331 | ||
1328 | 1332 | ||
1329 | 1333 | ||
1330 | 1334 | @Callable(da) | |
1331 | 1335 | func stopRampA () = valueOrElse(am(), valueOrElse(an(da), { | |
1332 | - | let | |
1333 | - | [IntegerEntry("initial_A", | |
1336 | + | let eK = aF() | |
1337 | + | [IntegerEntry("initial_A", eK), IntegerEntry("future_A", eK), IntegerEntry("initial_A_time", au), IntegerEntry("future_A_time", au)] | |
1334 | 1338 | })) | |
1335 | 1339 | ||
1336 | 1340 | ||
1337 | 1341 | ||
1338 | 1342 | @Callable(da) | |
1339 | 1343 | func shutdown () = valueOrElse(an(da), if (!(X)) | |
1340 | 1344 | then throw(("DApp is already suspended. Cause: " + valueOrElse(getString(this, k), "the cause wasn't specified"))) | |
1341 | 1345 | else aj("Paused by admin")) | |
1342 | 1346 | ||
1343 | 1347 | ||
1344 | 1348 | ||
1345 | 1349 | @Callable(da) | |
1346 | 1350 | func activate () = valueOrElse(an(da), if (X) | |
1347 | 1351 | then al() | |
1348 | 1352 | else [BooleanEntry(j, true), DeleteEntry(k)]) | |
1349 | 1353 | ||
1350 | 1354 | ||
1351 | 1355 | ||
1352 | 1356 | @Callable(da) | |
1353 | 1357 | func takeIntoAccountExtraFunds () = valueOrElse(am(), if ((da.caller != P)) | |
1354 | 1358 | then throw("Only the wallet can call this function") | |
1355 | 1359 | else { | |
1356 | - | let | |
1357 | - | func | |
1358 | - | let | |
1359 | - | let | |
1360 | - | let ao = | |
1361 | - | let | |
1362 | - | let | |
1363 | - | let | |
1364 | - | if ((0 > | |
1360 | + | let eD = aK() | |
1361 | + | func eL (aM,aN) = { | |
1362 | + | let eM = aM | |
1363 | + | let eN = eM._1 | |
1364 | + | let ao = eM._2 | |
1365 | + | let eO = fromBase58String(aN) | |
1366 | + | let eP = (assetBalance(this, eO) + cA(eO)) | |
1367 | + | let eQ = (eP - eD[ao]) | |
1368 | + | if ((0 > eQ)) | |
1365 | 1369 | then aj(("Enroll amount negative for asset" + aN)) | |
1366 | 1370 | else { | |
1367 | - | let | |
1368 | - | then invoke(U, "airDrop", nil, [AttachedPayment( | |
1371 | + | let dI = if ((eQ > 0)) | |
1372 | + | then invoke(U, "airDrop", nil, [AttachedPayment(eO, eQ)]) | |
1369 | 1373 | else 0 | |
1370 | - | if (( | |
1371 | - | then $Tuple2(( | |
1374 | + | if ((dI == dI)) | |
1375 | + | then $Tuple2((eN + eQ), (ao + 1)) | |
1372 | 1376 | else throw("Strict value is not equal to itself.") | |
1373 | 1377 | } | |
1374 | 1378 | } | |
1375 | 1379 | ||
1376 | - | let | |
1380 | + | let du = { | |
1377 | 1381 | let aO = ah | |
1378 | 1382 | let aP = size(aO) | |
1379 | 1383 | let aQ = $Tuple2(0, 0) | |
1380 | 1384 | func aR (aS,aT) = if ((aT >= aP)) | |
1381 | 1385 | then aS | |
1382 | - | else | |
1386 | + | else eL(aS, aO[aT]) | |
1383 | 1387 | ||
1384 | 1388 | func aU (aS,aT) = if ((aT >= aP)) | |
1385 | 1389 | then aS | |
1386 | 1390 | else throw("List size exceeds 10") | |
1387 | 1391 | ||
1388 | 1392 | aU(aR(aR(aR(aR(aR(aR(aR(aR(aR(aR(aQ, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
1389 | 1393 | } | |
1390 | - | if (( | |
1394 | + | if ((du._1 == 0)) | |
1391 | 1395 | then throw("No money to take") | |
1392 | 1396 | else nil | |
1393 | 1397 | }) | |
1394 | 1398 | ||
1395 | 1399 | ||
1396 | - | @Verifier( | |
1397 | - | func | |
1398 | - | let | |
1399 | - | let | |
1400 | + | @Verifier(eR) | |
1401 | + | func eS () = { | |
1402 | + | let eT = { | |
1403 | + | let eU = if (sigVerify(eR.bodyBytes, eR.proofs[0], L)) | |
1400 | 1404 | then 1 | |
1401 | 1405 | else 0 | |
1402 | - | let | |
1406 | + | let eV = if (sigVerify(eR.bodyBytes, eR.proofs[1], M)) | |
1403 | 1407 | then 1 | |
1404 | 1408 | else 0 | |
1405 | - | let | |
1409 | + | let eW = if (sigVerify(eR.bodyBytes, eR.proofs[2], N)) | |
1406 | 1410 | then 1 | |
1407 | 1411 | else 0 | |
1408 | - | ((( | |
1412 | + | (((eU + eV) + eW) >= 2) | |
1409 | 1413 | } | |
1410 | - | let I = | |
1414 | + | let I = eR | |
1411 | 1415 | if ($isInstanceOf(I, "InvokeScriptTransaction")) | |
1412 | 1416 | then { | |
1413 | - | let | |
1414 | - | let | |
1415 | - | then ( | |
1417 | + | let dH = I | |
1418 | + | let eX = if ((dH.dApp == this)) | |
1419 | + | then (dH.function == "takeIntoAccountExtraFunds") | |
1416 | 1420 | else false | |
1417 | - | let | |
1421 | + | let eY = if (if (if (sigVerify(eR.bodyBytes, eR.proofs[0], L)) | |
1418 | 1422 | then true | |
1419 | - | else sigVerify( | |
1423 | + | else sigVerify(eR.bodyBytes, eR.proofs[0], M)) | |
1420 | 1424 | then true | |
1421 | - | else sigVerify( | |
1425 | + | else sigVerify(eR.bodyBytes, eR.proofs[0], N)) | |
1422 | 1426 | then true | |
1423 | - | else sigVerify( | |
1424 | - | if (if ( | |
1425 | - | then | |
1427 | + | else sigVerify(eR.bodyBytes, eR.proofs[0], O) | |
1428 | + | if (if (eX) | |
1429 | + | then eY | |
1426 | 1430 | else false) | |
1427 | 1431 | then true | |
1428 | - | else | |
1432 | + | else eT | |
1429 | 1433 | } | |
1430 | - | else | |
1434 | + | else eT | |
1431 | 1435 | } | |
1432 | 1436 |
github/deemru/w8io/169f3d6 291.89 ms ◑