tx · 9DJeRVWMUqypBf2rArASxNkvVcD5yaBbkPiMoqJH5aFs 3N4K6JFDDdcd1qrk2HszwHQrMqznvhYBgjn: -0.02000000 Waves 2023.06.19 15:43 [2629528] smart account 3N4K6JFDDdcd1qrk2HszwHQrMqznvhYBgjn > SELF 0.00000000 Waves
{ "type": 13, "id": "9DJeRVWMUqypBf2rArASxNkvVcD5yaBbkPiMoqJH5aFs", "fee": 2000000, "feeAssetId": null, "timestamp": 1687178629402, "version": 2, "chainId": 84, "sender": "3N4K6JFDDdcd1qrk2HszwHQrMqznvhYBgjn", "senderPublicKey": "9vxW4kEGgMt47hfP42SnhhMRhEVqbedX6N57xB8XKYcV", "proofs": [ "39XmJj5BzHXcJpanuYh6ZWis3DcSDXqd9RGxK3KSREMKK1oz9Y99VX6NhwSRcerj7ebeDoAVMWGK3VHM4kMfTYBx" ], "script": "base64:AAIFAAAAAAAAAD0IAhIOCgwBAQEICAEBAQEIAQESDgoMAQEBCAgBAQEBCAEBEgASBAoCCAESAwoBCBIDCgEIEgcKBQgICAgIAAAACgAAAAAURGFwcF9BZGRyZXNzX3B1Yl9rZXkBAAAAIJ/6IoC/X+WmAH3lOFnN9kmPro1K68e8JnOQXRnHLN0cAAAAABhwcm9kdWN0X2xhdW5jaF90aW1lc3RhbXAAAAABhgpF7AAAAAAAC0N1cnJlbmN5X0lEAgAAAAVXQVZFUwAAAAAUcHJvZHVjdF9sYXVuY2hfZXJyb3ICAAAAI1Byb2R1Y3QgTGF1bmNoIFRpbWVzdGFtcCBpcyBzZXQgYXQgAAAAABBub19wYXltZW50X2Vycm9yAgAAADdObyBwYXltZW50IGF0dGFjaGVkLCBQbGVhc2UgQXR0YWNoIFRva2VuIGluIHBheW1lbnRbMV0uAAAAABJjbG9zZWRfb3JhY2xlX2Vyb3ICAAAAMU9yYWNsZSBpcyBjbG9zZWQuIFdhaXQgVW50aWwgT3JhY2xlIGlzIFR1cm5lZCBPbi4AAAAAEXdoaXRlbGlzdF9hZGRyZXN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pUb3RhbF9CbGFja19MaXN0ZWRfQWRkcmVzcwUAAAAVVG90YWxCbGFja0xpc3RBZGRyZXNzBQAAAANuaWwJAAACAAAAAQIAAAAmQWRkcmVzcyBpcyBub3QgYXZhaWxhYmxlIGluIEJsYWNrbGlzdC4AAAABaQEAAAAIRGVsRW50cnkAAAAFAAAAAkUxAAAAAkUyAAAAAkUzAAAAAkU0AAAAAkU1CQAETAAAAAIJAQAAAAtEZWxldGVFbnRyeQAAAAEFAAAAAkUxCQAETAAAAAIJAQAAAAtEZWxldGVFbnRyeQAAAAEFAAAAAkUyCQAETAAAAAIJAQAAAAtEZWxldGVFbnRyeQAAAAEFAAAAAkUzCQAETAAAAAIJAQAAAAtEZWxldGVFbnRyeQAAAAEFAAAAAkU0CQAETAAAAAIJAQAAAAtEZWxldGVFbnRyeQAAAAEFAAAAAkU1BQAAAANuaWwAAAAAJaZy3A==", "height": 2629528, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: HBa5XANcceqsCFdSTFraqBH8yQxUH36NDEjZChhcVnTU Next: CRkBrYQohQnNFn7QJZfpgV7bCSyK221ZTfNaU48zAM19 Diff:
Old | New | Differences | |
---|---|---|---|
24 | 24 | @Callable(i) | |
25 | 25 | func placeoptionCall (Total_Pool_Liquidity,Amount,OptionCounterID,User_ID,User_Address,House_risk,Price,Call_Limits,Put_Limits,Oracle_Status,Start_Order_Timestamp,End_Order_Timestamp) = { | |
26 | 26 | let calleraddress = toBase58String(i.caller.bytes) | |
27 | - | let ifBlacklisted = getString(this, ("addr_BLACKLISTED_" + | |
27 | + | let ifBlacklisted = getString(this, ("addr_BLACKLISTED_" + User_Address)) | |
28 | 28 | let read_user_funds = getIntegerValue(((Currency_ID + "_") + User_Address)) | |
29 | 29 | let update_user_funds = ((read_user_funds - Amount) - network_fee) | |
30 | 30 | let read_start_order_permit_timestamp = Start_Order_Timestamp | |
69 | 69 | 0 | |
70 | 70 | } | |
71 | 71 | let TotalCallinSpecificCounter = (PreviousCallinSpecificCounter + 1) | |
72 | - | let PreviousUserCall = match getInteger(this, ( | |
72 | + | let PreviousUserCall = match getInteger(this, (User_Address + "_Total_Calls")) { | |
73 | 73 | case a: Int => | |
74 | 74 | a | |
75 | 75 | case _ => | |
76 | 76 | 0 | |
77 | 77 | } | |
78 | 78 | let TotalUserCall = (PreviousUserCall + 1) | |
79 | - | let PreviousUserCallinSpecificCounter = match getInteger(this, (( | |
79 | + | let PreviousUserCallinSpecificCounter = match getInteger(this, ((User_Address + "_Total_Calls_") + toString(read_OptionCounterID))) { | |
80 | 80 | case a: Int => | |
81 | 81 | a | |
82 | 82 | case _ => | |
91 | 91 | else if ((Oracle_Status == "CLOSE")) | |
92 | 92 | then throw(closed_oracle_eror) | |
93 | 93 | else if ((ifBlacklisted == "Yes")) | |
94 | - | then throw(( | |
94 | + | then throw((User_Address + " Address is Blacklisted. Please contact Admin to Whitelist it.")) | |
95 | 95 | else if ((lastBlock.timestamp >= read_end_order_permit_timestamp)) | |
96 | 96 | then throw("Option Order placing Timing Limits are Over. Please Join in Next Cycle.") | |
97 | 97 | else if ((minimum_order_size > Amount)) | |
100 | 100 | then throw((("Placed Order Size is more than [" + toString(maximum_order_size)) + "/10^8] WAVES.")) | |
101 | 101 | else if ((0 > update_user_funds)) | |
102 | 102 | then throw("Placed Order Amount is going negative. Please reduce the Order Size.") | |
103 | - | else [StringEntry(("User_ID_" + | |
103 | + | else [StringEntry(("User_ID_" + User_Address), User_ID), IntegerEntry(((Currency_ID + "_") + User_Address), update_user_funds), IntegerEntry("Network_Fee_To_Place_Order", network_fee), StringEntry(((("Call_" + User_Address) + "_") + toString(TotalUserCall)), toString(Price)), IntegerEntry(((("Call_Amount_" + User_Address) + "_") + toString(TotalUserCall)), Amount), StringEntry(((("Call_Start_End_" + User_Address) + "_") + toString(TotalUserCall)), ((toString(read_OptionCounterID) + "_") + toString(OptionExpireCounterID))), IntegerEntry("Total_Option_Orders", TotalOptionOrders), IntegerEntry(("Total_Funds_Added_In_Option_Order_" + toString(read_OptionCounterID)), TotalFundsAddedInSpecificOptionOrder), IntegerEntry("Total_Pool_Liquidity", new_total_pool_liquidity), IntegerEntry(("Funds_At_Risk_" + toString(read_OptionCounterID)), Funds_at_risk), IntegerEntry("Call_Limits", Call_Limits), IntegerEntry("Put_Limits", Put_Limits), IntegerEntry(("Total_Option_Orders_" + toString(read_OptionCounterID)), TotalOptionOrdersinSpecificCounter), IntegerEntry("Total_Calls", TotalCall), IntegerEntry(("Total_Calls_" + toString(read_OptionCounterID)), TotalCallinSpecificCounter), IntegerEntry((User_Address + "_Total_Calls"), TotalUserCall), IntegerEntry(((User_Address + "_Total_Calls_") + toString(read_OptionCounterID)), TotalUserCallinSpecificCounter)] | |
104 | 104 | } | |
105 | 105 | ||
106 | 106 | ||
108 | 108 | @Callable(i) | |
109 | 109 | func placeoptionPut (Total_Pool_Liquidity,Amount,OptionCounterID,User_ID,User_Address,House_risk,Price,Call_Limits,Put_Limits,Oracle_Status,Start_Order_Timestamp,End_Order_Timestamp) = { | |
110 | 110 | let calleraddress = toBase58String(i.caller.bytes) | |
111 | - | let ifBlacklisted = getString(this, ("addr_BLACKLISTED_" + | |
111 | + | let ifBlacklisted = getString(this, ("addr_BLACKLISTED_" + User_Address)) | |
112 | 112 | let read_user_funds = getIntegerValue(((Currency_ID + "_") + User_Address)) | |
113 | 113 | let update_user_funds = ((read_user_funds - Amount) - network_fee) | |
114 | 114 | let read_start_order_permit_timestamp = Start_Order_Timestamp | |
153 | 153 | 0 | |
154 | 154 | } | |
155 | 155 | let TotalPutinSpecificCounter = (PreviousPutinSpecificCounter + 1) | |
156 | - | let PreviousUserPut = match getInteger(this, ( | |
156 | + | let PreviousUserPut = match getInteger(this, (User_Address + "_Total_Puts")) { | |
157 | 157 | case a: Int => | |
158 | 158 | a | |
159 | 159 | case _ => | |
160 | 160 | 0 | |
161 | 161 | } | |
162 | 162 | let TotalUserPut = (PreviousUserPut + 1) | |
163 | - | let PreviousUserPutinSpecificCounter = match getInteger(this, (( | |
163 | + | let PreviousUserPutinSpecificCounter = match getInteger(this, ((User_Address + "_Total_Puts_") + toString(read_OptionCounterID))) { | |
164 | 164 | case a: Int => | |
165 | 165 | a | |
166 | 166 | case _ => | |
175 | 175 | else if ((Oracle_Status == "CLOSE")) | |
176 | 176 | then throw(closed_oracle_eror) | |
177 | 177 | else if ((ifBlacklisted == "Yes")) | |
178 | - | then throw(( | |
178 | + | then throw((User_Address + " Address is Blacklisted. Please contact Admin to Whitelist it.")) | |
179 | 179 | else if ((lastBlock.timestamp >= read_end_order_permit_timestamp)) | |
180 | 180 | then throw("Option Order placing Timing Limits are Over. Please Join in Next Cycle.") | |
181 | 181 | else if ((minimum_order_size > Amount)) | |
184 | 184 | then throw((("Placed Order Size is more than [" + toString(maximum_order_size)) + "/10^8] WAVES.")) | |
185 | 185 | else if ((0 > update_user_funds)) | |
186 | 186 | then throw("Placed Order Amount is going negative. Please reduce the Order Size.") | |
187 | - | else [StringEntry(("User_ID_" + | |
187 | + | else [StringEntry(("User_ID_" + User_Address), User_ID), IntegerEntry(((Currency_ID + "_") + User_Address), update_user_funds), IntegerEntry("Network_Fee_To_Place_Order", network_fee), StringEntry(((("Put_" + User_Address) + "_") + toString(TotalUserPut)), toString(Price)), IntegerEntry(((("Put_Amount_" + User_Address) + "_") + toString(TotalUserPut)), Amount), StringEntry(((("Put_Start_End_" + User_Address) + "_") + toString(TotalUserPut)), ((toString(read_OptionCounterID) + "_") + toString(OptionExpireCounterID))), IntegerEntry("Total_Option_Orders", TotalOptionOrders), IntegerEntry(("Total_Funds_Added_In_Option_Order_" + toString(read_OptionCounterID)), TotalFundsAddedInSpecificOptionOrder), IntegerEntry("Total_Pool_Liquidity", new_total_pool_liquidity), IntegerEntry(("Funds_At_Risk_" + toString(read_OptionCounterID)), Funds_at_risk), IntegerEntry("Call_Limits", Call_Limits), IntegerEntry("Put_Limits", Put_Limits), IntegerEntry(("Total_Option_Orders_" + toString(read_OptionCounterID)), TotalOptionOrdersinSpecificCounter), IntegerEntry("Total_Puts", TotalPut), IntegerEntry(("Total_Puts_" + toString(read_OptionCounterID)), TotalPutinSpecificCounter), IntegerEntry((User_Address + "_Total_Puts"), TotalUserPut), IntegerEntry(((User_Address + "_Total_Puts_") + toString(read_OptionCounterID)), TotalUserPutinSpecificCounter)] | |
188 | 188 | } | |
189 | 189 | ||
190 | 190 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let Dapp_Address_pub_key = base58'BmV3aPhqkjNgu3zD3rx1oaWTnPqgB8uRBQuvYjpYWtTu' | |
5 | 5 | ||
6 | 6 | let product_launch_timestamp = 1675209600000 | |
7 | 7 | ||
8 | 8 | let Currency_ID = "WAVES" | |
9 | 9 | ||
10 | 10 | let product_launch_error = "Product Launch Timestamp is set at " | |
11 | 11 | ||
12 | 12 | let no_payment_error = "No payment attached, Please Attach Token in payment[1]." | |
13 | 13 | ||
14 | 14 | let closed_oracle_eror = "Oracle is closed. Wait Until Oracle is Turned On." | |
15 | 15 | ||
16 | 16 | let whitelist_address = addressFromPublicKey(Dapp_Address_pub_key) | |
17 | 17 | ||
18 | 18 | let network_fee = 900000 | |
19 | 19 | ||
20 | 20 | let minimum_order_size = 10000000 | |
21 | 21 | ||
22 | 22 | let maximum_order_size = 10000000000 | |
23 | 23 | ||
24 | 24 | @Callable(i) | |
25 | 25 | func placeoptionCall (Total_Pool_Liquidity,Amount,OptionCounterID,User_ID,User_Address,House_risk,Price,Call_Limits,Put_Limits,Oracle_Status,Start_Order_Timestamp,End_Order_Timestamp) = { | |
26 | 26 | let calleraddress = toBase58String(i.caller.bytes) | |
27 | - | let ifBlacklisted = getString(this, ("addr_BLACKLISTED_" + | |
27 | + | let ifBlacklisted = getString(this, ("addr_BLACKLISTED_" + User_Address)) | |
28 | 28 | let read_user_funds = getIntegerValue(((Currency_ID + "_") + User_Address)) | |
29 | 29 | let update_user_funds = ((read_user_funds - Amount) - network_fee) | |
30 | 30 | let read_start_order_permit_timestamp = Start_Order_Timestamp | |
31 | 31 | let read_end_order_permit_timestamp = End_Order_Timestamp | |
32 | 32 | let read_total_pool_liquidity = Total_Pool_Liquidity | |
33 | 33 | let new_total_pool_liquidity = (read_total_pool_liquidity + Amount) | |
34 | 34 | let read_OptionCounterID = OptionCounterID | |
35 | 35 | let OpionExpireCounter = 1 | |
36 | 36 | let OptionExpireCounterID = (read_OptionCounterID + OpionExpireCounter) | |
37 | 37 | let PreviousOptionOrders = match getInteger(this, "Total_Option_Orders") { | |
38 | 38 | case a: Int => | |
39 | 39 | a | |
40 | 40 | case _ => | |
41 | 41 | 0 | |
42 | 42 | } | |
43 | 43 | let TotalOptionOrders = (PreviousOptionOrders + 1) | |
44 | 44 | let PreviousFundsAddedInSpecificOptionOrder = match getInteger(this, ("Total_Funds_Added_In_Option_Order_" + toString(read_OptionCounterID))) { | |
45 | 45 | case a: Int => | |
46 | 46 | a | |
47 | 47 | case _ => | |
48 | 48 | 0 | |
49 | 49 | } | |
50 | 50 | let TotalFundsAddedInSpecificOptionOrder = (PreviousFundsAddedInSpecificOptionOrder + Amount) | |
51 | 51 | let PreviousOptionOrdersinSpecificCounter = match getInteger(this, ("Total_Option_Orders_" + toString(read_OptionCounterID))) { | |
52 | 52 | case a: Int => | |
53 | 53 | a | |
54 | 54 | case _ => | |
55 | 55 | 0 | |
56 | 56 | } | |
57 | 57 | let TotalOptionOrdersinSpecificCounter = (PreviousOptionOrdersinSpecificCounter + 1) | |
58 | 58 | let PreviousCall = match getInteger(this, "Total_Calls") { | |
59 | 59 | case a: Int => | |
60 | 60 | a | |
61 | 61 | case _ => | |
62 | 62 | 0 | |
63 | 63 | } | |
64 | 64 | let TotalCall = (PreviousCall + 1) | |
65 | 65 | let PreviousCallinSpecificCounter = match getInteger(this, ("Total_Calls_" + toString(read_OptionCounterID))) { | |
66 | 66 | case a: Int => | |
67 | 67 | a | |
68 | 68 | case _ => | |
69 | 69 | 0 | |
70 | 70 | } | |
71 | 71 | let TotalCallinSpecificCounter = (PreviousCallinSpecificCounter + 1) | |
72 | - | let PreviousUserCall = match getInteger(this, ( | |
72 | + | let PreviousUserCall = match getInteger(this, (User_Address + "_Total_Calls")) { | |
73 | 73 | case a: Int => | |
74 | 74 | a | |
75 | 75 | case _ => | |
76 | 76 | 0 | |
77 | 77 | } | |
78 | 78 | let TotalUserCall = (PreviousUserCall + 1) | |
79 | - | let PreviousUserCallinSpecificCounter = match getInteger(this, (( | |
79 | + | let PreviousUserCallinSpecificCounter = match getInteger(this, ((User_Address + "_Total_Calls_") + toString(read_OptionCounterID))) { | |
80 | 80 | case a: Int => | |
81 | 81 | a | |
82 | 82 | case _ => | |
83 | 83 | 0 | |
84 | 84 | } | |
85 | 85 | let TotalUserCallinSpecificCounter = (PreviousUserCallinSpecificCounter + 1) | |
86 | 86 | let Funds_at_risk = House_risk | |
87 | 87 | if ((i.caller != whitelist_address)) | |
88 | 88 | then throw((("This Address is not Authorized. Only " + toString(whitelist_address)) + " is Authorized Address to Sign it.")) | |
89 | 89 | else if ((product_launch_timestamp > lastBlock.timestamp)) | |
90 | 90 | then throw((product_launch_error + toString(product_launch_timestamp))) | |
91 | 91 | else if ((Oracle_Status == "CLOSE")) | |
92 | 92 | then throw(closed_oracle_eror) | |
93 | 93 | else if ((ifBlacklisted == "Yes")) | |
94 | - | then throw(( | |
94 | + | then throw((User_Address + " Address is Blacklisted. Please contact Admin to Whitelist it.")) | |
95 | 95 | else if ((lastBlock.timestamp >= read_end_order_permit_timestamp)) | |
96 | 96 | then throw("Option Order placing Timing Limits are Over. Please Join in Next Cycle.") | |
97 | 97 | else if ((minimum_order_size > Amount)) | |
98 | 98 | then throw((("Placed Order Size is less than [" + toString(minimum_order_size)) + "/10^8] WAVES.")) | |
99 | 99 | else if ((Amount > maximum_order_size)) | |
100 | 100 | then throw((("Placed Order Size is more than [" + toString(maximum_order_size)) + "/10^8] WAVES.")) | |
101 | 101 | else if ((0 > update_user_funds)) | |
102 | 102 | then throw("Placed Order Amount is going negative. Please reduce the Order Size.") | |
103 | - | else [StringEntry(("User_ID_" + | |
103 | + | else [StringEntry(("User_ID_" + User_Address), User_ID), IntegerEntry(((Currency_ID + "_") + User_Address), update_user_funds), IntegerEntry("Network_Fee_To_Place_Order", network_fee), StringEntry(((("Call_" + User_Address) + "_") + toString(TotalUserCall)), toString(Price)), IntegerEntry(((("Call_Amount_" + User_Address) + "_") + toString(TotalUserCall)), Amount), StringEntry(((("Call_Start_End_" + User_Address) + "_") + toString(TotalUserCall)), ((toString(read_OptionCounterID) + "_") + toString(OptionExpireCounterID))), IntegerEntry("Total_Option_Orders", TotalOptionOrders), IntegerEntry(("Total_Funds_Added_In_Option_Order_" + toString(read_OptionCounterID)), TotalFundsAddedInSpecificOptionOrder), IntegerEntry("Total_Pool_Liquidity", new_total_pool_liquidity), IntegerEntry(("Funds_At_Risk_" + toString(read_OptionCounterID)), Funds_at_risk), IntegerEntry("Call_Limits", Call_Limits), IntegerEntry("Put_Limits", Put_Limits), IntegerEntry(("Total_Option_Orders_" + toString(read_OptionCounterID)), TotalOptionOrdersinSpecificCounter), IntegerEntry("Total_Calls", TotalCall), IntegerEntry(("Total_Calls_" + toString(read_OptionCounterID)), TotalCallinSpecificCounter), IntegerEntry((User_Address + "_Total_Calls"), TotalUserCall), IntegerEntry(((User_Address + "_Total_Calls_") + toString(read_OptionCounterID)), TotalUserCallinSpecificCounter)] | |
104 | 104 | } | |
105 | 105 | ||
106 | 106 | ||
107 | 107 | ||
108 | 108 | @Callable(i) | |
109 | 109 | func placeoptionPut (Total_Pool_Liquidity,Amount,OptionCounterID,User_ID,User_Address,House_risk,Price,Call_Limits,Put_Limits,Oracle_Status,Start_Order_Timestamp,End_Order_Timestamp) = { | |
110 | 110 | let calleraddress = toBase58String(i.caller.bytes) | |
111 | - | let ifBlacklisted = getString(this, ("addr_BLACKLISTED_" + | |
111 | + | let ifBlacklisted = getString(this, ("addr_BLACKLISTED_" + User_Address)) | |
112 | 112 | let read_user_funds = getIntegerValue(((Currency_ID + "_") + User_Address)) | |
113 | 113 | let update_user_funds = ((read_user_funds - Amount) - network_fee) | |
114 | 114 | let read_start_order_permit_timestamp = Start_Order_Timestamp | |
115 | 115 | let read_end_order_permit_timestamp = End_Order_Timestamp | |
116 | 116 | let read_total_pool_liquidity = Total_Pool_Liquidity | |
117 | 117 | let new_total_pool_liquidity = (read_total_pool_liquidity + Amount) | |
118 | 118 | let read_OptionCounterID = OptionCounterID | |
119 | 119 | let OpionExpireCounter = 1 | |
120 | 120 | let OptionExpireCounterID = (read_OptionCounterID + OpionExpireCounter) | |
121 | 121 | let PreviousOptionOrders = match getInteger(this, "Total_Option_Orders") { | |
122 | 122 | case a: Int => | |
123 | 123 | a | |
124 | 124 | case _ => | |
125 | 125 | 0 | |
126 | 126 | } | |
127 | 127 | let TotalOptionOrders = (PreviousOptionOrders + 1) | |
128 | 128 | let PreviousFundsAddedInSpecificOptionOrder = match getInteger(this, ("Total_Funds_Added_In_Option_Order_" + toString(read_OptionCounterID))) { | |
129 | 129 | case a: Int => | |
130 | 130 | a | |
131 | 131 | case _ => | |
132 | 132 | 0 | |
133 | 133 | } | |
134 | 134 | let TotalFundsAddedInSpecificOptionOrder = (PreviousFundsAddedInSpecificOptionOrder + Amount) | |
135 | 135 | let PreviousOptionOrdersinSpecificCounter = match getInteger(this, ("Total_Option_Orders_" + toString(read_OptionCounterID))) { | |
136 | 136 | case a: Int => | |
137 | 137 | a | |
138 | 138 | case _ => | |
139 | 139 | 0 | |
140 | 140 | } | |
141 | 141 | let TotalOptionOrdersinSpecificCounter = (PreviousOptionOrdersinSpecificCounter + 1) | |
142 | 142 | let PreviousPut = match getInteger(this, "Total_Puts") { | |
143 | 143 | case a: Int => | |
144 | 144 | a | |
145 | 145 | case _ => | |
146 | 146 | 0 | |
147 | 147 | } | |
148 | 148 | let TotalPut = (PreviousPut + 1) | |
149 | 149 | let PreviousPutinSpecificCounter = match getInteger(this, ("Total_Puts_" + toString(read_OptionCounterID))) { | |
150 | 150 | case a: Int => | |
151 | 151 | a | |
152 | 152 | case _ => | |
153 | 153 | 0 | |
154 | 154 | } | |
155 | 155 | let TotalPutinSpecificCounter = (PreviousPutinSpecificCounter + 1) | |
156 | - | let PreviousUserPut = match getInteger(this, ( | |
156 | + | let PreviousUserPut = match getInteger(this, (User_Address + "_Total_Puts")) { | |
157 | 157 | case a: Int => | |
158 | 158 | a | |
159 | 159 | case _ => | |
160 | 160 | 0 | |
161 | 161 | } | |
162 | 162 | let TotalUserPut = (PreviousUserPut + 1) | |
163 | - | let PreviousUserPutinSpecificCounter = match getInteger(this, (( | |
163 | + | let PreviousUserPutinSpecificCounter = match getInteger(this, ((User_Address + "_Total_Puts_") + toString(read_OptionCounterID))) { | |
164 | 164 | case a: Int => | |
165 | 165 | a | |
166 | 166 | case _ => | |
167 | 167 | 0 | |
168 | 168 | } | |
169 | 169 | let TotalUserPutinSpecificCounter = (PreviousUserPutinSpecificCounter + 1) | |
170 | 170 | let Funds_at_risk = House_risk | |
171 | 171 | if ((i.caller != whitelist_address)) | |
172 | 172 | then throw((("This Address is not Authorized. Only " + toString(whitelist_address)) + " is Authorized Address to Sign it.")) | |
173 | 173 | else if ((product_launch_timestamp > lastBlock.timestamp)) | |
174 | 174 | then throw((product_launch_error + toString(product_launch_timestamp))) | |
175 | 175 | else if ((Oracle_Status == "CLOSE")) | |
176 | 176 | then throw(closed_oracle_eror) | |
177 | 177 | else if ((ifBlacklisted == "Yes")) | |
178 | - | then throw(( | |
178 | + | then throw((User_Address + " Address is Blacklisted. Please contact Admin to Whitelist it.")) | |
179 | 179 | else if ((lastBlock.timestamp >= read_end_order_permit_timestamp)) | |
180 | 180 | then throw("Option Order placing Timing Limits are Over. Please Join in Next Cycle.") | |
181 | 181 | else if ((minimum_order_size > Amount)) | |
182 | 182 | then throw((("Placed Order Size is less than [" + toString(minimum_order_size)) + "/10^8] WAVES.")) | |
183 | 183 | else if ((Amount > maximum_order_size)) | |
184 | 184 | then throw((("Placed Order Size is more than [" + toString(maximum_order_size)) + "/10^8] WAVES.")) | |
185 | 185 | else if ((0 > update_user_funds)) | |
186 | 186 | then throw("Placed Order Amount is going negative. Please reduce the Order Size.") | |
187 | - | else [StringEntry(("User_ID_" + | |
187 | + | else [StringEntry(("User_ID_" + User_Address), User_ID), IntegerEntry(((Currency_ID + "_") + User_Address), update_user_funds), IntegerEntry("Network_Fee_To_Place_Order", network_fee), StringEntry(((("Put_" + User_Address) + "_") + toString(TotalUserPut)), toString(Price)), IntegerEntry(((("Put_Amount_" + User_Address) + "_") + toString(TotalUserPut)), Amount), StringEntry(((("Put_Start_End_" + User_Address) + "_") + toString(TotalUserPut)), ((toString(read_OptionCounterID) + "_") + toString(OptionExpireCounterID))), IntegerEntry("Total_Option_Orders", TotalOptionOrders), IntegerEntry(("Total_Funds_Added_In_Option_Order_" + toString(read_OptionCounterID)), TotalFundsAddedInSpecificOptionOrder), IntegerEntry("Total_Pool_Liquidity", new_total_pool_liquidity), IntegerEntry(("Funds_At_Risk_" + toString(read_OptionCounterID)), Funds_at_risk), IntegerEntry("Call_Limits", Call_Limits), IntegerEntry("Put_Limits", Put_Limits), IntegerEntry(("Total_Option_Orders_" + toString(read_OptionCounterID)), TotalOptionOrdersinSpecificCounter), IntegerEntry("Total_Puts", TotalPut), IntegerEntry(("Total_Puts_" + toString(read_OptionCounterID)), TotalPutinSpecificCounter), IntegerEntry((User_Address + "_Total_Puts"), TotalUserPut), IntegerEntry(((User_Address + "_Total_Puts_") + toString(read_OptionCounterID)), TotalUserPutinSpecificCounter)] | |
188 | 188 | } | |
189 | 189 | ||
190 | 190 | ||
191 | 191 | ||
192 | 192 | @Callable(i) | |
193 | 193 | func DepositUserFunds () = { | |
194 | 194 | let calleraddress = toBase58String(i.caller.bytes) | |
195 | 195 | let pmt = if ((size(i.payments) == 1)) | |
196 | 196 | then i.payments[0] | |
197 | 197 | else throw("No payment attached, Please Attach only Whitelisted Tokens in payment[1].") | |
198 | 198 | let ifBlacklisted = getString(this, ("addr_BLACKLISTED_" + calleraddress)) | |
199 | 199 | let PreviousUserDeposit = match getInteger(this, ((Currency_ID + "_") + calleraddress)) { | |
200 | 200 | case a: Int => | |
201 | 201 | a | |
202 | 202 | case _ => | |
203 | 203 | 0 | |
204 | 204 | } | |
205 | 205 | let TotalUserDeposit = (PreviousUserDeposit + pmt.amount) | |
206 | 206 | let PreviousDepositCounterID = match getInteger(this, "Deposit_Counter_ID") { | |
207 | 207 | case a: Int => | |
208 | 208 | a | |
209 | 209 | case _ => | |
210 | 210 | 0 | |
211 | 211 | } | |
212 | 212 | let TotalDepositCounterID = (PreviousDepositCounterID + 1) | |
213 | 213 | if ((product_launch_timestamp > lastBlock.timestamp)) | |
214 | 214 | then throw((product_launch_error + toString(product_launch_timestamp))) | |
215 | 215 | else if ((ifBlacklisted == "Yes")) | |
216 | 216 | then throw((calleraddress + " Address is Blacklisted. Please contact Admin to Whitelist it.")) | |
217 | 217 | else if (isDefined(pmt.assetId)) | |
218 | 218 | then throw("Only WAVES is allowed to deposit at the moment") | |
219 | 219 | else [IntegerEntry(((Currency_ID + "_") + calleraddress), TotalUserDeposit), IntegerEntry(((((toString(TotalDepositCounterID) + "_") + Currency_ID) + "_") + calleraddress), pmt.amount), IntegerEntry("Deposit_Counter_ID", TotalDepositCounterID)] | |
220 | 220 | } | |
221 | 221 | ||
222 | 222 | ||
223 | 223 | ||
224 | 224 | @Callable(i) | |
225 | 225 | func WithdrawUserFunds (User_Address,Amount) = { | |
226 | 226 | let calleraddress = toBase58String(i.caller.bytes) | |
227 | 227 | let readuserbalance = getIntegerValue(((Currency_ID + "_") + User_Address)) | |
228 | 228 | let update_user_funds = ((readuserbalance - Amount) - network_fee) | |
229 | 229 | let minimim_withdraw_amount = 10000000 | |
230 | 230 | if ((i.caller != whitelist_address)) | |
231 | 231 | then throw((("This Address is not Authorized. Only " + toString(whitelist_address)) + " is Authorized Address to Sign it.")) | |
232 | 232 | else if ((minimim_withdraw_amount > Amount)) | |
233 | 233 | then throw((("Minimum Withdraw Amount is " + toString(minimim_withdraw_amount)) + "/10^8] WAVES.")) | |
234 | 234 | else if ((0 > update_user_funds)) | |
235 | 235 | then throw((("Placed Withdraw Amount is going in negative State of " + toString(update_user_funds)) + "/10^8] WAVES.")) | |
236 | 236 | else [IntegerEntry("Previous_Balance", readuserbalance), IntegerEntry("Network_Fee_To_Withdraw", network_fee), IntegerEntry(((Currency_ID + "_") + User_Address), update_user_funds), ScriptTransfer(whitelist_address, network_fee, unit), ScriptTransfer(addressFromStringValue(User_Address), Amount, unit)] | |
237 | 237 | } | |
238 | 238 | ||
239 | 239 | ||
240 | 240 | ||
241 | 241 | @Callable(i) | |
242 | 242 | func BlackListAddress (UserAddress) = { | |
243 | 243 | let ifBlacklisted = getString(this, ("addr_BLACKLISTED_" + UserAddress)) | |
244 | 244 | let PreviousBlackListAddress = match getInteger(this, "Total_Black_Listed_Address") { | |
245 | 245 | case a: Int => | |
246 | 246 | a | |
247 | 247 | case _ => | |
248 | 248 | 0 | |
249 | 249 | } | |
250 | 250 | let TotalBlackListAddress = (PreviousBlackListAddress + 1) | |
251 | 251 | if ((product_launch_timestamp > lastBlock.timestamp)) | |
252 | 252 | then throw((product_launch_error + toString(product_launch_timestamp))) | |
253 | 253 | else if ((i.caller != whitelist_address)) | |
254 | 254 | then throw((("This Address is not Authorized. Only " + toString(whitelist_address)) + " is Authorized Address to Sign it.")) | |
255 | 255 | else if ((ifBlacklisted == "Yes")) | |
256 | 256 | then throw("Address is already available in Blacklist.") | |
257 | 257 | else [StringEntry(("addr_BLACKLISTED_" + UserAddress), "Yes"), IntegerEntry("Total_Black_Listed_Address", TotalBlackListAddress)] | |
258 | 258 | } | |
259 | 259 | ||
260 | 260 | ||
261 | 261 | ||
262 | 262 | @Callable(i) | |
263 | 263 | func DeleteBlackListAddress (UserAddress) = { | |
264 | 264 | let ifBlacklisted = getString(this, ("addr_BLACKLISTED_" + UserAddress)) | |
265 | 265 | let PreviousBlackListAddress = match getInteger(this, "Total_Black_Listed_Address") { | |
266 | 266 | case a: Int => | |
267 | 267 | a | |
268 | 268 | case _ => | |
269 | 269 | 0 | |
270 | 270 | } | |
271 | 271 | let TotalBlackListAddress = (PreviousBlackListAddress - 1) | |
272 | 272 | if ((product_launch_timestamp > lastBlock.timestamp)) | |
273 | 273 | then throw(("Product Launch Timestamp is set at " + toString(product_launch_timestamp))) | |
274 | 274 | else if ((i.caller != whitelist_address)) | |
275 | 275 | then throw((("This Address is not Authorized. Only " + toString(whitelist_address)) + " is Authorized Address to Sign it.")) | |
276 | 276 | else if ((ifBlacklisted == "Yes")) | |
277 | 277 | then [DeleteEntry(("addr_BLACKLISTED_" + UserAddress)), IntegerEntry("Total_Black_Listed_Address", TotalBlackListAddress)] | |
278 | 278 | else throw("Address is not available in Blacklist.") | |
279 | 279 | } | |
280 | 280 | ||
281 | 281 | ||
282 | 282 | ||
283 | 283 | @Callable(i) | |
284 | 284 | func DelEntry (E1,E2,E3,E4,E5) = [DeleteEntry(E1), DeleteEntry(E2), DeleteEntry(E3), DeleteEntry(E4), DeleteEntry(E5)] | |
285 | 285 | ||
286 | 286 |
github/deemru/w8io/026f985 77.40 ms ◑