tx · B1dvJWQPNjDyvFL2t9AXEDSEBYVF4E6di8LZTVBrynLR 3NC9boevS259eTsMAkFAxCPorzK4Z9bpWje: -0.01900000 Waves 2023.01.31 21:13 [2429464] smart account 3NC9boevS259eTsMAkFAxCPorzK4Z9bpWje > SELF 0.00000000 Waves
{ "type": 13, "id": "B1dvJWQPNjDyvFL2t9AXEDSEBYVF4E6di8LZTVBrynLR", "fee": 1900000, "feeAssetId": null, "timestamp": 1675188843124, "version": 2, "chainId": 84, "sender": "3NC9boevS259eTsMAkFAxCPorzK4Z9bpWje", "senderPublicKey": "515tSAyMUbAb8kKjcpGDpqALGfCgcwfWmWKKkcBKTcGB", "proofs": [ "3m5qwrj13VAzXFZjwtrbThpbxYz1AQuGg8cEUixwHFzNX1WcZBoiBuR1qP3rymZjr58PYm2hZbaT4wkKGqMwrCzE" ], "script": "base64:AAIFAAAAAAAAACEIAhIAEgASAwoBCBIDCgEIEgMKAQESABIDCgEIEgMKAQgAAAADAAAAABREYXBwX0FkZHJlc3NfcHViX2tleQEAAAAgq4kJ/Yx/hxwE0cwMFuJmegviyQmGySeZGqn46Eb83C8AAAAAGW9yYWNsZV9jb250cm9sbGVyX2FkZHJlc3MJAQAAABRhZGRyZXNzRnJvbVB1YmxpY0tleQAAAAEFAAAAFERhcHBfQWRkcmVzc19wdWJfa2V5AAAAAAtVU0RUQXNzZXRJRAEAAAAAAAAACAAAAAFpAQAAAA9wbGFjZW9wdGlvbkNhbGwAAAAABAAAAA1jYWxsZXJhZGRyZXNzCQACWAAAAAEICAUAAAABaQAAAAZjYWxsZXIAAAAFYnl0ZXMEAAAADWlmQmxhY2tsaXN0ZWQJAAQdAAAAAgUAAAAEdGhpcwkAASwAAAACAgAAABFhZGRyX0JMQUNLTElTVEVEXwUAAAANY2FsbGVyYWRkcmVzcwQAAAAScmVhZF9vcmFjbGVfc3RhdHVzCQEAAAARQGV4dHJOYXRpdmUoMTA1MykAAAACBQAAAAR0aGlzAgAAAA1vcmFjbGVfc3R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2VyRW50cnkAAAACAgAAABpUb3RhbF9CbGFja19MaXN0ZWRfQWRkcmVzcwUAAAAVVG90YWxCbGFja0xpc3RBZGRyZXNzBQAAAANuaWwJAAACAAAAAQIAAAAmQWRkcmVzcyBpcyBub3QgYXZhaWxhYmxlIGluIEJsYWNrbGlzdC4AAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAACQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tlebSYzFo=", "height": 2429464, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: B6eZquZXJPeFD7ZzkudGkJGUV6hStMzCxsFt5pJgaXuG Next: 6ToSAxr38wKTgKLwKBE1bhaTaA761LSFbr8BgYeNbXm7 Diff:
Old | New | Differences | |
---|---|---|---|
21 | 21 | let n = 1 | |
22 | 22 | let o = (h + n) | |
23 | 23 | let p = { | |
24 | - | let q = getInteger(this, "Total_ | |
24 | + | let q = getInteger(this, "Total_Option_Orders") | |
25 | 25 | if ($isInstanceOf(q, "Int")) | |
26 | 26 | then { | |
27 | 27 | let r = q | |
31 | 31 | } | |
32 | 32 | let s = (p + 1) | |
33 | 33 | let t = { | |
34 | - | let q = getInteger(this, | |
34 | + | let q = getInteger(this, "Total_Calls") | |
35 | 35 | if ($isInstanceOf(q, "Int")) | |
36 | 36 | then { | |
37 | 37 | let r = q | |
41 | 41 | } | |
42 | 42 | let u = (t + 1) | |
43 | 43 | let v = { | |
44 | - | let q = getInteger(this, ( | |
44 | + | let q = getInteger(this, ("Total_Calls_" + toString(h))) | |
45 | 45 | if ($isInstanceOf(q, "Int")) | |
46 | 46 | then { | |
47 | 47 | let r = q | |
51 | 51 | } | |
52 | 52 | let w = (v + 1) | |
53 | 53 | let x = { | |
54 | + | let q = getInteger(this, (e + "_Total_Calls")) | |
55 | + | if ($isInstanceOf(q, "Int")) | |
56 | + | then { | |
57 | + | let r = q | |
58 | + | r | |
59 | + | } | |
60 | + | else 0 | |
61 | + | } | |
62 | + | let y = (x + 1) | |
63 | + | let z = { | |
54 | 64 | let q = getInteger(this, ((e + "_Total_Calls_") + toString(h))) | |
55 | 65 | if ($isInstanceOf(q, "Int")) | |
56 | 66 | then { | |
59 | 69 | } | |
60 | 70 | else 0 | |
61 | 71 | } | |
62 | - | let | |
72 | + | let A = (z + 1) | |
63 | 73 | if ((m > 2)) | |
64 | 74 | then throw("Something Wrong with Oracle or Height is not matched.") | |
65 | 75 | else if ((g == "Close")) | |
66 | 76 | then throw("Oracle is closed. Wait Until Oracle is Turned On.") | |
67 | 77 | else if ((f == "Yes")) | |
68 | 78 | then throw((e + " Address is Blacklisted. Please contact Admin to Whitelist it.")) | |
69 | - | else [StringEntry(((("Call_" + e) + "_") + toString( | |
79 | + | else [StringEntry(((("Call_" + e) + "_") + toString(y)), k), StringEntry(((("Call_Start_End_" + e) + "_") + toString(y)), ((toString(h) + "_") + toString(o))), IntegerEntry("Total_Calls", u), IntegerEntry(("Total_Calls_" + toString(h)), w), IntegerEntry((e + "_Total_Calls"), y), IntegerEntry(((e + "_Total_Calls_") + toString(h)), A)] | |
70 | 80 | } | |
71 | 81 | ||
72 | 82 | ||
84 | 94 | let m = (height - l) | |
85 | 95 | let n = 1 | |
86 | 96 | let o = (h + n) | |
87 | - | let | |
88 | - | let q = getInteger(this, "Total_ | |
97 | + | let p = { | |
98 | + | let q = getInteger(this, "Total_Option_Orders") | |
89 | 99 | if ($isInstanceOf(q, "Int")) | |
90 | 100 | then { | |
91 | 101 | let r = q | |
93 | 103 | } | |
94 | 104 | else 0 | |
95 | 105 | } | |
96 | - | let | |
106 | + | let s = (p + 1) | |
97 | 107 | let B = { | |
98 | - | let q = getInteger(this, | |
108 | + | let q = getInteger(this, "Total_Puts") | |
99 | 109 | if ($isInstanceOf(q, "Int")) | |
100 | 110 | then { | |
101 | 111 | let r = q | |
105 | 115 | } | |
106 | 116 | let C = (B + 1) | |
107 | 117 | let D = { | |
108 | - | let q = getInteger(this, ( | |
118 | + | let q = getInteger(this, ("Total_Puts_" + toString(h))) | |
109 | 119 | if ($isInstanceOf(q, "Int")) | |
110 | 120 | then { | |
111 | 121 | let r = q | |
115 | 125 | } | |
116 | 126 | let E = (D + 1) | |
117 | 127 | let F = { | |
128 | + | let q = getInteger(this, (e + "_Total_Puts")) | |
129 | + | if ($isInstanceOf(q, "Int")) | |
130 | + | then { | |
131 | + | let r = q | |
132 | + | r | |
133 | + | } | |
134 | + | else 0 | |
135 | + | } | |
136 | + | let G = (F + 1) | |
137 | + | let H = { | |
118 | 138 | let q = getInteger(this, ((e + "_Total_Puts_") + toString(h))) | |
119 | 139 | if ($isInstanceOf(q, "Int")) | |
120 | 140 | then { | |
123 | 143 | } | |
124 | 144 | else 0 | |
125 | 145 | } | |
126 | - | let | |
146 | + | let I = (H + 1) | |
127 | 147 | if ((m > 2)) | |
128 | 148 | then throw("Something Wrong with Oracle or Height is not matched.") | |
129 | 149 | else if ((g == "Close")) | |
130 | 150 | then throw("Oracle is closed. Wait Until Oracle is Turned On.") | |
131 | 151 | else if ((f == "Yes")) | |
132 | 152 | then throw((e + " Address is Blacklisted. Please contact Admin to Whitelist it.")) | |
133 | - | else [StringEntry(((("Put_" + e) + "_") + toString( | |
153 | + | else [StringEntry(((("Put_" + e) + "_") + toString(G)), k), StringEntry(((("Put_Start_End_" + e) + "_") + toString(G)), ((toString(h) + "_") + toString(o))), IntegerEntry("Total_Puts", C), IntegerEntry(("Total_Puts_" + toString(h)), E), IntegerEntry((e + "_Total_Puts"), G), IntegerEntry(((e + "_Total_Puts_") + toString(h)), I)] | |
134 | 154 | } | |
135 | 155 | ||
136 | 156 | ||
137 | 157 | ||
138 | 158 | @Callable(d) | |
139 | - | func ClaimCall ( | |
159 | + | func ClaimCall (J) = { | |
140 | 160 | let e = toBase58String(d.caller.bytes) | |
141 | - | let | |
161 | + | let K = if ((size(d.payments) == 1)) | |
142 | 162 | then d.payments[0] | |
143 | 163 | else throw("No payment attached, Please Attach Tokens in payment[1].") | |
144 | - | let | |
145 | - | let | |
146 | - | let | |
147 | - | let | |
148 | - | let | |
149 | - | let | |
150 | - | let | |
151 | - | let | |
152 | - | let | |
153 | - | let | |
154 | - | let | |
155 | - | let | |
156 | - | let | |
164 | + | let L = getStringValue(this, ((("Call_" + e) + "_") + J)) | |
165 | + | let M = getStringValue(this, ((("Call_Start_End_" + e) + "_") + J)) | |
166 | + | let N = split(M, "_") | |
167 | + | let O = N[0] | |
168 | + | let P = N[1] | |
169 | + | let Q = getStringValue(this, ("1m_btc_" + O)) | |
170 | + | let R = split(Q, "_") | |
171 | + | let S = R[0] | |
172 | + | let T = getStringValue(this, ("1m_btc_" + P)) | |
173 | + | let U = split(T, "_") | |
174 | + | let V = U[0] | |
175 | + | let W = (parseIntValue(V) - parseIntValue(S)) | |
176 | + | let X = { | |
157 | 177 | let q = getInteger(this, "Total_Option_Call_Wins") | |
158 | 178 | if ($isInstanceOf(q, "Int")) | |
159 | 179 | then { | |
162 | 182 | } | |
163 | 183 | else 0 | |
164 | 184 | } | |
165 | - | let | |
166 | - | let | |
185 | + | let Y = (X + 1) | |
186 | + | let Z = { | |
167 | 187 | let q = getInteger(this, "Total_Option_Call_Lose") | |
168 | 188 | if ($isInstanceOf(q, "Int")) | |
169 | 189 | then { | |
172 | 192 | } | |
173 | 193 | else 0 | |
174 | 194 | } | |
175 | - | let | |
176 | - | if ((0 > | |
177 | - | then [IntegerEntry("Diff", | |
178 | - | else [IntegerEntry("Diff", | |
195 | + | let aa = (Z + 1) | |
196 | + | if ((0 > W)) | |
197 | + | then [IntegerEntry("Diff", W), IntegerEntry("Total_Option_Call_Lose", aa), StringEntry(((((((((((("c_" + e) + "_") + J) + "_") + O) + "_") + P) + "_") + S) + "_") + V), "lose"), StringEntry("message", "You lose!"), DeleteEntry(((("Call_" + e) + "_") + J)), DeleteEntry(((("Call_Start_End_" + e) + "_") + J))] | |
198 | + | else [IntegerEntry("Diff", W), IntegerEntry("Total_Option_Call_Wins", Y), StringEntry(((((((((((("c_" + e) + "_") + J) + "_") + O) + "_") + P) + "_") + S) + "_") + V), "Win"), StringEntry("message", "You Win!"), DeleteEntry(((("Call_" + e) + "_") + J)), DeleteEntry(((("Call_Start_End_" + e) + "_") + J))] | |
179 | 199 | } | |
180 | 200 | ||
181 | 201 | ||
182 | 202 | ||
183 | 203 | @Callable(d) | |
184 | - | func ClaimPut ( | |
204 | + | func ClaimPut (ab) = { | |
185 | 205 | let e = toBase58String(d.caller.bytes) | |
186 | - | let | |
206 | + | let K = if ((size(d.payments) == 1)) | |
187 | 207 | then d.payments[0] | |
188 | 208 | else throw("No payment attached, Please Attach Tokens in payment[1].") | |
189 | - | let | |
190 | - | let | |
191 | - | let | |
192 | - | let | |
193 | - | let | |
194 | - | let | |
195 | - | let | |
196 | - | let | |
197 | - | let | |
198 | - | let | |
199 | - | let | |
200 | - | let | |
201 | - | let | |
209 | + | let ac = getStringValue(this, ((("Put_" + e) + "_") + ab)) | |
210 | + | let ad = getStringValue(this, ((("Put_Start_End_" + e) + "_") + ab)) | |
211 | + | let N = split(ad, "_") | |
212 | + | let O = N[0] | |
213 | + | let P = N[1] | |
214 | + | let Q = getStringValue(this, ("1m_btc_" + O)) | |
215 | + | let R = split(Q, "_") | |
216 | + | let S = R[0] | |
217 | + | let T = getStringValue(this, ("1m_btc_" + P)) | |
218 | + | let U = split(T, "_") | |
219 | + | let V = U[0] | |
220 | + | let W = (parseIntValue(V) - parseIntValue(S)) | |
221 | + | let ae = { | |
202 | 222 | let q = getInteger(this, "Total_Option_Put_Wins") | |
203 | 223 | if ($isInstanceOf(q, "Int")) | |
204 | 224 | then { | |
207 | 227 | } | |
208 | 228 | else 0 | |
209 | 229 | } | |
210 | - | let | |
211 | - | let | |
230 | + | let af = (ae + 1) | |
231 | + | let ag = { | |
212 | 232 | let q = getInteger(this, "Total_Option_Put_Lose") | |
213 | 233 | if ($isInstanceOf(q, "Int")) | |
214 | 234 | then { | |
217 | 237 | } | |
218 | 238 | else 0 | |
219 | 239 | } | |
220 | - | let | |
221 | - | if (( | |
222 | - | then [IntegerEntry("Diff", | |
223 | - | else [IntegerEntry("Diff", | |
240 | + | let ah = (ag + 1) | |
241 | + | if ((W > 0)) | |
242 | + | then [IntegerEntry("Diff", W), IntegerEntry("Total_Option_Put_Lose", ah), StringEntry(((((((((((("p_" + e) + "_") + ab) + "_") + O) + "_") + P) + "_") + S) + "_") + V), "lose"), StringEntry("message", "You lose!"), DeleteEntry(((("Put_" + e) + "_") + ab)), DeleteEntry(((("Put_Start_End_" + e) + "_") + ab))] | |
243 | + | else [IntegerEntry("Diff", W), IntegerEntry("Total_Option_Put_Wins", af), StringEntry(((((((((((("p_" + e) + "_") + ab) + "_") + O) + "_") + P) + "_") + S) + "_") + V), "Win"), StringEntry("message", "You Win!"), DeleteEntry(((("Put_" + e) + "_") + ab)), DeleteEntry(((("Put_Start_End_" + e) + "_") + ab))] | |
224 | 244 | } | |
225 | 245 | ||
226 | 246 | ||
227 | 247 | ||
228 | 248 | @Callable(d) | |
229 | - | func calldata ( | |
230 | - | let i = getStringValue(this, ("1m_btc_" + toString( | |
249 | + | func calldata (ai) = { | |
250 | + | let i = getStringValue(this, ("1m_btc_" + toString(ai))) | |
231 | 251 | let j = split(i, "_") | |
232 | 252 | let k = j[0] | |
233 | - | let | |
234 | - | let | |
235 | - | let | |
253 | + | let aj = j[1] | |
254 | + | let ak = j[2] | |
255 | + | let al = j[3] | |
236 | 256 | [StringEntry("price", j[0]), StringEntry("time", j[1]), StringEntry("blockheight", j[2]), StringEntry("div", j[3])] | |
237 | 257 | } | |
238 | 258 | ||
249 | 269 | ||
250 | 270 | ||
251 | 271 | @Callable(d) | |
252 | - | func BlackListAddress ( | |
253 | - | let f = getString(this, ("addr_BLACKLISTED_" + | |
254 | - | let | |
272 | + | func BlackListAddress (am) = { | |
273 | + | let f = getString(this, ("addr_BLACKLISTED_" + am)) | |
274 | + | let an = { | |
255 | 275 | let q = getInteger(this, "Total_Black_Listed_Address") | |
256 | 276 | if ($isInstanceOf(q, "Int")) | |
257 | 277 | then { | |
260 | 280 | } | |
261 | 281 | else 0 | |
262 | 282 | } | |
263 | - | let | |
283 | + | let ao = (an + 1) | |
264 | 284 | if ((d.caller != b)) | |
265 | 285 | then throw((("This Address is not Authorized. Only " + toString(b)) + " is Authorized Address to Sign it.")) | |
266 | 286 | else if ((f == "Yes")) | |
267 | 287 | then throw("Address is already available in Blacklist.") | |
268 | - | else [StringEntry(("addr_BLACKLISTED_" + | |
288 | + | else [StringEntry(("addr_BLACKLISTED_" + am), "Yes"), IntegerEntry("Total_Black_Listed_Address", ao)] | |
269 | 289 | } | |
270 | 290 | ||
271 | 291 | ||
272 | 292 | ||
273 | 293 | @Callable(d) | |
274 | - | func DeleteBlackListAddress ( | |
275 | - | let f = getString(this, ("addr_BLACKLISTED_" + | |
276 | - | let | |
294 | + | func DeleteBlackListAddress (am) = { | |
295 | + | let f = getString(this, ("addr_BLACKLISTED_" + am)) | |
296 | + | let an = { | |
277 | 297 | let q = getInteger(this, "Total_Black_Listed_Address") | |
278 | 298 | if ($isInstanceOf(q, "Int")) | |
279 | 299 | then { | |
282 | 302 | } | |
283 | 303 | else 0 | |
284 | 304 | } | |
285 | - | let | |
305 | + | let ao = (an - 1) | |
286 | 306 | if ((d.caller != b)) | |
287 | 307 | then throw((("This Address is not Authorized. Only " + toString(b)) + " is Authorized Address to Sign it.")) | |
288 | 308 | else if ((f == "Yes")) | |
289 | - | then [DeleteEntry(("addr_BLACKLISTED_" + | |
309 | + | then [DeleteEntry(("addr_BLACKLISTED_" + am)), IntegerEntry("Total_Black_Listed_Address", ao)] | |
290 | 310 | else throw("Address is not available in Blacklist.") | |
291 | 311 | } | |
292 | 312 | ||
293 | 313 | ||
294 | - | @Verifier( | |
295 | - | func | |
314 | + | @Verifier(ap) | |
315 | + | func aq () = sigVerify(ap.bodyBytes, ap.proofs[0], ap.senderPublicKey) | |
296 | 316 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = base58'CYbv2nupcWmnVFixN6Q2sxd9ChbDsq1KqXQ66VjsZBJE' | |
5 | 5 | ||
6 | 6 | let b = addressFromPublicKey(a) | |
7 | 7 | ||
8 | 8 | let c = base58'' | |
9 | 9 | ||
10 | 10 | @Callable(d) | |
11 | 11 | func placeoptionCall () = { | |
12 | 12 | let e = toBase58String(d.caller.bytes) | |
13 | 13 | let f = getString(this, ("addr_BLACKLISTED_" + e)) | |
14 | 14 | let g = getStringValue(this, "oracle_status") | |
15 | 15 | let h = getIntegerValue(this, "1m_contract_id") | |
16 | 16 | let i = getStringValue(this, ("1m_btc_" + toString(h))) | |
17 | 17 | let j = split(i, "_") | |
18 | 18 | let k = j[0] | |
19 | 19 | let l = parseIntValue(j[2]) | |
20 | 20 | let m = (height - l) | |
21 | 21 | let n = 1 | |
22 | 22 | let o = (h + n) | |
23 | 23 | let p = { | |
24 | - | let q = getInteger(this, "Total_ | |
24 | + | let q = getInteger(this, "Total_Option_Orders") | |
25 | 25 | if ($isInstanceOf(q, "Int")) | |
26 | 26 | then { | |
27 | 27 | let r = q | |
28 | 28 | r | |
29 | 29 | } | |
30 | 30 | else 0 | |
31 | 31 | } | |
32 | 32 | let s = (p + 1) | |
33 | 33 | let t = { | |
34 | - | let q = getInteger(this, | |
34 | + | let q = getInteger(this, "Total_Calls") | |
35 | 35 | if ($isInstanceOf(q, "Int")) | |
36 | 36 | then { | |
37 | 37 | let r = q | |
38 | 38 | r | |
39 | 39 | } | |
40 | 40 | else 0 | |
41 | 41 | } | |
42 | 42 | let u = (t + 1) | |
43 | 43 | let v = { | |
44 | - | let q = getInteger(this, ( | |
44 | + | let q = getInteger(this, ("Total_Calls_" + toString(h))) | |
45 | 45 | if ($isInstanceOf(q, "Int")) | |
46 | 46 | then { | |
47 | 47 | let r = q | |
48 | 48 | r | |
49 | 49 | } | |
50 | 50 | else 0 | |
51 | 51 | } | |
52 | 52 | let w = (v + 1) | |
53 | 53 | let x = { | |
54 | + | let q = getInteger(this, (e + "_Total_Calls")) | |
55 | + | if ($isInstanceOf(q, "Int")) | |
56 | + | then { | |
57 | + | let r = q | |
58 | + | r | |
59 | + | } | |
60 | + | else 0 | |
61 | + | } | |
62 | + | let y = (x + 1) | |
63 | + | let z = { | |
54 | 64 | let q = getInteger(this, ((e + "_Total_Calls_") + toString(h))) | |
55 | 65 | if ($isInstanceOf(q, "Int")) | |
56 | 66 | then { | |
57 | 67 | let r = q | |
58 | 68 | r | |
59 | 69 | } | |
60 | 70 | else 0 | |
61 | 71 | } | |
62 | - | let | |
72 | + | let A = (z + 1) | |
63 | 73 | if ((m > 2)) | |
64 | 74 | then throw("Something Wrong with Oracle or Height is not matched.") | |
65 | 75 | else if ((g == "Close")) | |
66 | 76 | then throw("Oracle is closed. Wait Until Oracle is Turned On.") | |
67 | 77 | else if ((f == "Yes")) | |
68 | 78 | then throw((e + " Address is Blacklisted. Please contact Admin to Whitelist it.")) | |
69 | - | else [StringEntry(((("Call_" + e) + "_") + toString( | |
79 | + | else [StringEntry(((("Call_" + e) + "_") + toString(y)), k), StringEntry(((("Call_Start_End_" + e) + "_") + toString(y)), ((toString(h) + "_") + toString(o))), IntegerEntry("Total_Calls", u), IntegerEntry(("Total_Calls_" + toString(h)), w), IntegerEntry((e + "_Total_Calls"), y), IntegerEntry(((e + "_Total_Calls_") + toString(h)), A)] | |
70 | 80 | } | |
71 | 81 | ||
72 | 82 | ||
73 | 83 | ||
74 | 84 | @Callable(d) | |
75 | 85 | func placeoptionPut () = { | |
76 | 86 | let e = toBase58String(d.caller.bytes) | |
77 | 87 | let f = getString(this, ("addr_BLACKLISTED_" + e)) | |
78 | 88 | let g = getStringValue(this, "oracle_status") | |
79 | 89 | let h = getIntegerValue(this, "1m_contract_id") | |
80 | 90 | let i = getStringValue(this, ("1m_btc_" + toString(h))) | |
81 | 91 | let j = split(i, "_") | |
82 | 92 | let k = j[0] | |
83 | 93 | let l = parseIntValue(j[2]) | |
84 | 94 | let m = (height - l) | |
85 | 95 | let n = 1 | |
86 | 96 | let o = (h + n) | |
87 | - | let | |
88 | - | let q = getInteger(this, "Total_ | |
97 | + | let p = { | |
98 | + | let q = getInteger(this, "Total_Option_Orders") | |
89 | 99 | if ($isInstanceOf(q, "Int")) | |
90 | 100 | then { | |
91 | 101 | let r = q | |
92 | 102 | r | |
93 | 103 | } | |
94 | 104 | else 0 | |
95 | 105 | } | |
96 | - | let | |
106 | + | let s = (p + 1) | |
97 | 107 | let B = { | |
98 | - | let q = getInteger(this, | |
108 | + | let q = getInteger(this, "Total_Puts") | |
99 | 109 | if ($isInstanceOf(q, "Int")) | |
100 | 110 | then { | |
101 | 111 | let r = q | |
102 | 112 | r | |
103 | 113 | } | |
104 | 114 | else 0 | |
105 | 115 | } | |
106 | 116 | let C = (B + 1) | |
107 | 117 | let D = { | |
108 | - | let q = getInteger(this, ( | |
118 | + | let q = getInteger(this, ("Total_Puts_" + toString(h))) | |
109 | 119 | if ($isInstanceOf(q, "Int")) | |
110 | 120 | then { | |
111 | 121 | let r = q | |
112 | 122 | r | |
113 | 123 | } | |
114 | 124 | else 0 | |
115 | 125 | } | |
116 | 126 | let E = (D + 1) | |
117 | 127 | let F = { | |
128 | + | let q = getInteger(this, (e + "_Total_Puts")) | |
129 | + | if ($isInstanceOf(q, "Int")) | |
130 | + | then { | |
131 | + | let r = q | |
132 | + | r | |
133 | + | } | |
134 | + | else 0 | |
135 | + | } | |
136 | + | let G = (F + 1) | |
137 | + | let H = { | |
118 | 138 | let q = getInteger(this, ((e + "_Total_Puts_") + toString(h))) | |
119 | 139 | if ($isInstanceOf(q, "Int")) | |
120 | 140 | then { | |
121 | 141 | let r = q | |
122 | 142 | r | |
123 | 143 | } | |
124 | 144 | else 0 | |
125 | 145 | } | |
126 | - | let | |
146 | + | let I = (H + 1) | |
127 | 147 | if ((m > 2)) | |
128 | 148 | then throw("Something Wrong with Oracle or Height is not matched.") | |
129 | 149 | else if ((g == "Close")) | |
130 | 150 | then throw("Oracle is closed. Wait Until Oracle is Turned On.") | |
131 | 151 | else if ((f == "Yes")) | |
132 | 152 | then throw((e + " Address is Blacklisted. Please contact Admin to Whitelist it.")) | |
133 | - | else [StringEntry(((("Put_" + e) + "_") + toString( | |
153 | + | else [StringEntry(((("Put_" + e) + "_") + toString(G)), k), StringEntry(((("Put_Start_End_" + e) + "_") + toString(G)), ((toString(h) + "_") + toString(o))), IntegerEntry("Total_Puts", C), IntegerEntry(("Total_Puts_" + toString(h)), E), IntegerEntry((e + "_Total_Puts"), G), IntegerEntry(((e + "_Total_Puts_") + toString(h)), I)] | |
134 | 154 | } | |
135 | 155 | ||
136 | 156 | ||
137 | 157 | ||
138 | 158 | @Callable(d) | |
139 | - | func ClaimCall ( | |
159 | + | func ClaimCall (J) = { | |
140 | 160 | let e = toBase58String(d.caller.bytes) | |
141 | - | let | |
161 | + | let K = if ((size(d.payments) == 1)) | |
142 | 162 | then d.payments[0] | |
143 | 163 | else throw("No payment attached, Please Attach Tokens in payment[1].") | |
144 | - | let | |
145 | - | let | |
146 | - | let | |
147 | - | let | |
148 | - | let | |
149 | - | let | |
150 | - | let | |
151 | - | let | |
152 | - | let | |
153 | - | let | |
154 | - | let | |
155 | - | let | |
156 | - | let | |
164 | + | let L = getStringValue(this, ((("Call_" + e) + "_") + J)) | |
165 | + | let M = getStringValue(this, ((("Call_Start_End_" + e) + "_") + J)) | |
166 | + | let N = split(M, "_") | |
167 | + | let O = N[0] | |
168 | + | let P = N[1] | |
169 | + | let Q = getStringValue(this, ("1m_btc_" + O)) | |
170 | + | let R = split(Q, "_") | |
171 | + | let S = R[0] | |
172 | + | let T = getStringValue(this, ("1m_btc_" + P)) | |
173 | + | let U = split(T, "_") | |
174 | + | let V = U[0] | |
175 | + | let W = (parseIntValue(V) - parseIntValue(S)) | |
176 | + | let X = { | |
157 | 177 | let q = getInteger(this, "Total_Option_Call_Wins") | |
158 | 178 | if ($isInstanceOf(q, "Int")) | |
159 | 179 | then { | |
160 | 180 | let r = q | |
161 | 181 | r | |
162 | 182 | } | |
163 | 183 | else 0 | |
164 | 184 | } | |
165 | - | let | |
166 | - | let | |
185 | + | let Y = (X + 1) | |
186 | + | let Z = { | |
167 | 187 | let q = getInteger(this, "Total_Option_Call_Lose") | |
168 | 188 | if ($isInstanceOf(q, "Int")) | |
169 | 189 | then { | |
170 | 190 | let r = q | |
171 | 191 | r | |
172 | 192 | } | |
173 | 193 | else 0 | |
174 | 194 | } | |
175 | - | let | |
176 | - | if ((0 > | |
177 | - | then [IntegerEntry("Diff", | |
178 | - | else [IntegerEntry("Diff", | |
195 | + | let aa = (Z + 1) | |
196 | + | if ((0 > W)) | |
197 | + | then [IntegerEntry("Diff", W), IntegerEntry("Total_Option_Call_Lose", aa), StringEntry(((((((((((("c_" + e) + "_") + J) + "_") + O) + "_") + P) + "_") + S) + "_") + V), "lose"), StringEntry("message", "You lose!"), DeleteEntry(((("Call_" + e) + "_") + J)), DeleteEntry(((("Call_Start_End_" + e) + "_") + J))] | |
198 | + | else [IntegerEntry("Diff", W), IntegerEntry("Total_Option_Call_Wins", Y), StringEntry(((((((((((("c_" + e) + "_") + J) + "_") + O) + "_") + P) + "_") + S) + "_") + V), "Win"), StringEntry("message", "You Win!"), DeleteEntry(((("Call_" + e) + "_") + J)), DeleteEntry(((("Call_Start_End_" + e) + "_") + J))] | |
179 | 199 | } | |
180 | 200 | ||
181 | 201 | ||
182 | 202 | ||
183 | 203 | @Callable(d) | |
184 | - | func ClaimPut ( | |
204 | + | func ClaimPut (ab) = { | |
185 | 205 | let e = toBase58String(d.caller.bytes) | |
186 | - | let | |
206 | + | let K = if ((size(d.payments) == 1)) | |
187 | 207 | then d.payments[0] | |
188 | 208 | else throw("No payment attached, Please Attach Tokens in payment[1].") | |
189 | - | let | |
190 | - | let | |
191 | - | let | |
192 | - | let | |
193 | - | let | |
194 | - | let | |
195 | - | let | |
196 | - | let | |
197 | - | let | |
198 | - | let | |
199 | - | let | |
200 | - | let | |
201 | - | let | |
209 | + | let ac = getStringValue(this, ((("Put_" + e) + "_") + ab)) | |
210 | + | let ad = getStringValue(this, ((("Put_Start_End_" + e) + "_") + ab)) | |
211 | + | let N = split(ad, "_") | |
212 | + | let O = N[0] | |
213 | + | let P = N[1] | |
214 | + | let Q = getStringValue(this, ("1m_btc_" + O)) | |
215 | + | let R = split(Q, "_") | |
216 | + | let S = R[0] | |
217 | + | let T = getStringValue(this, ("1m_btc_" + P)) | |
218 | + | let U = split(T, "_") | |
219 | + | let V = U[0] | |
220 | + | let W = (parseIntValue(V) - parseIntValue(S)) | |
221 | + | let ae = { | |
202 | 222 | let q = getInteger(this, "Total_Option_Put_Wins") | |
203 | 223 | if ($isInstanceOf(q, "Int")) | |
204 | 224 | then { | |
205 | 225 | let r = q | |
206 | 226 | r | |
207 | 227 | } | |
208 | 228 | else 0 | |
209 | 229 | } | |
210 | - | let | |
211 | - | let | |
230 | + | let af = (ae + 1) | |
231 | + | let ag = { | |
212 | 232 | let q = getInteger(this, "Total_Option_Put_Lose") | |
213 | 233 | if ($isInstanceOf(q, "Int")) | |
214 | 234 | then { | |
215 | 235 | let r = q | |
216 | 236 | r | |
217 | 237 | } | |
218 | 238 | else 0 | |
219 | 239 | } | |
220 | - | let | |
221 | - | if (( | |
222 | - | then [IntegerEntry("Diff", | |
223 | - | else [IntegerEntry("Diff", | |
240 | + | let ah = (ag + 1) | |
241 | + | if ((W > 0)) | |
242 | + | then [IntegerEntry("Diff", W), IntegerEntry("Total_Option_Put_Lose", ah), StringEntry(((((((((((("p_" + e) + "_") + ab) + "_") + O) + "_") + P) + "_") + S) + "_") + V), "lose"), StringEntry("message", "You lose!"), DeleteEntry(((("Put_" + e) + "_") + ab)), DeleteEntry(((("Put_Start_End_" + e) + "_") + ab))] | |
243 | + | else [IntegerEntry("Diff", W), IntegerEntry("Total_Option_Put_Wins", af), StringEntry(((((((((((("p_" + e) + "_") + ab) + "_") + O) + "_") + P) + "_") + S) + "_") + V), "Win"), StringEntry("message", "You Win!"), DeleteEntry(((("Put_" + e) + "_") + ab)), DeleteEntry(((("Put_Start_End_" + e) + "_") + ab))] | |
224 | 244 | } | |
225 | 245 | ||
226 | 246 | ||
227 | 247 | ||
228 | 248 | @Callable(d) | |
229 | - | func calldata ( | |
230 | - | let i = getStringValue(this, ("1m_btc_" + toString( | |
249 | + | func calldata (ai) = { | |
250 | + | let i = getStringValue(this, ("1m_btc_" + toString(ai))) | |
231 | 251 | let j = split(i, "_") | |
232 | 252 | let k = j[0] | |
233 | - | let | |
234 | - | let | |
235 | - | let | |
253 | + | let aj = j[1] | |
254 | + | let ak = j[2] | |
255 | + | let al = j[3] | |
236 | 256 | [StringEntry("price", j[0]), StringEntry("time", j[1]), StringEntry("blockheight", j[2]), StringEntry("div", j[3])] | |
237 | 257 | } | |
238 | 258 | ||
239 | 259 | ||
240 | 260 | ||
241 | 261 | @Callable(d) | |
242 | 262 | func OpenOracle () = { | |
243 | 263 | let e = toBase58String(d.caller.bytes) | |
244 | 264 | if ((d.caller != b)) | |
245 | 265 | then throw((("This Address is not Authorized. Only " + toString(b)) + " is Authorized Address to Sign it.")) | |
246 | 266 | else [StringEntry("oracle_status", "Open")] | |
247 | 267 | } | |
248 | 268 | ||
249 | 269 | ||
250 | 270 | ||
251 | 271 | @Callable(d) | |
252 | - | func BlackListAddress ( | |
253 | - | let f = getString(this, ("addr_BLACKLISTED_" + | |
254 | - | let | |
272 | + | func BlackListAddress (am) = { | |
273 | + | let f = getString(this, ("addr_BLACKLISTED_" + am)) | |
274 | + | let an = { | |
255 | 275 | let q = getInteger(this, "Total_Black_Listed_Address") | |
256 | 276 | if ($isInstanceOf(q, "Int")) | |
257 | 277 | then { | |
258 | 278 | let r = q | |
259 | 279 | r | |
260 | 280 | } | |
261 | 281 | else 0 | |
262 | 282 | } | |
263 | - | let | |
283 | + | let ao = (an + 1) | |
264 | 284 | if ((d.caller != b)) | |
265 | 285 | then throw((("This Address is not Authorized. Only " + toString(b)) + " is Authorized Address to Sign it.")) | |
266 | 286 | else if ((f == "Yes")) | |
267 | 287 | then throw("Address is already available in Blacklist.") | |
268 | - | else [StringEntry(("addr_BLACKLISTED_" + | |
288 | + | else [StringEntry(("addr_BLACKLISTED_" + am), "Yes"), IntegerEntry("Total_Black_Listed_Address", ao)] | |
269 | 289 | } | |
270 | 290 | ||
271 | 291 | ||
272 | 292 | ||
273 | 293 | @Callable(d) | |
274 | - | func DeleteBlackListAddress ( | |
275 | - | let f = getString(this, ("addr_BLACKLISTED_" + | |
276 | - | let | |
294 | + | func DeleteBlackListAddress (am) = { | |
295 | + | let f = getString(this, ("addr_BLACKLISTED_" + am)) | |
296 | + | let an = { | |
277 | 297 | let q = getInteger(this, "Total_Black_Listed_Address") | |
278 | 298 | if ($isInstanceOf(q, "Int")) | |
279 | 299 | then { | |
280 | 300 | let r = q | |
281 | 301 | r | |
282 | 302 | } | |
283 | 303 | else 0 | |
284 | 304 | } | |
285 | - | let | |
305 | + | let ao = (an - 1) | |
286 | 306 | if ((d.caller != b)) | |
287 | 307 | then throw((("This Address is not Authorized. Only " + toString(b)) + " is Authorized Address to Sign it.")) | |
288 | 308 | else if ((f == "Yes")) | |
289 | - | then [DeleteEntry(("addr_BLACKLISTED_" + | |
309 | + | then [DeleteEntry(("addr_BLACKLISTED_" + am)), IntegerEntry("Total_Black_Listed_Address", ao)] | |
290 | 310 | else throw("Address is not available in Blacklist.") | |
291 | 311 | } | |
292 | 312 | ||
293 | 313 | ||
294 | - | @Verifier( | |
295 | - | func | |
314 | + | @Verifier(ap) | |
315 | + | func aq () = sigVerify(ap.bodyBytes, ap.proofs[0], ap.senderPublicKey) | |
296 | 316 |
github/deemru/w8io/169f3d6 92.78 ms ◑