tx · BEX5SPttMsrNHfUE5n1krteZRR8E9iNRN1rk5SHvkhtR 3N1s2w4NHgbrXxNZXH9RtaVT9ptHRJcgSp2: -0.03200000 Waves 2023.11.30 12:20 [2865954] smart account 3N1s2w4NHgbrXxNZXH9RtaVT9ptHRJcgSp2 > SELF 0.00000000 Waves
{ "type": 13, "id": "BEX5SPttMsrNHfUE5n1krteZRR8E9iNRN1rk5SHvkhtR", "fee": 3200000, "feeAssetId": null, "timestamp": 1701336015447, "version": 2, "chainId": 84, "sender": "3N1s2w4NHgbrXxNZXH9RtaVT9ptHRJcgSp2", "senderPublicKey": "DNKNL32sAVUYg4iGA3tW8Z6VXrENmGCmKfG6DLar82aP", "proofs": [ "4tsnEqiQ58bfpTkqAgJVrx5DXNkSiUCBFXAVG47aKfJrBFM2uzezr6zGrDwDr6orDpHKiNx7TzVH5osJcaQJ47v5" ], "script": "base64:AAIFAAAAAAAAAEAIAhIMCgoBAQgIAQEBCAEBEgwKCgEBCAgBAQEIAQESABIFCgMBCAgSABIECgIIARIDCgEIEgMKAQgSABIDCgEIAAAADgAAAAAWcG9vbF9saXF1aWRpdHlfYWRkcmVzcwIAAAAjM040d0JnWXRXZ0pXMkxUUmVmMmVrV1FUckVYQ1JmWG1HTGgAAAAAFERhcHBfQWRkcmVzc19wdWJfa2V5AQAAACDI7Zjahu5VNVhgxzyW6CpbYvUiMMUf5OyBUQlo584acwAAAAAYcHJvZHVjdF9sYXVuY2hfdGltZXN0YW1wAAAAAYq/YBYgAAAAAAtDdXJyZW5jeV9JRAIAAAAFV0FWRVMAAAAAFHByb2R1Y3RfbGF1bmNoX2Vycm9yAgAAACNQcm9kdWN0IExhdW5jaCBUaW1lc3RhbXAgaXMgc2V0IGF0IAAAAAAQbm9fcGF5bWVudF9lcnJvcgIAAAA3Tm8gcGF5bWVudCBhdHRhY2hlZCwgUGxlYXNlIEF0dGFjaCBUb2tlbiBpbiBwYXltZW50WzFdLgAAAAASY2xvc2VkX29yYWNsZV9lcm9yA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AAEXdoaXRlbGlzdF9hZGRyZXNzCQAAAgAAAAEJAAEsAAAAAgkAASwAAAACAgAAACVUaGlzIEFkZHJlc3MgaXMgbm90IEF1dGhvcml6ZWQuIE9ubHkgCQAEJQAAAAEFAAAAEXdoaXRlbGlzdF9hZGRyZXNzAgAAACIgaXMgQXV0aG9yaXplZCBBZGRyZXNzIHRvIFNpZ24gaXQuAwkAAAAAAAACBQAAABFhZGRTaHV0ZG93blN0YXR1cwAAAAAAAAAAAAkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgIAAAAPU2h1dGRvd25fU3RhdHVzAAAAAAAAAAABBQAAAANuaWwJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAICAAAAD1NodXRkb3duX1N0YXR1cwAAAAAAAAAAAAUAAAADbmlsAAAAAWkBAAAAA0RlbAAAAAEAAAAFRW50cnkJAARMAAAAAgkBAAAAC0RlbGV0ZUVudHJ5AAAAAQUAAAAFRW50cnkFAAAAA25pbAAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAEAAAAByRtYXRjaDAFAAAAAnR4AwMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAFT3JkZXIGAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABNFeGNoYW5nZVRyYW5zYWN0aW9uBgMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAXTWFzc1RyYW5zZmVyVHJhbnNhY3Rpb24GCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAE1RyYW5zZmVyVHJhbnNhY3Rpb24EAAAAAXQFAAAAByRtYXRjaDAHCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleedq2Ao=", "height": 2865954, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: BwDT8duARJtx72YUpyne8jvWZqzxSWpxShtL1zhiy6di Next: 8jKGBcDHXhx1Ubq49YSWfWPJtgzDqmTwzV7NsZfZs4Yh Diff:
Old | New | Differences | |
---|---|---|---|
40 | 40 | let F = ((E - p) - j) | |
41 | 41 | let G = x | |
42 | 42 | let H = y | |
43 | - | let I = if ((E > F)) | |
44 | - | then true | |
45 | - | else false | |
46 | - | let J = q | |
47 | - | let K = 1 | |
48 | - | let L = (J + K) | |
49 | - | let M = { | |
50 | - | let N = getInteger(this, "Total_Option_Orders") | |
51 | - | if ($isInstanceOf(N, "Int")) | |
43 | + | let I = q | |
44 | + | let J = 1 | |
45 | + | let K = (I + J) | |
46 | + | let L = { | |
47 | + | let M = getInteger(this, "Total_Option_Orders") | |
48 | + | if ($isInstanceOf(M, "Int")) | |
52 | 49 | then { | |
53 | - | let | |
54 | - | | |
50 | + | let N = M | |
51 | + | N | |
55 | 52 | } | |
56 | 53 | else 0 | |
57 | 54 | } | |
58 | - | let | |
59 | - | let | |
60 | - | let | |
61 | - | if ($isInstanceOf( | |
55 | + | let O = (L + 1) | |
56 | + | let P = { | |
57 | + | let M = getInteger(this, ("Total_Funds_Added_In_Option_Order_" + toString(I))) | |
58 | + | if ($isInstanceOf(M, "Int")) | |
62 | 59 | then { | |
63 | - | let | |
64 | - | | |
60 | + | let N = M | |
61 | + | N | |
65 | 62 | } | |
66 | 63 | else 0 | |
67 | 64 | } | |
68 | - | let | |
69 | - | let | |
70 | - | let | |
71 | - | if ($isInstanceOf( | |
65 | + | let Q = (P + p) | |
66 | + | let R = { | |
67 | + | let M = getInteger(this, ("Total_Option_Orders_" + toString(I))) | |
68 | + | if ($isInstanceOf(M, "Int")) | |
72 | 69 | then { | |
73 | - | let | |
74 | - | | |
70 | + | let N = M | |
71 | + | N | |
75 | 72 | } | |
76 | 73 | else 0 | |
77 | 74 | } | |
78 | - | let | |
79 | - | let | |
80 | - | let | |
81 | - | if ($isInstanceOf( | |
75 | + | let S = (R + 1) | |
76 | + | let T = { | |
77 | + | let M = getInteger(this, "Total_Calls") | |
78 | + | if ($isInstanceOf(M, "Int")) | |
82 | 79 | then { | |
83 | - | let | |
84 | - | | |
80 | + | let N = M | |
81 | + | N | |
85 | 82 | } | |
86 | 83 | else 0 | |
87 | 84 | } | |
88 | - | let | |
89 | - | let | |
90 | - | let | |
91 | - | if ($isInstanceOf( | |
85 | + | let U = (T + 1) | |
86 | + | let V = { | |
87 | + | let M = getInteger(this, ("Total_Calls_" + toString(I))) | |
88 | + | if ($isInstanceOf(M, "Int")) | |
92 | 89 | then { | |
93 | - | let | |
94 | - | | |
90 | + | let N = M | |
91 | + | N | |
95 | 92 | } | |
96 | 93 | else 0 | |
97 | 94 | } | |
98 | - | let | |
99 | - | let | |
100 | - | let | |
101 | - | if ($isInstanceOf( | |
95 | + | let W = (V + 1) | |
96 | + | let X = { | |
97 | + | let M = getInteger(this, (s + "_Total_Calls")) | |
98 | + | if ($isInstanceOf(M, "Int")) | |
102 | 99 | then { | |
103 | - | let | |
104 | - | | |
100 | + | let N = M | |
101 | + | N | |
105 | 102 | } | |
106 | 103 | else 0 | |
107 | 104 | } | |
108 | - | let | |
109 | - | let | |
110 | - | let | |
111 | - | if ($isInstanceOf( | |
105 | + | let Y = (X + 1) | |
106 | + | let Z = { | |
107 | + | let M = getInteger(this, ((s + "_Total_Calls_") + toString(I))) | |
108 | + | if ($isInstanceOf(M, "Int")) | |
112 | 109 | then { | |
113 | - | let | |
114 | - | | |
110 | + | let N = M | |
111 | + | N | |
115 | 112 | } | |
116 | 113 | else 0 | |
117 | 114 | } | |
118 | - | let | |
119 | - | let | |
115 | + | let aa = (Z + 1) | |
116 | + | let ab = fraction(B, 5, 100) | |
120 | 117 | if ((o.caller != h)) | |
121 | 118 | then throw((("This Address is not Authorized. Only " + toString(h)) + " is Authorized Address to Sign it.")) | |
122 | 119 | else if ((n == 1)) | |
129 | 126 | then throw((s + " Address is Blacklisted. Please contact Admin to Whitelist it.")) | |
130 | 127 | else if ((lastBlock.timestamp >= H)) | |
131 | 128 | then throw("Option Order placing Timing Limits are Over. Please Join in Next Cycle.") | |
132 | - | else if (( | |
133 | - | then throw((((("No more orders accepted, Option House Risk Size is only limited to " + toString( | |
129 | + | else if ((Q > ab)) | |
130 | + | then throw((((("No more orders accepted, Option House Risk Size is only limited to " + toString(ab)) + ", Pending House Risk is ") + toString((ab - P))) + ". Join in next Cycle.")) | |
134 | 131 | else if ((k > p)) | |
135 | 132 | then throw((("Placed Order Size is less than [" + toString(k)) + "/10^8] WAVES.")) | |
136 | 133 | else if ((p > l)) | |
137 | 134 | then throw((("Placed Order Size is more than [" + toString(l)) + "/10^8] WAVES.")) | |
138 | 135 | else if (if ((0 > D)) | |
139 | - | then ( | |
136 | + | then (F > E) | |
140 | 137 | else false) | |
141 | 138 | then throw((("Placed Order Amount is going negative. Please reduce the Order Size.User Fund Amount = [" + toString(D)) + "]")) | |
142 | 139 | else if ((size(toString(x)) != 13)) | |
146 | 143 | else if (if ((E == 0)) | |
147 | 144 | then true | |
148 | 145 | else (0 > F)) | |
149 | - | then [StringEntry(("User_ID_" + s), r), IntegerEntry(((d + "_") + s), D), IntegerEntry("Network_Fee_To_Place_Order", j), StringEntry(((("Call_" + s) + "_") + toString( | |
150 | - | else if ( | |
151 | - | then [StringEntry(("User_ID_" + s), r), IntegerEntry((s + "_Voucher_Balance"), F), IntegerEntry("Network_Fee_To_Place_Order", j), StringEntry(((("Call_" + s) + "_") + toString( | |
146 | + | then [StringEntry(("User_ID_" + s), r), IntegerEntry(((d + "_") + s), D), IntegerEntry("Network_Fee_To_Place_Order", j), StringEntry(((("Call_" + s) + "_") + toString(Y)), toString(t)), IntegerEntry(((("Call_Amount_" + s) + "_") + toString(Y)), p), StringEntry(((("Call_Start_End_" + s) + "_") + toString(Y)), ((toString(I) + "_") + toString(K))), IntegerEntry("Total_Option_Orders", O), IntegerEntry(("Total_Funds_Added_In_Option_Order_" + toString(I)), Q), IntegerEntry("Total_Pool_Liquidity", B), IntegerEntry(("Funds_At_Risk_" + toString(I)), ab), IntegerEntry("Call_Limits", u), IntegerEntry("Put_Limits", v), IntegerEntry(("Total_Option_Orders_" + toString(I)), S), IntegerEntry("Total_Calls", U), IntegerEntry(("Total_Calls_" + toString(I)), W), IntegerEntry((s + "_Total_Calls"), Y), IntegerEntry(((s + "_Total_Calls_") + toString(I)), aa), ScriptTransfer(h, j, unit), ScriptTransfer(addressFromStringValue(a), p, unit)] | |
147 | + | else if ((F > 0)) | |
148 | + | then [StringEntry(("User_ID_" + s), r), IntegerEntry((s + "_Voucher_Balance"), F), IntegerEntry("Network_Fee_To_Place_Order", j), StringEntry(((("Call_" + s) + "_") + toString(Y)), toString(t)), IntegerEntry(((("Call_Amount_" + s) + "_") + toString(Y)), p), StringEntry(((("Call_Start_End_" + s) + "_") + toString(Y)), ((toString(I) + "_") + toString(K))), IntegerEntry("Total_Option_Orders", O), IntegerEntry(("Total_Funds_Added_In_Option_Order_" + toString(I)), Q), IntegerEntry("Total_Pool_Liquidity", B), IntegerEntry(("Funds_At_Risk_" + toString(I)), ab), IntegerEntry("Call_Limits", u), IntegerEntry("Put_Limits", v), IntegerEntry(("Total_Option_Orders_" + toString(I)), S), IntegerEntry("Total_Calls", U), IntegerEntry(("Total_Calls_" + toString(I)), W), IntegerEntry((s + "_Total_Calls"), Y), IntegerEntry(((s + "_Total_Calls_") + toString(I)), aa), ScriptTransfer(h, j, unit), ScriptTransfer(addressFromStringValue(a), p, unit)] | |
152 | 149 | else throw("Wrong Entry.") | |
153 | 150 | } | |
154 | 151 | ||
165 | 162 | let F = (E - p) | |
166 | 163 | let G = x | |
167 | 164 | let H = y | |
168 | - | let | |
169 | - | let | |
170 | - | let | |
171 | - | let | |
172 | - | let | |
173 | - | if ($isInstanceOf( | |
165 | + | let I = q | |
166 | + | let J = 1 | |
167 | + | let K = (I + J) | |
168 | + | let L = { | |
169 | + | let M = getInteger(this, "Total_Option_Orders") | |
170 | + | if ($isInstanceOf(M, "Int")) | |
174 | 171 | then { | |
175 | - | let | |
176 | - | | |
172 | + | let N = M | |
173 | + | N | |
177 | 174 | } | |
178 | 175 | else 0 | |
179 | 176 | } | |
180 | - | let | |
181 | - | let | |
182 | - | let | |
183 | - | if ($isInstanceOf( | |
177 | + | let O = (L + 1) | |
178 | + | let P = { | |
179 | + | let M = getInteger(this, ("Total_Funds_Added_In_Option_Order_" + toString(I))) | |
180 | + | if ($isInstanceOf(M, "Int")) | |
184 | 181 | then { | |
185 | - | let | |
186 | - | | |
182 | + | let N = M | |
183 | + | N | |
187 | 184 | } | |
188 | 185 | else 0 | |
189 | 186 | } | |
190 | - | let | |
191 | - | let | |
192 | - | let | |
193 | - | if ($isInstanceOf( | |
187 | + | let Q = (P + p) | |
188 | + | let R = { | |
189 | + | let M = getInteger(this, ("Total_Option_Orders_" + toString(I))) | |
190 | + | if ($isInstanceOf(M, "Int")) | |
194 | 191 | then { | |
195 | - | let | |
196 | - | | |
192 | + | let N = M | |
193 | + | N | |
197 | 194 | } | |
198 | 195 | else 0 | |
199 | 196 | } | |
200 | - | let | |
201 | - | let | |
202 | - | let | |
203 | - | if ($isInstanceOf( | |
197 | + | let S = (R + 1) | |
198 | + | let ac = { | |
199 | + | let M = getInteger(this, "Total_Puts") | |
200 | + | if ($isInstanceOf(M, "Int")) | |
204 | 201 | then { | |
205 | - | let | |
206 | - | | |
202 | + | let N = M | |
203 | + | N | |
207 | 204 | } | |
208 | 205 | else 0 | |
209 | 206 | } | |
210 | - | let | |
211 | - | let | |
212 | - | let | |
213 | - | if ($isInstanceOf( | |
207 | + | let ad = (ac + 1) | |
208 | + | let ae = { | |
209 | + | let M = getInteger(this, ("Total_Puts_" + toString(I))) | |
210 | + | if ($isInstanceOf(M, "Int")) | |
214 | 211 | then { | |
215 | - | let | |
216 | - | | |
212 | + | let N = M | |
213 | + | N | |
217 | 214 | } | |
218 | 215 | else 0 | |
219 | 216 | } | |
220 | - | let | |
221 | - | let | |
222 | - | let | |
223 | - | if ($isInstanceOf( | |
217 | + | let af = (ae + 1) | |
218 | + | let ag = { | |
219 | + | let M = getInteger(this, (s + "_Total_Puts")) | |
220 | + | if ($isInstanceOf(M, "Int")) | |
224 | 221 | then { | |
225 | - | let | |
226 | - | | |
222 | + | let N = M | |
223 | + | N | |
227 | 224 | } | |
228 | 225 | else 0 | |
229 | 226 | } | |
230 | - | let | |
231 | - | let | |
232 | - | let | |
233 | - | if ($isInstanceOf( | |
227 | + | let ah = (ag + 1) | |
228 | + | let ai = { | |
229 | + | let M = getInteger(this, ((s + "_Total_Puts_") + toString(I))) | |
230 | + | if ($isInstanceOf(M, "Int")) | |
234 | 231 | then { | |
235 | - | let | |
236 | - | | |
232 | + | let N = M | |
233 | + | N | |
237 | 234 | } | |
238 | 235 | else 0 | |
239 | 236 | } | |
240 | - | let | |
241 | - | let | |
237 | + | let aj = (ai + 1) | |
238 | + | let ab = fraction(B, 5, 100) | |
242 | 239 | if ((o.caller != h)) | |
243 | 240 | then throw((("This Address is not Authorized. Only " + toString(h)) + " is Authorized Address to Sign it.")) | |
244 | 241 | else if ((n == 1)) | |
251 | 248 | then throw((s + " Address is Blacklisted. Please contact Admin to Whitelist it.")) | |
252 | 249 | else if ((lastBlock.timestamp >= H)) | |
253 | 250 | then throw("Option Order placing Timing Limits are Over. Please Join in Next Cycle.") | |
254 | - | else if (( | |
255 | - | then throw((((("No more orders accepted, Option House Risk Size is only limited to " + toString( | |
251 | + | else if ((Q > ab)) | |
252 | + | then throw((((("No more orders accepted, Option House Risk Size is only limited to " + toString(ab)) + ", Pending House Risk is ") + toString((ab - P))) + ". Join in next Cycle.")) | |
256 | 253 | else if ((k > p)) | |
257 | 254 | then throw((("Placed Order Size is less than [" + toString(k)) + "/10^8] WAVES.")) | |
258 | 255 | else if ((p > l)) | |
263 | 260 | then throw("Start Timestamp is Wrong. Please Enter a Valid Timestamp. Probably you entered an Timestamp less than 13 Chars.") | |
264 | 261 | else if ((size(toString(y)) != 13)) | |
265 | 262 | then throw("End Timestamp is Wrong. Please Enter a Valid Timestamp. Probably you entered an Timestamp less than 13 Chars.") | |
266 | - | else [StringEntry(("User_ID_" + s), r), IntegerEntry(((d + "_") + s), D), IntegerEntry((s + "_Voucher_Balance"), F), IntegerEntry("Network_Fee_To_Place_Order", j), StringEntry(((("Put_" + s) + "_") + toString( | |
263 | + | else [StringEntry(("User_ID_" + s), r), IntegerEntry(((d + "_") + s), D), IntegerEntry((s + "_Voucher_Balance"), F), IntegerEntry("Network_Fee_To_Place_Order", j), StringEntry(((("Put_" + s) + "_") + toString(ah)), toString(t)), IntegerEntry(((("Put_Amount_" + s) + "_") + toString(ah)), p), StringEntry(((("Put_Start_End_" + s) + "_") + toString(ah)), ((toString(I) + "_") + toString(K))), IntegerEntry("Total_Option_Orders", O), IntegerEntry(("Total_Funds_Added_In_Option_Order_" + toString(I)), Q), IntegerEntry("Total_Pool_Liquidity", B), IntegerEntry(("Funds_At_Risk_" + toString(I)), ab), IntegerEntry("Call_Limits", u), IntegerEntry("Put_Limits", v), IntegerEntry(("Total_Option_Orders_" + toString(I)), S), IntegerEntry("Total_Puts", ad), IntegerEntry(("Total_Puts_" + toString(I)), af), IntegerEntry((s + "_Total_Puts"), ah), IntegerEntry(((s + "_Total_Puts_") + toString(I)), aj), ScriptTransfer(h, j, unit), ScriptTransfer(addressFromStringValue(a), p, unit)] | |
267 | 264 | } | |
268 | 265 | ||
269 | 266 | ||
271 | 268 | @Callable(o) | |
272 | 269 | func Fill_Vouchers_Liquidity () = { | |
273 | 270 | let z = toBase58String(o.caller.bytes) | |
274 | - | let | |
271 | + | let ak = if ((size(o.payments) == 1)) | |
275 | 272 | then o.payments[0] | |
276 | 273 | else throw("No payment attached, Please Attach only Whitelisted Tokens in payment[1].") | |
277 | - | let | |
278 | - | let | |
279 | - | if ($isInstanceOf( | |
274 | + | let al = { | |
275 | + | let M = getInteger(this, "Available_Vouchers_Balance") | |
276 | + | if ($isInstanceOf(M, "Int")) | |
280 | 277 | then { | |
281 | - | let | |
282 | - | | |
278 | + | let N = M | |
279 | + | N | |
283 | 280 | } | |
284 | 281 | else 0 | |
285 | 282 | } | |
286 | - | let | |
287 | - | let | |
288 | - | let | |
289 | - | if ($isInstanceOf( | |
283 | + | let am = (al + ak.amount) | |
284 | + | let an = { | |
285 | + | let M = getInteger(this, "Vouchers_Counter_ID") | |
286 | + | if ($isInstanceOf(M, "Int")) | |
290 | 287 | then { | |
291 | - | let | |
292 | - | | |
288 | + | let N = M | |
289 | + | N | |
293 | 290 | } | |
294 | 291 | else 0 | |
295 | 292 | } | |
296 | - | let | |
297 | - | if (isDefined( | |
293 | + | let ao = (an + 1) | |
294 | + | if (isDefined(ak.assetId)) | |
298 | 295 | then throw("Only WAVES is allowed to deposit at the moment") | |
299 | 296 | else if ((n == 1)) | |
300 | 297 | then throw("Contract Status is Currently Shutdown. Please Sign the Function Initiate_Contract_Shutdown.") | |
301 | - | else [IntegerEntry("Available_Vouchers_Balance", | |
298 | + | else [IntegerEntry("Available_Vouchers_Balance", am), IntegerEntry((toString(ao) + "_Voucher_Added_Amount"), ak.amount), IntegerEntry("Vouchers_Counter_ID", ao)] | |
302 | 299 | } | |
303 | 300 | ||
304 | 301 | ||
305 | 302 | ||
306 | 303 | @Callable(o) | |
307 | - | func Issue_Vouchers ( | |
308 | - | let | |
309 | - | let | |
310 | - | let | |
311 | - | let | |
312 | - | if ($isInstanceOf( | |
304 | + | func Issue_Vouchers (ap,r,s) = { | |
305 | + | let aq = valueOrErrorMessage(getInteger(this, "Available_Vouchers_Balance"), "Available_Vouchers_Balance Entry is not Found. Initiate Fill_Vouchers_Liquidity Function first.") | |
306 | + | let ar = (aq - ap) | |
307 | + | let as = { | |
308 | + | let M = getInteger(this, ("Total_Vouchers_Issued_To_" + s)) | |
309 | + | if ($isInstanceOf(M, "Int")) | |
313 | 310 | then { | |
314 | - | let | |
315 | - | | |
311 | + | let N = M | |
312 | + | N | |
316 | 313 | } | |
317 | 314 | else 0 | |
318 | 315 | } | |
319 | - | let | |
320 | - | let | |
321 | - | let | |
322 | - | if ($isInstanceOf( | |
316 | + | let at = (as + 1) | |
317 | + | let au = { | |
318 | + | let M = getInteger(this, ("Total_Vouchers_Amount_Issued_To_" + s)) | |
319 | + | if ($isInstanceOf(M, "Int")) | |
323 | 320 | then { | |
324 | - | let | |
325 | - | | |
321 | + | let N = M | |
322 | + | N | |
326 | 323 | } | |
327 | 324 | else 0 | |
328 | 325 | } | |
329 | - | let | |
330 | - | let | |
331 | - | let | |
332 | - | if ($isInstanceOf( | |
326 | + | let av = (au + ap) | |
327 | + | let aw = { | |
328 | + | let M = getInteger(this, (s + "_Voucher_Balance")) | |
329 | + | if ($isInstanceOf(M, "Int")) | |
333 | 330 | then { | |
334 | - | let | |
335 | - | | |
331 | + | let N = M | |
332 | + | N | |
336 | 333 | } | |
337 | 334 | else 0 | |
338 | 335 | } | |
339 | - | let | |
336 | + | let ax = (aw + ap) | |
340 | 337 | if ((o.caller != h)) | |
341 | 338 | then throw((("This Address is not Authorized. Only " + toString(h)) + " is Authorized Address to Sign it.")) | |
342 | 339 | else if ((n == 1)) | |
343 | 340 | then throw("Contract Status is Currently Shutdown. Please Sign the Function Initiate_Contract_Shutdown.") | |
344 | - | else if ((0 >= | |
341 | + | else if ((0 >= ap)) | |
345 | 342 | then throw((("Voucher Balance can't be 0 or go in negative State. Increase the Voucher Amount where maximum limit is " + toString(m)) + "/10^8 Waves.")) | |
346 | - | else if ((0 >= | |
347 | - | then throw((("Updated Voucher Balance can't go in negative State of " + toString( | |
348 | - | else if (( | |
343 | + | else if ((0 >= ar)) | |
344 | + | then throw((("Updated Voucher Balance can't go in negative State of " + toString(ar)) + " /10^8 WAVES. Reduce the Voucher Amount.")) | |
345 | + | else if ((ap > m)) | |
349 | 346 | then throw((("Input Voucher Balance can't exceed the set maximum limit of " + toString(m)) + "/10^8 Waves.")) | |
350 | - | else if (( | |
347 | + | else if ((ax > m)) | |
351 | 348 | then throw((((s + " Voucher Balance is exceeding the limit of ") + toString(m)) + "/10^8 Waves.")) | |
352 | - | else [IntegerEntry(("Total_Vouchers_Issued_To_" + s), | |
349 | + | else [IntegerEntry(("Total_Vouchers_Issued_To_" + s), at), IntegerEntry(("Total_Vouchers_Amount_Issued_To_" + s), av), IntegerEntry((s + "_Voucher_Balance"), ax), IntegerEntry("Available_Vouchers_Balance", ar)] | |
353 | 350 | } | |
354 | 351 | ||
355 | 352 | ||
357 | 354 | @Callable(o) | |
358 | 355 | func DepositUserFunds () = { | |
359 | 356 | let z = toBase58String(o.caller.bytes) | |
360 | - | let | |
357 | + | let ak = if ((size(o.payments) == 1)) | |
361 | 358 | then o.payments[0] | |
362 | 359 | else throw("No payment attached, Please Attach only Whitelisted Tokens in payment[1].") | |
363 | 360 | let A = getString(this, ("addr_BLACKLISTED_" + z)) | |
364 | - | let | |
365 | - | let | |
366 | - | if ($isInstanceOf( | |
361 | + | let ay = { | |
362 | + | let M = getInteger(this, ((d + "_") + z)) | |
363 | + | if ($isInstanceOf(M, "Int")) | |
367 | 364 | then { | |
368 | - | let | |
369 | - | | |
365 | + | let N = M | |
366 | + | N | |
370 | 367 | } | |
371 | 368 | else 0 | |
372 | 369 | } | |
373 | - | let | |
374 | - | let | |
375 | - | let | |
376 | - | if ($isInstanceOf( | |
370 | + | let az = (ay + ak.amount) | |
371 | + | let aA = { | |
372 | + | let M = getInteger(this, "Deposit_Counter_ID") | |
373 | + | if ($isInstanceOf(M, "Int")) | |
377 | 374 | then { | |
378 | - | let | |
379 | - | | |
375 | + | let N = M | |
376 | + | N | |
380 | 377 | } | |
381 | 378 | else 0 | |
382 | 379 | } | |
383 | - | let | |
380 | + | let aB = (aA + 1) | |
384 | 381 | if ((c > lastBlock.timestamp)) | |
385 | 382 | then throw((e + toString(c))) | |
386 | 383 | else if ((n == 1)) | |
387 | 384 | then throw("Contract Status is Currently Shutdown. Please Sign the Function Initiate_Contract_Shutdown.") | |
388 | 385 | else if ((A == "Yes")) | |
389 | 386 | then throw((z + " Address is Blacklisted. Please contact Admin to Whitelist it.")) | |
390 | - | else if (isDefined( | |
387 | + | else if (isDefined(ak.assetId)) | |
391 | 388 | then throw("Only WAVES is allowed to deposit at the moment") | |
392 | - | else [IntegerEntry(((d + "_") + z), | |
389 | + | else [IntegerEntry(((d + "_") + z), az), IntegerEntry(((((toString(aB) + "_") + d) + "_") + z), ak.amount), IntegerEntry("Deposit_Counter_ID", aB)] | |
393 | 390 | } | |
394 | 391 | ||
395 | 392 | ||
397 | 394 | @Callable(o) | |
398 | 395 | func WithdrawUserFunds (s,p) = { | |
399 | 396 | let z = toBase58String(o.caller.bytes) | |
400 | - | let | |
401 | - | let D = (( | |
402 | - | let | |
397 | + | let aC = getIntegerValue(((d + "_") + s)) | |
398 | + | let D = ((aC - p) - j) | |
399 | + | let aD = 10000000 | |
403 | 400 | if ((o.caller != h)) | |
404 | 401 | then throw((("This Address is not Authorized. Only " + toString(h)) + " is Authorized Address to Sign it.")) | |
405 | 402 | else if ((n == 1)) | |
406 | 403 | then throw("Contract Status is Currently Shutdown. Please Sign the Function Initiate_Contract_Shutdown.") | |
407 | - | else if (( | |
408 | - | then throw((("Minimum Withdraw Amount is " + toString( | |
404 | + | else if ((aD > p)) | |
405 | + | then throw((("Minimum Withdraw Amount is " + toString(aD)) + "/10^8] WAVES.")) | |
409 | 406 | else if ((0 > D)) | |
410 | 407 | then throw((("Placed Withdraw Amount is going in negative State of " + toString(D)) + "/10^8] WAVES.")) | |
411 | - | else [IntegerEntry("Previous_Balance", | |
408 | + | else [IntegerEntry("Previous_Balance", aC), IntegerEntry("Network_Fee_To_Withdraw", j), IntegerEntry(((d + "_") + s), D), ScriptTransfer(h, j, unit), ScriptTransfer(addressFromStringValue(s), p, unit)] | |
412 | 409 | } | |
413 | 410 | ||
414 | 411 | ||
415 | 412 | ||
416 | 413 | @Callable(o) | |
417 | - | func BlackListAddress ( | |
418 | - | let A = getString(this, ("addr_BLACKLISTED_" + | |
419 | - | let | |
420 | - | let | |
421 | - | if ($isInstanceOf( | |
414 | + | func BlackListAddress (aE) = { | |
415 | + | let A = getString(this, ("addr_BLACKLISTED_" + aE)) | |
416 | + | let aF = { | |
417 | + | let M = getInteger(this, "Total_Black_Listed_Address") | |
418 | + | if ($isInstanceOf(M, "Int")) | |
422 | 419 | then { | |
423 | - | let | |
424 | - | | |
420 | + | let N = M | |
421 | + | N | |
425 | 422 | } | |
426 | 423 | else 0 | |
427 | 424 | } | |
428 | - | let | |
425 | + | let aG = (aF + 1) | |
429 | 426 | if ((c > lastBlock.timestamp)) | |
430 | 427 | then throw((e + toString(c))) | |
431 | 428 | else if ((o.caller != h)) | |
434 | 431 | then throw("Contract Status is Currently Shutdown. Please Sign the Function Initiate_Contract_Shutdown.") | |
435 | 432 | else if ((A == "Yes")) | |
436 | 433 | then throw("Address is already available in Blacklist.") | |
437 | - | else [StringEntry(("addr_BLACKLISTED_" + | |
434 | + | else [StringEntry(("addr_BLACKLISTED_" + aE), "Yes"), IntegerEntry("Total_Black_Listed_Address", aG)] | |
438 | 435 | } | |
439 | 436 | ||
440 | 437 | ||
441 | 438 | ||
442 | 439 | @Callable(o) | |
443 | - | func DeleteBlackListAddress ( | |
444 | - | let A = getString(this, ("addr_BLACKLISTED_" + | |
445 | - | let | |
446 | - | let | |
447 | - | if ($isInstanceOf( | |
440 | + | func DeleteBlackListAddress (aE) = { | |
441 | + | let A = getString(this, ("addr_BLACKLISTED_" + aE)) | |
442 | + | let aF = { | |
443 | + | let M = getInteger(this, "Total_Black_Listed_Address") | |
444 | + | if ($isInstanceOf(M, "Int")) | |
448 | 445 | then { | |
449 | - | let | |
450 | - | | |
446 | + | let N = M | |
447 | + | N | |
451 | 448 | } | |
452 | 449 | else 0 | |
453 | 450 | } | |
454 | - | let | |
451 | + | let aG = (aF - 1) | |
455 | 452 | if ((c > lastBlock.timestamp)) | |
456 | 453 | then throw(("Product Launch Timestamp is set at " + toString(c))) | |
457 | 454 | else if ((o.caller != h)) | |
459 | 456 | else if ((n == 1)) | |
460 | 457 | then throw("Contract Status is Currently Shutdown. Please Sign the Function Initiate_Contract_Shutdown.") | |
461 | 458 | else if ((A == "Yes")) | |
462 | - | then [DeleteEntry(("addr_BLACKLISTED_" + | |
459 | + | then [DeleteEntry(("addr_BLACKLISTED_" + aE)), IntegerEntry("Total_Black_Listed_Address", aG)] | |
463 | 460 | else throw("Address is not available in Blacklist.") | |
464 | 461 | } | |
465 | 462 | ||
467 | 464 | ||
468 | 465 | @Callable(o) | |
469 | 466 | func Initiate_Contract_Shutdown () = { | |
470 | - | let | |
471 | - | let | |
472 | - | if ($isInstanceOf( | |
467 | + | let aH = { | |
468 | + | let M = getInteger(this, "Shutdown_Status") | |
469 | + | if ($isInstanceOf(M, "Int")) | |
473 | 470 | then { | |
474 | - | let | |
475 | - | | |
471 | + | let N = M | |
472 | + | N | |
476 | 473 | } | |
477 | 474 | else 0 | |
478 | 475 | } | |
479 | 476 | if ((o.caller != h)) | |
480 | 477 | then throw((("This Address is not Authorized. Only " + toString(h)) + " is Authorized Address to Sign it.")) | |
481 | - | else if (( | |
478 | + | else if ((aH == 0)) | |
482 | 479 | then [IntegerEntry("Shutdown_Status", 1)] | |
483 | 480 | else [IntegerEntry("Shutdown_Status", 0)] | |
484 | 481 | } | |
486 | 483 | ||
487 | 484 | ||
488 | 485 | @Callable(o) | |
489 | - | func Del ( | |
486 | + | func Del (aI) = [DeleteEntry(aI)] | |
490 | 487 | ||
491 | 488 | ||
492 | - | @Verifier( | |
493 | - | func | |
494 | - | let | |
495 | - | if (if ($isInstanceOf( | |
489 | + | @Verifier(aJ) | |
490 | + | func aK () = { | |
491 | + | let M = aJ | |
492 | + | if (if ($isInstanceOf(M, "Order")) | |
496 | 493 | then true | |
497 | - | else if ($isInstanceOf( | |
494 | + | else if ($isInstanceOf(M, "ExchangeTransaction")) | |
498 | 495 | then true | |
499 | - | else if ($isInstanceOf( | |
496 | + | else if ($isInstanceOf(M, "MassTransferTransaction")) | |
500 | 497 | then true | |
501 | - | else $isInstanceOf( | |
498 | + | else $isInstanceOf(M, "TransferTransaction")) | |
502 | 499 | then { | |
503 | - | let | |
500 | + | let aL = M | |
504 | 501 | false | |
505 | 502 | } | |
506 | - | else sigVerify( | |
503 | + | else sigVerify(aJ.bodyBytes, aJ.proofs[0], aJ.senderPublicKey) | |
507 | 504 | } | |
508 | 505 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "3N4wBgYtWgJW2LTRef2ekWQTrEXCRfXmGLh" | |
5 | 5 | ||
6 | 6 | let b = base58'EXLfxKmqhQPiProBaoPatTentUSZX5Dd8A8bYDcmfNwt' | |
7 | 7 | ||
8 | 8 | let c = 1695427860000 | |
9 | 9 | ||
10 | 10 | let d = "WAVES" | |
11 | 11 | ||
12 | 12 | let e = "Product Launch Timestamp is set at " | |
13 | 13 | ||
14 | 14 | let f = "No payment attached, Please Attach Token in payment[1]." | |
15 | 15 | ||
16 | 16 | let g = "Oracle is closed. Wait Until Oracle is Turned On." | |
17 | 17 | ||
18 | 18 | let h = addressFromPublicKey(b) | |
19 | 19 | ||
20 | 20 | let i = addressFromPublicKey(base58'6oay51Q6zPcFP9bSwUC4Potx2KGyD4AUjpL5uLR4QeRN') | |
21 | 21 | ||
22 | 22 | let j = 900000 | |
23 | 23 | ||
24 | 24 | let k = 10000000 | |
25 | 25 | ||
26 | 26 | let l = 10000000000 | |
27 | 27 | ||
28 | 28 | let m = 100000000 | |
29 | 29 | ||
30 | 30 | let n = valueOrErrorMessage(getInteger(this, "Shutdown_Status"), "Initiate_Contract_Shutdown function value is not Set, Please Sign that first.") | |
31 | 31 | ||
32 | 32 | @Callable(o) | |
33 | 33 | func placeoptionCall (p,q,r,s,t,u,v,w,x,y) = { | |
34 | 34 | let z = toBase58String(o.caller.bytes) | |
35 | 35 | let A = getString(this, ("addr_BLACKLISTED_" + s)) | |
36 | 36 | let B = valueOrErrorMessage(getInteger(addressFromStringValue(a), "Total_Pool_Liquidity"), "No Initial Pool Liquidity was Found.") | |
37 | 37 | let C = valueOrElse(getInteger(((d + "_") + s)), 0) | |
38 | 38 | let D = ((C - p) - j) | |
39 | 39 | let E = valueOrElse(getInteger((s + "_Voucher_Balance")), 0) | |
40 | 40 | let F = ((E - p) - j) | |
41 | 41 | let G = x | |
42 | 42 | let H = y | |
43 | - | let I = if ((E > F)) | |
44 | - | then true | |
45 | - | else false | |
46 | - | let J = q | |
47 | - | let K = 1 | |
48 | - | let L = (J + K) | |
49 | - | let M = { | |
50 | - | let N = getInteger(this, "Total_Option_Orders") | |
51 | - | if ($isInstanceOf(N, "Int")) | |
43 | + | let I = q | |
44 | + | let J = 1 | |
45 | + | let K = (I + J) | |
46 | + | let L = { | |
47 | + | let M = getInteger(this, "Total_Option_Orders") | |
48 | + | if ($isInstanceOf(M, "Int")) | |
52 | 49 | then { | |
53 | - | let | |
54 | - | | |
50 | + | let N = M | |
51 | + | N | |
55 | 52 | } | |
56 | 53 | else 0 | |
57 | 54 | } | |
58 | - | let | |
59 | - | let | |
60 | - | let | |
61 | - | if ($isInstanceOf( | |
55 | + | let O = (L + 1) | |
56 | + | let P = { | |
57 | + | let M = getInteger(this, ("Total_Funds_Added_In_Option_Order_" + toString(I))) | |
58 | + | if ($isInstanceOf(M, "Int")) | |
62 | 59 | then { | |
63 | - | let | |
64 | - | | |
60 | + | let N = M | |
61 | + | N | |
65 | 62 | } | |
66 | 63 | else 0 | |
67 | 64 | } | |
68 | - | let | |
69 | - | let | |
70 | - | let | |
71 | - | if ($isInstanceOf( | |
65 | + | let Q = (P + p) | |
66 | + | let R = { | |
67 | + | let M = getInteger(this, ("Total_Option_Orders_" + toString(I))) | |
68 | + | if ($isInstanceOf(M, "Int")) | |
72 | 69 | then { | |
73 | - | let | |
74 | - | | |
70 | + | let N = M | |
71 | + | N | |
75 | 72 | } | |
76 | 73 | else 0 | |
77 | 74 | } | |
78 | - | let | |
79 | - | let | |
80 | - | let | |
81 | - | if ($isInstanceOf( | |
75 | + | let S = (R + 1) | |
76 | + | let T = { | |
77 | + | let M = getInteger(this, "Total_Calls") | |
78 | + | if ($isInstanceOf(M, "Int")) | |
82 | 79 | then { | |
83 | - | let | |
84 | - | | |
80 | + | let N = M | |
81 | + | N | |
85 | 82 | } | |
86 | 83 | else 0 | |
87 | 84 | } | |
88 | - | let | |
89 | - | let | |
90 | - | let | |
91 | - | if ($isInstanceOf( | |
85 | + | let U = (T + 1) | |
86 | + | let V = { | |
87 | + | let M = getInteger(this, ("Total_Calls_" + toString(I))) | |
88 | + | if ($isInstanceOf(M, "Int")) | |
92 | 89 | then { | |
93 | - | let | |
94 | - | | |
90 | + | let N = M | |
91 | + | N | |
95 | 92 | } | |
96 | 93 | else 0 | |
97 | 94 | } | |
98 | - | let | |
99 | - | let | |
100 | - | let | |
101 | - | if ($isInstanceOf( | |
95 | + | let W = (V + 1) | |
96 | + | let X = { | |
97 | + | let M = getInteger(this, (s + "_Total_Calls")) | |
98 | + | if ($isInstanceOf(M, "Int")) | |
102 | 99 | then { | |
103 | - | let | |
104 | - | | |
100 | + | let N = M | |
101 | + | N | |
105 | 102 | } | |
106 | 103 | else 0 | |
107 | 104 | } | |
108 | - | let | |
109 | - | let | |
110 | - | let | |
111 | - | if ($isInstanceOf( | |
105 | + | let Y = (X + 1) | |
106 | + | let Z = { | |
107 | + | let M = getInteger(this, ((s + "_Total_Calls_") + toString(I))) | |
108 | + | if ($isInstanceOf(M, "Int")) | |
112 | 109 | then { | |
113 | - | let | |
114 | - | | |
110 | + | let N = M | |
111 | + | N | |
115 | 112 | } | |
116 | 113 | else 0 | |
117 | 114 | } | |
118 | - | let | |
119 | - | let | |
115 | + | let aa = (Z + 1) | |
116 | + | let ab = fraction(B, 5, 100) | |
120 | 117 | if ((o.caller != h)) | |
121 | 118 | then throw((("This Address is not Authorized. Only " + toString(h)) + " is Authorized Address to Sign it.")) | |
122 | 119 | else if ((n == 1)) | |
123 | 120 | then throw("Contract Status is Currently Shutdown. Please Sign the Function Initiate_Contract_Shutdown.") | |
124 | 121 | else if ((c > lastBlock.timestamp)) | |
125 | 122 | then throw((e + toString(c))) | |
126 | 123 | else if ((w == "CLOSE")) | |
127 | 124 | then throw(g) | |
128 | 125 | else if ((A == "Yes")) | |
129 | 126 | then throw((s + " Address is Blacklisted. Please contact Admin to Whitelist it.")) | |
130 | 127 | else if ((lastBlock.timestamp >= H)) | |
131 | 128 | then throw("Option Order placing Timing Limits are Over. Please Join in Next Cycle.") | |
132 | - | else if (( | |
133 | - | then throw((((("No more orders accepted, Option House Risk Size is only limited to " + toString( | |
129 | + | else if ((Q > ab)) | |
130 | + | then throw((((("No more orders accepted, Option House Risk Size is only limited to " + toString(ab)) + ", Pending House Risk is ") + toString((ab - P))) + ". Join in next Cycle.")) | |
134 | 131 | else if ((k > p)) | |
135 | 132 | then throw((("Placed Order Size is less than [" + toString(k)) + "/10^8] WAVES.")) | |
136 | 133 | else if ((p > l)) | |
137 | 134 | then throw((("Placed Order Size is more than [" + toString(l)) + "/10^8] WAVES.")) | |
138 | 135 | else if (if ((0 > D)) | |
139 | - | then ( | |
136 | + | then (F > E) | |
140 | 137 | else false) | |
141 | 138 | then throw((("Placed Order Amount is going negative. Please reduce the Order Size.User Fund Amount = [" + toString(D)) + "]")) | |
142 | 139 | else if ((size(toString(x)) != 13)) | |
143 | 140 | then throw("Start Timestamp is Wrong. Please Enter a Valid Timestamp. Probably you entered an Timestamp less than 13 Chars.") | |
144 | 141 | else if ((size(toString(y)) != 13)) | |
145 | 142 | then throw("End Timestamp is Wrong. Please Enter a Valid Timestamp. Probably you entered an Timestamp less than 13 Chars.") | |
146 | 143 | else if (if ((E == 0)) | |
147 | 144 | then true | |
148 | 145 | else (0 > F)) | |
149 | - | then [StringEntry(("User_ID_" + s), r), IntegerEntry(((d + "_") + s), D), IntegerEntry("Network_Fee_To_Place_Order", j), StringEntry(((("Call_" + s) + "_") + toString( | |
150 | - | else if ( | |
151 | - | then [StringEntry(("User_ID_" + s), r), IntegerEntry((s + "_Voucher_Balance"), F), IntegerEntry("Network_Fee_To_Place_Order", j), StringEntry(((("Call_" + s) + "_") + toString( | |
146 | + | then [StringEntry(("User_ID_" + s), r), IntegerEntry(((d + "_") + s), D), IntegerEntry("Network_Fee_To_Place_Order", j), StringEntry(((("Call_" + s) + "_") + toString(Y)), toString(t)), IntegerEntry(((("Call_Amount_" + s) + "_") + toString(Y)), p), StringEntry(((("Call_Start_End_" + s) + "_") + toString(Y)), ((toString(I) + "_") + toString(K))), IntegerEntry("Total_Option_Orders", O), IntegerEntry(("Total_Funds_Added_In_Option_Order_" + toString(I)), Q), IntegerEntry("Total_Pool_Liquidity", B), IntegerEntry(("Funds_At_Risk_" + toString(I)), ab), IntegerEntry("Call_Limits", u), IntegerEntry("Put_Limits", v), IntegerEntry(("Total_Option_Orders_" + toString(I)), S), IntegerEntry("Total_Calls", U), IntegerEntry(("Total_Calls_" + toString(I)), W), IntegerEntry((s + "_Total_Calls"), Y), IntegerEntry(((s + "_Total_Calls_") + toString(I)), aa), ScriptTransfer(h, j, unit), ScriptTransfer(addressFromStringValue(a), p, unit)] | |
147 | + | else if ((F > 0)) | |
148 | + | then [StringEntry(("User_ID_" + s), r), IntegerEntry((s + "_Voucher_Balance"), F), IntegerEntry("Network_Fee_To_Place_Order", j), StringEntry(((("Call_" + s) + "_") + toString(Y)), toString(t)), IntegerEntry(((("Call_Amount_" + s) + "_") + toString(Y)), p), StringEntry(((("Call_Start_End_" + s) + "_") + toString(Y)), ((toString(I) + "_") + toString(K))), IntegerEntry("Total_Option_Orders", O), IntegerEntry(("Total_Funds_Added_In_Option_Order_" + toString(I)), Q), IntegerEntry("Total_Pool_Liquidity", B), IntegerEntry(("Funds_At_Risk_" + toString(I)), ab), IntegerEntry("Call_Limits", u), IntegerEntry("Put_Limits", v), IntegerEntry(("Total_Option_Orders_" + toString(I)), S), IntegerEntry("Total_Calls", U), IntegerEntry(("Total_Calls_" + toString(I)), W), IntegerEntry((s + "_Total_Calls"), Y), IntegerEntry(((s + "_Total_Calls_") + toString(I)), aa), ScriptTransfer(h, j, unit), ScriptTransfer(addressFromStringValue(a), p, unit)] | |
152 | 149 | else throw("Wrong Entry.") | |
153 | 150 | } | |
154 | 151 | ||
155 | 152 | ||
156 | 153 | ||
157 | 154 | @Callable(o) | |
158 | 155 | func placeoptionPut (p,q,r,s,t,u,v,w,x,y) = { | |
159 | 156 | let z = toBase58String(o.caller.bytes) | |
160 | 157 | let A = getString(this, ("addr_BLACKLISTED_" + s)) | |
161 | 158 | let B = valueOrErrorMessage(getInteger(addressFromStringValue(a), "Total_Pool_Liquidity"), "No Initial Pool Liquidity was Found.") | |
162 | 159 | let C = valueOrElse(getInteger(((d + "_") + s)), 0) | |
163 | 160 | let D = ((C - p) - j) | |
164 | 161 | let E = valueOrElse(getInteger((s + "_Voucher_Balance")), 0) | |
165 | 162 | let F = (E - p) | |
166 | 163 | let G = x | |
167 | 164 | let H = y | |
168 | - | let | |
169 | - | let | |
170 | - | let | |
171 | - | let | |
172 | - | let | |
173 | - | if ($isInstanceOf( | |
165 | + | let I = q | |
166 | + | let J = 1 | |
167 | + | let K = (I + J) | |
168 | + | let L = { | |
169 | + | let M = getInteger(this, "Total_Option_Orders") | |
170 | + | if ($isInstanceOf(M, "Int")) | |
174 | 171 | then { | |
175 | - | let | |
176 | - | | |
172 | + | let N = M | |
173 | + | N | |
177 | 174 | } | |
178 | 175 | else 0 | |
179 | 176 | } | |
180 | - | let | |
181 | - | let | |
182 | - | let | |
183 | - | if ($isInstanceOf( | |
177 | + | let O = (L + 1) | |
178 | + | let P = { | |
179 | + | let M = getInteger(this, ("Total_Funds_Added_In_Option_Order_" + toString(I))) | |
180 | + | if ($isInstanceOf(M, "Int")) | |
184 | 181 | then { | |
185 | - | let | |
186 | - | | |
182 | + | let N = M | |
183 | + | N | |
187 | 184 | } | |
188 | 185 | else 0 | |
189 | 186 | } | |
190 | - | let | |
191 | - | let | |
192 | - | let | |
193 | - | if ($isInstanceOf( | |
187 | + | let Q = (P + p) | |
188 | + | let R = { | |
189 | + | let M = getInteger(this, ("Total_Option_Orders_" + toString(I))) | |
190 | + | if ($isInstanceOf(M, "Int")) | |
194 | 191 | then { | |
195 | - | let | |
196 | - | | |
192 | + | let N = M | |
193 | + | N | |
197 | 194 | } | |
198 | 195 | else 0 | |
199 | 196 | } | |
200 | - | let | |
201 | - | let | |
202 | - | let | |
203 | - | if ($isInstanceOf( | |
197 | + | let S = (R + 1) | |
198 | + | let ac = { | |
199 | + | let M = getInteger(this, "Total_Puts") | |
200 | + | if ($isInstanceOf(M, "Int")) | |
204 | 201 | then { | |
205 | - | let | |
206 | - | | |
202 | + | let N = M | |
203 | + | N | |
207 | 204 | } | |
208 | 205 | else 0 | |
209 | 206 | } | |
210 | - | let | |
211 | - | let | |
212 | - | let | |
213 | - | if ($isInstanceOf( | |
207 | + | let ad = (ac + 1) | |
208 | + | let ae = { | |
209 | + | let M = getInteger(this, ("Total_Puts_" + toString(I))) | |
210 | + | if ($isInstanceOf(M, "Int")) | |
214 | 211 | then { | |
215 | - | let | |
216 | - | | |
212 | + | let N = M | |
213 | + | N | |
217 | 214 | } | |
218 | 215 | else 0 | |
219 | 216 | } | |
220 | - | let | |
221 | - | let | |
222 | - | let | |
223 | - | if ($isInstanceOf( | |
217 | + | let af = (ae + 1) | |
218 | + | let ag = { | |
219 | + | let M = getInteger(this, (s + "_Total_Puts")) | |
220 | + | if ($isInstanceOf(M, "Int")) | |
224 | 221 | then { | |
225 | - | let | |
226 | - | | |
222 | + | let N = M | |
223 | + | N | |
227 | 224 | } | |
228 | 225 | else 0 | |
229 | 226 | } | |
230 | - | let | |
231 | - | let | |
232 | - | let | |
233 | - | if ($isInstanceOf( | |
227 | + | let ah = (ag + 1) | |
228 | + | let ai = { | |
229 | + | let M = getInteger(this, ((s + "_Total_Puts_") + toString(I))) | |
230 | + | if ($isInstanceOf(M, "Int")) | |
234 | 231 | then { | |
235 | - | let | |
236 | - | | |
232 | + | let N = M | |
233 | + | N | |
237 | 234 | } | |
238 | 235 | else 0 | |
239 | 236 | } | |
240 | - | let | |
241 | - | let | |
237 | + | let aj = (ai + 1) | |
238 | + | let ab = fraction(B, 5, 100) | |
242 | 239 | if ((o.caller != h)) | |
243 | 240 | then throw((("This Address is not Authorized. Only " + toString(h)) + " is Authorized Address to Sign it.")) | |
244 | 241 | else if ((n == 1)) | |
245 | 242 | then throw("Contract Status is Currently Shutdown. Please Sign the Function Initiate_Contract_Shutdown.") | |
246 | 243 | else if ((c > lastBlock.timestamp)) | |
247 | 244 | then throw((e + toString(c))) | |
248 | 245 | else if ((w == "CLOSE")) | |
249 | 246 | then throw(g) | |
250 | 247 | else if ((A == "Yes")) | |
251 | 248 | then throw((s + " Address is Blacklisted. Please contact Admin to Whitelist it.")) | |
252 | 249 | else if ((lastBlock.timestamp >= H)) | |
253 | 250 | then throw("Option Order placing Timing Limits are Over. Please Join in Next Cycle.") | |
254 | - | else if (( | |
255 | - | then throw((((("No more orders accepted, Option House Risk Size is only limited to " + toString( | |
251 | + | else if ((Q > ab)) | |
252 | + | then throw((((("No more orders accepted, Option House Risk Size is only limited to " + toString(ab)) + ", Pending House Risk is ") + toString((ab - P))) + ". Join in next Cycle.")) | |
256 | 253 | else if ((k > p)) | |
257 | 254 | then throw((("Placed Order Size is less than [" + toString(k)) + "/10^8] WAVES.")) | |
258 | 255 | else if ((p > l)) | |
259 | 256 | then throw((("Placed Order Size is more than [" + toString(l)) + "/10^8] WAVES.")) | |
260 | 257 | else if ((0 > D)) | |
261 | 258 | then throw(("Placed Order Amount is going negative. Please reduce the Order Size. Negative Fund Amount = " + toString(D))) | |
262 | 259 | else if ((size(toString(x)) != 13)) | |
263 | 260 | then throw("Start Timestamp is Wrong. Please Enter a Valid Timestamp. Probably you entered an Timestamp less than 13 Chars.") | |
264 | 261 | else if ((size(toString(y)) != 13)) | |
265 | 262 | then throw("End Timestamp is Wrong. Please Enter a Valid Timestamp. Probably you entered an Timestamp less than 13 Chars.") | |
266 | - | else [StringEntry(("User_ID_" + s), r), IntegerEntry(((d + "_") + s), D), IntegerEntry((s + "_Voucher_Balance"), F), IntegerEntry("Network_Fee_To_Place_Order", j), StringEntry(((("Put_" + s) + "_") + toString( | |
263 | + | else [StringEntry(("User_ID_" + s), r), IntegerEntry(((d + "_") + s), D), IntegerEntry((s + "_Voucher_Balance"), F), IntegerEntry("Network_Fee_To_Place_Order", j), StringEntry(((("Put_" + s) + "_") + toString(ah)), toString(t)), IntegerEntry(((("Put_Amount_" + s) + "_") + toString(ah)), p), StringEntry(((("Put_Start_End_" + s) + "_") + toString(ah)), ((toString(I) + "_") + toString(K))), IntegerEntry("Total_Option_Orders", O), IntegerEntry(("Total_Funds_Added_In_Option_Order_" + toString(I)), Q), IntegerEntry("Total_Pool_Liquidity", B), IntegerEntry(("Funds_At_Risk_" + toString(I)), ab), IntegerEntry("Call_Limits", u), IntegerEntry("Put_Limits", v), IntegerEntry(("Total_Option_Orders_" + toString(I)), S), IntegerEntry("Total_Puts", ad), IntegerEntry(("Total_Puts_" + toString(I)), af), IntegerEntry((s + "_Total_Puts"), ah), IntegerEntry(((s + "_Total_Puts_") + toString(I)), aj), ScriptTransfer(h, j, unit), ScriptTransfer(addressFromStringValue(a), p, unit)] | |
267 | 264 | } | |
268 | 265 | ||
269 | 266 | ||
270 | 267 | ||
271 | 268 | @Callable(o) | |
272 | 269 | func Fill_Vouchers_Liquidity () = { | |
273 | 270 | let z = toBase58String(o.caller.bytes) | |
274 | - | let | |
271 | + | let ak = if ((size(o.payments) == 1)) | |
275 | 272 | then o.payments[0] | |
276 | 273 | else throw("No payment attached, Please Attach only Whitelisted Tokens in payment[1].") | |
277 | - | let | |
278 | - | let | |
279 | - | if ($isInstanceOf( | |
274 | + | let al = { | |
275 | + | let M = getInteger(this, "Available_Vouchers_Balance") | |
276 | + | if ($isInstanceOf(M, "Int")) | |
280 | 277 | then { | |
281 | - | let | |
282 | - | | |
278 | + | let N = M | |
279 | + | N | |
283 | 280 | } | |
284 | 281 | else 0 | |
285 | 282 | } | |
286 | - | let | |
287 | - | let | |
288 | - | let | |
289 | - | if ($isInstanceOf( | |
283 | + | let am = (al + ak.amount) | |
284 | + | let an = { | |
285 | + | let M = getInteger(this, "Vouchers_Counter_ID") | |
286 | + | if ($isInstanceOf(M, "Int")) | |
290 | 287 | then { | |
291 | - | let | |
292 | - | | |
288 | + | let N = M | |
289 | + | N | |
293 | 290 | } | |
294 | 291 | else 0 | |
295 | 292 | } | |
296 | - | let | |
297 | - | if (isDefined( | |
293 | + | let ao = (an + 1) | |
294 | + | if (isDefined(ak.assetId)) | |
298 | 295 | then throw("Only WAVES is allowed to deposit at the moment") | |
299 | 296 | else if ((n == 1)) | |
300 | 297 | then throw("Contract Status is Currently Shutdown. Please Sign the Function Initiate_Contract_Shutdown.") | |
301 | - | else [IntegerEntry("Available_Vouchers_Balance", | |
298 | + | else [IntegerEntry("Available_Vouchers_Balance", am), IntegerEntry((toString(ao) + "_Voucher_Added_Amount"), ak.amount), IntegerEntry("Vouchers_Counter_ID", ao)] | |
302 | 299 | } | |
303 | 300 | ||
304 | 301 | ||
305 | 302 | ||
306 | 303 | @Callable(o) | |
307 | - | func Issue_Vouchers ( | |
308 | - | let | |
309 | - | let | |
310 | - | let | |
311 | - | let | |
312 | - | if ($isInstanceOf( | |
304 | + | func Issue_Vouchers (ap,r,s) = { | |
305 | + | let aq = valueOrErrorMessage(getInteger(this, "Available_Vouchers_Balance"), "Available_Vouchers_Balance Entry is not Found. Initiate Fill_Vouchers_Liquidity Function first.") | |
306 | + | let ar = (aq - ap) | |
307 | + | let as = { | |
308 | + | let M = getInteger(this, ("Total_Vouchers_Issued_To_" + s)) | |
309 | + | if ($isInstanceOf(M, "Int")) | |
313 | 310 | then { | |
314 | - | let | |
315 | - | | |
311 | + | let N = M | |
312 | + | N | |
316 | 313 | } | |
317 | 314 | else 0 | |
318 | 315 | } | |
319 | - | let | |
320 | - | let | |
321 | - | let | |
322 | - | if ($isInstanceOf( | |
316 | + | let at = (as + 1) | |
317 | + | let au = { | |
318 | + | let M = getInteger(this, ("Total_Vouchers_Amount_Issued_To_" + s)) | |
319 | + | if ($isInstanceOf(M, "Int")) | |
323 | 320 | then { | |
324 | - | let | |
325 | - | | |
321 | + | let N = M | |
322 | + | N | |
326 | 323 | } | |
327 | 324 | else 0 | |
328 | 325 | } | |
329 | - | let | |
330 | - | let | |
331 | - | let | |
332 | - | if ($isInstanceOf( | |
326 | + | let av = (au + ap) | |
327 | + | let aw = { | |
328 | + | let M = getInteger(this, (s + "_Voucher_Balance")) | |
329 | + | if ($isInstanceOf(M, "Int")) | |
333 | 330 | then { | |
334 | - | let | |
335 | - | | |
331 | + | let N = M | |
332 | + | N | |
336 | 333 | } | |
337 | 334 | else 0 | |
338 | 335 | } | |
339 | - | let | |
336 | + | let ax = (aw + ap) | |
340 | 337 | if ((o.caller != h)) | |
341 | 338 | then throw((("This Address is not Authorized. Only " + toString(h)) + " is Authorized Address to Sign it.")) | |
342 | 339 | else if ((n == 1)) | |
343 | 340 | then throw("Contract Status is Currently Shutdown. Please Sign the Function Initiate_Contract_Shutdown.") | |
344 | - | else if ((0 >= | |
341 | + | else if ((0 >= ap)) | |
345 | 342 | then throw((("Voucher Balance can't be 0 or go in negative State. Increase the Voucher Amount where maximum limit is " + toString(m)) + "/10^8 Waves.")) | |
346 | - | else if ((0 >= | |
347 | - | then throw((("Updated Voucher Balance can't go in negative State of " + toString( | |
348 | - | else if (( | |
343 | + | else if ((0 >= ar)) | |
344 | + | then throw((("Updated Voucher Balance can't go in negative State of " + toString(ar)) + " /10^8 WAVES. Reduce the Voucher Amount.")) | |
345 | + | else if ((ap > m)) | |
349 | 346 | then throw((("Input Voucher Balance can't exceed the set maximum limit of " + toString(m)) + "/10^8 Waves.")) | |
350 | - | else if (( | |
347 | + | else if ((ax > m)) | |
351 | 348 | then throw((((s + " Voucher Balance is exceeding the limit of ") + toString(m)) + "/10^8 Waves.")) | |
352 | - | else [IntegerEntry(("Total_Vouchers_Issued_To_" + s), | |
349 | + | else [IntegerEntry(("Total_Vouchers_Issued_To_" + s), at), IntegerEntry(("Total_Vouchers_Amount_Issued_To_" + s), av), IntegerEntry((s + "_Voucher_Balance"), ax), IntegerEntry("Available_Vouchers_Balance", ar)] | |
353 | 350 | } | |
354 | 351 | ||
355 | 352 | ||
356 | 353 | ||
357 | 354 | @Callable(o) | |
358 | 355 | func DepositUserFunds () = { | |
359 | 356 | let z = toBase58String(o.caller.bytes) | |
360 | - | let | |
357 | + | let ak = if ((size(o.payments) == 1)) | |
361 | 358 | then o.payments[0] | |
362 | 359 | else throw("No payment attached, Please Attach only Whitelisted Tokens in payment[1].") | |
363 | 360 | let A = getString(this, ("addr_BLACKLISTED_" + z)) | |
364 | - | let | |
365 | - | let | |
366 | - | if ($isInstanceOf( | |
361 | + | let ay = { | |
362 | + | let M = getInteger(this, ((d + "_") + z)) | |
363 | + | if ($isInstanceOf(M, "Int")) | |
367 | 364 | then { | |
368 | - | let | |
369 | - | | |
365 | + | let N = M | |
366 | + | N | |
370 | 367 | } | |
371 | 368 | else 0 | |
372 | 369 | } | |
373 | - | let | |
374 | - | let | |
375 | - | let | |
376 | - | if ($isInstanceOf( | |
370 | + | let az = (ay + ak.amount) | |
371 | + | let aA = { | |
372 | + | let M = getInteger(this, "Deposit_Counter_ID") | |
373 | + | if ($isInstanceOf(M, "Int")) | |
377 | 374 | then { | |
378 | - | let | |
379 | - | | |
375 | + | let N = M | |
376 | + | N | |
380 | 377 | } | |
381 | 378 | else 0 | |
382 | 379 | } | |
383 | - | let | |
380 | + | let aB = (aA + 1) | |
384 | 381 | if ((c > lastBlock.timestamp)) | |
385 | 382 | then throw((e + toString(c))) | |
386 | 383 | else if ((n == 1)) | |
387 | 384 | then throw("Contract Status is Currently Shutdown. Please Sign the Function Initiate_Contract_Shutdown.") | |
388 | 385 | else if ((A == "Yes")) | |
389 | 386 | then throw((z + " Address is Blacklisted. Please contact Admin to Whitelist it.")) | |
390 | - | else if (isDefined( | |
387 | + | else if (isDefined(ak.assetId)) | |
391 | 388 | then throw("Only WAVES is allowed to deposit at the moment") | |
392 | - | else [IntegerEntry(((d + "_") + z), | |
389 | + | else [IntegerEntry(((d + "_") + z), az), IntegerEntry(((((toString(aB) + "_") + d) + "_") + z), ak.amount), IntegerEntry("Deposit_Counter_ID", aB)] | |
393 | 390 | } | |
394 | 391 | ||
395 | 392 | ||
396 | 393 | ||
397 | 394 | @Callable(o) | |
398 | 395 | func WithdrawUserFunds (s,p) = { | |
399 | 396 | let z = toBase58String(o.caller.bytes) | |
400 | - | let | |
401 | - | let D = (( | |
402 | - | let | |
397 | + | let aC = getIntegerValue(((d + "_") + s)) | |
398 | + | let D = ((aC - p) - j) | |
399 | + | let aD = 10000000 | |
403 | 400 | if ((o.caller != h)) | |
404 | 401 | then throw((("This Address is not Authorized. Only " + toString(h)) + " is Authorized Address to Sign it.")) | |
405 | 402 | else if ((n == 1)) | |
406 | 403 | then throw("Contract Status is Currently Shutdown. Please Sign the Function Initiate_Contract_Shutdown.") | |
407 | - | else if (( | |
408 | - | then throw((("Minimum Withdraw Amount is " + toString( | |
404 | + | else if ((aD > p)) | |
405 | + | then throw((("Minimum Withdraw Amount is " + toString(aD)) + "/10^8] WAVES.")) | |
409 | 406 | else if ((0 > D)) | |
410 | 407 | then throw((("Placed Withdraw Amount is going in negative State of " + toString(D)) + "/10^8] WAVES.")) | |
411 | - | else [IntegerEntry("Previous_Balance", | |
408 | + | else [IntegerEntry("Previous_Balance", aC), IntegerEntry("Network_Fee_To_Withdraw", j), IntegerEntry(((d + "_") + s), D), ScriptTransfer(h, j, unit), ScriptTransfer(addressFromStringValue(s), p, unit)] | |
412 | 409 | } | |
413 | 410 | ||
414 | 411 | ||
415 | 412 | ||
416 | 413 | @Callable(o) | |
417 | - | func BlackListAddress ( | |
418 | - | let A = getString(this, ("addr_BLACKLISTED_" + | |
419 | - | let | |
420 | - | let | |
421 | - | if ($isInstanceOf( | |
414 | + | func BlackListAddress (aE) = { | |
415 | + | let A = getString(this, ("addr_BLACKLISTED_" + aE)) | |
416 | + | let aF = { | |
417 | + | let M = getInteger(this, "Total_Black_Listed_Address") | |
418 | + | if ($isInstanceOf(M, "Int")) | |
422 | 419 | then { | |
423 | - | let | |
424 | - | | |
420 | + | let N = M | |
421 | + | N | |
425 | 422 | } | |
426 | 423 | else 0 | |
427 | 424 | } | |
428 | - | let | |
425 | + | let aG = (aF + 1) | |
429 | 426 | if ((c > lastBlock.timestamp)) | |
430 | 427 | then throw((e + toString(c))) | |
431 | 428 | else if ((o.caller != h)) | |
432 | 429 | then throw((("This Address is not Authorized. Only " + toString(h)) + " is Authorized Address to Sign it.")) | |
433 | 430 | else if ((n == 1)) | |
434 | 431 | then throw("Contract Status is Currently Shutdown. Please Sign the Function Initiate_Contract_Shutdown.") | |
435 | 432 | else if ((A == "Yes")) | |
436 | 433 | then throw("Address is already available in Blacklist.") | |
437 | - | else [StringEntry(("addr_BLACKLISTED_" + | |
434 | + | else [StringEntry(("addr_BLACKLISTED_" + aE), "Yes"), IntegerEntry("Total_Black_Listed_Address", aG)] | |
438 | 435 | } | |
439 | 436 | ||
440 | 437 | ||
441 | 438 | ||
442 | 439 | @Callable(o) | |
443 | - | func DeleteBlackListAddress ( | |
444 | - | let A = getString(this, ("addr_BLACKLISTED_" + | |
445 | - | let | |
446 | - | let | |
447 | - | if ($isInstanceOf( | |
440 | + | func DeleteBlackListAddress (aE) = { | |
441 | + | let A = getString(this, ("addr_BLACKLISTED_" + aE)) | |
442 | + | let aF = { | |
443 | + | let M = getInteger(this, "Total_Black_Listed_Address") | |
444 | + | if ($isInstanceOf(M, "Int")) | |
448 | 445 | then { | |
449 | - | let | |
450 | - | | |
446 | + | let N = M | |
447 | + | N | |
451 | 448 | } | |
452 | 449 | else 0 | |
453 | 450 | } | |
454 | - | let | |
451 | + | let aG = (aF - 1) | |
455 | 452 | if ((c > lastBlock.timestamp)) | |
456 | 453 | then throw(("Product Launch Timestamp is set at " + toString(c))) | |
457 | 454 | else if ((o.caller != h)) | |
458 | 455 | then throw((("This Address is not Authorized. Only " + toString(h)) + " is Authorized Address to Sign it.")) | |
459 | 456 | else if ((n == 1)) | |
460 | 457 | then throw("Contract Status is Currently Shutdown. Please Sign the Function Initiate_Contract_Shutdown.") | |
461 | 458 | else if ((A == "Yes")) | |
462 | - | then [DeleteEntry(("addr_BLACKLISTED_" + | |
459 | + | then [DeleteEntry(("addr_BLACKLISTED_" + aE)), IntegerEntry("Total_Black_Listed_Address", aG)] | |
463 | 460 | else throw("Address is not available in Blacklist.") | |
464 | 461 | } | |
465 | 462 | ||
466 | 463 | ||
467 | 464 | ||
468 | 465 | @Callable(o) | |
469 | 466 | func Initiate_Contract_Shutdown () = { | |
470 | - | let | |
471 | - | let | |
472 | - | if ($isInstanceOf( | |
467 | + | let aH = { | |
468 | + | let M = getInteger(this, "Shutdown_Status") | |
469 | + | if ($isInstanceOf(M, "Int")) | |
473 | 470 | then { | |
474 | - | let | |
475 | - | | |
471 | + | let N = M | |
472 | + | N | |
476 | 473 | } | |
477 | 474 | else 0 | |
478 | 475 | } | |
479 | 476 | if ((o.caller != h)) | |
480 | 477 | then throw((("This Address is not Authorized. Only " + toString(h)) + " is Authorized Address to Sign it.")) | |
481 | - | else if (( | |
478 | + | else if ((aH == 0)) | |
482 | 479 | then [IntegerEntry("Shutdown_Status", 1)] | |
483 | 480 | else [IntegerEntry("Shutdown_Status", 0)] | |
484 | 481 | } | |
485 | 482 | ||
486 | 483 | ||
487 | 484 | ||
488 | 485 | @Callable(o) | |
489 | - | func Del ( | |
486 | + | func Del (aI) = [DeleteEntry(aI)] | |
490 | 487 | ||
491 | 488 | ||
492 | - | @Verifier( | |
493 | - | func | |
494 | - | let | |
495 | - | if (if ($isInstanceOf( | |
489 | + | @Verifier(aJ) | |
490 | + | func aK () = { | |
491 | + | let M = aJ | |
492 | + | if (if ($isInstanceOf(M, "Order")) | |
496 | 493 | then true | |
497 | - | else if ($isInstanceOf( | |
494 | + | else if ($isInstanceOf(M, "ExchangeTransaction")) | |
498 | 495 | then true | |
499 | - | else if ($isInstanceOf( | |
496 | + | else if ($isInstanceOf(M, "MassTransferTransaction")) | |
500 | 497 | then true | |
501 | - | else $isInstanceOf( | |
498 | + | else $isInstanceOf(M, "TransferTransaction")) | |
502 | 499 | then { | |
503 | - | let | |
500 | + | let aL = M | |
504 | 501 | false | |
505 | 502 | } | |
506 | - | else sigVerify( | |
503 | + | else sigVerify(aJ.bodyBytes, aJ.proofs[0], aJ.senderPublicKey) | |
507 | 504 | } | |
508 | 505 |
github/deemru/w8io/169f3d6 202.04 ms ◑