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