tx · L2UPHXnuVo3LCR4DpQ6zRRatLUoQDXyaArzzreynmi1 3N3DnVffnUyZtz2MRbk5U7giN112WempMNd: -0.04000000 Waves 2023.06.02 13:40 [2604947] smart account 3N3DnVffnUyZtz2MRbk5U7giN112WempMNd > SELF 0.00000000 Waves
{ "type": 13, "id": "L2UPHXnuVo3LCR4DpQ6zRRatLUoQDXyaArzzreynmi1", "fee": 4000000, "feeAssetId": null, "timestamp": 1685702473424, "version": 2, "chainId": 84, "sender": "3N3DnVffnUyZtz2MRbk5U7giN112WempMNd", "senderPublicKey": "3c1wAgvTRCNXCGMidVnB1j4gTYUqtwHR9tNNu2v4ZUNk", "proofs": [ "4G5TmoyDt9E7wFcVKKz5EFHHjCnEm18xDHfKzZU8tmsRnHBkubTiUTf7Zzx9YiT23UzRsNxbVKsJBdgm3jYrkwB5" ], "script": "base64:BgKhAQgCEgkKBwgICAEICAgSABIECgIIARIECgIIARIAEgMKAQgSAwoBCBIECgIIARIECgIIARIECgIIARIAEgYKBAgICAgSBgoECAgICBIECgIICBIECgIICBIDCgEEEgMKAQgSAwoBBBIICgYECAEICAgSBQoDBAgIEgYKBAQIBAgSBQoDBAgIEgMKAQQSBAoCCAQSBAoCCAQSAwoBBBIDCgEEIQAScmVzZXJ2ZUZ1bmRBZGRyZXNzCQEHQWRkcmVzcwEBGgFUeZG1LyVCo5RRTlF1JldW6VKUxeX5QOzZAAtyZXNlcnZlRnVuZAAUAAxmbGFzaExvYW5GZWUAwIQ9ABFhZ2dyZWdhdG9yQWRkcmVzcwkBB0FkZHJlc3MBARoBVHmRtS8lQqOUUU5RdSZXVulSlMXl+UDs2QAJb3JhY2xlU3RyAiMzTjRLYk1uSkg4RmFNOTRqcXhORmUyb3laOEdCN1o4eVZCUAARc2h1dGRvd25XaGl0ZWxpc3QJAMwIAgEaAVfX4SNRjnyriFrV1yiXddiIddOPriMFpuEJAMwIAgEaAVdjDQOBpn9bVNIcueQoKvOngDTw2LWN1WUJAMwIAgEaAVez1Z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AiRhAiRpAwkAZwIFAiRpBQIkcwUCJGEJAQFmAgUCJGEJAJEDAgUCJGwFAiRpCgEFJGYwXzICAiRhAiRpAwkAZwIFAiRpBQIkcwUCJGEJAAIBAhNMaXN0IHNpemUgZXhjZWVkcyA2CQEFJGYwXzICCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECBQUkYWNjMAAAAAEAAgADAAQABQAGAwUFZGVidWcJAAIBBQlwYXJhbWV0ZXIJAJQKAgUDbmlsBQlwYXJhbWV0ZXIBAnR4AQZ2ZXJpZnkACQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwAACAUCdHgPc2VuZGVyUHVibGljS2V5OluoaQ==", "height": 2604947, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: CNBgizaFL5JEBKhkCkpo22hPiEqDbKEPxBTu7nUGXxfa Next: HuL3PdrDxgtddSUk5tzRx6rVgADLqfcrG5hVmegTVb7W Diff:
Old | New | Differences | |
---|---|---|---|
695 | 695 | ||
696 | 696 | ||
697 | 697 | @Callable(aK) | |
698 | - | func updateParameter (C,bE) = if (if ((aK.caller != this)) | |
699 | - | then (aK.caller != Address(base58'3P3o9cLTV2u9N4nYNKRYL6gy6cUEU9DwXW8')) | |
700 | - | else false) | |
698 | + | func initNewToken (ad,bE,bF,bG) = if ((aK.caller != this)) | |
701 | 699 | then throw("admin only") | |
702 | - | else [ | |
700 | + | else [StringEntry("setup_tokens", ((F("setup_tokens") + ",") + ad)), StringEntry("setup_ltvs", ((F("setup_ltvs") + ",") + bE)), StringEntry("setup_lts", ((F("setup_lts") + ",") + bF)), StringEntry("setup_penalties", ((F("setup_penalties") + ",") + bG)), IntegerEntry((ad + "_bRate"), n), IntegerEntry((ad + "_sRate"), n)] | |
703 | 701 | ||
704 | 702 | ||
705 | 703 | ||
706 | 704 | @Callable(aK) | |
707 | - | func | |
705 | + | func updateParameter (C,bH) = if (if ((aK.caller != this)) | |
708 | 706 | then (aK.caller != Address(base58'3P3o9cLTV2u9N4nYNKRYL6gy6cUEU9DwXW8')) | |
709 | 707 | else false) | |
710 | 708 | then throw("admin only") | |
711 | - | else [ | |
709 | + | else [IntegerEntry(C, parseIntValue(bH))] | |
712 | 710 | ||
713 | 711 | ||
714 | 712 | ||
715 | 713 | @Callable(aK) | |
716 | - | func claimToReserveFund (bF) = { | |
717 | - | let bG = L() | |
718 | - | let ag = ab(bG[0], "sRate")._2 | |
714 | + | func updateString (C,bH) = if (if ((aK.caller != this)) | |
715 | + | then (aK.caller != Address(base58'3P3o9cLTV2u9N4nYNKRYL6gy6cUEU9DwXW8')) | |
716 | + | else false) | |
717 | + | then throw("admin only") | |
718 | + | else [StringEntry(C, bH)] | |
719 | + | ||
720 | + | ||
721 | + | ||
722 | + | @Callable(aK) | |
723 | + | func claimToReserveFund (bI) = { | |
724 | + | let bJ = L() | |
725 | + | let ag = ab(bJ[0], "sRate")._2 | |
719 | 726 | let q = [0, 1, 2, 3, 4, 5] | |
720 | - | func r (s, | |
727 | + | func r (s,bK) = if ((bK >= size(bJ))) | |
721 | 728 | then s | |
722 | 729 | else { | |
723 | - | let j = | |
724 | - | let | |
725 | - | let aw = ((((K(j) + B(("autostake_amount_" + j))) + (if (( | |
726 | - | then parseIntValue( | |
727 | - | else 0)) + fraction(B(("total_borrowed_" + j)), ag[(( | |
730 | + | let j = bJ[bK] | |
731 | + | let bL = F(("autostake_amount_" + j)) | |
732 | + | let aw = ((((K(j) + B(("autostake_amount_" + j))) + (if ((bL != "")) | |
733 | + | then parseIntValue(bL) | |
734 | + | else 0)) + fraction(B(("total_borrowed_" + j)), ag[((bK * 3) + 1)].value, n)) - fraction(B(("total_supplied_" + j)), ag[(bK * 3)].value, n)) | |
728 | 735 | let bg = if ((B(("autostake_amount_" + j)) > 0)) | |
729 | 736 | then invoke(this, "unstakeToken", [j, max([aw, 0])], nil) | |
730 | 737 | else 0 | |
733 | 740 | else throw("Strict value is not equal to itself.") | |
734 | 741 | } | |
735 | 742 | ||
736 | - | let | |
743 | + | let bM = { | |
737 | 744 | let u = q | |
738 | 745 | let v = size(u) | |
739 | 746 | let w = nil | |
747 | 754 | ||
748 | 755 | A(x(x(x(x(x(x(w, 0), 1), 2), 3), 4), 5), 6) | |
749 | 756 | } | |
750 | - | func | |
757 | + | func bN (s,bK) = if ((bK >= size(bJ))) | |
751 | 758 | then s | |
752 | 759 | else { | |
753 | - | let j = | |
754 | - | (s ++ [ScriptTransfer(a, max([ | |
760 | + | let j = bJ[bK] | |
761 | + | (s ++ [ScriptTransfer(a, max([bM[bK], 0]), J(j))]) | |
755 | 762 | } | |
756 | 763 | ||
757 | - | if ( | |
758 | - | then throw(p( | |
764 | + | if (bI) | |
765 | + | then throw(p(bM)) | |
759 | 766 | else $Tuple2({ | |
760 | 767 | let u = q | |
761 | 768 | let v = size(u) | |
762 | 769 | let w = nil | |
763 | - | func | |
770 | + | func bO (y,z) = if ((z >= v)) | |
764 | 771 | then y | |
765 | - | else | |
772 | + | else bN(y, u[z]) | |
766 | 773 | ||
767 | - | func | |
774 | + | func bP (y,z) = if ((z >= v)) | |
768 | 775 | then y | |
769 | 776 | else throw("List size exceeds 6") | |
770 | 777 | ||
771 | - | | |
772 | - | }, | |
778 | + | bP(bO(bO(bO(bO(bO(bO(w, 0), 1), 2), 3), 4), 5), 6) | |
779 | + | }, bM) | |
773 | 780 | } | |
774 | 781 | ||
775 | 782 | ||
776 | 783 | ||
777 | 784 | @Callable(aK) | |
778 | 785 | func reSetup (j) = { | |
779 | - | let | |
780 | - | if ((o > (height - | |
786 | + | let bQ = B("resetup_lastUpdate") | |
787 | + | if ((o > (height - bQ))) | |
781 | 788 | then throw("can be updated only once per day") | |
782 | 789 | else { | |
783 | 790 | let bC = split(F("setup_lts"), ",") | |
784 | - | let | |
791 | + | let bJ = L() | |
785 | 792 | let R = af(j) | |
786 | - | let | |
787 | - | let | |
793 | + | let bR = B((("setup_" + j) + "_tempLT")) | |
794 | + | let bF = parseIntValue(bJ[value(indexOf(bJ, j))]) | |
788 | 795 | if ((R > 90000000)) | |
789 | - | then [IntegerEntry((("setup_" + j) + "_tempLT"), fraction( | |
790 | - | else if (if (( | |
796 | + | then [IntegerEntry((("setup_" + j) + "_tempLT"), fraction(bR, 9975, 10000))] | |
797 | + | else if (if ((bF > bR)) | |
791 | 798 | then (90000000 > R) | |
792 | 799 | else false) | |
793 | - | then [IntegerEntry((("setup_" + j) + "_tempLT"), fraction( | |
800 | + | then [IntegerEntry((("setup_" + j) + "_tempLT"), fraction(bR, 10025, 10000))] | |
794 | 801 | else nil | |
795 | 802 | } | |
796 | 803 | } | |
798 | 805 | ||
799 | 806 | ||
800 | 807 | @Callable(aK) | |
801 | - | func shutdown ( | |
808 | + | func shutdown (bS) = if ((indexOf(f, aK.caller.bytes) == unit)) | |
802 | 809 | then throw("user not in a whitelist") | |
803 | - | else [BooleanEntry("setup_active", !( | |
810 | + | else [BooleanEntry("setup_active", !(bS))] | |
804 | 811 | ||
805 | 812 | ||
806 | 813 | ||
807 | 814 | @Callable(aK) | |
808 | - | func liquidate ( | |
815 | + | func liquidate (bI,h,as,aM,aN,bT) = if (!(g(aK.caller))) | |
809 | 816 | then throw("temporarily available for whitelist only") | |
810 | 817 | else if (!(E("setup_active"))) | |
811 | 818 | then throw("market is stopped") | |
812 | 819 | else { | |
813 | - | let | |
814 | - | if (( | |
820 | + | let bU = ao(h) | |
821 | + | if ((bU == bU)) | |
815 | 822 | then { | |
816 | - | let bT = ab(aM, "sRate") | |
817 | - | let au = bT._1 | |
818 | - | let bU = bT._2 | |
819 | - | let bV = ab(aN, "bRate") | |
820 | - | let aE = bV._1 | |
823 | + | let bV = ab(aM, "sRate") | |
824 | + | let au = bV._1 | |
821 | 825 | let bW = bV._2 | |
822 | - | let bX = fraction(as, n, au) | |
823 | - | let bY = B(((h + "_supplied_") + aM)) | |
824 | - | let bZ = B(((h + "_borrowed_") + aN)) | |
825 | - | let ca = if ((bZ > 0)) | |
826 | - | then bZ | |
826 | + | let bX = ab(aN, "bRate") | |
827 | + | let aE = bX._1 | |
828 | + | let bY = bX._2 | |
829 | + | let bZ = fraction(as, n, au) | |
830 | + | let ca = B(((h + "_supplied_") + aM)) | |
831 | + | let cb = B(((h + "_borrowed_") + aN)) | |
832 | + | let cc = if ((cb > 0)) | |
833 | + | then cb | |
827 | 834 | else throw("user has no borrow in this token") | |
828 | - | if (( | |
835 | + | if ((bU > 0)) | |
829 | 836 | then throw("user can't be liquidated") | |
830 | - | else if (( | |
837 | + | else if ((bZ > ca)) | |
831 | 838 | then throw("position to liquidate is bigger than user's supply") | |
832 | 839 | else { | |
833 | - | let | |
834 | - | if (( | |
840 | + | let cd = K(aM) | |
841 | + | if ((cd == cd)) | |
835 | 842 | then { | |
836 | - | let | |
837 | - | if (( | |
843 | + | let ce = K(aN) | |
844 | + | if ((ce == ce)) | |
838 | 845 | then { | |
839 | - | let | |
840 | - | if (( | |
846 | + | let cf = invoke(d, "swap", [bT, 0], [AttachedPayment(J(aM), as)]) | |
847 | + | if ((cf == cf)) | |
841 | 848 | then { | |
842 | - | let | |
843 | - | if (( | |
849 | + | let cg = (cd - K(aM)) | |
850 | + | if ((cg == cg)) | |
844 | 851 | then { | |
845 | - | let | |
846 | - | if (( | |
852 | + | let ch = (K(aN) - ce) | |
853 | + | if ((ch == ch)) | |
847 | 854 | then { | |
848 | - | let | |
849 | - | let | |
850 | - | let | |
851 | - | let | |
852 | - | let | |
853 | - | let | |
854 | - | let | |
855 | - | let | |
856 | - | let | |
857 | - | let | |
858 | - | if (( | |
855 | + | let ci = ai(aM)._1 | |
856 | + | let cj = am(aM) | |
857 | + | let ck = fraction(cg, ci, cj) | |
858 | + | let cl = ai(aN)._2 | |
859 | + | let cm = am(aN) | |
860 | + | let cn = fraction(ch, cl, cm) | |
861 | + | let bG = parseIntValue(split(F("setup_penalties"), ",")[value(indexOf(L(), aN))]) | |
862 | + | let co = (cn - fraction(ck, (l - bG), l)) | |
863 | + | let cp = fraction(cg, n, au) | |
864 | + | let cq = fraction(fraction(ch, n, aE), (l - fraction(co, l, cn)), l) | |
865 | + | if ((cg > as)) | |
859 | 866 | then throw("more assets exchanged than expected") | |
860 | - | else if ((0 > | |
867 | + | else if ((0 > co)) | |
861 | 868 | then throw("price impact is bigger than liquidation penalty") | |
862 | - | else [IntegerEntry(((h + "_supplied_") + aM), ( | |
869 | + | else [IntegerEntry(((h + "_supplied_") + aM), (ca - cp)), IntegerEntry(((h + "_borrowed_") + aN), (cc - cq)), IntegerEntry(("total_supplied_" + aM), (B(("total_supplied_" + aM)) - cp)), IntegerEntry(("total_borrowed_" + aN), (B(("total_borrowed_" + aN)) - cq))] | |
863 | 870 | } | |
864 | 871 | else throw("Strict value is not equal to itself.") | |
865 | 872 | } | |
878 | 885 | ||
879 | 886 | ||
880 | 887 | @Callable(aK) | |
881 | - | func liquidateV2 ( | |
888 | + | func liquidateV2 (bI,h,aM) = if (!(g(aK.caller))) | |
882 | 889 | then throw("temporarily available for whitelist only") | |
883 | 890 | else if (!(E("setup_active"))) | |
884 | 891 | then throw("market is stopped") | |
885 | 892 | else { | |
886 | 893 | let aT = aK.payments[0].assetId | |
887 | 894 | let aN = H(aT) | |
888 | - | let | |
889 | - | let | |
890 | - | if (( | |
891 | - | then if (( | |
895 | + | let cr = aK.payments[0].amount | |
896 | + | let bU = ao(h) | |
897 | + | if ((bU == bU)) | |
898 | + | then if ((bU > 0)) | |
892 | 899 | then throw("user can't be liquidated") | |
893 | 900 | else { | |
894 | - | let | |
895 | - | let | |
896 | - | let | |
897 | - | let | |
898 | - | let aE = | |
899 | - | let | |
900 | - | let | |
901 | - | let | |
902 | - | let | |
903 | - | let | |
904 | - | let | |
905 | - | let | |
906 | - | let | |
907 | - | let | |
908 | - | let aO = fraction( | |
909 | - | let aV = fraction( | |
910 | - | let | |
911 | - | let | |
912 | - | let | |
913 | - | then | |
901 | + | let cs = L() | |
902 | + | let ct = value(indexOf(cs, aN)) | |
903 | + | let cu = value(indexOf(cs, aM)) | |
904 | + | let cv = ab(aN, "bRate") | |
905 | + | let aE = cv._1 | |
906 | + | let bW = cv._2 | |
907 | + | let cl = ai(aN)._2 | |
908 | + | let cm = am(aN) | |
909 | + | let cw = fraction(cr, cl, cm) | |
910 | + | let bG = parseIntValue(value(split(F("setup_penalties"), ",")[ct])) | |
911 | + | let ci = ai(aM)._1 | |
912 | + | let cj = am(aM) | |
913 | + | let cx = fraction(cw, (l + bG), l) | |
914 | + | let bZ = fraction(cx, cj, ci) | |
915 | + | let aO = fraction(cr, n, aE) | |
916 | + | let aV = fraction(bZ, n, bW[((cu * 3) + 1)].value) | |
917 | + | let ca = B(((h + "_supplied_") + aM)) | |
918 | + | let cb = B(((h + "_borrowed_") + aN)) | |
919 | + | let cc = if ((cb > 0)) | |
920 | + | then cb | |
914 | 921 | else throw("user has no borrow in this token") | |
915 | - | if ((aV > | |
922 | + | if ((aV > ca)) | |
916 | 923 | then throw("position to liquidate is bigger than user's supply") | |
917 | - | else if ( | |
924 | + | else if (bI) | |
918 | 925 | then throw("liquidation will pass") | |
919 | - | else ([ScriptTransfer(aK.caller, | |
926 | + | else ([ScriptTransfer(aK.caller, bZ, J(aM)), IntegerEntry(((h + "_supplied_") + aM), (ca - aV)), IntegerEntry(((h + "_borrowed_") + aN), (cc - aO)), IntegerEntry(("total_supplied_" + aM), (B(("total_supplied_" + aM)) - aV)), IntegerEntry(("total_borrowed_" + aN), (B(("total_borrowed_" + aN)) - aO))] ++ bW) | |
920 | 927 | } | |
921 | 928 | else throw("Strict value is not equal to itself.") | |
922 | 929 | } | |
924 | 931 | ||
925 | 932 | ||
926 | 933 | @Callable(aK) | |
927 | - | func getUserCollateral ( | |
928 | - | let | |
934 | + | func getUserCollateral (bI,h,cy,cz) = { | |
935 | + | let bJ = L() | |
929 | 936 | let bB = split(F("setup_ltvs"), ",") | |
930 | 937 | let bC = split(F("setup_lts"), ",") | |
931 | - | let ag = ab( | |
932 | - | let | |
933 | - | func r (s,t) = if ((t >= size( | |
938 | + | let ag = ab(bJ[0], "sRate")._2 | |
939 | + | let cA = split(cz, ",") | |
940 | + | func r (s,t) = if ((t >= size(bJ))) | |
934 | 941 | then s | |
935 | 942 | else { | |
936 | - | let | |
937 | - | let | |
938 | - | let | |
939 | - | then if (if (( | |
943 | + | let cB = B(((h + "_supplied_") + bJ[t])) | |
944 | + | let cC = B(((h + "_borrowed_") + bJ[t])) | |
945 | + | let cD = if ((cz == "")) | |
946 | + | then if (if ((cC != 0)) | |
940 | 947 | then true | |
941 | - | else ( | |
948 | + | else (cB != 0)) | |
942 | 949 | then true | |
943 | 950 | else false | |
944 | 951 | else true | |
945 | - | if ( | |
952 | + | if (cD) | |
946 | 953 | then { | |
947 | - | let aA = am( | |
948 | - | let ay = ai( | |
949 | - | ((s + fraction(fraction(fraction(( | |
950 | - | then ( | |
954 | + | let aA = am(bJ[t]) | |
955 | + | let ay = ai(bJ[t]) | |
956 | + | ((s + fraction(fraction(fraction((cB + (if (if (if ((cz != "")) | |
957 | + | then (cA[0] == bJ[t]) | |
951 | 958 | else false) | |
952 | - | then ( | |
959 | + | then (cA[1] == "supplied") | |
953 | 960 | else false) | |
954 | - | then parseIntValue( | |
955 | - | else 0)), ag[(t * 3)].value, n), parseIntValue(bB[t]), l), ay._1, aA)) - (if ( | |
956 | - | then fraction(fraction(fraction(( | |
957 | - | then ( | |
961 | + | then parseIntValue(cA[2]) | |
962 | + | else 0)), ag[(t * 3)].value, n), parseIntValue(bB[t]), l), ay._1, aA)) - (if (cy) | |
963 | + | then fraction(fraction(fraction((cC + (if (if (if ((cz != "")) | |
964 | + | then (cA[0] == bJ[t]) | |
958 | 965 | else false) | |
959 | - | then ( | |
966 | + | then (cA[1] == "borrowed") | |
960 | 967 | else false) | |
961 | - | then parseIntValue( | |
968 | + | then parseIntValue(cA[2]) | |
962 | 969 | else 0)), ag[((t * 3) + 1)].value, n), l, parseIntValue(bC[t])), ay._2, aA) | |
963 | 970 | else 0)) | |
964 | 971 | } | |
965 | 972 | else s | |
966 | 973 | } | |
967 | 974 | ||
968 | - | let | |
975 | + | let cE = { | |
969 | 976 | let u = [0, 1, 2, 3, 4, 5] | |
970 | 977 | let v = size(u) | |
971 | 978 | let w = 0 | |
979 | 986 | ||
980 | 987 | A(x(x(x(x(x(x(w, 0), 1), 2), 3), 4), 5), 6) | |
981 | 988 | } | |
982 | - | if ( | |
983 | - | then throw(toString( | |
984 | - | else $Tuple2(ag, | |
989 | + | if (bI) | |
990 | + | then throw(toString(cE)) | |
991 | + | else $Tuple2(ag, cE) | |
985 | 992 | } | |
986 | 993 | ||
987 | 994 | ||
988 | 995 | ||
989 | 996 | @Callable(aK) | |
990 | - | func getAssetDebt ( | |
991 | - | let | |
997 | + | func getAssetDebt (bI,h,j) = { | |
998 | + | let cC = B(((h + "_borrowed_") + j)) | |
992 | 999 | let aA = am(j) | |
993 | 1000 | let T = ab(j, "bRate")._1 | |
994 | - | let | |
995 | - | if ( | |
996 | - | then throw(toString( | |
997 | - | else $Tuple2(nil, | |
1001 | + | let cE = fraction(cC, T, n) | |
1002 | + | if (bI) | |
1003 | + | then throw(toString(cE)) | |
1004 | + | else $Tuple2(nil, cE) | |
998 | 1005 | } | |
999 | 1006 | ||
1000 | 1007 | ||
1001 | 1008 | ||
1002 | 1009 | @Callable(aK) | |
1003 | - | func getPrices ( | |
1004 | - | let | |
1005 | - | func r (s,t) = if ((t >= size( | |
1010 | + | func getPrices (bI) = { | |
1011 | + | let bJ = L() | |
1012 | + | func r (s,t) = if ((t >= size(bJ))) | |
1006 | 1013 | then s | |
1007 | 1014 | else { | |
1008 | - | let ay = ai( | |
1015 | + | let ay = ai(bJ[t]) | |
1009 | 1016 | ((((s + toString(ay._1)) + ",") + toString(ay._2)) + "|") | |
1010 | 1017 | } | |
1011 | 1018 | ||
1012 | - | let | |
1019 | + | let cE = { | |
1013 | 1020 | let u = [0, 1, 2, 3, 4, 5] | |
1014 | 1021 | let v = size(u) | |
1015 | 1022 | let w = "" | |
1023 | 1030 | ||
1024 | 1031 | A(x(x(x(x(x(x(w, 0), 1), 2), 3), 4), 5), 6) | |
1025 | 1032 | } | |
1026 | - | if ( | |
1027 | - | then throw( | |
1028 | - | else $Tuple2(nil, | |
1033 | + | if (bI) | |
1034 | + | then throw(cE) | |
1035 | + | else $Tuple2(nil, cE) | |
1029 | 1036 | } | |
1030 | 1037 | ||
1031 | 1038 | ||
1032 | 1039 | ||
1033 | 1040 | @Callable(aK) | |
1034 | - | func calculateUtilizationRatio (j, | |
1041 | + | func calculateUtilizationRatio (j,bI) = if (bI) | |
1035 | 1042 | then throw(toString(af(j))) | |
1036 | 1043 | else $Tuple2(nil, af(j)) | |
1037 | 1044 | ||
1038 | 1045 | ||
1039 | 1046 | ||
1040 | 1047 | @Callable(aK) | |
1041 | - | func calculateOutdatedUR (j, | |
1048 | + | func calculateOutdatedUR (j,bI) = if (bI) | |
1042 | 1049 | then throw(toString(O(j))) | |
1043 | 1050 | else $Tuple2(nil, O(j)) | |
1044 | 1051 | ||
1045 | 1052 | ||
1046 | 1053 | ||
1047 | 1054 | @Callable(aK) | |
1048 | - | func calculateTokenRates ( | |
1055 | + | func calculateTokenRates (bI) = { | |
1049 | 1056 | func r (s,j) = { | |
1050 | 1057 | let ag = U(j) | |
1051 | 1058 | $Tuple2(((((s._1 + toString(ag[1].value)) + "|") + toString(ag[0].value)) + ","), (s._2 ++ ag)) | |
1052 | 1059 | } | |
1053 | 1060 | ||
1054 | - | let | |
1061 | + | let bM = { | |
1055 | 1062 | let u = L() | |
1056 | 1063 | let v = size(u) | |
1057 | 1064 | let w = $Tuple2("", nil) | |
1065 | 1072 | ||
1066 | 1073 | A(x(x(x(x(x(x(w, 0), 1), 2), 3), 4), 5), 6) | |
1067 | 1074 | } | |
1068 | - | if ( | |
1069 | - | then throw( | |
1070 | - | else $Tuple2( | |
1075 | + | if (bI) | |
1076 | + | then throw(bM._1) | |
1077 | + | else $Tuple2(bM._2, bM._1) | |
1071 | 1078 | } | |
1072 | 1079 | ||
1073 | 1080 | ||
1074 | 1081 | ||
1075 | 1082 | @Callable(aK) | |
1076 | - | func calculateTokensInterest ( | |
1083 | + | func calculateTokensInterest (bI) = { | |
1077 | 1084 | func r (s,j) = { | |
1078 | 1085 | let T = fraction(Q(j), o, l) | |
1079 | 1086 | ((s + toString(T)) + ",") | |
1080 | 1087 | } | |
1081 | 1088 | ||
1082 | - | let | |
1089 | + | let bM = { | |
1083 | 1090 | let u = L() | |
1084 | 1091 | let v = size(u) | |
1085 | 1092 | let w = "" | |
1093 | 1100 | ||
1094 | 1101 | A(x(x(x(x(x(x(w, 0), 1), 2), 3), 4), 5), 6) | |
1095 | 1102 | } | |
1096 | - | if ( | |
1097 | - | then throw( | |
1098 | - | else $Tuple2(nil, | |
1103 | + | if (bI) | |
1104 | + | then throw(bM) | |
1105 | + | else $Tuple2(nil, bM) | |
1099 | 1106 | } | |
1100 | 1107 | ||
1101 | 1108 | ||
1102 | - | @Verifier( | |
1103 | - | func | |
1109 | + | @Verifier(cF) | |
1110 | + | func cG () = sigVerify(cF.bodyBytes, cF.proofs[0], cF.senderPublicKey) | |
1104 | 1111 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = Address(base58'3Mzzt65puEs2W9M1m9iFBvMEdfM5bASE1hJ') | |
5 | 5 | ||
6 | 6 | let b = 20 | |
7 | 7 | ||
8 | 8 | let c = 1000000 | |
9 | 9 | ||
10 | 10 | let d = Address(base58'3Mzzt65puEs2W9M1m9iFBvMEdfM5bASE1hJ') | |
11 | 11 | ||
12 | 12 | let e = "3N4KbMnJH8FaM94jqxNFe2oyZ8GB7Z8yVBP" | |
13 | 13 | ||
14 | 14 | let f = [base58'3PMcMiMEs6w56NRGacksXtFG5zS7doE9fpL', base58'3PAxdDSmN758L5SHSGRC5apEtQE2aApZotG', base58'3PJKmXoHJvVeQXjSJdhtkUcFDtdiQqMbUTD', base58'3PQdNxynJy5mche2kxMVc5shXWzK8Gstq3o', base58'3PHbdpaKzz8EiAngGHaFu2hVuNCdsC67qh3', base58'3P6Ksahs71SiKQgQ4qaZuFAVhqncdi2nvJQ'] | |
15 | 15 | ||
16 | 16 | func g (h) = !((h != Address(base58'3Mzzt65puEs2W9M1m9iFBvMEdfM5bASE1hJ'))) | |
17 | 17 | ||
18 | 18 | ||
19 | 19 | func i (j) = { | |
20 | 20 | let k = j | |
21 | 21 | if (("8DtMtpVwVq62sdcVFVzh6nuprgzG7LSjpLdHnQnrAFgY" == k)) | |
22 | 22 | then $Tuple4(2000000, 25000000, 80000000, 100000000) | |
23 | 23 | else if (("25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT" == k)) | |
24 | 24 | then $Tuple4(2000000, 25000000, 80000000, 100000000) | |
25 | 25 | else if (("WAVES" == k)) | |
26 | 26 | then $Tuple4(2000000, 30000000, 80000000, 50000000) | |
27 | 27 | else $Tuple4(0, 20000000, 80000000, 80000000) | |
28 | 28 | } | |
29 | 29 | ||
30 | 30 | ||
31 | 31 | let l = 100000000 | |
32 | 32 | ||
33 | 33 | let m = 10000000000 | |
34 | 34 | ||
35 | 35 | let n = (l * l) | |
36 | 36 | ||
37 | 37 | let o = 1440 | |
38 | 38 | ||
39 | 39 | func p (q) = { | |
40 | 40 | func r (s,t) = ((s + toString(t)) + ",") | |
41 | 41 | ||
42 | 42 | let u = q | |
43 | 43 | let v = size(u) | |
44 | 44 | let w = "" | |
45 | 45 | func x (y,z) = if ((z >= v)) | |
46 | 46 | then y | |
47 | 47 | else r(y, u[z]) | |
48 | 48 | ||
49 | 49 | func A (y,z) = if ((z >= v)) | |
50 | 50 | then y | |
51 | 51 | else throw("List size exceeds 6") | |
52 | 52 | ||
53 | 53 | A(x(x(x(x(x(x(w, 0), 1), 2), 3), 4), 5), 6) | |
54 | 54 | } | |
55 | 55 | ||
56 | 56 | ||
57 | 57 | func B (C) = { | |
58 | 58 | let k = getInteger(this, C) | |
59 | 59 | if ($isInstanceOf(k, "Int")) | |
60 | 60 | then { | |
61 | 61 | let D = k | |
62 | 62 | D | |
63 | 63 | } | |
64 | 64 | else 0 | |
65 | 65 | } | |
66 | 66 | ||
67 | 67 | ||
68 | 68 | func E (C) = { | |
69 | 69 | let k = getBoolean(this, C) | |
70 | 70 | if ($isInstanceOf(k, "Boolean")) | |
71 | 71 | then { | |
72 | 72 | let D = k | |
73 | 73 | D | |
74 | 74 | } | |
75 | 75 | else false | |
76 | 76 | } | |
77 | 77 | ||
78 | 78 | ||
79 | 79 | func F (C) = { | |
80 | 80 | let k = getString(this, C) | |
81 | 81 | if ($isInstanceOf(k, "String")) | |
82 | 82 | then { | |
83 | 83 | let D = k | |
84 | 84 | D | |
85 | 85 | } | |
86 | 86 | else "" | |
87 | 87 | } | |
88 | 88 | ||
89 | 89 | ||
90 | 90 | func G (C) = { | |
91 | 91 | let k = getBinary(this, C) | |
92 | 92 | if ($isInstanceOf(k, "ByteVector")) | |
93 | 93 | then { | |
94 | 94 | let D = k | |
95 | 95 | D | |
96 | 96 | } | |
97 | 97 | else base58'' | |
98 | 98 | } | |
99 | 99 | ||
100 | 100 | ||
101 | 101 | func H (I) = { | |
102 | 102 | let k = I | |
103 | 103 | if ($isInstanceOf(k, "ByteVector")) | |
104 | 104 | then { | |
105 | 105 | let D = k | |
106 | 106 | toBase58String(D) | |
107 | 107 | } | |
108 | 108 | else "WAVES" | |
109 | 109 | } | |
110 | 110 | ||
111 | 111 | ||
112 | 112 | func J (j) = if ((j == "WAVES")) | |
113 | 113 | then unit | |
114 | 114 | else fromBase58String(j) | |
115 | 115 | ||
116 | 116 | ||
117 | 117 | func K (j) = if ((j == "WAVES")) | |
118 | 118 | then wavesBalance(this).available | |
119 | 119 | else assetBalance(this, fromBase58String(j)) | |
120 | 120 | ||
121 | 121 | ||
122 | 122 | func L () = split(F("setup_tokens"), ",") | |
123 | 123 | ||
124 | 124 | ||
125 | 125 | func M () = { | |
126 | 126 | let N = F("setup_maxsupply") | |
127 | 127 | if ((N == "")) | |
128 | 128 | then [-1, -1, -1, -1, -1, -1, -1] | |
129 | 129 | else split(N, ",") | |
130 | 130 | } | |
131 | 131 | ||
132 | 132 | ||
133 | 133 | func O (j) = { | |
134 | 134 | let P = fraction(B(("total_supplied_" + j)), B((j + "_sRate")), n) | |
135 | 135 | if ((P == 0)) | |
136 | 136 | then 0 | |
137 | 137 | else fraction(l, fraction(B(("total_borrowed_" + j)), B((j + "_bRate")), n), P) | |
138 | 138 | } | |
139 | 139 | ||
140 | 140 | ||
141 | 141 | func Q (j) = { | |
142 | 142 | let R = O(j) | |
143 | 143 | let S = i(j) | |
144 | 144 | let T = (S._1 + (if ((S._3 >= R)) | |
145 | 145 | then fraction(R, S._2, S._3) | |
146 | 146 | else (S._2 + fraction((R - S._3), S._4, (100000000 - S._3))))) | |
147 | 147 | max([fraction(T, l, (o * 365)), 1]) | |
148 | 148 | } | |
149 | 149 | ||
150 | 150 | ||
151 | 151 | func U (j) = { | |
152 | 152 | let V = Q(j) | |
153 | 153 | let R = O(j) | |
154 | 154 | let W = B("lastRateHeight") | |
155 | 155 | let X = max([B((j + "_bRate")), n]) | |
156 | 156 | let Y = (X + ((height - W) * V)) | |
157 | 157 | let Z = max([B((j + "_sRate")), n]) | |
158 | 158 | let aa = (Z + ((((height - W) * fraction(V, R, l)) * (100 - b)) / 100)) | |
159 | 159 | [IntegerEntry((j + "_sRate"), aa), IntegerEntry((j + "_bRate"), Y), IntegerEntry("lastRateHeight", height)] | |
160 | 160 | } | |
161 | 161 | ||
162 | 162 | ||
163 | 163 | func ab (j,ac) = { | |
164 | 164 | func r (s,ad) = { | |
165 | 165 | let ae = U(ad) | |
166 | 166 | $Tuple2(if ((ad != j)) | |
167 | 167 | then s._1 | |
168 | 168 | else if ((ac == "sRate")) | |
169 | 169 | then ae[0].value | |
170 | 170 | else ae[1].value, (s._2 ++ ae)) | |
171 | 171 | } | |
172 | 172 | ||
173 | 173 | let u = L() | |
174 | 174 | let v = size(u) | |
175 | 175 | let w = $Tuple2(0, nil) | |
176 | 176 | func x (y,z) = if ((z >= v)) | |
177 | 177 | then y | |
178 | 178 | else r(y, u[z]) | |
179 | 179 | ||
180 | 180 | func A (y,z) = if ((z >= v)) | |
181 | 181 | then y | |
182 | 182 | else throw("List size exceeds 6") | |
183 | 183 | ||
184 | 184 | A(x(x(x(x(x(x(w, 0), 1), 2), 3), 4), 5), 6) | |
185 | 185 | } | |
186 | 186 | ||
187 | 187 | ||
188 | 188 | func af (j) = { | |
189 | 189 | let ag = U(j) | |
190 | 190 | let P = fraction(B(("total_supplied_" + j)), ag[0].value, n) | |
191 | 191 | fraction(l, fraction(B(("total_borrowed_" + j)), ag[1].value, n), P) | |
192 | 192 | } | |
193 | 193 | ||
194 | 194 | ||
195 | 195 | func ah () = { | |
196 | 196 | func r (s,ad) = (s ++ U(ad)) | |
197 | 197 | ||
198 | 198 | let u = L() | |
199 | 199 | let v = size(u) | |
200 | 200 | let w = nil | |
201 | 201 | func x (y,z) = if ((z >= v)) | |
202 | 202 | then y | |
203 | 203 | else r(y, u[z]) | |
204 | 204 | ||
205 | 205 | func A (y,z) = if ((z >= v)) | |
206 | 206 | then y | |
207 | 207 | else throw("List size exceeds 6") | |
208 | 208 | ||
209 | 209 | A(x(x(x(x(x(x(w, 0), 1), 2), 3), 4), 5), 6) | |
210 | 210 | } | |
211 | 211 | ||
212 | 212 | ||
213 | 213 | func ai (j) = { | |
214 | 214 | let aj = invoke(addressFromStringValue(e), "getTWAP60", [j, false], nil) | |
215 | 215 | if ((aj == aj)) | |
216 | 216 | then { | |
217 | 217 | let ak = { | |
218 | 218 | let k = aj | |
219 | 219 | if ($isInstanceOf(k, "(Int, Int)")) | |
220 | 220 | then { | |
221 | 221 | let al = k | |
222 | 222 | al | |
223 | 223 | } | |
224 | 224 | else throw("error of price oracle") | |
225 | 225 | } | |
226 | 226 | if ((ak == ak)) | |
227 | 227 | then ak | |
228 | 228 | else throw("Strict value is not equal to itself.") | |
229 | 229 | } | |
230 | 230 | else throw("Strict value is not equal to itself.") | |
231 | 231 | } | |
232 | 232 | ||
233 | 233 | ||
234 | 234 | func am (j) = { | |
235 | 235 | let an = if ((j == "WAVES")) | |
236 | 236 | then 8 | |
237 | 237 | else value(assetInfo(fromBase58String(j))).decimals | |
238 | 238 | pow(10, 0, an, 0, 0, DOWN) | |
239 | 239 | } | |
240 | 240 | ||
241 | 241 | ||
242 | 242 | func ao (h) = { | |
243 | 243 | let ap = invoke(this, "getUserCollateral", [false, h, true, ""], nil) | |
244 | 244 | if ((ap == ap)) | |
245 | 245 | then { | |
246 | 246 | let aq = { | |
247 | 247 | let k = ap | |
248 | 248 | if ($isInstanceOf(k, "Int")) | |
249 | 249 | then { | |
250 | 250 | let al = k | |
251 | 251 | al | |
252 | 252 | } | |
253 | 253 | else throw("issue while doing in-dapp invocation") | |
254 | 254 | } | |
255 | 255 | if ((aq == aq)) | |
256 | 256 | then aq | |
257 | 257 | else throw("Strict value is not equal to itself.") | |
258 | 258 | } | |
259 | 259 | else throw("Strict value is not equal to itself.") | |
260 | 260 | } | |
261 | 261 | ||
262 | 262 | ||
263 | 263 | func ar (j,as,h) = if (!(E("setup_active"))) | |
264 | 264 | then throw("market is stopped") | |
265 | 265 | else { | |
266 | 266 | let at = ab(j, "sRate") | |
267 | 267 | let au = at._1 | |
268 | 268 | let av = at._2 | |
269 | 269 | let aw = fraction(as, n, au, DOWN) | |
270 | 270 | let ax = { | |
271 | 271 | let k = getString(("setup_maxSupply_" + j)) | |
272 | 272 | if ($isInstanceOf(k, "String")) | |
273 | 273 | then { | |
274 | 274 | let al = k | |
275 | 275 | parseIntValue(al) | |
276 | 276 | } | |
277 | 277 | else 0 | |
278 | 278 | } | |
279 | 279 | let ay = ai(j) | |
280 | 280 | let az = (B(((h + "_supplied_") + j)) + aw) | |
281 | 281 | let T = ab(j, "sRate")._1 | |
282 | 282 | let aA = am(j) | |
283 | 283 | let aB = fraction(fraction(az, T, n), ay._1, aA) | |
284 | 284 | if ((indexOf(F("setup_tokens"), j) == unit)) | |
285 | 285 | then throw("this asset is not supported by the market") | |
286 | 286 | else if (if ((ax != 0)) | |
287 | 287 | then (aB > ax) | |
288 | 288 | else false) | |
289 | 289 | then throw("max total supply for this token reached in the pool") | |
290 | 290 | else $Tuple2(([IntegerEntry(((h + "_supplied_") + j), az), IntegerEntry(("total_supplied_" + j), (B(("total_supplied_" + j)) + aw))] ++ av), as) | |
291 | 291 | } | |
292 | 292 | ||
293 | 293 | ||
294 | 294 | func aC (j,as,h) = { | |
295 | 295 | let aD = ab(j, "bRate") | |
296 | 296 | let aE = aD._1 | |
297 | 297 | let av = aD._2 | |
298 | 298 | let aw = fraction(as, n, aE, CEILING) | |
299 | 299 | let aF = invoke(this, "getUserCollateral", [false, h, true, ((j + ",borrowed,") + toString(aw))], nil) | |
300 | 300 | if ((aF == aF)) | |
301 | 301 | then { | |
302 | 302 | let aG = { | |
303 | 303 | let k = aF | |
304 | 304 | if ($isInstanceOf(k, "Int")) | |
305 | 305 | then { | |
306 | 306 | let al = k | |
307 | 307 | al | |
308 | 308 | } | |
309 | 309 | else throw("can't get user collateral value") | |
310 | 310 | } | |
311 | 311 | if (!(E("setup_active"))) | |
312 | 312 | then throw("market is stopped") | |
313 | 313 | else { | |
314 | 314 | let aH = B(("total_supplied_" + j)) | |
315 | 315 | let aI = B(("total_borrowed_" + j)) | |
316 | 316 | let aJ = B(((h + "_borrowed_") + j)) | |
317 | 317 | if ((aw > (aH - aI))) | |
318 | 318 | then throw("this amount is not available") | |
319 | 319 | else $Tuple2(([IntegerEntry(((h + "_borrowed_") + j), (aJ + aw)), IntegerEntry(("total_borrowed_" + j), (aI + aw))] ++ av), as) | |
320 | 320 | } | |
321 | 321 | } | |
322 | 322 | else throw("Strict value is not equal to itself.") | |
323 | 323 | } | |
324 | 324 | ||
325 | 325 | ||
326 | 326 | @Callable(aK) | |
327 | 327 | func flashPosition (aL,aM,aN,aO,aP,aQ,aR) = { | |
328 | 328 | let aS = aC(aN, aO, aL) | |
329 | 329 | let aT = J(aN) | |
330 | 330 | let aU = reentrantInvoke(addressFromStringValue(aP), aQ, split(aR, ","), [AttachedPayment(aT, aO)]) | |
331 | 331 | if ((aU == aU)) | |
332 | 332 | then { | |
333 | 333 | let aV = { | |
334 | 334 | let aW = aU | |
335 | 335 | if ($isInstanceOf(aW, "Int")) | |
336 | 336 | then aW | |
337 | 337 | else throw(($getType(aW) + " couldn't be cast to Int")) | |
338 | 338 | } | |
339 | 339 | if ((aV == aV)) | |
340 | 340 | then { | |
341 | 341 | let aX = ar(aM, aV, aL) | |
342 | 342 | let aG = { | |
343 | 343 | let aW = invoke(this, "getUserCollateral", [false, aL, true, ((aM + ",supplied,") + toString(aV))], nil) | |
344 | 344 | if ($isInstanceOf(aW, "Int")) | |
345 | 345 | then aW | |
346 | 346 | else throw(($getType(aW) + " couldn't be cast to Int")) | |
347 | 347 | } | |
348 | 348 | if ((aG == aG)) | |
349 | 349 | then { | |
350 | 350 | let aY = { | |
351 | 351 | let aW = invoke(this, "getUserCollateral", [false, aL, true, ((aN + ",borrowed,") + toString(aO))], nil) | |
352 | 352 | if ($isInstanceOf(aW, "Int")) | |
353 | 353 | then aW | |
354 | 354 | else throw(($getType(aW) + " couldn't be cast to Int")) | |
355 | 355 | } | |
356 | 356 | if ((aY == aY)) | |
357 | 357 | then if ((aY > aG)) | |
358 | 358 | then throw("not enough collateral provided") | |
359 | 359 | else (aS._1 ++ aX._1) | |
360 | 360 | else throw("Strict value is not equal to itself.") | |
361 | 361 | } | |
362 | 362 | else throw("Strict value is not equal to itself.") | |
363 | 363 | } | |
364 | 364 | else throw("Strict value is not equal to itself.") | |
365 | 365 | } | |
366 | 366 | else throw("Strict value is not equal to itself.") | |
367 | 367 | } | |
368 | 368 | ||
369 | 369 | ||
370 | 370 | ||
371 | 371 | @Callable(aK) | |
372 | 372 | func supply () = if (if ((size(aK.payments) != 1)) | |
373 | 373 | then true | |
374 | 374 | else (aK.payments[0].amount == 0)) | |
375 | 375 | then throw("1 payment has to be attached") | |
376 | 376 | else { | |
377 | 377 | let j = H(aK.payments[0].assetId) | |
378 | 378 | let as = aK.payments[0].amount | |
379 | 379 | ar(j, as, toString(aK.caller)) | |
380 | 380 | } | |
381 | 381 | ||
382 | 382 | ||
383 | 383 | ||
384 | 384 | @Callable(aK) | |
385 | 385 | func withdraw (j,as) = { | |
386 | 386 | let aZ = ab(j, "sRate") | |
387 | 387 | let au = aZ._1 | |
388 | 388 | let av = aZ._2 | |
389 | 389 | let aw = fraction(as, n, au, CEILING) | |
390 | 390 | let h = toString(aK.caller) | |
391 | 391 | let aH = B(("total_supplied_" + j)) | |
392 | 392 | let aI = B(("total_borrowed_" + j)) | |
393 | 393 | let ba = B(((h + "_supplied_") + j)) | |
394 | 394 | let aJ = B(((h + "_borrowed_") + j)) | |
395 | 395 | let aF = invoke(this, "getUserCollateral", [false, h, true, ((j + ",supplied,") + toString(-(aw)))], nil) | |
396 | 396 | if ((aF == aF)) | |
397 | 397 | then { | |
398 | 398 | let aG = { | |
399 | 399 | let k = aF | |
400 | 400 | if ($isInstanceOf(k, "Int")) | |
401 | 401 | then { | |
402 | 402 | let al = k | |
403 | 403 | al | |
404 | 404 | } | |
405 | 405 | else throw("can't get user collateral value") | |
406 | 406 | } | |
407 | 407 | if (!(E("setup_active"))) | |
408 | 408 | then throw("market is stopped") | |
409 | 409 | else if ((0 > aG)) | |
410 | 410 | then throw("you dont have enough collateral for this operation") | |
411 | 411 | else if ((aw > (aH - aI))) | |
412 | 412 | then throw("this amount is not available on the market") | |
413 | 413 | else if ((aw > (ba - aJ))) | |
414 | 414 | then throw("this amount is not available for this user") | |
415 | 415 | else ([IntegerEntry(((h + "_supplied_") + j), (B(((h + "_supplied_") + j)) - aw)), IntegerEntry(("total_supplied_" + j), (B(("total_supplied_" + j)) - aw)), ScriptTransfer(aK.caller, as, J(j))] ++ av) | |
416 | 416 | } | |
417 | 417 | else throw("Strict value is not equal to itself.") | |
418 | 418 | } | |
419 | 419 | ||
420 | 420 | ||
421 | 421 | ||
422 | 422 | @Callable(aK) | |
423 | 423 | func borrow (j,as) = { | |
424 | 424 | let h = toString(aK.caller) | |
425 | 425 | let bb = aC(j, as, h) | |
426 | 426 | let aw = bb._2 | |
427 | 427 | (bb._1 ++ [ScriptTransfer(aK.caller, aw, J(j))]) | |
428 | 428 | } | |
429 | 429 | ||
430 | 430 | ||
431 | 431 | ||
432 | 432 | @Callable(aK) | |
433 | 433 | func repay () = if (!(E("setup_active"))) | |
434 | 434 | then throw("market is stopped") | |
435 | 435 | else if (if ((size(aK.payments) != 1)) | |
436 | 436 | then true | |
437 | 437 | else (aK.payments[0].amount == 0)) | |
438 | 438 | then throw("1 payment has to be attached") | |
439 | 439 | else { | |
440 | 440 | let j = H(aK.payments[0].assetId) | |
441 | 441 | let as = aK.payments[0].amount | |
442 | 442 | let bc = ab(j, "bRate") | |
443 | 443 | let aE = bc._1 | |
444 | 444 | let av = bc._2 | |
445 | 445 | let aw = fraction(as, n, aE, CEILING) | |
446 | 446 | let h = toString(aK.caller) | |
447 | 447 | let aH = B(("total_supplied_" + j)) | |
448 | 448 | let aI = B(("total_borrowed_" + j)) | |
449 | 449 | let aJ = B(((h + "_borrowed_") + j)) | |
450 | 450 | let bd = (aJ - aw) | |
451 | 451 | let be = if ((bd >= 0)) | |
452 | 452 | then aw | |
453 | 453 | else aJ | |
454 | 454 | if ((indexOf(F("setup_tokens"), j) == unit)) | |
455 | 455 | then throw("this asset is not supported by the market") | |
456 | 456 | else (([IntegerEntry(((h + "_borrowed_") + j), (aJ - be)), IntegerEntry(("total_borrowed_" + j), (aI - be))] ++ av) ++ (if ((bd >= 0)) | |
457 | 457 | then nil | |
458 | 458 | else [ScriptTransfer(aK.caller, -(bd), aK.payments[0].assetId)])) | |
459 | 459 | } | |
460 | 460 | ||
461 | 461 | ||
462 | 462 | ||
463 | 463 | @Callable(aK) | |
464 | 464 | func repayFor (h) = if (!(E("setup_active"))) | |
465 | 465 | then throw("market is stopped") | |
466 | 466 | else if (if ((size(aK.payments) != 1)) | |
467 | 467 | then true | |
468 | 468 | else (aK.payments[0].amount == 0)) | |
469 | 469 | then throw("1 payment has to be attached") | |
470 | 470 | else { | |
471 | 471 | let j = H(aK.payments[0].assetId) | |
472 | 472 | let as = aK.payments[0].amount | |
473 | 473 | let bf = ab(j, "bRate") | |
474 | 474 | let aE = bf._1 | |
475 | 475 | let av = bf._2 | |
476 | 476 | let aw = fraction(as, n, aE, CEILING) | |
477 | 477 | let aH = B(("total_supplied_" + j)) | |
478 | 478 | let aI = B(("total_borrowed_" + j)) | |
479 | 479 | let aJ = B(((h + "_borrowed_") + j)) | |
480 | 480 | let bd = (aJ - aw) | |
481 | 481 | let be = if ((bd >= 0)) | |
482 | 482 | then aw | |
483 | 483 | else aJ | |
484 | 484 | if ((indexOf(F("setup_tokens"), j) == unit)) | |
485 | 485 | then throw("this asset is not supported by the market") | |
486 | 486 | else (([IntegerEntry(((h + "_borrowed_") + j), (aJ - be)), IntegerEntry(("total_borrowed_" + j), (aI - be))] ++ av) ++ (if ((bd >= 0)) | |
487 | 487 | then nil | |
488 | 488 | else [ScriptTransfer(aK.caller, -(bd), aK.payments[0].assetId)])) | |
489 | 489 | } | |
490 | 490 | ||
491 | 491 | ||
492 | 492 | ||
493 | 493 | @Callable(aK) | |
494 | 494 | func stakeTokenAll (j) = if ((aK.caller != this)) | |
495 | 495 | then throw("only for internal smart contract invocations") | |
496 | 496 | else { | |
497 | 497 | let aw = K(j) | |
498 | 498 | let bg = invoke(this, "stakeToken", [j, aw], nil) | |
499 | 499 | if ((bg == bg)) | |
500 | 500 | then nil | |
501 | 501 | else throw("Strict value is not equal to itself.") | |
502 | 502 | } | |
503 | 503 | ||
504 | 504 | ||
505 | 505 | ||
506 | 506 | @Callable(aK) | |
507 | 507 | func stakeToken (j,aw) = if ((aK.caller != this)) | |
508 | 508 | then throw("only for internal smart contract invocations") | |
509 | 509 | else if ((j == "DG2xFkPdDwKUoBkzGAhQtLpSGzfXLiCYPEzeKH2Ad24p")) | |
510 | 510 | then { | |
511 | 511 | let bh = B("autostake_amount_DG2xFkPdDwKUoBkzGAhQtLpSGzfXLiCYPEzeKH2Ad24p") | |
512 | 512 | let bg = invoke(Address(base58'3PNikM6yp4NqcSU8guxQtmR5onr2D4e8yTJ'), "stake", nil, [AttachedPayment(base58'DG2xFkPdDwKUoBkzGAhQtLpSGzfXLiCYPEzeKH2Ad24p', aw)]) | |
513 | 513 | if ((bg == bg)) | |
514 | 514 | then [IntegerEntry("autostake_amount_DG2xFkPdDwKUoBkzGAhQtLpSGzfXLiCYPEzeKH2Ad24p", (bh + aw))] | |
515 | 515 | else throw("Strict value is not equal to itself.") | |
516 | 516 | } | |
517 | 517 | else if ((j == "8t4DPWTwPzpatHA9AkTxWAB47THnYzBsDnoY7fQqbG91")) | |
518 | 518 | then { | |
519 | 519 | let bh = B("autostake_amount_8t4DPWTwPzpatHA9AkTxWAB47THnYzBsDnoY7fQqbG91") | |
520 | 520 | let bg = invoke(Address(base58'3PQTM38wDmAY9vWonK6ha7QL3PAycLz5oPP'), "stake", nil, [AttachedPayment(base58'8t4DPWTwPzpatHA9AkTxWAB47THnYzBsDnoY7fQqbG91', aw)]) | |
521 | 521 | if ((bg == bg)) | |
522 | 522 | then [IntegerEntry("autostake_amount_8t4DPWTwPzpatHA9AkTxWAB47THnYzBsDnoY7fQqbG91", (bh + aw))] | |
523 | 523 | else throw("Strict value is not equal to itself.") | |
524 | 524 | } | |
525 | 525 | else if ((j == "At8D6NFFpheCbvKVnjVoeLL84Eo8NZn6ovManxfLaFWL")) | |
526 | 526 | then { | |
527 | 527 | let bh = B("autostake_amount_At8D6NFFpheCbvKVnjVoeLL84Eo8NZn6ovManxfLaFWL") | |
528 | 528 | let bg = invoke(Address(base58'3PBiotFpqjRMkkeFBccnQNUXUopy7KFez5C'), "stake", nil, [AttachedPayment(base58'At8D6NFFpheCbvKVnjVoeLL84Eo8NZn6ovManxfLaFWL', aw)]) | |
529 | 529 | if ((bg == bg)) | |
530 | 530 | then [IntegerEntry("autostake_amount_At8D6NFFpheCbvKVnjVoeLL84Eo8NZn6ovManxfLaFWL", (bh + aw))] | |
531 | 531 | else throw("Strict value is not equal to itself.") | |
532 | 532 | } | |
533 | 533 | else nil | |
534 | 534 | ||
535 | 535 | ||
536 | 536 | ||
537 | 537 | @Callable(aK) | |
538 | 538 | func unstakeToken (j,aw) = if ((aK.caller != this)) | |
539 | 539 | then throw("only for internal smart contract invocations") | |
540 | 540 | else if ((j == "8t4DPWTwPzpatHA9AkTxWAB47THnYzBsDnoY7fQqbG91")) | |
541 | 541 | then { | |
542 | 542 | let bh = B("autostake_amount_8t4DPWTwPzpatHA9AkTxWAB47THnYzBsDnoY7fQqbG91") | |
543 | 543 | let bg = invoke(Address(base58'3PQTM38wDmAY9vWonK6ha7QL3PAycLz5oPP'), "unStake", [aw], nil) | |
544 | 544 | if ((bg == bg)) | |
545 | 545 | then [IntegerEntry("autostake_amount_8t4DPWTwPzpatHA9AkTxWAB47THnYzBsDnoY7fQqbG91", (bh - aw))] | |
546 | 546 | else throw("Strict value is not equal to itself.") | |
547 | 547 | } | |
548 | 548 | else if ((j == "At8D6NFFpheCbvKVnjVoeLL84Eo8NZn6ovManxfLaFWL")) | |
549 | 549 | then { | |
550 | 550 | let bh = B("autostake_amount_At8D6NFFpheCbvKVnjVoeLL84Eo8NZn6ovManxfLaFWL") | |
551 | 551 | let bg = invoke(Address(base58'3PBiotFpqjRMkkeFBccnQNUXUopy7KFez5C'), "unstake", [aw], nil) | |
552 | 552 | if ((bg == bg)) | |
553 | 553 | then { | |
554 | 554 | let bi = K("At8D6NFFpheCbvKVnjVoeLL84Eo8NZn6ovManxfLaFWL") | |
555 | 555 | if ((bi == bi)) | |
556 | 556 | then { | |
557 | 557 | let bj = invoke(Address(base58'3PQrVbTVpqXHqpVKftkNdjy3zZAh4dsRzN6'), "gnsbtRewardsSYSREADONLY", [toString(this)], nil) | |
558 | 558 | if ((bj == bj)) | |
559 | 559 | then { | |
560 | 560 | let bk = { | |
561 | 561 | let k = bj | |
562 | 562 | if ($isInstanceOf(k, "List[Any]")) | |
563 | 563 | then { | |
564 | 564 | let al = k | |
565 | 565 | let bl = al[1] | |
566 | 566 | let bm = bl | |
567 | 567 | if ($isInstanceOf(bm, "String")) | |
568 | 568 | then { | |
569 | 569 | let bl = bm | |
570 | 570 | let bn = parseIntValue(split(split(bl, "_")[1], ":")[1]) | |
571 | 571 | let bo = parseIntValue(split(split(bl, "_")[0], ":")[1]) | |
572 | 572 | if (if ((bn != 0)) | |
573 | 573 | then true | |
574 | 574 | else (bo != 0)) | |
575 | 575 | then { | |
576 | 576 | let bp = K("DG2xFkPdDwKUoBkzGAhQtLpSGzfXLiCYPEzeKH2Ad24p") | |
577 | 577 | if ((bp == bp)) | |
578 | 578 | then { | |
579 | 579 | let bq = K("WAVES") | |
580 | 580 | if ((bq == bq)) | |
581 | 581 | then { | |
582 | 582 | let aj = invoke(Address(base58'3PBiotFpqjRMkkeFBccnQNUXUopy7KFez5C'), "claimRewards", nil, nil) | |
583 | 583 | if ((aj == aj)) | |
584 | 584 | then { | |
585 | 585 | let br = K("WAVES") | |
586 | 586 | if ((br == br)) | |
587 | 587 | then { | |
588 | 588 | let bs = invoke(Address(base58'3PLiXyywNThdvf3vVEUxwc7TJTucjZvuegh'), "swap", ["DG2xFkPdDwKUoBkzGAhQtLpSGzfXLiCYPEzeKH2Ad24p", 0], [AttachedPayment(unit, (br - bq))]) | |
589 | 589 | if ((bs == bs)) | |
590 | 590 | then { | |
591 | 591 | let bt = K("DG2xFkPdDwKUoBkzGAhQtLpSGzfXLiCYPEzeKH2Ad24p") | |
592 | 592 | if ((bt == bt)) | |
593 | 593 | then { | |
594 | 594 | let bu = invoke(Address(base58'3P7r93vXHuusageNJVGwzqaz3WMotAu49Yz'), "swap", ["At8D6NFFpheCbvKVnjVoeLL84Eo8NZn6ovManxfLaFWL", 0], [AttachedPayment(base58'DG2xFkPdDwKUoBkzGAhQtLpSGzfXLiCYPEzeKH2Ad24p', (bt - bp))]) | |
595 | 595 | if ((bu == bu)) | |
596 | 596 | then { | |
597 | 597 | let bv = invoke(this, "addInterest", ["At8D6NFFpheCbvKVnjVoeLL84Eo8NZn6ovManxfLaFWL", (K("At8D6NFFpheCbvKVnjVoeLL84Eo8NZn6ovManxfLaFWL") - bi)], nil) | |
598 | 598 | if ((bv == bv)) | |
599 | 599 | then 2 | |
600 | 600 | else throw("Strict value is not equal to itself.") | |
601 | 601 | } | |
602 | 602 | else throw("Strict value is not equal to itself.") | |
603 | 603 | } | |
604 | 604 | else throw("Strict value is not equal to itself.") | |
605 | 605 | } | |
606 | 606 | else throw("Strict value is not equal to itself.") | |
607 | 607 | } | |
608 | 608 | else throw("Strict value is not equal to itself.") | |
609 | 609 | } | |
610 | 610 | else throw("Strict value is not equal to itself.") | |
611 | 611 | } | |
612 | 612 | else throw("Strict value is not equal to itself.") | |
613 | 613 | } | |
614 | 614 | else throw("Strict value is not equal to itself.") | |
615 | 615 | } | |
616 | 616 | else 1 | |
617 | 617 | } | |
618 | 618 | else 1 | |
619 | 619 | } | |
620 | 620 | else 0 | |
621 | 621 | } | |
622 | 622 | if ((bk == bk)) | |
623 | 623 | then [IntegerEntry("autostake_amount_At8D6NFFpheCbvKVnjVoeLL84Eo8NZn6ovManxfLaFWL", (bh - aw))] | |
624 | 624 | else throw("Strict value is not equal to itself.") | |
625 | 625 | } | |
626 | 626 | else throw("Strict value is not equal to itself.") | |
627 | 627 | } | |
628 | 628 | else throw("Strict value is not equal to itself.") | |
629 | 629 | } | |
630 | 630 | else throw("Strict value is not equal to itself.") | |
631 | 631 | } | |
632 | 632 | else nil | |
633 | 633 | ||
634 | 634 | ||
635 | 635 | ||
636 | 636 | @Callable(aK) | |
637 | 637 | func addInterest (j,aw) = if ((aK.caller != this)) | |
638 | 638 | then throw("only for self invocation") | |
639 | 639 | else { | |
640 | 640 | let bw = B(("autostake_lastEarned_" + j)) | |
641 | 641 | let bx = B(("autostake_lastBlock_" + j)) | |
642 | 642 | let by = fraction(aw, 80, 100) | |
643 | 643 | let bz = if (if ((bx == height)) | |
644 | 644 | then true | |
645 | 645 | else (aw == 0)) | |
646 | 646 | then nil | |
647 | 647 | else [IntegerEntry(("autostake_preLastEarned_" + j), bw), IntegerEntry(("autostake_preLastBlock_" + j), bx), IntegerEntry(("autostake_lastEarned_" + j), (bw + by)), IntegerEntry(("autostake_lastBlock_" + j), height)] | |
648 | 648 | (bz ++ [IntegerEntry((j + "_sRate"), (B((j + "_sRate")) + fraction(n, by, B(("total_supplied_" + j)))))]) | |
649 | 649 | } | |
650 | 650 | ||
651 | 651 | ||
652 | 652 | ||
653 | 653 | @Callable(aK) | |
654 | 654 | func addInterestEXTERNAL () = { | |
655 | 655 | let aw = fraction(aK.payments[0].amount, 80, 100) | |
656 | 656 | let I = aK.payments[0].assetId | |
657 | 657 | let j = H(I) | |
658 | 658 | let bw = B(("autostake_lastEarned_" + j)) | |
659 | 659 | let bx = B(("autostake_lastBlock_" + j)) | |
660 | 660 | let bz = if (if ((bx == height)) | |
661 | 661 | then true | |
662 | 662 | else (aw == 0)) | |
663 | 663 | then nil | |
664 | 664 | else [IntegerEntry(("autostake_preLastEarned_" + j), bw), IntegerEntry(("autostake_preLastBlock_" + j), bx), IntegerEntry(("autostake_lastEarned_" + j), (bw + aw)), IntegerEntry(("autostake_lastBlock_" + j), height)] | |
665 | 665 | (bz ++ [IntegerEntry((j + "_sRate"), (B((j + "_sRate")) + fraction(n, aw, B(("total_supplied_" + j)))))]) | |
666 | 666 | } | |
667 | 667 | ||
668 | 668 | ||
669 | 669 | ||
670 | 670 | @Callable(aK) | |
671 | 671 | func preInit (bA,bB,bC,bD) = { | |
672 | 672 | func r (s,ad) = (s ++ [IntegerEntry((ad + "_bRate"), n), IntegerEntry((ad + "_sRate"), n)]) | |
673 | 673 | ||
674 | 674 | if ((aK.caller != this)) | |
675 | 675 | then throw("admin only") | |
676 | 676 | else { | |
677 | 677 | let ag = { | |
678 | 678 | let u = split(bA, ",") | |
679 | 679 | let v = size(u) | |
680 | 680 | let w = nil | |
681 | 681 | func x (y,z) = if ((z >= v)) | |
682 | 682 | then y | |
683 | 683 | else r(y, u[z]) | |
684 | 684 | ||
685 | 685 | func A (y,z) = if ((z >= v)) | |
686 | 686 | then y | |
687 | 687 | else throw("List size exceeds 6") | |
688 | 688 | ||
689 | 689 | A(x(x(x(x(x(x(w, 0), 1), 2), 3), 4), 5), 6) | |
690 | 690 | } | |
691 | 691 | ([StringEntry("setup_tokens", bA), StringEntry("setup_ltvs", bB), StringEntry("setup_lts", bC), StringEntry("setup_penalties", bD), BooleanEntry("setup_active", true)] ++ ag) | |
692 | 692 | } | |
693 | 693 | } | |
694 | 694 | ||
695 | 695 | ||
696 | 696 | ||
697 | 697 | @Callable(aK) | |
698 | - | func updateParameter (C,bE) = if (if ((aK.caller != this)) | |
699 | - | then (aK.caller != Address(base58'3P3o9cLTV2u9N4nYNKRYL6gy6cUEU9DwXW8')) | |
700 | - | else false) | |
698 | + | func initNewToken (ad,bE,bF,bG) = if ((aK.caller != this)) | |
701 | 699 | then throw("admin only") | |
702 | - | else [ | |
700 | + | else [StringEntry("setup_tokens", ((F("setup_tokens") + ",") + ad)), StringEntry("setup_ltvs", ((F("setup_ltvs") + ",") + bE)), StringEntry("setup_lts", ((F("setup_lts") + ",") + bF)), StringEntry("setup_penalties", ((F("setup_penalties") + ",") + bG)), IntegerEntry((ad + "_bRate"), n), IntegerEntry((ad + "_sRate"), n)] | |
703 | 701 | ||
704 | 702 | ||
705 | 703 | ||
706 | 704 | @Callable(aK) | |
707 | - | func | |
705 | + | func updateParameter (C,bH) = if (if ((aK.caller != this)) | |
708 | 706 | then (aK.caller != Address(base58'3P3o9cLTV2u9N4nYNKRYL6gy6cUEU9DwXW8')) | |
709 | 707 | else false) | |
710 | 708 | then throw("admin only") | |
711 | - | else [ | |
709 | + | else [IntegerEntry(C, parseIntValue(bH))] | |
712 | 710 | ||
713 | 711 | ||
714 | 712 | ||
715 | 713 | @Callable(aK) | |
716 | - | func claimToReserveFund (bF) = { | |
717 | - | let bG = L() | |
718 | - | let ag = ab(bG[0], "sRate")._2 | |
714 | + | func updateString (C,bH) = if (if ((aK.caller != this)) | |
715 | + | then (aK.caller != Address(base58'3P3o9cLTV2u9N4nYNKRYL6gy6cUEU9DwXW8')) | |
716 | + | else false) | |
717 | + | then throw("admin only") | |
718 | + | else [StringEntry(C, bH)] | |
719 | + | ||
720 | + | ||
721 | + | ||
722 | + | @Callable(aK) | |
723 | + | func claimToReserveFund (bI) = { | |
724 | + | let bJ = L() | |
725 | + | let ag = ab(bJ[0], "sRate")._2 | |
719 | 726 | let q = [0, 1, 2, 3, 4, 5] | |
720 | - | func r (s, | |
727 | + | func r (s,bK) = if ((bK >= size(bJ))) | |
721 | 728 | then s | |
722 | 729 | else { | |
723 | - | let j = | |
724 | - | let | |
725 | - | let aw = ((((K(j) + B(("autostake_amount_" + j))) + (if (( | |
726 | - | then parseIntValue( | |
727 | - | else 0)) + fraction(B(("total_borrowed_" + j)), ag[(( | |
730 | + | let j = bJ[bK] | |
731 | + | let bL = F(("autostake_amount_" + j)) | |
732 | + | let aw = ((((K(j) + B(("autostake_amount_" + j))) + (if ((bL != "")) | |
733 | + | then parseIntValue(bL) | |
734 | + | else 0)) + fraction(B(("total_borrowed_" + j)), ag[((bK * 3) + 1)].value, n)) - fraction(B(("total_supplied_" + j)), ag[(bK * 3)].value, n)) | |
728 | 735 | let bg = if ((B(("autostake_amount_" + j)) > 0)) | |
729 | 736 | then invoke(this, "unstakeToken", [j, max([aw, 0])], nil) | |
730 | 737 | else 0 | |
731 | 738 | if ((bg == bg)) | |
732 | 739 | then (s ++ [aw]) | |
733 | 740 | else throw("Strict value is not equal to itself.") | |
734 | 741 | } | |
735 | 742 | ||
736 | - | let | |
743 | + | let bM = { | |
737 | 744 | let u = q | |
738 | 745 | let v = size(u) | |
739 | 746 | let w = nil | |
740 | 747 | func x (y,z) = if ((z >= v)) | |
741 | 748 | then y | |
742 | 749 | else r(y, u[z]) | |
743 | 750 | ||
744 | 751 | func A (y,z) = if ((z >= v)) | |
745 | 752 | then y | |
746 | 753 | else throw("List size exceeds 6") | |
747 | 754 | ||
748 | 755 | A(x(x(x(x(x(x(w, 0), 1), 2), 3), 4), 5), 6) | |
749 | 756 | } | |
750 | - | func | |
757 | + | func bN (s,bK) = if ((bK >= size(bJ))) | |
751 | 758 | then s | |
752 | 759 | else { | |
753 | - | let j = | |
754 | - | (s ++ [ScriptTransfer(a, max([ | |
760 | + | let j = bJ[bK] | |
761 | + | (s ++ [ScriptTransfer(a, max([bM[bK], 0]), J(j))]) | |
755 | 762 | } | |
756 | 763 | ||
757 | - | if ( | |
758 | - | then throw(p( | |
764 | + | if (bI) | |
765 | + | then throw(p(bM)) | |
759 | 766 | else $Tuple2({ | |
760 | 767 | let u = q | |
761 | 768 | let v = size(u) | |
762 | 769 | let w = nil | |
763 | - | func | |
770 | + | func bO (y,z) = if ((z >= v)) | |
764 | 771 | then y | |
765 | - | else | |
772 | + | else bN(y, u[z]) | |
766 | 773 | ||
767 | - | func | |
774 | + | func bP (y,z) = if ((z >= v)) | |
768 | 775 | then y | |
769 | 776 | else throw("List size exceeds 6") | |
770 | 777 | ||
771 | - | | |
772 | - | }, | |
778 | + | bP(bO(bO(bO(bO(bO(bO(w, 0), 1), 2), 3), 4), 5), 6) | |
779 | + | }, bM) | |
773 | 780 | } | |
774 | 781 | ||
775 | 782 | ||
776 | 783 | ||
777 | 784 | @Callable(aK) | |
778 | 785 | func reSetup (j) = { | |
779 | - | let | |
780 | - | if ((o > (height - | |
786 | + | let bQ = B("resetup_lastUpdate") | |
787 | + | if ((o > (height - bQ))) | |
781 | 788 | then throw("can be updated only once per day") | |
782 | 789 | else { | |
783 | 790 | let bC = split(F("setup_lts"), ",") | |
784 | - | let | |
791 | + | let bJ = L() | |
785 | 792 | let R = af(j) | |
786 | - | let | |
787 | - | let | |
793 | + | let bR = B((("setup_" + j) + "_tempLT")) | |
794 | + | let bF = parseIntValue(bJ[value(indexOf(bJ, j))]) | |
788 | 795 | if ((R > 90000000)) | |
789 | - | then [IntegerEntry((("setup_" + j) + "_tempLT"), fraction( | |
790 | - | else if (if (( | |
796 | + | then [IntegerEntry((("setup_" + j) + "_tempLT"), fraction(bR, 9975, 10000))] | |
797 | + | else if (if ((bF > bR)) | |
791 | 798 | then (90000000 > R) | |
792 | 799 | else false) | |
793 | - | then [IntegerEntry((("setup_" + j) + "_tempLT"), fraction( | |
800 | + | then [IntegerEntry((("setup_" + j) + "_tempLT"), fraction(bR, 10025, 10000))] | |
794 | 801 | else nil | |
795 | 802 | } | |
796 | 803 | } | |
797 | 804 | ||
798 | 805 | ||
799 | 806 | ||
800 | 807 | @Callable(aK) | |
801 | - | func shutdown ( | |
808 | + | func shutdown (bS) = if ((indexOf(f, aK.caller.bytes) == unit)) | |
802 | 809 | then throw("user not in a whitelist") | |
803 | - | else [BooleanEntry("setup_active", !( | |
810 | + | else [BooleanEntry("setup_active", !(bS))] | |
804 | 811 | ||
805 | 812 | ||
806 | 813 | ||
807 | 814 | @Callable(aK) | |
808 | - | func liquidate ( | |
815 | + | func liquidate (bI,h,as,aM,aN,bT) = if (!(g(aK.caller))) | |
809 | 816 | then throw("temporarily available for whitelist only") | |
810 | 817 | else if (!(E("setup_active"))) | |
811 | 818 | then throw("market is stopped") | |
812 | 819 | else { | |
813 | - | let | |
814 | - | if (( | |
820 | + | let bU = ao(h) | |
821 | + | if ((bU == bU)) | |
815 | 822 | then { | |
816 | - | let bT = ab(aM, "sRate") | |
817 | - | let au = bT._1 | |
818 | - | let bU = bT._2 | |
819 | - | let bV = ab(aN, "bRate") | |
820 | - | let aE = bV._1 | |
823 | + | let bV = ab(aM, "sRate") | |
824 | + | let au = bV._1 | |
821 | 825 | let bW = bV._2 | |
822 | - | let bX = fraction(as, n, au) | |
823 | - | let bY = B(((h + "_supplied_") + aM)) | |
824 | - | let bZ = B(((h + "_borrowed_") + aN)) | |
825 | - | let ca = if ((bZ > 0)) | |
826 | - | then bZ | |
826 | + | let bX = ab(aN, "bRate") | |
827 | + | let aE = bX._1 | |
828 | + | let bY = bX._2 | |
829 | + | let bZ = fraction(as, n, au) | |
830 | + | let ca = B(((h + "_supplied_") + aM)) | |
831 | + | let cb = B(((h + "_borrowed_") + aN)) | |
832 | + | let cc = if ((cb > 0)) | |
833 | + | then cb | |
827 | 834 | else throw("user has no borrow in this token") | |
828 | - | if (( | |
835 | + | if ((bU > 0)) | |
829 | 836 | then throw("user can't be liquidated") | |
830 | - | else if (( | |
837 | + | else if ((bZ > ca)) | |
831 | 838 | then throw("position to liquidate is bigger than user's supply") | |
832 | 839 | else { | |
833 | - | let | |
834 | - | if (( | |
840 | + | let cd = K(aM) | |
841 | + | if ((cd == cd)) | |
835 | 842 | then { | |
836 | - | let | |
837 | - | if (( | |
843 | + | let ce = K(aN) | |
844 | + | if ((ce == ce)) | |
838 | 845 | then { | |
839 | - | let | |
840 | - | if (( | |
846 | + | let cf = invoke(d, "swap", [bT, 0], [AttachedPayment(J(aM), as)]) | |
847 | + | if ((cf == cf)) | |
841 | 848 | then { | |
842 | - | let | |
843 | - | if (( | |
849 | + | let cg = (cd - K(aM)) | |
850 | + | if ((cg == cg)) | |
844 | 851 | then { | |
845 | - | let | |
846 | - | if (( | |
852 | + | let ch = (K(aN) - ce) | |
853 | + | if ((ch == ch)) | |
847 | 854 | then { | |
848 | - | let | |
849 | - | let | |
850 | - | let | |
851 | - | let | |
852 | - | let | |
853 | - | let | |
854 | - | let | |
855 | - | let | |
856 | - | let | |
857 | - | let | |
858 | - | if (( | |
855 | + | let ci = ai(aM)._1 | |
856 | + | let cj = am(aM) | |
857 | + | let ck = fraction(cg, ci, cj) | |
858 | + | let cl = ai(aN)._2 | |
859 | + | let cm = am(aN) | |
860 | + | let cn = fraction(ch, cl, cm) | |
861 | + | let bG = parseIntValue(split(F("setup_penalties"), ",")[value(indexOf(L(), aN))]) | |
862 | + | let co = (cn - fraction(ck, (l - bG), l)) | |
863 | + | let cp = fraction(cg, n, au) | |
864 | + | let cq = fraction(fraction(ch, n, aE), (l - fraction(co, l, cn)), l) | |
865 | + | if ((cg > as)) | |
859 | 866 | then throw("more assets exchanged than expected") | |
860 | - | else if ((0 > | |
867 | + | else if ((0 > co)) | |
861 | 868 | then throw("price impact is bigger than liquidation penalty") | |
862 | - | else [IntegerEntry(((h + "_supplied_") + aM), ( | |
869 | + | else [IntegerEntry(((h + "_supplied_") + aM), (ca - cp)), IntegerEntry(((h + "_borrowed_") + aN), (cc - cq)), IntegerEntry(("total_supplied_" + aM), (B(("total_supplied_" + aM)) - cp)), IntegerEntry(("total_borrowed_" + aN), (B(("total_borrowed_" + aN)) - cq))] | |
863 | 870 | } | |
864 | 871 | else throw("Strict value is not equal to itself.") | |
865 | 872 | } | |
866 | 873 | else throw("Strict value is not equal to itself.") | |
867 | 874 | } | |
868 | 875 | else throw("Strict value is not equal to itself.") | |
869 | 876 | } | |
870 | 877 | else throw("Strict value is not equal to itself.") | |
871 | 878 | } | |
872 | 879 | else throw("Strict value is not equal to itself.") | |
873 | 880 | } | |
874 | 881 | } | |
875 | 882 | else throw("Strict value is not equal to itself.") | |
876 | 883 | } | |
877 | 884 | ||
878 | 885 | ||
879 | 886 | ||
880 | 887 | @Callable(aK) | |
881 | - | func liquidateV2 ( | |
888 | + | func liquidateV2 (bI,h,aM) = if (!(g(aK.caller))) | |
882 | 889 | then throw("temporarily available for whitelist only") | |
883 | 890 | else if (!(E("setup_active"))) | |
884 | 891 | then throw("market is stopped") | |
885 | 892 | else { | |
886 | 893 | let aT = aK.payments[0].assetId | |
887 | 894 | let aN = H(aT) | |
888 | - | let | |
889 | - | let | |
890 | - | if (( | |
891 | - | then if (( | |
895 | + | let cr = aK.payments[0].amount | |
896 | + | let bU = ao(h) | |
897 | + | if ((bU == bU)) | |
898 | + | then if ((bU > 0)) | |
892 | 899 | then throw("user can't be liquidated") | |
893 | 900 | else { | |
894 | - | let | |
895 | - | let | |
896 | - | let | |
897 | - | let | |
898 | - | let aE = | |
899 | - | let | |
900 | - | let | |
901 | - | let | |
902 | - | let | |
903 | - | let | |
904 | - | let | |
905 | - | let | |
906 | - | let | |
907 | - | let | |
908 | - | let aO = fraction( | |
909 | - | let aV = fraction( | |
910 | - | let | |
911 | - | let | |
912 | - | let | |
913 | - | then | |
901 | + | let cs = L() | |
902 | + | let ct = value(indexOf(cs, aN)) | |
903 | + | let cu = value(indexOf(cs, aM)) | |
904 | + | let cv = ab(aN, "bRate") | |
905 | + | let aE = cv._1 | |
906 | + | let bW = cv._2 | |
907 | + | let cl = ai(aN)._2 | |
908 | + | let cm = am(aN) | |
909 | + | let cw = fraction(cr, cl, cm) | |
910 | + | let bG = parseIntValue(value(split(F("setup_penalties"), ",")[ct])) | |
911 | + | let ci = ai(aM)._1 | |
912 | + | let cj = am(aM) | |
913 | + | let cx = fraction(cw, (l + bG), l) | |
914 | + | let bZ = fraction(cx, cj, ci) | |
915 | + | let aO = fraction(cr, n, aE) | |
916 | + | let aV = fraction(bZ, n, bW[((cu * 3) + 1)].value) | |
917 | + | let ca = B(((h + "_supplied_") + aM)) | |
918 | + | let cb = B(((h + "_borrowed_") + aN)) | |
919 | + | let cc = if ((cb > 0)) | |
920 | + | then cb | |
914 | 921 | else throw("user has no borrow in this token") | |
915 | - | if ((aV > | |
922 | + | if ((aV > ca)) | |
916 | 923 | then throw("position to liquidate is bigger than user's supply") | |
917 | - | else if ( | |
924 | + | else if (bI) | |
918 | 925 | then throw("liquidation will pass") | |
919 | - | else ([ScriptTransfer(aK.caller, | |
926 | + | else ([ScriptTransfer(aK.caller, bZ, J(aM)), IntegerEntry(((h + "_supplied_") + aM), (ca - aV)), IntegerEntry(((h + "_borrowed_") + aN), (cc - aO)), IntegerEntry(("total_supplied_" + aM), (B(("total_supplied_" + aM)) - aV)), IntegerEntry(("total_borrowed_" + aN), (B(("total_borrowed_" + aN)) - aO))] ++ bW) | |
920 | 927 | } | |
921 | 928 | else throw("Strict value is not equal to itself.") | |
922 | 929 | } | |
923 | 930 | ||
924 | 931 | ||
925 | 932 | ||
926 | 933 | @Callable(aK) | |
927 | - | func getUserCollateral ( | |
928 | - | let | |
934 | + | func getUserCollateral (bI,h,cy,cz) = { | |
935 | + | let bJ = L() | |
929 | 936 | let bB = split(F("setup_ltvs"), ",") | |
930 | 937 | let bC = split(F("setup_lts"), ",") | |
931 | - | let ag = ab( | |
932 | - | let | |
933 | - | func r (s,t) = if ((t >= size( | |
938 | + | let ag = ab(bJ[0], "sRate")._2 | |
939 | + | let cA = split(cz, ",") | |
940 | + | func r (s,t) = if ((t >= size(bJ))) | |
934 | 941 | then s | |
935 | 942 | else { | |
936 | - | let | |
937 | - | let | |
938 | - | let | |
939 | - | then if (if (( | |
943 | + | let cB = B(((h + "_supplied_") + bJ[t])) | |
944 | + | let cC = B(((h + "_borrowed_") + bJ[t])) | |
945 | + | let cD = if ((cz == "")) | |
946 | + | then if (if ((cC != 0)) | |
940 | 947 | then true | |
941 | - | else ( | |
948 | + | else (cB != 0)) | |
942 | 949 | then true | |
943 | 950 | else false | |
944 | 951 | else true | |
945 | - | if ( | |
952 | + | if (cD) | |
946 | 953 | then { | |
947 | - | let aA = am( | |
948 | - | let ay = ai( | |
949 | - | ((s + fraction(fraction(fraction(( | |
950 | - | then ( | |
954 | + | let aA = am(bJ[t]) | |
955 | + | let ay = ai(bJ[t]) | |
956 | + | ((s + fraction(fraction(fraction((cB + (if (if (if ((cz != "")) | |
957 | + | then (cA[0] == bJ[t]) | |
951 | 958 | else false) | |
952 | - | then ( | |
959 | + | then (cA[1] == "supplied") | |
953 | 960 | else false) | |
954 | - | then parseIntValue( | |
955 | - | else 0)), ag[(t * 3)].value, n), parseIntValue(bB[t]), l), ay._1, aA)) - (if ( | |
956 | - | then fraction(fraction(fraction(( | |
957 | - | then ( | |
961 | + | then parseIntValue(cA[2]) | |
962 | + | else 0)), ag[(t * 3)].value, n), parseIntValue(bB[t]), l), ay._1, aA)) - (if (cy) | |
963 | + | then fraction(fraction(fraction((cC + (if (if (if ((cz != "")) | |
964 | + | then (cA[0] == bJ[t]) | |
958 | 965 | else false) | |
959 | - | then ( | |
966 | + | then (cA[1] == "borrowed") | |
960 | 967 | else false) | |
961 | - | then parseIntValue( | |
968 | + | then parseIntValue(cA[2]) | |
962 | 969 | else 0)), ag[((t * 3) + 1)].value, n), l, parseIntValue(bC[t])), ay._2, aA) | |
963 | 970 | else 0)) | |
964 | 971 | } | |
965 | 972 | else s | |
966 | 973 | } | |
967 | 974 | ||
968 | - | let | |
975 | + | let cE = { | |
969 | 976 | let u = [0, 1, 2, 3, 4, 5] | |
970 | 977 | let v = size(u) | |
971 | 978 | let w = 0 | |
972 | 979 | func x (y,z) = if ((z >= v)) | |
973 | 980 | then y | |
974 | 981 | else r(y, u[z]) | |
975 | 982 | ||
976 | 983 | func A (y,z) = if ((z >= v)) | |
977 | 984 | then y | |
978 | 985 | else throw("List size exceeds 6") | |
979 | 986 | ||
980 | 987 | A(x(x(x(x(x(x(w, 0), 1), 2), 3), 4), 5), 6) | |
981 | 988 | } | |
982 | - | if ( | |
983 | - | then throw(toString( | |
984 | - | else $Tuple2(ag, | |
989 | + | if (bI) | |
990 | + | then throw(toString(cE)) | |
991 | + | else $Tuple2(ag, cE) | |
985 | 992 | } | |
986 | 993 | ||
987 | 994 | ||
988 | 995 | ||
989 | 996 | @Callable(aK) | |
990 | - | func getAssetDebt ( | |
991 | - | let | |
997 | + | func getAssetDebt (bI,h,j) = { | |
998 | + | let cC = B(((h + "_borrowed_") + j)) | |
992 | 999 | let aA = am(j) | |
993 | 1000 | let T = ab(j, "bRate")._1 | |
994 | - | let | |
995 | - | if ( | |
996 | - | then throw(toString( | |
997 | - | else $Tuple2(nil, | |
1001 | + | let cE = fraction(cC, T, n) | |
1002 | + | if (bI) | |
1003 | + | then throw(toString(cE)) | |
1004 | + | else $Tuple2(nil, cE) | |
998 | 1005 | } | |
999 | 1006 | ||
1000 | 1007 | ||
1001 | 1008 | ||
1002 | 1009 | @Callable(aK) | |
1003 | - | func getPrices ( | |
1004 | - | let | |
1005 | - | func r (s,t) = if ((t >= size( | |
1010 | + | func getPrices (bI) = { | |
1011 | + | let bJ = L() | |
1012 | + | func r (s,t) = if ((t >= size(bJ))) | |
1006 | 1013 | then s | |
1007 | 1014 | else { | |
1008 | - | let ay = ai( | |
1015 | + | let ay = ai(bJ[t]) | |
1009 | 1016 | ((((s + toString(ay._1)) + ",") + toString(ay._2)) + "|") | |
1010 | 1017 | } | |
1011 | 1018 | ||
1012 | - | let | |
1019 | + | let cE = { | |
1013 | 1020 | let u = [0, 1, 2, 3, 4, 5] | |
1014 | 1021 | let v = size(u) | |
1015 | 1022 | let w = "" | |
1016 | 1023 | func x (y,z) = if ((z >= v)) | |
1017 | 1024 | then y | |
1018 | 1025 | else r(y, u[z]) | |
1019 | 1026 | ||
1020 | 1027 | func A (y,z) = if ((z >= v)) | |
1021 | 1028 | then y | |
1022 | 1029 | else throw("List size exceeds 6") | |
1023 | 1030 | ||
1024 | 1031 | A(x(x(x(x(x(x(w, 0), 1), 2), 3), 4), 5), 6) | |
1025 | 1032 | } | |
1026 | - | if ( | |
1027 | - | then throw( | |
1028 | - | else $Tuple2(nil, | |
1033 | + | if (bI) | |
1034 | + | then throw(cE) | |
1035 | + | else $Tuple2(nil, cE) | |
1029 | 1036 | } | |
1030 | 1037 | ||
1031 | 1038 | ||
1032 | 1039 | ||
1033 | 1040 | @Callable(aK) | |
1034 | - | func calculateUtilizationRatio (j, | |
1041 | + | func calculateUtilizationRatio (j,bI) = if (bI) | |
1035 | 1042 | then throw(toString(af(j))) | |
1036 | 1043 | else $Tuple2(nil, af(j)) | |
1037 | 1044 | ||
1038 | 1045 | ||
1039 | 1046 | ||
1040 | 1047 | @Callable(aK) | |
1041 | - | func calculateOutdatedUR (j, | |
1048 | + | func calculateOutdatedUR (j,bI) = if (bI) | |
1042 | 1049 | then throw(toString(O(j))) | |
1043 | 1050 | else $Tuple2(nil, O(j)) | |
1044 | 1051 | ||
1045 | 1052 | ||
1046 | 1053 | ||
1047 | 1054 | @Callable(aK) | |
1048 | - | func calculateTokenRates ( | |
1055 | + | func calculateTokenRates (bI) = { | |
1049 | 1056 | func r (s,j) = { | |
1050 | 1057 | let ag = U(j) | |
1051 | 1058 | $Tuple2(((((s._1 + toString(ag[1].value)) + "|") + toString(ag[0].value)) + ","), (s._2 ++ ag)) | |
1052 | 1059 | } | |
1053 | 1060 | ||
1054 | - | let | |
1061 | + | let bM = { | |
1055 | 1062 | let u = L() | |
1056 | 1063 | let v = size(u) | |
1057 | 1064 | let w = $Tuple2("", nil) | |
1058 | 1065 | func x (y,z) = if ((z >= v)) | |
1059 | 1066 | then y | |
1060 | 1067 | else r(y, u[z]) | |
1061 | 1068 | ||
1062 | 1069 | func A (y,z) = if ((z >= v)) | |
1063 | 1070 | then y | |
1064 | 1071 | else throw("List size exceeds 6") | |
1065 | 1072 | ||
1066 | 1073 | A(x(x(x(x(x(x(w, 0), 1), 2), 3), 4), 5), 6) | |
1067 | 1074 | } | |
1068 | - | if ( | |
1069 | - | then throw( | |
1070 | - | else $Tuple2( | |
1075 | + | if (bI) | |
1076 | + | then throw(bM._1) | |
1077 | + | else $Tuple2(bM._2, bM._1) | |
1071 | 1078 | } | |
1072 | 1079 | ||
1073 | 1080 | ||
1074 | 1081 | ||
1075 | 1082 | @Callable(aK) | |
1076 | - | func calculateTokensInterest ( | |
1083 | + | func calculateTokensInterest (bI) = { | |
1077 | 1084 | func r (s,j) = { | |
1078 | 1085 | let T = fraction(Q(j), o, l) | |
1079 | 1086 | ((s + toString(T)) + ",") | |
1080 | 1087 | } | |
1081 | 1088 | ||
1082 | - | let | |
1089 | + | let bM = { | |
1083 | 1090 | let u = L() | |
1084 | 1091 | let v = size(u) | |
1085 | 1092 | let w = "" | |
1086 | 1093 | func x (y,z) = if ((z >= v)) | |
1087 | 1094 | then y | |
1088 | 1095 | else r(y, u[z]) | |
1089 | 1096 | ||
1090 | 1097 | func A (y,z) = if ((z >= v)) | |
1091 | 1098 | then y | |
1092 | 1099 | else throw("List size exceeds 6") | |
1093 | 1100 | ||
1094 | 1101 | A(x(x(x(x(x(x(w, 0), 1), 2), 3), 4), 5), 6) | |
1095 | 1102 | } | |
1096 | - | if ( | |
1097 | - | then throw( | |
1098 | - | else $Tuple2(nil, | |
1103 | + | if (bI) | |
1104 | + | then throw(bM) | |
1105 | + | else $Tuple2(nil, bM) | |
1099 | 1106 | } | |
1100 | 1107 | ||
1101 | 1108 | ||
1102 | - | @Verifier( | |
1103 | - | func | |
1109 | + | @Verifier(cF) | |
1110 | + | func cG () = sigVerify(cF.bodyBytes, cF.proofs[0], cF.senderPublicKey) | |
1104 | 1111 |
github/deemru/w8io/026f985 230.69 ms ◑