tx · 6ikRHgX738qQFxzs54N3GvV19gjBAMcf3G3b7xCojqEN 3Mtit8bwuKhT8FTUFx26q1p6o4ZTecyuLRW: -0.02300000 Waves 2023.08.26 00:06 [2726700] smart account 3Mtit8bwuKhT8FTUFx26q1p6o4ZTecyuLRW > SELF 0.00000000 Waves
{ "type": 13, "id": "6ikRHgX738qQFxzs54N3GvV19gjBAMcf3G3b7xCojqEN", "fee": 2300000, "feeAssetId": null, "timestamp": 1692997686947, "version": 2, "chainId": 84, "sender": "3Mtit8bwuKhT8FTUFx26q1p6o4ZTecyuLRW", "senderPublicKey": "6Ao9CXtWYPtv2jCfbfCbjCK6Pwtqzu1i3hP1NzznxZbM", "proofs": [ "5R2hrAx1B6z8rKD8X7bHdbhxJejUFuziSQPwTbWYgJd6XAxdRgwNfhauCVUSjSHv4DsVmN3DxSWKdZpMLZtLawjx" ], "script": "base64:AAIFAAAAAAAAADQIAhINCgsBAQgIAQEBAQgBARINCgsBAQgIAQEBAQgBARIAEgASBAoCCAESAwoBCBIDCgEIAAAACgAAAAAURGFwcF9BZGRyZXNzX3B1Yl9rZXkBAAAAIOOt17LUijbWojwDE5tgFkw1Y8cwIr3jselcewpp7rwjAAAAABhwcm9kdWN0X2xhdW5jaF90aW1lc3RhbXAAAAABhgpF7AAAAAAAC0N1cnJlbmN5X0lEAgAAAAVXQVZFUwAAAAAUcHJvZHVjdF9sYXVuY2hfZXJyb3ICAAAAI1Byb2R1Y3QgTGF1bmNoIFRpbWVzdGFtcCBpcyBzZXQgYXQgAAAAABBub19wYXltZW50X2Vycm9yAgAAADdObyBwYXltZW50IGF0dGFjaGVkLCBQbGVhc2UgQXR0YWNoIFRva2VuIGluIHBheW1lbnRbMV0uAAAAABJjbG9zZWRfb3JhY2xlX2Vyb3ICAAAAMU9yYWNsZSBpcyBjbG9zZWQuIFdhaXQgVW50aWwgT3JhY2xlIGlzIFR1cm5lZCBPbi4AAAAAEXdoaXRlbGlzdF9hZGRyZXNzCQEAAAAUYWRkc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AAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXnjnLLK", "height": 2726700, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 7LSHpi9it3FocQPmiHKxv1oqSX1xxCncJZzDs58eSSX1 Next: 9iVFtks9rJvRNUyBRio4Fqth881eJTuZFBPyPx3zjU6g Diff:
Old | New | Differences | |
---|---|---|---|
233 | 233 | let pmt = if ((size(i.payments) == 1)) | |
234 | 234 | then i.payments[0] | |
235 | 235 | else throw("No payment attached, Please Attach only Whitelisted Tokens in payment[1].") | |
236 | + | let PreviousFundsAddedToPoolbyCompany = match getInteger(this, ("Total_LP_Added_" + toString(whitelist_address))) { | |
237 | + | case a: Int => | |
238 | + | a | |
239 | + | case _ => | |
240 | + | 0 | |
241 | + | } | |
242 | + | let TotalFundsFundsAddedToPoolbyCompany = (PreviousFundsAddedToPoolbyCompany + pmt.amount) | |
236 | 243 | let PreviousPoolLiquidity = match getInteger(this, "Total_Pool_Liquidity") { | |
237 | 244 | case a: Int => | |
238 | 245 | a | |
251 | 258 | then throw((("This Address is not Authorized. Only " + toString(whitelist_address)) + " is Authorized Address to Sign it.")) | |
252 | 259 | else if (isDefined(pmt.assetId)) | |
253 | 260 | then throw("Only WAVES is allowed to deposit at the moment") | |
254 | - | else [IntegerEntry("Total_Pool_Liquidity", TotalPoolLiquidity), IntegerEntry("LP_Deposit_Counter", TotalLPDepositCounter)] | |
261 | + | else [IntegerEntry("Total_Pool_Liquidity", TotalPoolLiquidity), IntegerEntry("LP_Deposit_Counter", TotalLPDepositCounter), IntegerEntry(("Total_LP_Added_" + toString(whitelist_address)), TotalFundsFundsAddedToPoolbyCompany)] | |
255 | 262 | } | |
256 | 263 | ||
257 | 264 |
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'GKmJ6BchUgQfwKp4mp5eX8Y9xLioYRm6e1gDfFgdAcCr' | |
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 (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_TPL = getIntegerValue(this, "Total_Pool_Liquidity") | |
29 | 29 | let read_user_funds = getIntegerValue(((Currency_ID + "_") + User_Address)) | |
30 | 30 | let update_user_funds = ((read_user_funds - Amount) - network_fee) | |
31 | 31 | let read_start_order_permit_timestamp = Start_Order_Timestamp | |
32 | 32 | let read_end_order_permit_timestamp = End_Order_Timestamp | |
33 | 33 | let read_OptionCounterID = OptionCounterID | |
34 | 34 | let OpionExpireCounter = 1 | |
35 | 35 | let OptionExpireCounterID = (read_OptionCounterID + OpionExpireCounter) | |
36 | 36 | let PreviousOptionOrders = match getInteger(this, "Total_Option_Orders") { | |
37 | 37 | case a: Int => | |
38 | 38 | a | |
39 | 39 | case _ => | |
40 | 40 | 0 | |
41 | 41 | } | |
42 | 42 | let TotalOptionOrders = (PreviousOptionOrders + 1) | |
43 | 43 | let PreviousFundsAddedInSpecificOptionOrder = match getInteger(this, ("Total_Funds_Added_In_Option_Order_" + toString(read_OptionCounterID))) { | |
44 | 44 | case a: Int => | |
45 | 45 | a | |
46 | 46 | case _ => | |
47 | 47 | 0 | |
48 | 48 | } | |
49 | 49 | let TotalFundsAddedInSpecificOptionOrder = (PreviousFundsAddedInSpecificOptionOrder + Amount) | |
50 | 50 | let PreviousOptionOrdersinSpecificCounter = match getInteger(this, ("Total_Option_Orders_" + toString(read_OptionCounterID))) { | |
51 | 51 | case a: Int => | |
52 | 52 | a | |
53 | 53 | case _ => | |
54 | 54 | 0 | |
55 | 55 | } | |
56 | 56 | let TotalOptionOrdersinSpecificCounter = (PreviousOptionOrdersinSpecificCounter + 1) | |
57 | 57 | let PreviousCall = match getInteger(this, "Total_Calls") { | |
58 | 58 | case a: Int => | |
59 | 59 | a | |
60 | 60 | case _ => | |
61 | 61 | 0 | |
62 | 62 | } | |
63 | 63 | let TotalCall = (PreviousCall + 1) | |
64 | 64 | let PreviousCallinSpecificCounter = match getInteger(this, ("Total_Calls_" + toString(read_OptionCounterID))) { | |
65 | 65 | case a: Int => | |
66 | 66 | a | |
67 | 67 | case _ => | |
68 | 68 | 0 | |
69 | 69 | } | |
70 | 70 | let TotalCallinSpecificCounter = (PreviousCallinSpecificCounter + 1) | |
71 | 71 | let PreviousUserCall = match getInteger(this, (User_Address + "_Total_Calls")) { | |
72 | 72 | case a: Int => | |
73 | 73 | a | |
74 | 74 | case _ => | |
75 | 75 | 0 | |
76 | 76 | } | |
77 | 77 | let TotalUserCall = (PreviousUserCall + 1) | |
78 | 78 | let PreviousUserCallinSpecificCounter = match getInteger(this, ((User_Address + "_Total_Calls_") + toString(read_OptionCounterID))) { | |
79 | 79 | case a: Int => | |
80 | 80 | a | |
81 | 81 | case _ => | |
82 | 82 | 0 | |
83 | 83 | } | |
84 | 84 | let TotalUserCallinSpecificCounter = (PreviousUserCallinSpecificCounter + 1) | |
85 | 85 | let Funds_at_risk = House_risk | |
86 | 86 | if ((i.caller != whitelist_address)) | |
87 | 87 | then throw((("This Address is not Authorized. Only " + toString(whitelist_address)) + " is Authorized Address to Sign it.")) | |
88 | 88 | else if ((product_launch_timestamp > lastBlock.timestamp)) | |
89 | 89 | then throw((product_launch_error + toString(product_launch_timestamp))) | |
90 | 90 | else if ((Oracle_Status == "CLOSE")) | |
91 | 91 | then throw(closed_oracle_eror) | |
92 | 92 | else if ((ifBlacklisted == "Yes")) | |
93 | 93 | then throw((User_Address + " Address is Blacklisted. Please contact Admin to Whitelist it.")) | |
94 | 94 | else if ((lastBlock.timestamp >= read_end_order_permit_timestamp)) | |
95 | 95 | then throw("Option Order placing Timing Limits are Over. Please Join in Next Cycle.") | |
96 | 96 | else if ((minimum_order_size > Amount)) | |
97 | 97 | then throw((("Placed Order Size is less than [" + toString(minimum_order_size)) + "/10^8] WAVES.")) | |
98 | 98 | else if ((Amount > maximum_order_size)) | |
99 | 99 | then throw((("Placed Order Size is more than [" + toString(maximum_order_size)) + "/10^8] WAVES.")) | |
100 | 100 | else if ((0 > update_user_funds)) | |
101 | 101 | then throw("Placed Order Amount is going negative. Please reduce the Order Size.") | |
102 | 102 | else if ((size(toString(Start_Order_Timestamp)) != 13)) | |
103 | 103 | then throw("Start Timestamp is Wrong. Please Enter a Valid Timestamp. Probably you entered an Timestamp less than 13 Chars.") | |
104 | 104 | else if ((size(toString(End_Order_Timestamp)) != 13)) | |
105 | 105 | then throw("End Timestamp is Wrong. Please Enter a Valid Timestamp. Probably you entered an Timestamp less than 13 Chars.") | |
106 | 106 | 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", read_TPL), 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)] | |
107 | 107 | } | |
108 | 108 | ||
109 | 109 | ||
110 | 110 | ||
111 | 111 | @Callable(i) | |
112 | 112 | func placeoptionPut (Amount,OptionCounterID,User_ID,User_Address,House_risk,Price,Call_Limits,Put_Limits,Oracle_Status,Start_Order_Timestamp,End_Order_Timestamp) = { | |
113 | 113 | let calleraddress = toBase58String(i.caller.bytes) | |
114 | 114 | let ifBlacklisted = getString(this, ("addr_BLACKLISTED_" + User_Address)) | |
115 | 115 | let read_TPL = getIntegerValue("Total_Pool_Liquidity") | |
116 | 116 | let read_user_funds = getIntegerValue(((Currency_ID + "_") + User_Address)) | |
117 | 117 | let update_user_funds = ((read_user_funds - Amount) - network_fee) | |
118 | 118 | let read_start_order_permit_timestamp = Start_Order_Timestamp | |
119 | 119 | let read_end_order_permit_timestamp = End_Order_Timestamp | |
120 | 120 | let read_OptionCounterID = OptionCounterID | |
121 | 121 | let OpionExpireCounter = 1 | |
122 | 122 | let OptionExpireCounterID = (read_OptionCounterID + OpionExpireCounter) | |
123 | 123 | let PreviousOptionOrders = match getInteger(this, "Total_Option_Orders") { | |
124 | 124 | case a: Int => | |
125 | 125 | a | |
126 | 126 | case _ => | |
127 | 127 | 0 | |
128 | 128 | } | |
129 | 129 | let TotalOptionOrders = (PreviousOptionOrders + 1) | |
130 | 130 | let PreviousFundsAddedInSpecificOptionOrder = match getInteger(this, ("Total_Funds_Added_In_Option_Order_" + toString(read_OptionCounterID))) { | |
131 | 131 | case a: Int => | |
132 | 132 | a | |
133 | 133 | case _ => | |
134 | 134 | 0 | |
135 | 135 | } | |
136 | 136 | let TotalFundsAddedInSpecificOptionOrder = (PreviousFundsAddedInSpecificOptionOrder + Amount) | |
137 | 137 | let PreviousOptionOrdersinSpecificCounter = match getInteger(this, ("Total_Option_Orders_" + toString(read_OptionCounterID))) { | |
138 | 138 | case a: Int => | |
139 | 139 | a | |
140 | 140 | case _ => | |
141 | 141 | 0 | |
142 | 142 | } | |
143 | 143 | let TotalOptionOrdersinSpecificCounter = (PreviousOptionOrdersinSpecificCounter + 1) | |
144 | 144 | let PreviousPut = match getInteger(this, "Total_Puts") { | |
145 | 145 | case a: Int => | |
146 | 146 | a | |
147 | 147 | case _ => | |
148 | 148 | 0 | |
149 | 149 | } | |
150 | 150 | let TotalPut = (PreviousPut + 1) | |
151 | 151 | let PreviousPutinSpecificCounter = match getInteger(this, ("Total_Puts_" + toString(read_OptionCounterID))) { | |
152 | 152 | case a: Int => | |
153 | 153 | a | |
154 | 154 | case _ => | |
155 | 155 | 0 | |
156 | 156 | } | |
157 | 157 | let TotalPutinSpecificCounter = (PreviousPutinSpecificCounter + 1) | |
158 | 158 | let PreviousUserPut = match getInteger(this, (User_Address + "_Total_Puts")) { | |
159 | 159 | case a: Int => | |
160 | 160 | a | |
161 | 161 | case _ => | |
162 | 162 | 0 | |
163 | 163 | } | |
164 | 164 | let TotalUserPut = (PreviousUserPut + 1) | |
165 | 165 | let PreviousUserPutinSpecificCounter = match getInteger(this, ((User_Address + "_Total_Puts_") + toString(read_OptionCounterID))) { | |
166 | 166 | case a: Int => | |
167 | 167 | a | |
168 | 168 | case _ => | |
169 | 169 | 0 | |
170 | 170 | } | |
171 | 171 | let TotalUserPutinSpecificCounter = (PreviousUserPutinSpecificCounter + 1) | |
172 | 172 | let Funds_at_risk = House_risk | |
173 | 173 | if ((i.caller != whitelist_address)) | |
174 | 174 | then throw((("This Address is not Authorized. Only " + toString(whitelist_address)) + " is Authorized Address to Sign it.")) | |
175 | 175 | else if ((product_launch_timestamp > lastBlock.timestamp)) | |
176 | 176 | then throw((product_launch_error + toString(product_launch_timestamp))) | |
177 | 177 | else if ((Oracle_Status == "CLOSE")) | |
178 | 178 | then throw(closed_oracle_eror) | |
179 | 179 | else if ((ifBlacklisted == "Yes")) | |
180 | 180 | then throw((User_Address + " Address is Blacklisted. Please contact Admin to Whitelist it.")) | |
181 | 181 | else if ((lastBlock.timestamp >= read_end_order_permit_timestamp)) | |
182 | 182 | then throw("Option Order placing Timing Limits are Over. Please Join in Next Cycle.") | |
183 | 183 | else if ((minimum_order_size > Amount)) | |
184 | 184 | then throw((("Placed Order Size is less than [" + toString(minimum_order_size)) + "/10^8] WAVES.")) | |
185 | 185 | else if ((Amount > maximum_order_size)) | |
186 | 186 | then throw((("Placed Order Size is more than [" + toString(maximum_order_size)) + "/10^8] WAVES.")) | |
187 | 187 | else if ((0 > update_user_funds)) | |
188 | 188 | then throw("Placed Order Amount is going negative. Please reduce the Order Size.") | |
189 | 189 | else if ((size(toString(Start_Order_Timestamp)) != 13)) | |
190 | 190 | then throw("Start Timestamp is Wrong. Please Enter a Valid Timestamp. Probably you entered an Timestamp less than 13 Chars.") | |
191 | 191 | else if ((size(toString(End_Order_Timestamp)) != 13)) | |
192 | 192 | then throw("End Timestamp is Wrong. Please Enter a Valid Timestamp. Probably you entered an Timestamp less than 13 Chars.") | |
193 | 193 | 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", read_TPL), 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)] | |
194 | 194 | } | |
195 | 195 | ||
196 | 196 | ||
197 | 197 | ||
198 | 198 | @Callable(i) | |
199 | 199 | func DepositUserFunds () = { | |
200 | 200 | let calleraddress = toBase58String(i.caller.bytes) | |
201 | 201 | let pmt = if ((size(i.payments) == 1)) | |
202 | 202 | then i.payments[0] | |
203 | 203 | else throw("No payment attached, Please Attach only Whitelisted Tokens in payment[1].") | |
204 | 204 | let ifBlacklisted = getString(this, ("addr_BLACKLISTED_" + calleraddress)) | |
205 | 205 | let PreviousUserDeposit = match getInteger(this, ((Currency_ID + "_") + calleraddress)) { | |
206 | 206 | case a: Int => | |
207 | 207 | a | |
208 | 208 | case _ => | |
209 | 209 | 0 | |
210 | 210 | } | |
211 | 211 | let TotalUserDeposit = (PreviousUserDeposit + pmt.amount) | |
212 | 212 | let PreviousDepositCounterID = match getInteger(this, "Deposit_Counter_ID") { | |
213 | 213 | case a: Int => | |
214 | 214 | a | |
215 | 215 | case _ => | |
216 | 216 | 0 | |
217 | 217 | } | |
218 | 218 | let TotalDepositCounterID = (PreviousDepositCounterID + 1) | |
219 | 219 | if ((product_launch_timestamp > lastBlock.timestamp)) | |
220 | 220 | then throw((product_launch_error + toString(product_launch_timestamp))) | |
221 | 221 | else if ((ifBlacklisted == "Yes")) | |
222 | 222 | then throw((calleraddress + " Address is Blacklisted. Please contact Admin to Whitelist it.")) | |
223 | 223 | else if (isDefined(pmt.assetId)) | |
224 | 224 | then throw("Only WAVES is allowed to deposit at the moment") | |
225 | 225 | else [IntegerEntry(((Currency_ID + "_") + calleraddress), TotalUserDeposit), IntegerEntry(((((toString(TotalDepositCounterID) + "_") + Currency_ID) + "_") + calleraddress), pmt.amount), IntegerEntry("Deposit_Counter_ID", TotalDepositCounterID)] | |
226 | 226 | } | |
227 | 227 | ||
228 | 228 | ||
229 | 229 | ||
230 | 230 | @Callable(i) | |
231 | 231 | func AddPoolLiquidity () = { | |
232 | 232 | let calleraddress = toBase58String(i.caller.bytes) | |
233 | 233 | let pmt = if ((size(i.payments) == 1)) | |
234 | 234 | then i.payments[0] | |
235 | 235 | else throw("No payment attached, Please Attach only Whitelisted Tokens in payment[1].") | |
236 | + | let PreviousFundsAddedToPoolbyCompany = match getInteger(this, ("Total_LP_Added_" + toString(whitelist_address))) { | |
237 | + | case a: Int => | |
238 | + | a | |
239 | + | case _ => | |
240 | + | 0 | |
241 | + | } | |
242 | + | let TotalFundsFundsAddedToPoolbyCompany = (PreviousFundsAddedToPoolbyCompany + pmt.amount) | |
236 | 243 | let PreviousPoolLiquidity = match getInteger(this, "Total_Pool_Liquidity") { | |
237 | 244 | case a: Int => | |
238 | 245 | a | |
239 | 246 | case _ => | |
240 | 247 | 0 | |
241 | 248 | } | |
242 | 249 | let TotalPoolLiquidity = (PreviousPoolLiquidity + pmt.amount) | |
243 | 250 | let PreviousLPDepositCounter = match getInteger(this, "LP_Deposit_Counter") { | |
244 | 251 | case a: Int => | |
245 | 252 | a | |
246 | 253 | case _ => | |
247 | 254 | 0 | |
248 | 255 | } | |
249 | 256 | let TotalLPDepositCounter = (PreviousLPDepositCounter + 1) | |
250 | 257 | if ((i.caller != whitelist_address)) | |
251 | 258 | then throw((("This Address is not Authorized. Only " + toString(whitelist_address)) + " is Authorized Address to Sign it.")) | |
252 | 259 | else if (isDefined(pmt.assetId)) | |
253 | 260 | then throw("Only WAVES is allowed to deposit at the moment") | |
254 | - | else [IntegerEntry("Total_Pool_Liquidity", TotalPoolLiquidity), IntegerEntry("LP_Deposit_Counter", TotalLPDepositCounter)] | |
261 | + | else [IntegerEntry("Total_Pool_Liquidity", TotalPoolLiquidity), IntegerEntry("LP_Deposit_Counter", TotalLPDepositCounter), IntegerEntry(("Total_LP_Added_" + toString(whitelist_address)), TotalFundsFundsAddedToPoolbyCompany)] | |
255 | 262 | } | |
256 | 263 | ||
257 | 264 | ||
258 | 265 | ||
259 | 266 | @Callable(i) | |
260 | 267 | func WithdrawUserFunds (User_Address,Amount) = { | |
261 | 268 | let calleraddress = toBase58String(i.caller.bytes) | |
262 | 269 | let readuserbalance = getIntegerValue(((Currency_ID + "_") + User_Address)) | |
263 | 270 | let update_user_funds = ((readuserbalance - Amount) - network_fee) | |
264 | 271 | let minimim_withdraw_amount = 10000000 | |
265 | 272 | if ((i.caller != whitelist_address)) | |
266 | 273 | then throw((("This Address is not Authorized. Only " + toString(whitelist_address)) + " is Authorized Address to Sign it.")) | |
267 | 274 | else if ((minimim_withdraw_amount > Amount)) | |
268 | 275 | then throw((("Minimum Withdraw Amount is " + toString(minimim_withdraw_amount)) + "/10^8] WAVES.")) | |
269 | 276 | else if ((0 > update_user_funds)) | |
270 | 277 | then throw((("Placed Withdraw Amount is going in negative State of " + toString(update_user_funds)) + "/10^8] WAVES.")) | |
271 | 278 | 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)] | |
272 | 279 | } | |
273 | 280 | ||
274 | 281 | ||
275 | 282 | ||
276 | 283 | @Callable(i) | |
277 | 284 | func BlackListAddress (UserAddress) = { | |
278 | 285 | let ifBlacklisted = getString(this, ("addr_BLACKLISTED_" + UserAddress)) | |
279 | 286 | let PreviousBlackListAddress = match getInteger(this, "Total_Black_Listed_Address") { | |
280 | 287 | case a: Int => | |
281 | 288 | a | |
282 | 289 | case _ => | |
283 | 290 | 0 | |
284 | 291 | } | |
285 | 292 | let TotalBlackListAddress = (PreviousBlackListAddress + 1) | |
286 | 293 | if ((product_launch_timestamp > lastBlock.timestamp)) | |
287 | 294 | then throw((product_launch_error + toString(product_launch_timestamp))) | |
288 | 295 | else if ((i.caller != whitelist_address)) | |
289 | 296 | then throw((("This Address is not Authorized. Only " + toString(whitelist_address)) + " is Authorized Address to Sign it.")) | |
290 | 297 | else if ((ifBlacklisted == "Yes")) | |
291 | 298 | then throw("Address is already available in Blacklist.") | |
292 | 299 | else [StringEntry(("addr_BLACKLISTED_" + UserAddress), "Yes"), IntegerEntry("Total_Black_Listed_Address", TotalBlackListAddress)] | |
293 | 300 | } | |
294 | 301 | ||
295 | 302 | ||
296 | 303 | ||
297 | 304 | @Callable(i) | |
298 | 305 | func DeleteBlackListAddress (UserAddress) = { | |
299 | 306 | let ifBlacklisted = getString(this, ("addr_BLACKLISTED_" + UserAddress)) | |
300 | 307 | let PreviousBlackListAddress = match getInteger(this, "Total_Black_Listed_Address") { | |
301 | 308 | case a: Int => | |
302 | 309 | a | |
303 | 310 | case _ => | |
304 | 311 | 0 | |
305 | 312 | } | |
306 | 313 | let TotalBlackListAddress = (PreviousBlackListAddress - 1) | |
307 | 314 | if ((product_launch_timestamp > lastBlock.timestamp)) | |
308 | 315 | then throw(("Product Launch Timestamp is set at " + toString(product_launch_timestamp))) | |
309 | 316 | else if ((i.caller != whitelist_address)) | |
310 | 317 | then throw((("This Address is not Authorized. Only " + toString(whitelist_address)) + " is Authorized Address to Sign it.")) | |
311 | 318 | else if ((ifBlacklisted == "Yes")) | |
312 | 319 | then [DeleteEntry(("addr_BLACKLISTED_" + UserAddress)), IntegerEntry("Total_Black_Listed_Address", TotalBlackListAddress)] | |
313 | 320 | else throw("Address is not available in Blacklist.") | |
314 | 321 | } | |
315 | 322 | ||
316 | 323 | ||
317 | 324 | @Verifier(tx) | |
318 | 325 | func verify () = match tx { | |
319 | 326 | case t: Order|ExchangeTransaction|TransferTransaction => | |
320 | 327 | false | |
321 | 328 | case _ => | |
322 | 329 | sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
323 | 330 | } | |
324 | 331 |
github/deemru/w8io/026f985 52.76 ms ◑