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