tx · 535tmZ4qbtFQWAb8K5BnfUe9inwg1WN27XXEbFJmWSfe 3N6VKmg8fcTLVZtzTGJTd2gfjmK3VYobQf1: -0.03700000 Waves 2023.05.28 14:22 [2597752] smart account 3N6VKmg8fcTLVZtzTGJTd2gfjmK3VYobQf1 > SELF 0.00000000 Waves
{ "type": 13, "id": "535tmZ4qbtFQWAb8K5BnfUe9inwg1WN27XXEbFJmWSfe", "fee": 3700000, "feeAssetId": null, "timestamp": 1685273013750, "version": 2, "chainId": 84, "sender": "3N6VKmg8fcTLVZtzTGJTd2gfjmK3VYobQf1", "senderPublicKey": "A2kf7bN5S7rrpJUdubvPFNzkrSEL8uTN8Hc2Sya5cZth", "proofs": [ "2aHpa8aAecDhKyr1SCtE2MouG6FMQzsfc5kchs7FwBHQSZj6SZqwg2yPaMHGie57VFAzqD6i5Kf7sj4NgymbxW8k" ], "script": "base64:BgJsCAISBAoCCAgSAwoBCBIAEgQKAggBEgMKAQESEAoOCAEBAQEBAQgBAQEBAQgSDAoKCAEBAQgBAQEBCBIFCgMICAESCAoGCAgBAQEBEg4KDAgIAQEBAQEBCAgBARIDCgEBEgQKAgEIEgQKAgEIRAAUa19jb29yZGluYXRvckFkZHJlc3MCFGtfY29vcmRpbmF0b3JBZGRyZXNzAA9rX2FkbWluX2FkZHJlc3MCD2tfYWRtaW5fYWRkcmVzcwANa19xdW90ZV9hc3NldAINa19xdW90ZV9hc3NldAAFa19hbW0CBWtfYW1tABFrX21hbmFnZXJfYWRkcmVzcwIRa19tYW5hZ2VyX2FkZHJlc3MAEmtfcG9zaXRpb25TZXF1ZW5jZQISa19wb3NpdGlvblNlcXVlbmNlAA5rX3Bvc2l0aW9uU2l6ZQIOa19wb3NpdGlvblNpemUAEGtfZXhlY3V0ZWRPcmRlcnMCEGtfZXhlY3V0ZWRPcmRlcnMAEGtfY2FuY2VsZWRPcmRlcnMCEGtfY2FuY2VsZWRPcmRlcnMAB2tfb3JkZXICB2tfb3JkZXIADmtfb3JkZXJS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": 0 } View: original | compacted Prev: CmTd4xkFkwUEx2xyoP5bRkRwXKFPhQWYj8FLfooHwMkJ Next: NPfrjd7jFwnFDy2cdaaj35Bnuggps7Hk2oi7NeSSW4x Diff:
Old | New | Differences | |
---|---|---|---|
719 | 719 | let bb = cT._11 | |
720 | 720 | let cU = cT._12 | |
721 | 721 | let bd = cT._13 | |
722 | - | let | |
723 | - | if (( | |
722 | + | let cm = invoke(addressFromStringValue(R), "updateOracle", [cl], nil) | |
723 | + | if ((cm == cm)) | |
724 | 724 | then { | |
725 | - | let cK = aI(aY, P) | |
726 | - | if (if (!(Z())) | |
727 | - | then true | |
728 | - | else !(aa(L))) | |
729 | - | then throw("Invalid executeOrder parameters") | |
730 | - | else { | |
731 | - | let cx = aL(R, S, cK) | |
732 | - | if ((cx == cx)) | |
733 | - | then { | |
734 | - | let cV = if ((cx != 0)) | |
735 | - | then aP(R, S, cK) | |
736 | - | else 0 | |
737 | - | let cW = if ((P == r)) | |
725 | + | let cn = invoke(this, "cleanUpStaleOrders", [R, S], nil) | |
726 | + | if ((cn == cn)) | |
727 | + | then { | |
728 | + | let cK = aI(aY, P) | |
729 | + | if (if (!(Z())) | |
730 | + | then true | |
731 | + | else !(aa(L))) | |
732 | + | then throw("Invalid executeOrder parameters") | |
733 | + | else { | |
734 | + | let cx = aL(R, S, cK) | |
735 | + | if ((cx == cx)) | |
738 | 736 | then { | |
739 | - | let cX = if ((cx > 0)) | |
740 | - | then u | |
741 | - | else if ((0 > cx)) | |
742 | - | then v | |
743 | - | else throw("Can not execute STOP order: no open position") | |
744 | - | let aB = aC(R) | |
745 | - | let cY = if ((aY == cX)) | |
746 | - | then throw("Can not execute STOP order: reduce only") | |
747 | - | else if ((cV != ba)) | |
748 | - | then throw("Can not execute STOP order: position closed") | |
749 | - | else if ((cX == u)) | |
750 | - | then (aW >= aB) | |
751 | - | else (aB >= aW) | |
752 | - | if (cY) | |
753 | - | then $Tuple3("closePosition", [G(aU, B(cx)), cK, F(bb, B(cx)), false, cl], nil) | |
754 | - | else throw("Can not execute STOP order: triggerPrice mismatch") | |
755 | - | } | |
756 | - | else if ((P == s)) | |
757 | - | then { | |
758 | - | let cX = if ((cx > 0)) | |
759 | - | then u | |
760 | - | else if ((0 > cx)) | |
761 | - | then v | |
762 | - | else throw("Can not execute STOP order: no open position") | |
763 | - | let aB = aC(R) | |
764 | - | let cY = if ((aY == cX)) | |
765 | - | then throw("Can not execute TAKE order: reduce only") | |
766 | - | else if ((cV != ba)) | |
767 | - | then throw(((("Can not execute TAKE order: position closed " + toString(cV)) + "!=") + toString(ba))) | |
768 | - | else if ((cX == u)) | |
769 | - | then (aB >= aW) | |
770 | - | else (aW >= aB) | |
771 | - | if (cY) | |
772 | - | then $Tuple3("closePosition", [G(aU, B(cx)), cK, F(bb, B(cx)), false, cl], nil) | |
773 | - | else throw("Can not execute TAKE order: triggerPrice mismatch") | |
774 | - | } | |
775 | - | else if ((P == t)) | |
737 | + | let cV = if ((cx != 0)) | |
738 | + | then aP(R, S, cK) | |
739 | + | else 0 | |
740 | + | let cW = if ((P == r)) | |
776 | 741 | then { | |
742 | + | let cX = if ((cx > 0)) | |
743 | + | then u | |
744 | + | else if ((0 > cx)) | |
745 | + | then v | |
746 | + | else throw("Can not execute STOP order: no open position") | |
777 | 747 | let aB = aC(R) | |
778 | - | let cZ = if ((bb == 0)) | |
779 | - | then true | |
780 | - | else if ((bb > bd)) | |
781 | - | then (aB >= bb) | |
782 | - | else (bb >= aB) | |
783 | - | let da = if ((aY == u)) | |
784 | - | then (aW >= aB) | |
785 | - | else (aB >= aW) | |
786 | - | let cY = if (cZ) | |
787 | - | then da | |
788 | - | else false | |
748 | + | let cY = if ((aY == cX)) | |
749 | + | then throw("Can not execute STOP order: reduce only") | |
750 | + | else if ((cV != ba)) | |
751 | + | then throw("Can not execute STOP order: position closed") | |
752 | + | else if ((cX == u)) | |
753 | + | then (aW >= aB) | |
754 | + | else (aB >= aW) | |
789 | 755 | if (cY) | |
756 | + | then $Tuple3("closePosition", [G(aU, B(cx)), cK, F(bb, B(cx)), false, cl], nil) | |
757 | + | else throw("Can not execute STOP order: triggerPrice mismatch") | |
758 | + | } | |
759 | + | else if ((P == s)) | |
760 | + | then { | |
761 | + | let cX = if ((cx > 0)) | |
762 | + | then u | |
763 | + | else if ((0 > cx)) | |
764 | + | then v | |
765 | + | else throw("Can not execute STOP order: no open position") | |
766 | + | let aB = aC(R) | |
767 | + | let cY = if ((aY == cX)) | |
768 | + | then throw("Can not execute TAKE order: reduce only") | |
769 | + | else if ((cV != ba)) | |
770 | + | then throw(((("Can not execute TAKE order: position closed " + toString(cV)) + "!=") + toString(ba))) | |
771 | + | else if ((cX == u)) | |
772 | + | then (aB >= aW) | |
773 | + | else (aW >= aB) | |
774 | + | if (cY) | |
775 | + | then $Tuple3("closePosition", [G(aU, B(cx)), cK, F(bb, B(cx)), false, cl], nil) | |
776 | + | else throw("Can not execute TAKE order: triggerPrice mismatch") | |
777 | + | } | |
778 | + | else if ((P == t)) | |
790 | 779 | then { | |
791 | - | let db = D(cQ, (F(aH(R, S), aV) + A)) | |
792 | - | let dc = F(db, aV) | |
793 | - | let dd = D(dc, aW) | |
794 | - | let de = (dd - F(dd, ab())) | |
795 | - | $Tuple3("increasePosition", [aY, aV, de, aZ, cl], [AttachedPayment(W(), cQ)]) | |
780 | + | let aB = aC(R) | |
781 | + | let cZ = if ((bb == 0)) | |
782 | + | then true | |
783 | + | else if ((bb > bd)) | |
784 | + | then (aB >= bb) | |
785 | + | else (bb >= aB) | |
786 | + | let da = if ((aY == u)) | |
787 | + | then (aW >= aB) | |
788 | + | else (aB >= aW) | |
789 | + | let cY = if (cZ) | |
790 | + | then da | |
791 | + | else false | |
792 | + | if (cY) | |
793 | + | then { | |
794 | + | let db = D(cQ, (F(aH(R, S), aV) + A)) | |
795 | + | let dc = F(db, aV) | |
796 | + | let dd = D(dc, aW) | |
797 | + | let de = (dd - F(dd, ab())) | |
798 | + | $Tuple3("increasePosition", [aY, aV, de, aZ, cl], [AttachedPayment(W(), cQ)]) | |
799 | + | } | |
800 | + | else throw("Can not execute LIMIT order: triggerPrice mismatch") | |
796 | 801 | } | |
797 | - | else throw("Can not execute LIMIT order: triggerPrice mismatch") | |
802 | + | else throw(("Invalid order type: " + toString(P))) | |
803 | + | let df = cW._1 | |
804 | + | let dg = cW._2 | |
805 | + | let dh = cW._3 | |
806 | + | let cR = if ((size(dh) == 1)) | |
807 | + | then { | |
808 | + | let cS = invoke(X(), "withdraw", [toBase58String(W()), dh[0].amount], nil) | |
809 | + | if ((cS == cS)) | |
810 | + | then nil | |
811 | + | else throw("Strict value is not equal to itself.") | |
798 | 812 | } | |
799 | - | else throw(("Invalid order type: " + toString(P))) | |
800 | - | let df = cW._1 | |
801 | - | let dg = cW._2 | |
802 | - | let dh = cW._3 | |
803 | - | let cR = if ((size(dh) == 1)) | |
804 | - | then { | |
805 | - | let cS = invoke(X(), "withdraw", [toBase58String(W()), dh[0].amount], nil) | |
806 | - | if ((cS == cS)) | |
807 | - | then nil | |
808 | - | else throw("Strict value is not equal to itself.") | |
809 | - | } | |
810 | - | else nil | |
811 | - | if ((cR == cR)) | |
812 | - | then { | |
813 | - | let cy = invoke(this, "setContext", [S], nil) | |
814 | - | if ((cy == cy)) | |
813 | + | else nil | |
814 | + | if ((cR == cR)) | |
815 | 815 | then { | |
816 | - | let | |
817 | - | if (( | |
816 | + | let cy = invoke(this, "setContext", [S], nil) | |
817 | + | if ((cy == cy)) | |
818 | 818 | then { | |
819 | - | let | |
820 | - | if (( | |
819 | + | let di = invoke(addressFromStringValue(R), df, dg, dh) | |
820 | + | if ((di == di)) | |
821 | 821 | then { | |
822 | - | let dj = if ((P == t)) | |
822 | + | let cA = invoke(this, "resetContext", nil, nil) | |
823 | + | if ((cA == cA)) | |
823 | 824 | then { | |
824 | - | let dk = aL(R, S, cK) | |
825 | - | if ((dk == dk)) | |
825 | + | let dj = if ((P == t)) | |
826 | 826 | then { | |
827 | - | let | |
828 | - | if (( | |
827 | + | let dk = aL(R, S, cK) | |
828 | + | if ((dk == dk)) | |
829 | 829 | then { | |
830 | - | let dm = (dk - cx) | |
831 | - | let dn = if ((dk > 0)) | |
832 | - | then v | |
833 | - | else u | |
834 | - | let do = if (ah(L, s)) | |
830 | + | let dl = aP(R, S, cK) | |
831 | + | if ((dl == dl)) | |
835 | 832 | then { | |
836 | - | let dp = ai(L, s) | |
837 | - | let dq = dp._1 | |
838 | - | let dr = dp._2 | |
839 | - | let ds = dp._3 | |
840 | - | let dt = dp._4 | |
841 | - | let du = dp._5 | |
842 | - | let dv = dp._6 | |
843 | - | let cr = invoke(this, "internalCreateOrder", [ds, dr, dt, du, dv, dm, 0, dn, "", "", 0, 0], nil) | |
844 | - | if ((cr == cr)) | |
845 | - | then nil | |
846 | - | else throw("Strict value is not equal to itself.") | |
847 | - | } | |
848 | - | else nil | |
849 | - | if ((do == do)) | |
850 | - | then { | |
851 | - | let dw = if (ah(L, r)) | |
833 | + | let dm = (dk - cx) | |
834 | + | let dn = if ((dk > 0)) | |
835 | + | then v | |
836 | + | else u | |
837 | + | let do = if (ah(L, s)) | |
852 | 838 | then { | |
853 | - | let | |
854 | - | let dq = | |
855 | - | let dr = | |
856 | - | let ds = | |
857 | - | let dt = | |
858 | - | let du = | |
859 | - | let dv = | |
839 | + | let dp = ai(L, s) | |
840 | + | let dq = dp._1 | |
841 | + | let dr = dp._2 | |
842 | + | let ds = dp._3 | |
843 | + | let dt = dp._4 | |
844 | + | let du = dp._5 | |
845 | + | let dv = dp._6 | |
860 | 846 | let cr = invoke(this, "internalCreateOrder", [ds, dr, dt, du, dv, dm, 0, dn, "", "", 0, 0], nil) | |
861 | 847 | if ((cr == cr)) | |
862 | 848 | then nil | |
863 | 849 | else throw("Strict value is not equal to itself.") | |
864 | 850 | } | |
865 | 851 | else nil | |
866 | - | if ((dw == dw)) | |
867 | - | then (do ++ dw) | |
852 | + | if ((do == do)) | |
853 | + | then { | |
854 | + | let dw = if (ah(L, r)) | |
855 | + | then { | |
856 | + | let dx = ai(L, r) | |
857 | + | let dq = dx._1 | |
858 | + | let dr = dx._2 | |
859 | + | let ds = dx._3 | |
860 | + | let dt = dx._4 | |
861 | + | let du = dx._5 | |
862 | + | let dv = dx._6 | |
863 | + | let cr = invoke(this, "internalCreateOrder", [ds, dr, dt, du, dv, dm, 0, dn, "", "", 0, 0], nil) | |
864 | + | if ((cr == cr)) | |
865 | + | then nil | |
866 | + | else throw("Strict value is not equal to itself.") | |
867 | + | } | |
868 | + | else nil | |
869 | + | if ((dw == dw)) | |
870 | + | then (do ++ dw) | |
871 | + | else throw("Strict value is not equal to itself.") | |
872 | + | } | |
868 | 873 | else throw("Strict value is not equal to itself.") | |
869 | 874 | } | |
870 | 875 | else throw("Strict value is not equal to itself.") | |
871 | 876 | } | |
872 | 877 | else throw("Strict value is not equal to itself.") | |
873 | 878 | } | |
874 | - | else | |
875 | - | | |
876 | - | | |
877 | - | | |
878 | - | | |
879 | - | | |
880 | - | | |
881 | - | | |
879 | + | else nil | |
880 | + | if ((dj == dj)) | |
881 | + | then { | |
882 | + | let dy = invoke(this, "internalMarkOrderExecuted", [R, S, L], nil) | |
883 | + | if ((dy == dy)) | |
884 | + | then nil | |
885 | + | else throw("Strict value is not equal to itself.") | |
886 | + | } | |
882 | 887 | else throw("Strict value is not equal to itself.") | |
883 | 888 | } | |
884 | 889 | else throw("Strict value is not equal to itself.") | |
891 | 896 | } | |
892 | 897 | else throw("Strict value is not equal to itself.") | |
893 | 898 | } | |
894 | - | else throw("Strict value is not equal to itself.") | |
895 | 899 | } | |
900 | + | else throw("Strict value is not equal to itself.") | |
896 | 901 | } | |
897 | 902 | else throw("Strict value is not equal to itself.") | |
898 | 903 | } |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "k_coordinatorAddress" | |
5 | 5 | ||
6 | 6 | let b = "k_admin_address" | |
7 | 7 | ||
8 | 8 | let c = "k_quote_asset" | |
9 | 9 | ||
10 | 10 | let d = "k_amm" | |
11 | 11 | ||
12 | 12 | let e = "k_manager_address" | |
13 | 13 | ||
14 | 14 | let f = "k_positionSequence" | |
15 | 15 | ||
16 | 16 | let g = "k_positionSize" | |
17 | 17 | ||
18 | 18 | let h = "k_executedOrders" | |
19 | 19 | ||
20 | 20 | let i = "k_canceledOrders" | |
21 | 21 | ||
22 | 22 | let j = "k_order" | |
23 | 23 | ||
24 | 24 | let k = "k_orderReq" | |
25 | 25 | ||
26 | 26 | let l = "k_lastOrderId" | |
27 | 27 | ||
28 | 28 | let m = "k_traderOrderCnt" | |
29 | 29 | ||
30 | 30 | let n = "k_traderOrderIds" | |
31 | 31 | ||
32 | 32 | let o = "k_spreadLimit" | |
33 | 33 | ||
34 | 34 | let p = "k_sender" | |
35 | 35 | ||
36 | 36 | let q = "k_initialized" | |
37 | 37 | ||
38 | 38 | let r = 1 | |
39 | 39 | ||
40 | 40 | let s = 2 | |
41 | 41 | ||
42 | 42 | let t = 3 | |
43 | 43 | ||
44 | 44 | let u = 1 | |
45 | 45 | ||
46 | 46 | let v = 2 | |
47 | 47 | ||
48 | 48 | let w = 1 | |
49 | 49 | ||
50 | 50 | let x = 2 | |
51 | 51 | ||
52 | 52 | let y = 10 | |
53 | 53 | ||
54 | 54 | let z = lastBlock.timestamp | |
55 | 55 | ||
56 | 56 | let A = (1 * (((((10 * 10) * 10) * 10) * 10) * 10)) | |
57 | 57 | ||
58 | 58 | func B (C) = if ((C > 0)) | |
59 | 59 | then C | |
60 | 60 | else -(C) | |
61 | 61 | ||
62 | 62 | ||
63 | 63 | func D (C,E) = fraction(C, A, E, HALFEVEN) | |
64 | 64 | ||
65 | 65 | ||
66 | 66 | func F (C,E) = fraction(C, E, A, HALFEVEN) | |
67 | 67 | ||
68 | 68 | ||
69 | 69 | func G (C,E) = if ((C > E)) | |
70 | 70 | then E | |
71 | 71 | else C | |
72 | 72 | ||
73 | 73 | ||
74 | 74 | func H (I,J) = ((I + "_") + J) | |
75 | 75 | ||
76 | 76 | ||
77 | 77 | func K (L) = ((h + "_") + toString(L)) | |
78 | 78 | ||
79 | 79 | ||
80 | 80 | func M (L) = ((i + "_") + toString(L)) | |
81 | 81 | ||
82 | 82 | ||
83 | 83 | func N (L) = H(j, toString(L)) | |
84 | 84 | ||
85 | 85 | ||
86 | 86 | func O (L,P) = ((((k + "_") + toString(L)) + "_") + toString(P)) | |
87 | 87 | ||
88 | 88 | ||
89 | 89 | func Q (R,S) = ((((m + "_") + R) + "_") + S) | |
90 | 90 | ||
91 | 91 | ||
92 | 92 | func T (R,S) = ((((n + "_") + R) + "_") + S) | |
93 | 93 | ||
94 | 94 | ||
95 | 95 | func U () = valueOrErrorMessage(addressFromString(getStringValue(this, a)), "Coordinator not set") | |
96 | 96 | ||
97 | 97 | ||
98 | 98 | func V () = addressFromString(getStringValue(U(), b)) | |
99 | 99 | ||
100 | 100 | ||
101 | 101 | func W () = fromBase58String(getStringValue(U(), c)) | |
102 | 102 | ||
103 | 103 | ||
104 | 104 | func X () = valueOrErrorMessage(addressFromString(getStringValue(U(), e)), "Manager not set") | |
105 | 105 | ||
106 | 106 | ||
107 | 107 | func Y (J) = valueOrElse(getBoolean(U(), H(d, J)), false) | |
108 | 108 | ||
109 | 109 | ||
110 | 110 | func Z () = valueOrElse(getBoolean(this, q), false) | |
111 | 111 | ||
112 | 112 | ||
113 | 113 | func aa (L) = if (valueOrElse(getBoolean(this, K(L)), false)) | |
114 | 114 | then throw(("Order already executed: " + toString(L))) | |
115 | 115 | else if (valueOrElse(getBoolean(this, M(L)), false)) | |
116 | 116 | then throw(("Order already cancelled: " + toString(L))) | |
117 | 117 | else true | |
118 | 118 | ||
119 | 119 | ||
120 | 120 | func ab () = valueOrErrorMessage(getInteger(this, o), "Spread limit not set") | |
121 | 121 | ||
122 | 122 | ||
123 | 123 | func ac () = valueOrElse(getInteger(this, l), 0) | |
124 | 124 | ||
125 | 125 | ||
126 | 126 | func ad (R,S) = { | |
127 | 127 | let ae = Q(R, S) | |
128 | 128 | valueOrElse(getInteger(this, ae), 0) | |
129 | 129 | } | |
130 | 130 | ||
131 | 131 | ||
132 | 132 | func af (R,S) = { | |
133 | 133 | let ae = T(R, S) | |
134 | 134 | let ag = valueOrElse(getString(this, ae), "") | |
135 | 135 | if ((ag == "")) | |
136 | 136 | then nil | |
137 | 137 | else split(ag, ",") | |
138 | 138 | } | |
139 | 139 | ||
140 | 140 | ||
141 | 141 | func ah (L,P) = { | |
142 | 142 | let ae = O(L, P) | |
143 | 143 | isDefined(getString(this, ae)) | |
144 | 144 | } | |
145 | 145 | ||
146 | 146 | ||
147 | 147 | func ai (L,P) = { | |
148 | 148 | let ae = O(L, P) | |
149 | 149 | let aj = valueOrErrorMessage(getString(this, ae), ("Not order request for key: " + ae)) | |
150 | 150 | let ak = split(aj, ",") | |
151 | 151 | let al = valueOrErrorMessage(parseInt(ak[0]), "Invalid orderId") | |
152 | 152 | let am = ak[1] | |
153 | 153 | let an = ak[2] | |
154 | 154 | let ao = valueOrErrorMessage(parseInt(ak[3]), "Invalid type") | |
155 | 155 | let ap = valueOrErrorMessage(parseInt(ak[4]), "Invalid triggerPrice") | |
156 | 156 | let aq = valueOrErrorMessage(parseInt(ak[5]), "Invalid limitPrice") | |
157 | 157 | $Tuple6(al, am, an, ao, ap, aq) | |
158 | 158 | } | |
159 | 159 | ||
160 | 160 | ||
161 | 161 | func ar (L) = { | |
162 | 162 | let as = valueOrErrorMessage(getString(this, N(L)), ("Invalid order id: " + toString(L))) | |
163 | 163 | let at = split(as, ",") | |
164 | 164 | let am = at[0] | |
165 | 165 | let an = at[1] | |
166 | 166 | let au = valueOrErrorMessage(parseInt(at[2]), "Invalid amountIn") | |
167 | 167 | let av = valueOrErrorMessage(parseInt(at[3]), "Invalid leverage") | |
168 | 168 | let ao = valueOrErrorMessage(parseInt(at[4]), "Invalid type") | |
169 | 169 | let ap = valueOrErrorMessage(parseInt(at[5]), "Invalid triggerPrice") | |
170 | 170 | let aw = valueOrErrorMessage(parseInt(at[6]), "Invalid paymentUsdn") | |
171 | 171 | let ax = valueOrErrorMessage(parseInt(at[7]), "Invalid side") | |
172 | 172 | let ay = at[8] | |
173 | 173 | let az = valueOrErrorMessage(parseInt(at[9]), "Invalid positionId") | |
174 | 174 | let aq = valueOrErrorMessage(parseInt(at[10]), "Invalid limitPrice") | |
175 | 175 | let aA = if ((size(at) > 11)) | |
176 | 176 | then valueOrErrorMessage(parseInt(at[11]), "Invalid expiration") | |
177 | 177 | else 0 | |
178 | 178 | let aB = if ((size(at) > 12)) | |
179 | 179 | then valueOrErrorMessage(parseInt(at[12]), "Invalid orderMarketPrice") | |
180 | 180 | else 0 | |
181 | 181 | $Tuple13(am, an, au, av, ao, ap, aw, ax, ay, az, aq, aA, aB) | |
182 | 182 | } | |
183 | 183 | ||
184 | 184 | ||
185 | 185 | func aC (R) = { | |
186 | 186 | let aD = invoke(addressFromStringValue(R), "computeSpotPrice", nil, nil) | |
187 | 187 | if ((aD == aD)) | |
188 | 188 | then { | |
189 | 189 | let aE = { | |
190 | 190 | let aF = aD | |
191 | 191 | if ($isInstanceOf(aF, "Int")) | |
192 | 192 | then { | |
193 | 193 | let aG = aF | |
194 | 194 | aG | |
195 | 195 | } | |
196 | 196 | else throw("Invalid computeSpotPrice result") | |
197 | 197 | } | |
198 | 198 | value(aE) | |
199 | 199 | } | |
200 | 200 | else throw("Strict value is not equal to itself.") | |
201 | 201 | } | |
202 | 202 | ||
203 | 203 | ||
204 | 204 | func aH (R,S) = { | |
205 | 205 | let aD = invoke(addressFromStringValue(R), "computeFeeForTraderWithArtifact", [S, ""], nil) | |
206 | 206 | if ((aD == aD)) | |
207 | 207 | then { | |
208 | 208 | let aE = { | |
209 | 209 | let aF = aD | |
210 | 210 | if ($isInstanceOf(aF, "(Int, Boolean)")) | |
211 | 211 | then { | |
212 | 212 | let aG = aF | |
213 | 213 | aG._1 | |
214 | 214 | } | |
215 | 215 | else throw("Invalid computeFeeForTraderWithArtifact result") | |
216 | 216 | } | |
217 | 217 | value(aE) | |
218 | 218 | } | |
219 | 219 | else throw("Strict value is not equal to itself.") | |
220 | 220 | } | |
221 | 221 | ||
222 | 222 | ||
223 | 223 | func aI (aJ,aK) = if (if ((aK == s)) | |
224 | 224 | then true | |
225 | 225 | else (aK == r)) | |
226 | 226 | then if ((aJ == u)) | |
227 | 227 | then v | |
228 | 228 | else u | |
229 | 229 | else aJ | |
230 | 230 | ||
231 | 231 | ||
232 | 232 | func aL (R,S,aM) = { | |
233 | 233 | let am = addressFromStringValue(R) | |
234 | 234 | let aN = ((S + "_") + toString(aM)) | |
235 | 235 | let aO = H(g, aN) | |
236 | 236 | valueOrElse(getInteger(am, aO), 0) | |
237 | 237 | } | |
238 | 238 | ||
239 | 239 | ||
240 | 240 | func aP (R,S,aM) = { | |
241 | 241 | let am = addressFromStringValue(R) | |
242 | 242 | let aN = ((S + "_") + toString(aM)) | |
243 | 243 | let aQ = H(f, aN) | |
244 | 244 | valueOrElse(getInteger(am, aQ), 0) | |
245 | 245 | } | |
246 | 246 | ||
247 | 247 | ||
248 | 248 | func aR (aS) = F(aS, ab()) | |
249 | 249 | ||
250 | 250 | ||
251 | 251 | func aT (L,R,S,aU,aV,P,aW,aX,aY,aZ,ba,bb,bc,bd) = { | |
252 | 252 | let as = makeString([R, S, toString(aU), toString(aV), toString(P), toString(aW), toString(aX), toString(aY), aZ, toString(ba), toString(bb), toString(bc), toString(bd)], ",") | |
253 | 253 | [StringEntry(N(L), as)] | |
254 | 254 | } | |
255 | 255 | ||
256 | 256 | ||
257 | 257 | func be (L,R,S,P,aW,bb) = { | |
258 | 258 | let bf = makeString([toString(L), R, S, toString(P), toString(aW), toString(bb)], ",") | |
259 | 259 | [StringEntry(O(L, P), bf)] | |
260 | 260 | } | |
261 | 261 | ||
262 | 262 | ||
263 | 263 | func bg (bh,R,S) = [StringEntry(T(R, S), bh)] | |
264 | 264 | ||
265 | 265 | ||
266 | 266 | func bi (bj,L,R,S,bk) = { | |
267 | 267 | let bl = if (bk) | |
268 | 268 | then (bj :+ toString(L)) | |
269 | 269 | else removeByIndex(bj, valueOrErrorMessage(indexOf(bj, toString(L)), ("No order with id: " + toString(L)))) | |
270 | 270 | bl | |
271 | 271 | } | |
272 | 272 | ||
273 | 273 | ||
274 | 274 | func bm (L,R,S,bk) = { | |
275 | 275 | let bn = af(R, S) | |
276 | 276 | let bl = bi(bn, L, R, S, bk) | |
277 | 277 | let bo = makeString(bl, ",") | |
278 | 278 | bg(bo, R, S) | |
279 | 279 | } | |
280 | 280 | ||
281 | 281 | ||
282 | 282 | func bp (R,S,bq) = if ((0 > bq)) | |
283 | 283 | then throw(("Invalid order count: " + toString(bq))) | |
284 | 284 | else [IntegerEntry(Q(R, S), bq)] | |
285 | 285 | ||
286 | 286 | ||
287 | 287 | func br (bs) = [IntegerEntry(l, bs)] | |
288 | 288 | ||
289 | 289 | ||
290 | 290 | func bt (L) = [BooleanEntry(H(h, toString(L)), true)] | |
291 | 291 | ||
292 | 292 | ||
293 | 293 | func bu (L) = [BooleanEntry(H(i, toString(L)), true)] | |
294 | 294 | ||
295 | 295 | ||
296 | 296 | func bv (R,S) = { | |
297 | 297 | let bw = aL(R, S, u) | |
298 | 298 | let bx = if ((bw != 0)) | |
299 | 299 | then aP(R, S, u) | |
300 | 300 | else 0 | |
301 | 301 | let by = aL(R, S, v) | |
302 | 302 | let bz = if ((by != 0)) | |
303 | 303 | then aP(R, S, v) | |
304 | 304 | else 0 | |
305 | 305 | [bx, bz] | |
306 | 306 | } | |
307 | 307 | ||
308 | 308 | ||
309 | 309 | @Callable(bA) | |
310 | 310 | func cleanUpStaleOrders (R,S) = { | |
311 | 311 | let bB = af(R, S) | |
312 | 312 | let bC = bv(R, S) | |
313 | 313 | func bD (bE,L) = { | |
314 | 314 | let bF = valueOrErrorMessage(parseInt(L), "Invalid order id") | |
315 | 315 | let bG = ar(bF) | |
316 | 316 | let bH = bG._1 | |
317 | 317 | let bI = bG._2 | |
318 | 318 | let bJ = bG._3 | |
319 | 319 | let bK = bG._4 | |
320 | 320 | let P = bG._5 | |
321 | 321 | let bL = bG._6 | |
322 | 322 | let bM = bG._7 | |
323 | 323 | let bN = bG._8 | |
324 | 324 | let bO = bG._9 | |
325 | 325 | let ba = bG._10 | |
326 | 326 | let bP = bG._11 | |
327 | 327 | let bc = bG._12 | |
328 | 328 | let bQ = if (if (if ((P == r)) | |
329 | 329 | then true | |
330 | 330 | else (P == s)) | |
331 | 331 | then (bC[0] != ba) | |
332 | 332 | else false) | |
333 | 333 | then (bC[1] != ba) | |
334 | 334 | else false | |
335 | 335 | let bR = if ((P == t)) | |
336 | 336 | then (lastBlock.timestamp >= bc) | |
337 | 337 | else false | |
338 | 338 | if (if (bQ) | |
339 | 339 | then true | |
340 | 340 | else bR) | |
341 | 341 | then { | |
342 | 342 | let bS = bu(bF) | |
343 | 343 | let bT = bi(bE._1, bF, R, S, false) | |
344 | 344 | $Tuple2(bT, (bE._2 ++ bS)) | |
345 | 345 | } | |
346 | 346 | else bE | |
347 | 347 | } | |
348 | 348 | ||
349 | 349 | let bU = { | |
350 | 350 | let bV = bB | |
351 | 351 | let bW = size(bV) | |
352 | 352 | let bX = $Tuple2(bB, nil) | |
353 | 353 | func bY (bZ,ca) = if ((ca >= bW)) | |
354 | 354 | then bZ | |
355 | 355 | else bD(bZ, bV[ca]) | |
356 | 356 | ||
357 | 357 | func cb (bZ,ca) = if ((ca >= bW)) | |
358 | 358 | then bZ | |
359 | 359 | else throw("List size exceeds 10") | |
360 | 360 | ||
361 | 361 | cb(bY(bY(bY(bY(bY(bY(bY(bY(bY(bY(bX, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
362 | 362 | } | |
363 | 363 | let cc = bU._1 | |
364 | 364 | let cd = bU._2 | |
365 | 365 | ((cd ++ bp(R, S, size(cc))) ++ bg(makeString(cc, ","), R, S)) | |
366 | 366 | } | |
367 | 367 | ||
368 | 368 | ||
369 | 369 | ||
370 | 370 | @Callable(bA) | |
371 | 371 | func setContext (ce) = if ((bA.caller != this)) | |
372 | 372 | then throw("Only self-call") | |
373 | 373 | else [StringEntry(p, ce)] | |
374 | 374 | ||
375 | 375 | ||
376 | 376 | ||
377 | 377 | @Callable(bA) | |
378 | 378 | func resetContext () = if ((bA.caller != this)) | |
379 | 379 | then throw("Only self-call") | |
380 | 380 | else [DeleteEntry(p)] | |
381 | 381 | ||
382 | 382 | ||
383 | 383 | ||
384 | 384 | @Callable(bA) | |
385 | 385 | func initialize (cf,cg) = if (if (if (Z()) | |
386 | 386 | then true | |
387 | 387 | else if ((0 > cg)) | |
388 | 388 | then true | |
389 | 389 | else (cg > (A / 10))) | |
390 | 390 | then true | |
391 | 391 | else (bA.caller != this)) | |
392 | 392 | then throw("Unable to initialize") | |
393 | 393 | else [StringEntry(a, toString(addressFromStringValue(cf))), IntegerEntry(o, cg), BooleanEntry(q, true)] | |
394 | 394 | ||
395 | 395 | ||
396 | 396 | ||
397 | 397 | @Callable(bA) | |
398 | 398 | func changeSettings (cg) = if (if ((bA.caller != V())) | |
399 | 399 | then true | |
400 | 400 | else if ((0 > cg)) | |
401 | 401 | then true | |
402 | 402 | else (cg > (A / 10))) | |
403 | 403 | then throw("Invalid changeSettings params") | |
404 | 404 | else [IntegerEntry(o, cg)] | |
405 | 405 | ||
406 | 406 | ||
407 | 407 | ||
408 | 408 | @Callable(bA) | |
409 | 409 | func createOrder (R,P,aW,bb,aU,aV,aY,aZ,ch,ci,cj,ck,bc,cl) = { | |
410 | 410 | let S = toString(bA.caller) | |
411 | 411 | let cm = invoke(addressFromStringValue(R), "updateOracle", [cl], nil) | |
412 | 412 | if ((cm == cm)) | |
413 | 413 | then { | |
414 | 414 | let cn = invoke(this, "cleanUpStaleOrders", [R, S], nil) | |
415 | 415 | if ((cn == cn)) | |
416 | 416 | then if ((size(bA.payments) > 1)) | |
417 | 417 | then throw("Invalid createOrder parameters: invalid payment count") | |
418 | 418 | else { | |
419 | 419 | let co = if ((size(bA.payments) == 1)) | |
420 | 420 | then $Tuple2(toBase58String(valueOrErrorMessage(bA.payments[0].assetId, "Invalid asset id")), bA.payments[0].amount) | |
421 | 421 | else $Tuple2("", 0) | |
422 | 422 | let cp = co._1 | |
423 | 423 | let cq = co._2 | |
424 | 424 | let cr = invoke(this, "internalCreateOrder", [S, R, P, aW, bb, aU, aV, aY, aZ, cp, cq, bc], nil) | |
425 | 425 | if ((cr == cr)) | |
426 | 426 | then { | |
427 | 427 | let al = { | |
428 | 428 | let aF = cr | |
429 | 429 | if ($isInstanceOf(aF, "Int")) | |
430 | 430 | then { | |
431 | 431 | let aG = aF | |
432 | 432 | aG | |
433 | 433 | } | |
434 | 434 | else throw("Invalid ID of created order") | |
435 | 435 | } | |
436 | 436 | if ((P == t)) | |
437 | 437 | then { | |
438 | 438 | let cs = if ((ch > 0)) | |
439 | 439 | then { | |
440 | 440 | let ct = invoke(this, "internalCreateOrderRequest", [S, R, al, r, ch, ci], nil) | |
441 | 441 | if ((ct == ct)) | |
442 | 442 | then nil | |
443 | 443 | else throw("Strict value is not equal to itself.") | |
444 | 444 | } | |
445 | 445 | else nil | |
446 | 446 | let cu = if ((cj > 0)) | |
447 | 447 | then { | |
448 | 448 | let cv = invoke(this, "internalCreateOrderRequest", [S, R, al, s, cj, ck], nil) | |
449 | 449 | if ((cv == cv)) | |
450 | 450 | then nil | |
451 | 451 | else throw("Strict value is not equal to itself.") | |
452 | 452 | } | |
453 | 453 | else nil | |
454 | 454 | (cs ++ cu) | |
455 | 455 | } | |
456 | 456 | else nil | |
457 | 457 | } | |
458 | 458 | else throw("Strict value is not equal to itself.") | |
459 | 459 | } | |
460 | 460 | else throw("Strict value is not equal to itself.") | |
461 | 461 | } | |
462 | 462 | else throw("Strict value is not equal to itself.") | |
463 | 463 | } | |
464 | 464 | ||
465 | 465 | ||
466 | 466 | ||
467 | 467 | @Callable(bA) | |
468 | 468 | func increasePositionWithStopLoss (R,aM,aV,cw,aZ,ch,ci,cj,ck,cl) = { | |
469 | 469 | let S = toString(bA.caller) | |
470 | 470 | let cn = invoke(this, "cleanUpStaleOrders", [R, S], nil) | |
471 | 471 | if ((cn == cn)) | |
472 | 472 | then if (if (!(Z())) | |
473 | 473 | then true | |
474 | 474 | else !(Y(R))) | |
475 | 475 | then throw("Invalid increasePositionWithStopLoss parameters") | |
476 | 476 | else { | |
477 | 477 | let cx = aL(R, S, aM) | |
478 | 478 | if ((cx != 0)) | |
479 | 479 | then throw("Invalid increasePositionWithStopLoss parameters: only new position") | |
480 | 480 | else { | |
481 | 481 | let cy = invoke(this, "setContext", [S], nil) | |
482 | 482 | if ((cy == cy)) | |
483 | 483 | then { | |
484 | 484 | let cz = invoke(addressFromStringValue(R), "increasePosition", [aM, aV, cw, aZ, cl], bA.payments) | |
485 | 485 | if ((cz == cz)) | |
486 | 486 | then { | |
487 | 487 | let cA = invoke(this, "resetContext", nil, nil) | |
488 | 488 | if ((cA == cA)) | |
489 | 489 | then { | |
490 | 490 | let cB = aL(R, S, aM) | |
491 | 491 | if ((cB == cB)) | |
492 | 492 | then { | |
493 | 493 | let au = B(cB) | |
494 | 494 | if ((au == au)) | |
495 | 495 | then { | |
496 | 496 | let cC = if ((0 > cB)) | |
497 | 497 | then u | |
498 | 498 | else v | |
499 | 499 | let cD = if ((0 >= au)) | |
500 | 500 | then { | |
501 | 501 | let cE = makeString([R, S, toString(aM), toString(aV), toString(cw), aZ, cl], ",") | |
502 | 502 | throw(((("Invalid amountIn=" + toString(au)) + " after success increasePosition: ") + cE)) | |
503 | 503 | } | |
504 | 504 | else 0 | |
505 | 505 | if ((cD == cD)) | |
506 | 506 | then { | |
507 | 507 | let cF = if ((ch > 0)) | |
508 | 508 | then { | |
509 | 509 | let cF = invoke(this, "internalCreateOrder", [S, R, r, ch, ci, au, 0, cC, aZ, "", 0, 0], nil) | |
510 | 510 | if ((cF == cF)) | |
511 | 511 | then nil | |
512 | 512 | else throw("Strict value is not equal to itself.") | |
513 | 513 | } | |
514 | 514 | else nil | |
515 | 515 | if ((cF == cF)) | |
516 | 516 | then { | |
517 | 517 | let cG = if ((cj > 0)) | |
518 | 518 | then { | |
519 | 519 | let cG = invoke(this, "internalCreateOrder", [S, R, s, cj, ck, au, 0, cC, aZ, "", 0, 0], nil) | |
520 | 520 | if ((cG == cG)) | |
521 | 521 | then nil | |
522 | 522 | else throw("Strict value is not equal to itself.") | |
523 | 523 | } | |
524 | 524 | else nil | |
525 | 525 | if ((cG == cG)) | |
526 | 526 | then nil | |
527 | 527 | else throw("Strict value is not equal to itself.") | |
528 | 528 | } | |
529 | 529 | else throw("Strict value is not equal to itself.") | |
530 | 530 | } | |
531 | 531 | else throw("Strict value is not equal to itself.") | |
532 | 532 | } | |
533 | 533 | else throw("Strict value is not equal to itself.") | |
534 | 534 | } | |
535 | 535 | else throw("Strict value is not equal to itself.") | |
536 | 536 | } | |
537 | 537 | else throw("Strict value is not equal to itself.") | |
538 | 538 | } | |
539 | 539 | else throw("Strict value is not equal to itself.") | |
540 | 540 | } | |
541 | 541 | else throw("Strict value is not equal to itself.") | |
542 | 542 | } | |
543 | 543 | } | |
544 | 544 | else throw("Strict value is not equal to itself.") | |
545 | 545 | } | |
546 | 546 | ||
547 | 547 | ||
548 | 548 | ||
549 | 549 | @Callable(bA) | |
550 | 550 | func internalMarkOrderExecuted (R,S,L) = if (if (if (!(Z())) | |
551 | 551 | then true | |
552 | 552 | else !(Y(R))) | |
553 | 553 | then true | |
554 | 554 | else !((bA.caller == this))) | |
555 | 555 | then throw("Invalid internalMarkOrderExecuted parameters") | |
556 | 556 | else { | |
557 | 557 | let cH = (ad(R, S) - 1) | |
558 | 558 | ((bp(R, S, cH) ++ bm(L, R, S, false)) ++ bt(L)) | |
559 | 559 | } | |
560 | 560 | ||
561 | 561 | ||
562 | 562 | ||
563 | 563 | @Callable(bA) | |
564 | 564 | func internalCreateOrderRequest (S,R,L,P,aW,bb) = if (if (if (if (if (!(Z())) | |
565 | 565 | then true | |
566 | 566 | else !(Y(R))) | |
567 | 567 | then true | |
568 | 568 | else (0 >= aW)) | |
569 | 569 | then true | |
570 | 570 | else (0 > bb)) | |
571 | 571 | then true | |
572 | 572 | else !((bA.caller == this))) | |
573 | 573 | then throw("Invalid internalCreateOrderRequest parameters") | |
574 | 574 | else be(L, R, S, P, aW, bb) | |
575 | 575 | ||
576 | 576 | ||
577 | 577 | ||
578 | 578 | @Callable(bA) | |
579 | 579 | func internalCreateOrder (S,R,P,aW,bb,aU,aV,aY,aZ,cI,cJ,bc) = if (if (if (if (if (if (if (if (if (if (!(Z())) | |
580 | 580 | then true | |
581 | 581 | else !(Y(R))) | |
582 | 582 | then true | |
583 | 583 | else (0 >= aW)) | |
584 | 584 | then true | |
585 | 585 | else (0 > bb)) | |
586 | 586 | then true | |
587 | 587 | else (0 >= aU)) | |
588 | 588 | then true | |
589 | 589 | else (0 > aV)) | |
590 | 590 | then true | |
591 | 591 | else !(if ((aY == u)) | |
592 | 592 | then true | |
593 | 593 | else (aY == v))) | |
594 | 594 | then true | |
595 | 595 | else !(if (if ((P == r)) | |
596 | 596 | then true | |
597 | 597 | else (P == s)) | |
598 | 598 | then true | |
599 | 599 | else (P == t))) | |
600 | 600 | then true | |
601 | 601 | else !((bA.caller == this))) | |
602 | 602 | then true | |
603 | 603 | else (0 > bc)) | |
604 | 604 | then throw("Invalid internalCreateOrder parameters") | |
605 | 605 | else { | |
606 | 606 | let al = (ac() + 1) | |
607 | 607 | let cK = aI(aY, P) | |
608 | 608 | let cH = (ad(R, S) + 1) | |
609 | 609 | let cx = aL(R, S, cK) | |
610 | 610 | let cL = aC(R) | |
611 | 611 | let aM = if (if (if ((cx == 0)) | |
612 | 612 | then true | |
613 | 613 | else if ((cx > 0)) | |
614 | 614 | then (aY == u) | |
615 | 615 | else false) | |
616 | 616 | then true | |
617 | 617 | else if ((0 > cx)) | |
618 | 618 | then (aY == v) | |
619 | 619 | else false) | |
620 | 620 | then w | |
621 | 621 | else x | |
622 | 622 | if (if ((cx == 0)) | |
623 | 623 | then if ((P == r)) | |
624 | 624 | then true | |
625 | 625 | else (P == s) | |
626 | 626 | else false) | |
627 | 627 | then throw("Can not create STOP/TAKE order: no position") | |
628 | 628 | else { | |
629 | 629 | let cM = if ((aM == w)) | |
630 | 630 | then if (if ((cI != toBase58String(W()))) | |
631 | 631 | then true | |
632 | 632 | else (cJ != aU)) | |
633 | 633 | then throw("Invalid createLimitOrder parameters: invalid payment") | |
634 | 634 | else { | |
635 | 635 | let cN = invoke(X(), "deposit", nil, [AttachedPayment(W(), cJ)]) | |
636 | 636 | if ((cN == cN)) | |
637 | 637 | then cJ | |
638 | 638 | else throw("Strict value is not equal to itself.") | |
639 | 639 | } | |
640 | 640 | else 0 | |
641 | 641 | if ((cM == cM)) | |
642 | 642 | then { | |
643 | 643 | let az = if ((cx != 0)) | |
644 | 644 | then aP(R, S, cK) | |
645 | 645 | else 0 | |
646 | 646 | if (if (if ((P == r)) | |
647 | 647 | then true | |
648 | 648 | else (P == s)) | |
649 | 649 | then (az == 0) | |
650 | 650 | else false) | |
651 | 651 | then throw("STOP and TAKE order should be assigned to position with id != 0") | |
652 | 652 | else if ((cH > y)) | |
653 | 653 | then throw("Invalid createLimitOrder parameters: order count") | |
654 | 654 | else { | |
655 | 655 | let cO = (((aT(al, R, S, aU, aV, P, aW, cM, aY, aZ, az, bb, bc, cL) ++ bm(al, R, S, true)) ++ bp(R, S, cH)) ++ br(al)) | |
656 | 656 | $Tuple2(cO, al) | |
657 | 657 | } | |
658 | 658 | } | |
659 | 659 | else throw("Strict value is not equal to itself.") | |
660 | 660 | } | |
661 | 661 | } | |
662 | 662 | ||
663 | 663 | ||
664 | 664 | ||
665 | 665 | @Callable(bA) | |
666 | 666 | func cancelOrder (L) = { | |
667 | 667 | let cP = ar(L) | |
668 | 668 | let R = cP._1 | |
669 | 669 | let S = cP._2 | |
670 | 670 | let aU = cP._3 | |
671 | 671 | let aV = cP._4 | |
672 | 672 | let P = cP._5 | |
673 | 673 | let aW = cP._6 | |
674 | 674 | let cQ = cP._7 | |
675 | 675 | if (if (if (!(Z())) | |
676 | 676 | then true | |
677 | 677 | else !(aa(L))) | |
678 | 678 | then true | |
679 | 679 | else !((toString(bA.caller) == S))) | |
680 | 680 | then throw("Invalid cancelOrder parameters") | |
681 | 681 | else { | |
682 | 682 | let cn = invoke(this, "cleanUpStaleOrders", [R, S], nil) | |
683 | 683 | if ((cn == cn)) | |
684 | 684 | then { | |
685 | 685 | let cH = (ad(R, S) - 1) | |
686 | 686 | let cR = if ((cQ > 0)) | |
687 | 687 | then { | |
688 | 688 | let cS = invoke(X(), "withdraw", [toBase58String(W()), cQ], nil) | |
689 | 689 | if ((cS == cS)) | |
690 | 690 | then nil | |
691 | 691 | else throw("Strict value is not equal to itself.") | |
692 | 692 | } | |
693 | 693 | else nil | |
694 | 694 | if ((cR == cR)) | |
695 | 695 | then (((bu(L) ++ bm(L, R, S, false)) ++ bp(R, S, cH)) ++ (if ((cQ > 0)) | |
696 | 696 | then [ScriptTransfer(bA.caller, cQ, W())] | |
697 | 697 | else nil)) | |
698 | 698 | else throw("Strict value is not equal to itself.") | |
699 | 699 | } | |
700 | 700 | else throw("Strict value is not equal to itself.") | |
701 | 701 | } | |
702 | 702 | } | |
703 | 703 | ||
704 | 704 | ||
705 | 705 | ||
706 | 706 | @Callable(bA) | |
707 | 707 | func executeOrder (L,cl) = { | |
708 | 708 | let cT = ar(L) | |
709 | 709 | let R = cT._1 | |
710 | 710 | let S = cT._2 | |
711 | 711 | let aU = cT._3 | |
712 | 712 | let aV = cT._4 | |
713 | 713 | let P = cT._5 | |
714 | 714 | let aW = cT._6 | |
715 | 715 | let cQ = cT._7 | |
716 | 716 | let aY = cT._8 | |
717 | 717 | let aZ = cT._9 | |
718 | 718 | let ba = cT._10 | |
719 | 719 | let bb = cT._11 | |
720 | 720 | let cU = cT._12 | |
721 | 721 | let bd = cT._13 | |
722 | - | let | |
723 | - | if (( | |
722 | + | let cm = invoke(addressFromStringValue(R), "updateOracle", [cl], nil) | |
723 | + | if ((cm == cm)) | |
724 | 724 | then { | |
725 | - | let cK = aI(aY, P) | |
726 | - | if (if (!(Z())) | |
727 | - | then true | |
728 | - | else !(aa(L))) | |
729 | - | then throw("Invalid executeOrder parameters") | |
730 | - | else { | |
731 | - | let cx = aL(R, S, cK) | |
732 | - | if ((cx == cx)) | |
733 | - | then { | |
734 | - | let cV = if ((cx != 0)) | |
735 | - | then aP(R, S, cK) | |
736 | - | else 0 | |
737 | - | let cW = if ((P == r)) | |
725 | + | let cn = invoke(this, "cleanUpStaleOrders", [R, S], nil) | |
726 | + | if ((cn == cn)) | |
727 | + | then { | |
728 | + | let cK = aI(aY, P) | |
729 | + | if (if (!(Z())) | |
730 | + | then true | |
731 | + | else !(aa(L))) | |
732 | + | then throw("Invalid executeOrder parameters") | |
733 | + | else { | |
734 | + | let cx = aL(R, S, cK) | |
735 | + | if ((cx == cx)) | |
738 | 736 | then { | |
739 | - | let cX = if ((cx > 0)) | |
740 | - | then u | |
741 | - | else if ((0 > cx)) | |
742 | - | then v | |
743 | - | else throw("Can not execute STOP order: no open position") | |
744 | - | let aB = aC(R) | |
745 | - | let cY = if ((aY == cX)) | |
746 | - | then throw("Can not execute STOP order: reduce only") | |
747 | - | else if ((cV != ba)) | |
748 | - | then throw("Can not execute STOP order: position closed") | |
749 | - | else if ((cX == u)) | |
750 | - | then (aW >= aB) | |
751 | - | else (aB >= aW) | |
752 | - | if (cY) | |
753 | - | then $Tuple3("closePosition", [G(aU, B(cx)), cK, F(bb, B(cx)), false, cl], nil) | |
754 | - | else throw("Can not execute STOP order: triggerPrice mismatch") | |
755 | - | } | |
756 | - | else if ((P == s)) | |
757 | - | then { | |
758 | - | let cX = if ((cx > 0)) | |
759 | - | then u | |
760 | - | else if ((0 > cx)) | |
761 | - | then v | |
762 | - | else throw("Can not execute STOP order: no open position") | |
763 | - | let aB = aC(R) | |
764 | - | let cY = if ((aY == cX)) | |
765 | - | then throw("Can not execute TAKE order: reduce only") | |
766 | - | else if ((cV != ba)) | |
767 | - | then throw(((("Can not execute TAKE order: position closed " + toString(cV)) + "!=") + toString(ba))) | |
768 | - | else if ((cX == u)) | |
769 | - | then (aB >= aW) | |
770 | - | else (aW >= aB) | |
771 | - | if (cY) | |
772 | - | then $Tuple3("closePosition", [G(aU, B(cx)), cK, F(bb, B(cx)), false, cl], nil) | |
773 | - | else throw("Can not execute TAKE order: triggerPrice mismatch") | |
774 | - | } | |
775 | - | else if ((P == t)) | |
737 | + | let cV = if ((cx != 0)) | |
738 | + | then aP(R, S, cK) | |
739 | + | else 0 | |
740 | + | let cW = if ((P == r)) | |
776 | 741 | then { | |
742 | + | let cX = if ((cx > 0)) | |
743 | + | then u | |
744 | + | else if ((0 > cx)) | |
745 | + | then v | |
746 | + | else throw("Can not execute STOP order: no open position") | |
777 | 747 | let aB = aC(R) | |
778 | - | let cZ = if ((bb == 0)) | |
779 | - | then true | |
780 | - | else if ((bb > bd)) | |
781 | - | then (aB >= bb) | |
782 | - | else (bb >= aB) | |
783 | - | let da = if ((aY == u)) | |
784 | - | then (aW >= aB) | |
785 | - | else (aB >= aW) | |
786 | - | let cY = if (cZ) | |
787 | - | then da | |
788 | - | else false | |
748 | + | let cY = if ((aY == cX)) | |
749 | + | then throw("Can not execute STOP order: reduce only") | |
750 | + | else if ((cV != ba)) | |
751 | + | then throw("Can not execute STOP order: position closed") | |
752 | + | else if ((cX == u)) | |
753 | + | then (aW >= aB) | |
754 | + | else (aB >= aW) | |
789 | 755 | if (cY) | |
756 | + | then $Tuple3("closePosition", [G(aU, B(cx)), cK, F(bb, B(cx)), false, cl], nil) | |
757 | + | else throw("Can not execute STOP order: triggerPrice mismatch") | |
758 | + | } | |
759 | + | else if ((P == s)) | |
760 | + | then { | |
761 | + | let cX = if ((cx > 0)) | |
762 | + | then u | |
763 | + | else if ((0 > cx)) | |
764 | + | then v | |
765 | + | else throw("Can not execute STOP order: no open position") | |
766 | + | let aB = aC(R) | |
767 | + | let cY = if ((aY == cX)) | |
768 | + | then throw("Can not execute TAKE order: reduce only") | |
769 | + | else if ((cV != ba)) | |
770 | + | then throw(((("Can not execute TAKE order: position closed " + toString(cV)) + "!=") + toString(ba))) | |
771 | + | else if ((cX == u)) | |
772 | + | then (aB >= aW) | |
773 | + | else (aW >= aB) | |
774 | + | if (cY) | |
775 | + | then $Tuple3("closePosition", [G(aU, B(cx)), cK, F(bb, B(cx)), false, cl], nil) | |
776 | + | else throw("Can not execute TAKE order: triggerPrice mismatch") | |
777 | + | } | |
778 | + | else if ((P == t)) | |
790 | 779 | then { | |
791 | - | let db = D(cQ, (F(aH(R, S), aV) + A)) | |
792 | - | let dc = F(db, aV) | |
793 | - | let dd = D(dc, aW) | |
794 | - | let de = (dd - F(dd, ab())) | |
795 | - | $Tuple3("increasePosition", [aY, aV, de, aZ, cl], [AttachedPayment(W(), cQ)]) | |
780 | + | let aB = aC(R) | |
781 | + | let cZ = if ((bb == 0)) | |
782 | + | then true | |
783 | + | else if ((bb > bd)) | |
784 | + | then (aB >= bb) | |
785 | + | else (bb >= aB) | |
786 | + | let da = if ((aY == u)) | |
787 | + | then (aW >= aB) | |
788 | + | else (aB >= aW) | |
789 | + | let cY = if (cZ) | |
790 | + | then da | |
791 | + | else false | |
792 | + | if (cY) | |
793 | + | then { | |
794 | + | let db = D(cQ, (F(aH(R, S), aV) + A)) | |
795 | + | let dc = F(db, aV) | |
796 | + | let dd = D(dc, aW) | |
797 | + | let de = (dd - F(dd, ab())) | |
798 | + | $Tuple3("increasePosition", [aY, aV, de, aZ, cl], [AttachedPayment(W(), cQ)]) | |
799 | + | } | |
800 | + | else throw("Can not execute LIMIT order: triggerPrice mismatch") | |
796 | 801 | } | |
797 | - | else throw("Can not execute LIMIT order: triggerPrice mismatch") | |
802 | + | else throw(("Invalid order type: " + toString(P))) | |
803 | + | let df = cW._1 | |
804 | + | let dg = cW._2 | |
805 | + | let dh = cW._3 | |
806 | + | let cR = if ((size(dh) == 1)) | |
807 | + | then { | |
808 | + | let cS = invoke(X(), "withdraw", [toBase58String(W()), dh[0].amount], nil) | |
809 | + | if ((cS == cS)) | |
810 | + | then nil | |
811 | + | else throw("Strict value is not equal to itself.") | |
798 | 812 | } | |
799 | - | else throw(("Invalid order type: " + toString(P))) | |
800 | - | let df = cW._1 | |
801 | - | let dg = cW._2 | |
802 | - | let dh = cW._3 | |
803 | - | let cR = if ((size(dh) == 1)) | |
804 | - | then { | |
805 | - | let cS = invoke(X(), "withdraw", [toBase58String(W()), dh[0].amount], nil) | |
806 | - | if ((cS == cS)) | |
807 | - | then nil | |
808 | - | else throw("Strict value is not equal to itself.") | |
809 | - | } | |
810 | - | else nil | |
811 | - | if ((cR == cR)) | |
812 | - | then { | |
813 | - | let cy = invoke(this, "setContext", [S], nil) | |
814 | - | if ((cy == cy)) | |
813 | + | else nil | |
814 | + | if ((cR == cR)) | |
815 | 815 | then { | |
816 | - | let | |
817 | - | if (( | |
816 | + | let cy = invoke(this, "setContext", [S], nil) | |
817 | + | if ((cy == cy)) | |
818 | 818 | then { | |
819 | - | let | |
820 | - | if (( | |
819 | + | let di = invoke(addressFromStringValue(R), df, dg, dh) | |
820 | + | if ((di == di)) | |
821 | 821 | then { | |
822 | - | let dj = if ((P == t)) | |
822 | + | let cA = invoke(this, "resetContext", nil, nil) | |
823 | + | if ((cA == cA)) | |
823 | 824 | then { | |
824 | - | let dk = aL(R, S, cK) | |
825 | - | if ((dk == dk)) | |
825 | + | let dj = if ((P == t)) | |
826 | 826 | then { | |
827 | - | let | |
828 | - | if (( | |
827 | + | let dk = aL(R, S, cK) | |
828 | + | if ((dk == dk)) | |
829 | 829 | then { | |
830 | - | let dm = (dk - cx) | |
831 | - | let dn = if ((dk > 0)) | |
832 | - | then v | |
833 | - | else u | |
834 | - | let do = if (ah(L, s)) | |
830 | + | let dl = aP(R, S, cK) | |
831 | + | if ((dl == dl)) | |
835 | 832 | then { | |
836 | - | let dp = ai(L, s) | |
837 | - | let dq = dp._1 | |
838 | - | let dr = dp._2 | |
839 | - | let ds = dp._3 | |
840 | - | let dt = dp._4 | |
841 | - | let du = dp._5 | |
842 | - | let dv = dp._6 | |
843 | - | let cr = invoke(this, "internalCreateOrder", [ds, dr, dt, du, dv, dm, 0, dn, "", "", 0, 0], nil) | |
844 | - | if ((cr == cr)) | |
845 | - | then nil | |
846 | - | else throw("Strict value is not equal to itself.") | |
847 | - | } | |
848 | - | else nil | |
849 | - | if ((do == do)) | |
850 | - | then { | |
851 | - | let dw = if (ah(L, r)) | |
833 | + | let dm = (dk - cx) | |
834 | + | let dn = if ((dk > 0)) | |
835 | + | then v | |
836 | + | else u | |
837 | + | let do = if (ah(L, s)) | |
852 | 838 | then { | |
853 | - | let | |
854 | - | let dq = | |
855 | - | let dr = | |
856 | - | let ds = | |
857 | - | let dt = | |
858 | - | let du = | |
859 | - | let dv = | |
839 | + | let dp = ai(L, s) | |
840 | + | let dq = dp._1 | |
841 | + | let dr = dp._2 | |
842 | + | let ds = dp._3 | |
843 | + | let dt = dp._4 | |
844 | + | let du = dp._5 | |
845 | + | let dv = dp._6 | |
860 | 846 | let cr = invoke(this, "internalCreateOrder", [ds, dr, dt, du, dv, dm, 0, dn, "", "", 0, 0], nil) | |
861 | 847 | if ((cr == cr)) | |
862 | 848 | then nil | |
863 | 849 | else throw("Strict value is not equal to itself.") | |
864 | 850 | } | |
865 | 851 | else nil | |
866 | - | if ((dw == dw)) | |
867 | - | then (do ++ dw) | |
852 | + | if ((do == do)) | |
853 | + | then { | |
854 | + | let dw = if (ah(L, r)) | |
855 | + | then { | |
856 | + | let dx = ai(L, r) | |
857 | + | let dq = dx._1 | |
858 | + | let dr = dx._2 | |
859 | + | let ds = dx._3 | |
860 | + | let dt = dx._4 | |
861 | + | let du = dx._5 | |
862 | + | let dv = dx._6 | |
863 | + | let cr = invoke(this, "internalCreateOrder", [ds, dr, dt, du, dv, dm, 0, dn, "", "", 0, 0], nil) | |
864 | + | if ((cr == cr)) | |
865 | + | then nil | |
866 | + | else throw("Strict value is not equal to itself.") | |
867 | + | } | |
868 | + | else nil | |
869 | + | if ((dw == dw)) | |
870 | + | then (do ++ dw) | |
871 | + | else throw("Strict value is not equal to itself.") | |
872 | + | } | |
868 | 873 | else throw("Strict value is not equal to itself.") | |
869 | 874 | } | |
870 | 875 | else throw("Strict value is not equal to itself.") | |
871 | 876 | } | |
872 | 877 | else throw("Strict value is not equal to itself.") | |
873 | 878 | } | |
874 | - | else | |
875 | - | | |
876 | - | | |
877 | - | | |
878 | - | | |
879 | - | | |
880 | - | | |
881 | - | | |
879 | + | else nil | |
880 | + | if ((dj == dj)) | |
881 | + | then { | |
882 | + | let dy = invoke(this, "internalMarkOrderExecuted", [R, S, L], nil) | |
883 | + | if ((dy == dy)) | |
884 | + | then nil | |
885 | + | else throw("Strict value is not equal to itself.") | |
886 | + | } | |
882 | 887 | else throw("Strict value is not equal to itself.") | |
883 | 888 | } | |
884 | 889 | else throw("Strict value is not equal to itself.") | |
885 | 890 | } | |
886 | 891 | else throw("Strict value is not equal to itself.") | |
887 | 892 | } | |
888 | 893 | else throw("Strict value is not equal to itself.") | |
889 | 894 | } | |
890 | 895 | else throw("Strict value is not equal to itself.") | |
891 | 896 | } | |
892 | 897 | else throw("Strict value is not equal to itself.") | |
893 | 898 | } | |
894 | - | else throw("Strict value is not equal to itself.") | |
895 | 899 | } | |
900 | + | else throw("Strict value is not equal to itself.") | |
896 | 901 | } | |
897 | 902 | else throw("Strict value is not equal to itself.") | |
898 | 903 | } | |
899 | 904 | ||
900 | 905 | ||
901 | 906 | ||
902 | 907 | @Callable(bA) | |
903 | 908 | func view_canExecuteOrder (L,cl) = { | |
904 | 909 | let aD = invoke(this, "executeOrder", [L, cl], nil) | |
905 | 910 | if ((aD == aD)) | |
906 | 911 | then throw("Success") | |
907 | 912 | else throw("Strict value is not equal to itself.") | |
908 | 913 | } | |
909 | 914 | ||
910 | 915 | ||
911 | 916 | @Verifier(dz) | |
912 | 917 | func dA () = { | |
913 | 918 | let dB = getString(this, a) | |
914 | 919 | if (isDefined(dB)) | |
915 | 920 | then { | |
916 | 921 | let dC = getString(addressFromStringValue(value(dB)), b) | |
917 | 922 | if (isDefined(dC)) | |
918 | 923 | then valueOrElse(getBoolean(addressFromStringValue(value(dC)), ((("status_" + toString(this)) + "_") + toBase58String(dz.id))), false) | |
919 | 924 | else throw("unable to verify: admin not set in coordinator") | |
920 | 925 | } | |
921 | 926 | else sigVerify(dz.bodyBytes, dz.proofs[0], dz.senderPublicKey) | |
922 | 927 | } | |
923 | 928 |
github/deemru/w8io/169f3d6 134.91 ms ◑