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