tx · CRkBrYQohQnNFn7QJZfpgV7bCSyK221ZTfNaU48zAM19 3N4K6JFDDdcd1qrk2HszwHQrMqznvhYBgjn: -0.02000000 Waves 2023.06.23 18:29 [2635409] smart account 3N4K6JFDDdcd1qrk2HszwHQrMqznvhYBgjn > SELF 0.00000000 Waves
{ "type": 13, "id": "CRkBrYQohQnNFn7QJZfpgV7bCSyK221ZTfNaU48zAM19", "fee": 2000000, "feeAssetId": null, "timestamp": 1687534159271, "version": 2, "chainId": 84, "sender": "3N4K6JFDDdcd1qrk2HszwHQrMqznvhYBgjn", "senderPublicKey": "9vxW4kEGgMt47hfP42SnhhMRhEVqbedX6N57xB8XKYcV", "proofs": [ "4FGVHhJsnCnxD8X5XDiTn3oj4GEb7DvYamTHGHvF7WPHhRVUZswJDkrEJux3MwjKpdX3Vo4E9xZY2atNSzoM4xqr" ], "script": "base64:AAIFAAAAAAAAAD0IAhIOCgwBAQEICAEBAQEIAQESDgoMAQEBCAgBAQEBCAEBEgASBAoCCAESAwoBCBIDCgEIEgcKBQgICAgIAAAACgAAAAAURGFwcF9BZGRyZXNzX3B1Yl9rZXkBAAAAIJ/6IoC/X+WmAH3lOFnN9kmPro1K68e8JnOQXRnHLN0cAAAAABhwcm9kdWN0X2xhdW5jaF90aW1lc3RhbXAAAAABhgpF7AAAAAAAC0N1cnJlbmN5X0lEAgAAAAVXQVZFUwAAAAAUcHJvZHVjdF9sYXVuY2hfZXJyb3ICAAAAI1Byb2R1Y3QgTGF1bmNoIFRpbWVzdGFtcCBpcyBzZXQgYXQgAAAAABBub19wYXltZW50X2Vycm9yAgAAADdObyBwYXltZW50IGF0dGFjaGVkLCBQbGVhc2UgQXR0YWNoIFRva2VuIGluIHBheW1lbnRbMV0uAAAAABJjbG9zZWRfb3JhY2xlX2Vyb3ICAAAAMU9yYWNsZSBpcyBjbG9zZWQuIFdhaXQgVW50aWwgT3JhY2xlIGlzIFR1cm5lZCBPbi4AAAAAEXdoaXRlbGlzdF9hZGRyZXNzC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ACRTMJAARMAAAAAgkBAAAAC0RlbGV0ZUVudHJ5AAAAAQUAAAACRTQJAARMAAAAAgkBAAAAC0RlbGV0ZUVudHJ5AAAAAQUAAAACRTUFAAAAA25pbAAAAAAt2Cs9", "height": 2635409, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 9DJeRVWMUqypBf2rArASxNkvVcD5yaBbkPiMoqJH5aFs Next: C5C8irAM4Z4PKJvycntqa5JQSYNcnrf2uAgrGeqeiqJv Diff:
Old | New | Differences | |
---|---|---|---|
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_" + 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)] | |
103 | + | else if (if ((size(toString(Start_Order_Timestamp)) != 13)) | |
104 | + | then (size(toString(End_Order_Timestamp)) != 13) | |
105 | + | else false) | |
106 | + | then throw("Wrong Timestamp is Entered. Please Enter a Valid Timestamp. Probably you entered an Timestamp less than 13 Chars.") | |
107 | + | 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 | 108 | } | |
105 | 109 | ||
106 | 110 | ||
184 | 188 | then throw((("Placed Order Size is more than [" + toString(maximum_order_size)) + "/10^8] WAVES.")) | |
185 | 189 | else if ((0 > update_user_funds)) | |
186 | 190 | then throw("Placed Order Amount is going negative. Please reduce the Order Size.") | |
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)] | |
191 | + | else if (if ((size(toString(Start_Order_Timestamp)) != 13)) | |
192 | + | then (size(toString(End_Order_Timestamp)) != 13) | |
193 | + | else false) | |
194 | + | then throw("Wrong Timestamp is Entered. Please Enter a Valid Timestamp. Probably you entered an Timestamp less than 13 Chars.") | |
195 | + | 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 | 196 | } | |
189 | 197 | ||
190 | 198 |
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 | 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 | 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 | 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 | 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_" + 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)] | |
103 | + | else if (if ((size(toString(Start_Order_Timestamp)) != 13)) | |
104 | + | then (size(toString(End_Order_Timestamp)) != 13) | |
105 | + | else false) | |
106 | + | then throw("Wrong Timestamp is Entered. Please Enter a Valid Timestamp. Probably you entered an Timestamp less than 13 Chars.") | |
107 | + | 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 | 108 | } | |
105 | 109 | ||
106 | 110 | ||
107 | 111 | ||
108 | 112 | @Callable(i) | |
109 | 113 | 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 | 114 | let calleraddress = toBase58String(i.caller.bytes) | |
111 | 115 | let ifBlacklisted = getString(this, ("addr_BLACKLISTED_" + User_Address)) | |
112 | 116 | let read_user_funds = getIntegerValue(((Currency_ID + "_") + User_Address)) | |
113 | 117 | let update_user_funds = ((read_user_funds - Amount) - network_fee) | |
114 | 118 | let read_start_order_permit_timestamp = Start_Order_Timestamp | |
115 | 119 | let read_end_order_permit_timestamp = End_Order_Timestamp | |
116 | 120 | let read_total_pool_liquidity = Total_Pool_Liquidity | |
117 | 121 | let new_total_pool_liquidity = (read_total_pool_liquidity + Amount) | |
118 | 122 | let read_OptionCounterID = OptionCounterID | |
119 | 123 | let OpionExpireCounter = 1 | |
120 | 124 | let OptionExpireCounterID = (read_OptionCounterID + OpionExpireCounter) | |
121 | 125 | let PreviousOptionOrders = match getInteger(this, "Total_Option_Orders") { | |
122 | 126 | case a: Int => | |
123 | 127 | a | |
124 | 128 | case _ => | |
125 | 129 | 0 | |
126 | 130 | } | |
127 | 131 | let TotalOptionOrders = (PreviousOptionOrders + 1) | |
128 | 132 | let PreviousFundsAddedInSpecificOptionOrder = match getInteger(this, ("Total_Funds_Added_In_Option_Order_" + toString(read_OptionCounterID))) { | |
129 | 133 | case a: Int => | |
130 | 134 | a | |
131 | 135 | case _ => | |
132 | 136 | 0 | |
133 | 137 | } | |
134 | 138 | let TotalFundsAddedInSpecificOptionOrder = (PreviousFundsAddedInSpecificOptionOrder + Amount) | |
135 | 139 | let PreviousOptionOrdersinSpecificCounter = match getInteger(this, ("Total_Option_Orders_" + toString(read_OptionCounterID))) { | |
136 | 140 | case a: Int => | |
137 | 141 | a | |
138 | 142 | case _ => | |
139 | 143 | 0 | |
140 | 144 | } | |
141 | 145 | let TotalOptionOrdersinSpecificCounter = (PreviousOptionOrdersinSpecificCounter + 1) | |
142 | 146 | let PreviousPut = match getInteger(this, "Total_Puts") { | |
143 | 147 | case a: Int => | |
144 | 148 | a | |
145 | 149 | case _ => | |
146 | 150 | 0 | |
147 | 151 | } | |
148 | 152 | let TotalPut = (PreviousPut + 1) | |
149 | 153 | let PreviousPutinSpecificCounter = match getInteger(this, ("Total_Puts_" + toString(read_OptionCounterID))) { | |
150 | 154 | case a: Int => | |
151 | 155 | a | |
152 | 156 | case _ => | |
153 | 157 | 0 | |
154 | 158 | } | |
155 | 159 | let TotalPutinSpecificCounter = (PreviousPutinSpecificCounter + 1) | |
156 | 160 | let PreviousUserPut = match getInteger(this, (User_Address + "_Total_Puts")) { | |
157 | 161 | case a: Int => | |
158 | 162 | a | |
159 | 163 | case _ => | |
160 | 164 | 0 | |
161 | 165 | } | |
162 | 166 | let TotalUserPut = (PreviousUserPut + 1) | |
163 | 167 | let PreviousUserPutinSpecificCounter = match getInteger(this, ((User_Address + "_Total_Puts_") + toString(read_OptionCounterID))) { | |
164 | 168 | case a: Int => | |
165 | 169 | a | |
166 | 170 | case _ => | |
167 | 171 | 0 | |
168 | 172 | } | |
169 | 173 | let TotalUserPutinSpecificCounter = (PreviousUserPutinSpecificCounter + 1) | |
170 | 174 | let Funds_at_risk = House_risk | |
171 | 175 | if ((i.caller != whitelist_address)) | |
172 | 176 | then throw((("This Address is not Authorized. Only " + toString(whitelist_address)) + " is Authorized Address to Sign it.")) | |
173 | 177 | else if ((product_launch_timestamp > lastBlock.timestamp)) | |
174 | 178 | then throw((product_launch_error + toString(product_launch_timestamp))) | |
175 | 179 | else if ((Oracle_Status == "CLOSE")) | |
176 | 180 | then throw(closed_oracle_eror) | |
177 | 181 | else if ((ifBlacklisted == "Yes")) | |
178 | 182 | then throw((User_Address + " Address is Blacklisted. Please contact Admin to Whitelist it.")) | |
179 | 183 | else if ((lastBlock.timestamp >= read_end_order_permit_timestamp)) | |
180 | 184 | then throw("Option Order placing Timing Limits are Over. Please Join in Next Cycle.") | |
181 | 185 | else if ((minimum_order_size > Amount)) | |
182 | 186 | then throw((("Placed Order Size is less than [" + toString(minimum_order_size)) + "/10^8] WAVES.")) | |
183 | 187 | else if ((Amount > maximum_order_size)) | |
184 | 188 | then throw((("Placed Order Size is more than [" + toString(maximum_order_size)) + "/10^8] WAVES.")) | |
185 | 189 | else if ((0 > update_user_funds)) | |
186 | 190 | then throw("Placed Order Amount is going negative. Please reduce the Order Size.") | |
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)] | |
191 | + | else if (if ((size(toString(Start_Order_Timestamp)) != 13)) | |
192 | + | then (size(toString(End_Order_Timestamp)) != 13) | |
193 | + | else false) | |
194 | + | then throw("Wrong Timestamp is Entered. Please Enter a Valid Timestamp. Probably you entered an Timestamp less than 13 Chars.") | |
195 | + | 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 | 196 | } | |
189 | 197 | ||
190 | 198 | ||
191 | 199 | ||
192 | 200 | @Callable(i) | |
193 | 201 | func DepositUserFunds () = { | |
194 | 202 | let calleraddress = toBase58String(i.caller.bytes) | |
195 | 203 | let pmt = if ((size(i.payments) == 1)) | |
196 | 204 | then i.payments[0] | |
197 | 205 | else throw("No payment attached, Please Attach only Whitelisted Tokens in payment[1].") | |
198 | 206 | let ifBlacklisted = getString(this, ("addr_BLACKLISTED_" + calleraddress)) | |
199 | 207 | let PreviousUserDeposit = match getInteger(this, ((Currency_ID + "_") + calleraddress)) { | |
200 | 208 | case a: Int => | |
201 | 209 | a | |
202 | 210 | case _ => | |
203 | 211 | 0 | |
204 | 212 | } | |
205 | 213 | let TotalUserDeposit = (PreviousUserDeposit + pmt.amount) | |
206 | 214 | let PreviousDepositCounterID = match getInteger(this, "Deposit_Counter_ID") { | |
207 | 215 | case a: Int => | |
208 | 216 | a | |
209 | 217 | case _ => | |
210 | 218 | 0 | |
211 | 219 | } | |
212 | 220 | let TotalDepositCounterID = (PreviousDepositCounterID + 1) | |
213 | 221 | if ((product_launch_timestamp > lastBlock.timestamp)) | |
214 | 222 | then throw((product_launch_error + toString(product_launch_timestamp))) | |
215 | 223 | else if ((ifBlacklisted == "Yes")) | |
216 | 224 | then throw((calleraddress + " Address is Blacklisted. Please contact Admin to Whitelist it.")) | |
217 | 225 | else if (isDefined(pmt.assetId)) | |
218 | 226 | then throw("Only WAVES is allowed to deposit at the moment") | |
219 | 227 | else [IntegerEntry(((Currency_ID + "_") + calleraddress), TotalUserDeposit), IntegerEntry(((((toString(TotalDepositCounterID) + "_") + Currency_ID) + "_") + calleraddress), pmt.amount), IntegerEntry("Deposit_Counter_ID", TotalDepositCounterID)] | |
220 | 228 | } | |
221 | 229 | ||
222 | 230 | ||
223 | 231 | ||
224 | 232 | @Callable(i) | |
225 | 233 | func WithdrawUserFunds (User_Address,Amount) = { | |
226 | 234 | let calleraddress = toBase58String(i.caller.bytes) | |
227 | 235 | let readuserbalance = getIntegerValue(((Currency_ID + "_") + User_Address)) | |
228 | 236 | let update_user_funds = ((readuserbalance - Amount) - network_fee) | |
229 | 237 | let minimim_withdraw_amount = 10000000 | |
230 | 238 | if ((i.caller != whitelist_address)) | |
231 | 239 | then throw((("This Address is not Authorized. Only " + toString(whitelist_address)) + " is Authorized Address to Sign it.")) | |
232 | 240 | else if ((minimim_withdraw_amount > Amount)) | |
233 | 241 | then throw((("Minimum Withdraw Amount is " + toString(minimim_withdraw_amount)) + "/10^8] WAVES.")) | |
234 | 242 | else if ((0 > update_user_funds)) | |
235 | 243 | then throw((("Placed Withdraw Amount is going in negative State of " + toString(update_user_funds)) + "/10^8] WAVES.")) | |
236 | 244 | 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 | 245 | } | |
238 | 246 | ||
239 | 247 | ||
240 | 248 | ||
241 | 249 | @Callable(i) | |
242 | 250 | func BlackListAddress (UserAddress) = { | |
243 | 251 | let ifBlacklisted = getString(this, ("addr_BLACKLISTED_" + UserAddress)) | |
244 | 252 | let PreviousBlackListAddress = match getInteger(this, "Total_Black_Listed_Address") { | |
245 | 253 | case a: Int => | |
246 | 254 | a | |
247 | 255 | case _ => | |
248 | 256 | 0 | |
249 | 257 | } | |
250 | 258 | let TotalBlackListAddress = (PreviousBlackListAddress + 1) | |
251 | 259 | if ((product_launch_timestamp > lastBlock.timestamp)) | |
252 | 260 | then throw((product_launch_error + toString(product_launch_timestamp))) | |
253 | 261 | else if ((i.caller != whitelist_address)) | |
254 | 262 | then throw((("This Address is not Authorized. Only " + toString(whitelist_address)) + " is Authorized Address to Sign it.")) | |
255 | 263 | else if ((ifBlacklisted == "Yes")) | |
256 | 264 | then throw("Address is already available in Blacklist.") | |
257 | 265 | else [StringEntry(("addr_BLACKLISTED_" + UserAddress), "Yes"), IntegerEntry("Total_Black_Listed_Address", TotalBlackListAddress)] | |
258 | 266 | } | |
259 | 267 | ||
260 | 268 | ||
261 | 269 | ||
262 | 270 | @Callable(i) | |
263 | 271 | func DeleteBlackListAddress (UserAddress) = { | |
264 | 272 | let ifBlacklisted = getString(this, ("addr_BLACKLISTED_" + UserAddress)) | |
265 | 273 | let PreviousBlackListAddress = match getInteger(this, "Total_Black_Listed_Address") { | |
266 | 274 | case a: Int => | |
267 | 275 | a | |
268 | 276 | case _ => | |
269 | 277 | 0 | |
270 | 278 | } | |
271 | 279 | let TotalBlackListAddress = (PreviousBlackListAddress - 1) | |
272 | 280 | if ((product_launch_timestamp > lastBlock.timestamp)) | |
273 | 281 | then throw(("Product Launch Timestamp is set at " + toString(product_launch_timestamp))) | |
274 | 282 | else if ((i.caller != whitelist_address)) | |
275 | 283 | then throw((("This Address is not Authorized. Only " + toString(whitelist_address)) + " is Authorized Address to Sign it.")) | |
276 | 284 | else if ((ifBlacklisted == "Yes")) | |
277 | 285 | then [DeleteEntry(("addr_BLACKLISTED_" + UserAddress)), IntegerEntry("Total_Black_Listed_Address", TotalBlackListAddress)] | |
278 | 286 | else throw("Address is not available in Blacklist.") | |
279 | 287 | } | |
280 | 288 | ||
281 | 289 | ||
282 | 290 | ||
283 | 291 | @Callable(i) | |
284 | 292 | func DelEntry (E1,E2,E3,E4,E5) = [DeleteEntry(E1), DeleteEntry(E2), DeleteEntry(E3), DeleteEntry(E4), DeleteEntry(E5)] | |
285 | 293 | ||
286 | 294 |
github/deemru/w8io/026f985 50.15 ms ◑