tx · J6b6hntFFT6GYqdB6mfyLhYmopVcL9sbeSozUvS9YQzf 3MrdV3AP4zfU77ifesNStoDZmL1Cfx13eDc: -0.05000000 Waves 2020.01.01 19:38 [834986] smart account 3MrdV3AP4zfU77ifesNStoDZmL1Cfx13eDc > SELF 0.00000000 Waves
{ "type": 13, "id": "J6b6hntFFT6GYqdB6mfyLhYmopVcL9sbeSozUvS9YQzf", "fee": 5000000, "feeAssetId": null, "timestamp": 1577896747994, "version": 1, "sender": "3MrdV3AP4zfU77ifesNStoDZmL1Cfx13eDc", "senderPublicKey": "5M79Anear5ntQk2bbDdFA2goiPXkv7Xy2UpV4n5RKRv", "proofs": [ "3Eq3Jp6Ly29jTM6GTfUSCpFjLTkxuAx9k2aeqvR6ZEAFUhkPA8GTQpghRmnvnha3FwvKhRNGCMak1gLYZNqoYLXU" ], "script": "base64:AAIDAAAAAAAAABoIARIAEgMKAQgSAwoBCBIDCgEIEgASAwoBAQAAABQAAAAADUxPQ0tFRFdCRVRLRVkCAAAAEyRXQkVUX0xPQ0tFRF9BTU9VTlQAAAAADkxPQ0tFRFJPWUFMS0VZAgAAABQkUk9ZQUxfTE9DS0VSX0FNT1VOVAAAAAAQV0FMTEVUQ09VTlRFUktFWQIAAAALJFdBTExFVF9OVU0AAAAAD0NPTU1VTklUWUZFRUtFWQIAAAAUJENPTU1VTklUWUZFRV9BTU9VTlQAAAAABFdCRVQBAAAAIIa0Nqh40w7M2PAXrUsuLAQfB5+6yrkWqUrXbyWtm9B2AAAAAAVST1lBTAEAAAAgQ+mKgsIl2XSclXwgUknGo5qQsraVX2JiXso4iYkMaRwAAAAAD0NPTU1VTklUWVdBTExFVAkBAAAAB0FkZHJlc3MAAAABAQAAABoBVC8R8HhOr9aTn6luIitmtR+yU9d4zzto+wAAAAAKV0JFVExPQ0tFRAAAAAAAAAAAAAAAAAALUk9ZQUxMT0NLRUQAAAAAAAAAAAEAAAAADFdCRVRXSVRIRFJBVwAAAAAAAAAAAgAAAAANUk9Z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AECAAAANFlvdSBkbyBub3QgaGF2ZSBwZXJtaXNzaW9uIHRvIHBlcmZvcm0gdGhpcyBmdW5jdGlvbi4AAAAALvCsbA==", "chainId": 84, "height": 834986, "spentComplexity": 0 } View: original | compacted Prev: JDv8NTaAuouY7c9iJ5x9qTPydF3tiBkyKuPAszhFUXzW Next: AcQwYeqECaLRMMRkLKh2aJwGwodkbBYE1BryfkEgPcjm Full:
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 3 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | - | let a = | |
4 | + | let a = "$WBET_LOCKED_AMOUNT" | |
5 | 5 | ||
6 | - | let b = "$ | |
6 | + | let b = "$ROYAL_LOCKER_AMOUNT" | |
7 | 7 | ||
8 | - | let c = "$ | |
8 | + | let c = "$WALLET_NUM" | |
9 | 9 | ||
10 | - | let d = | |
10 | + | let d = "$COMMUNITYFEE_AMOUNT" | |
11 | 11 | ||
12 | - | let e = | |
12 | + | let e = base58'A4q1mYKo11yuH9gmvDodeJoksagcyQzeFE9JtphMWddw' | |
13 | 13 | ||
14 | - | let f = | |
14 | + | let f = base58'5a6rvDEiVwvhTvTH6ce2qFwqdCt3VKaHKXEpwLXXVvyy' | |
15 | 15 | ||
16 | - | let g = Address(base58' | |
16 | + | let g = Address(base58'3MtCy2PCFPyu8A9SRNL4qUo1V17SGLHftD8') | |
17 | 17 | ||
18 | - | let h = | |
18 | + | let h = 0 | |
19 | 19 | ||
20 | 20 | let i = 1 | |
21 | 21 | ||
22 | - | let j = | |
22 | + | let j = 2 | |
23 | 23 | ||
24 | - | let k = | |
24 | + | let k = 3 | |
25 | 25 | ||
26 | - | let l = | |
26 | + | let l = 4 | |
27 | 27 | ||
28 | - | let m = "WON" | |
29 | - | ||
30 | - | let n = "LOST" | |
31 | - | ||
32 | - | let o = "UNDER" | |
33 | - | ||
34 | - | let p = "OVER" | |
35 | - | ||
36 | - | let q = (1000 * h) | |
37 | - | ||
38 | - | let r = (20000000 * h) | |
39 | - | ||
40 | - | let s = 1 | |
41 | - | ||
42 | - | let t = 99 | |
43 | - | ||
44 | - | let u = 0 | |
45 | - | ||
46 | - | let v = 1 | |
47 | - | ||
48 | - | let w = 2 | |
49 | - | ||
50 | - | let x = 3 | |
51 | - | ||
52 | - | let y = 4 | |
53 | - | ||
54 | - | let z = 5 | |
55 | - | ||
56 | - | func A () = { | |
57 | - | let B = { | |
58 | - | let C = getInteger(this, b) | |
59 | - | if ($isInstanceOf(C, "Int")) | |
28 | + | func m () = { | |
29 | + | let n = { | |
30 | + | let o = getInteger(this, c) | |
31 | + | if ($isInstanceOf(o, "Int")) | |
60 | 32 | then { | |
61 | - | let | |
62 | - | | |
33 | + | let p = o | |
34 | + | p | |
63 | 35 | } | |
64 | 36 | else 0 | |
65 | 37 | } | |
66 | - | ( | |
38 | + | (n + 1) | |
67 | 39 | } | |
68 | 40 | ||
69 | 41 | ||
70 | - | func | |
71 | - | let | |
72 | - | if ($isInstanceOf( | |
42 | + | func q () = { | |
43 | + | let o = getInteger(this, a) | |
44 | + | if ($isInstanceOf(o, "Int")) | |
73 | 45 | then { | |
74 | - | let | |
75 | - | | |
46 | + | let r = o | |
47 | + | r | |
76 | 48 | } | |
77 | 49 | else 0 | |
78 | 50 | } | |
79 | 51 | ||
80 | 52 | ||
81 | - | func G (H) = { | |
82 | - | let I = (E() + H) | |
83 | - | let J = assetBalance(this, d) | |
84 | - | if ((I > J)) | |
85 | - | then throw("Insufficient funds on Wavesbet Dice account. Transaction was rejected for your safety.") | |
86 | - | else I | |
53 | + | func s () = { | |
54 | + | let o = getInteger(this, b) | |
55 | + | if ($isInstanceOf(o, "Int")) | |
56 | + | then { | |
57 | + | let r = o | |
58 | + | r | |
59 | + | } | |
60 | + | else 0 | |
87 | 61 | } | |
88 | 62 | ||
89 | 63 | ||
90 | - | func K (L) = { | |
91 | - | let M = size(L) | |
92 | - | if ((M == 0)) | |
93 | - | then throw("Parameter size must be greater then 0") | |
94 | - | else if ((M > 99)) | |
95 | - | then throw("Parameter size must be less then 100") | |
96 | - | else if ((10 > M)) | |
97 | - | then (("0" + toString(M)) + L) | |
98 | - | else (toString(M) + L) | |
64 | + | func t () = { | |
65 | + | let o = getInteger(this, d) | |
66 | + | if ($isInstanceOf(o, "Int")) | |
67 | + | then { | |
68 | + | let r = o | |
69 | + | r | |
70 | + | } | |
71 | + | else 0 | |
99 | 72 | } | |
100 | 73 | ||
101 | 74 | ||
102 | - | func N (O,P,Q,R,H,S) = { | |
103 | - | let T = ((((((((K(O) + "_") + K(toString(P))) + "_") + K(Q)) + "_") + K(R)) + "_") + K(toString(H))) | |
104 | - | if ((S == "")) | |
105 | - | then T | |
106 | - | else ((T + "_") + K(S)) | |
75 | + | func u (v) = { | |
76 | + | let o = getString(this, v) | |
77 | + | if ($isInstanceOf(o, "String")) | |
78 | + | then { | |
79 | + | let w = o | |
80 | + | w | |
81 | + | } | |
82 | + | else "0_0_0_0_0" | |
107 | 83 | } | |
108 | 84 | ||
109 | 85 | ||
110 | - | func U (V) = if ((size(V) > 0)) | |
111 | - | then drop(V, 1) | |
112 | - | else V | |
113 | - | ||
114 | - | ||
115 | - | func W (V) = { | |
116 | - | let M = size(V) | |
117 | - | if ((M > 0)) | |
86 | + | func x (v) = { | |
87 | + | let o = getString(this, v) | |
88 | + | if ($isInstanceOf(o, "String")) | |
118 | 89 | then { | |
119 | - | let X = parseIntValue(take(V, 2)) | |
120 | - | let Y = take(drop(V, 2), X) | |
121 | - | let Z = drop(V, (X + 2)) | |
122 | - | let aa = U(Z) | |
123 | - | [Y, aa] | |
90 | + | let w = o | |
91 | + | true | |
124 | 92 | } | |
125 | - | else | |
93 | + | else false | |
126 | 94 | } | |
127 | 95 | ||
128 | 96 | ||
129 | - | func ab (ac) = { | |
130 | - | let O = W(ac) | |
131 | - | let P = W(O[1]) | |
132 | - | let ad = W(P[1]) | |
133 | - | let R = W(ad[1]) | |
134 | - | let H = W(R[1]) | |
135 | - | [O[0], P[0], ad[0], R[0], H[0]] | |
97 | + | func y (z,A,B,C,D) = ((((((((toString(z) + "_") + toString(A)) + "_") + toString(B)) + "_") + toString(C)) + "_") + toString(D)) | |
98 | + | ||
99 | + | ||
100 | + | func E (v) = { | |
101 | + | let F = split(u(v), "_") | |
102 | + | let G = parseIntValue(F[h]) | |
103 | + | let H = parseIntValue(F[i]) | |
104 | + | let B = parseIntValue(F[j]) | |
105 | + | let C = parseIntValue(F[k]) | |
106 | + | let D = parseIntValue(F[l]) | |
107 | + | [G, H, B, C, D] | |
136 | 108 | } | |
137 | 109 | ||
138 | 110 | ||
139 | - | func ae (af) = { | |
140 | - | let ag = { | |
141 | - | let C = getString(this, af) | |
142 | - | if ($isInstanceOf(C, "String")) | |
143 | - | then { | |
144 | - | let ah = C | |
145 | - | ah | |
146 | - | } | |
147 | - | else throw(("Couldn't find game by " + af)) | |
148 | - | } | |
149 | - | ab(ag) | |
150 | - | } | |
151 | - | ||
152 | - | ||
153 | - | func ai (af,H) = { | |
154 | - | let I = (E() - H) | |
155 | - | if ((0 > I)) | |
156 | - | then throw("Invalid Dice Roller account state - reserved amount is less than 0") | |
157 | - | else DataEntry(c, I) | |
158 | - | } | |
159 | - | ||
160 | - | ||
161 | - | func aj (af,ak) = { | |
162 | - | let al = rsaVerify(SHA256, toBytes(af), ak, a) | |
163 | - | if (al) | |
164 | - | then { | |
165 | - | let am = (toInt(sha256(ak)) % 100) | |
166 | - | if ((0 > am)) | |
167 | - | then ((-1 * am) + 1) | |
168 | - | else (am + 1) | |
111 | + | @Callable(I) | |
112 | + | func lock () = { | |
113 | + | let J = extract(I.payment) | |
114 | + | if (if ((J.assetId != e)) | |
115 | + | then (J.assetId != f) | |
116 | + | else false) | |
117 | + | then throw("The token should be in WBET or ROYAL.") | |
118 | + | else { | |
119 | + | let v = toString(I.caller) | |
120 | + | let K = E(v) | |
121 | + | if ((J.assetId == e)) | |
122 | + | then { | |
123 | + | let L = (q() + J.amount) | |
124 | + | let M = (K[h] + J.amount) | |
125 | + | if (x(v)) | |
126 | + | then ScriptResult(WriteSet([DataEntry(a, L), DataEntry(v, y(M, K[i], K[j], K[k], K[l]))]), TransferSet(nil)) | |
127 | + | else { | |
128 | + | let N = m() | |
129 | + | ScriptResult(WriteSet([DataEntry(c, N), DataEntry(a, L), DataEntry(v, y(M, K[i], K[j], K[k], K[l]))]), TransferSet(nil)) | |
130 | + | } | |
131 | + | } | |
132 | + | else if ((J.assetId == f)) | |
133 | + | then { | |
134 | + | let O = (s() + J.amount) | |
135 | + | let P = (K[i] + J.amount) | |
136 | + | if (x(v)) | |
137 | + | then ScriptResult(WriteSet([DataEntry(b, O), DataEntry(v, y(K[h], P, K[j], K[k], K[l]))]), TransferSet(nil)) | |
138 | + | else { | |
139 | + | let N = m() | |
140 | + | ScriptResult(WriteSet([DataEntry(c, N), DataEntry(b, O), DataEntry(v, y(K[h], P, K[j], K[k], K[l]))]), TransferSet(nil)) | |
141 | + | } | |
142 | + | } | |
143 | + | else throw("error") | |
169 | 144 | } | |
170 | - | else throw("Invalid RSA signature") | |
171 | - | } | |
172 | - | ||
173 | - | ||
174 | - | func an (ao) = if (if ((ao >= 1)) | |
175 | - | then (100 >= ao) | |
176 | - | else false) | |
177 | - | then toString(ao) | |
178 | - | else throw(("Unsupported r parameter passed: expected=[1,...,100] actual=" + toString(ao))) | |
179 | - | ||
180 | - | ||
181 | - | func ap (af,aq,H,ar,as) = { | |
182 | - | let at = [as] | |
183 | - | let au = [ScriptTransfer(aq, H, d)] | |
184 | - | let av = DataEntry(af, ar) | |
185 | - | ScriptResult(WriteSet(av :: at), TransferSet(au)) | |
186 | - | } | |
187 | - | ||
188 | - | ||
189 | - | func aw (P,ad) = if ((ad == o)) | |
190 | - | then if ((P == 1)) | |
191 | - | then 9850000 | |
192 | - | else if ((P == 2)) | |
193 | - | then 4925000 | |
194 | - | else if ((P == 3)) | |
195 | - | then 3283330 | |
196 | - | else if ((P == 4)) | |
197 | - | then 2462500 | |
198 | - | else if ((P == 5)) | |
199 | - | then 1970000 | |
200 | - | else if ((P == 6)) | |
201 | - | then 1641660 | |
202 | - | else if ((P == 7)) | |
203 | - | then 1407140 | |
204 | - | else if ((P == 8)) | |
205 | - | then 1231250 | |
206 | - | else if ((P == 9)) | |
207 | - | then 1094440 | |
208 | - | else if ((P == 10)) | |
209 | - | then 985000 | |
210 | - | else if ((P == 11)) | |
211 | - | then 895450 | |
212 | - | else if ((P == 12)) | |
213 | - | then 820830 | |
214 | - | else if ((P == 13)) | |
215 | - | then 757690 | |
216 | - | else if ((P == 14)) | |
217 | - | then 703570 | |
218 | - | else if ((P == 15)) | |
219 | - | then 656660 | |
220 | - | else if ((P == 16)) | |
221 | - | then 615620 | |
222 | - | else if ((P == 17)) | |
223 | - | then 579410 | |
224 | - | else if ((P == 18)) | |
225 | - | then 547220 | |
226 | - | else if ((P == 19)) | |
227 | - | then 518420 | |
228 | - | else if ((P == 20)) | |
229 | - | then 492500 | |
230 | - | else if ((P == 21)) | |
231 | - | then 469040 | |
232 | - | else if ((P == 22)) | |
233 | - | then 447720 | |
234 | - | else if ((P == 23)) | |
235 | - | then 428260 | |
236 | - | else if ((P == 24)) | |
237 | - | then 410410 | |
238 | - | else if ((P == 25)) | |
239 | - | then 394000 | |
240 | - | else if ((P == 26)) | |
241 | - | then 378840 | |
242 | - | else if ((P == 27)) | |
243 | - | then 364810 | |
244 | - | else if ((P == 28)) | |
245 | - | then 351780 | |
246 | - | else if ((P == 29)) | |
247 | - | then 339650 | |
248 | - | else if ((P == 30)) | |
249 | - | then 328330 | |
250 | - | else if ((P == 31)) | |
251 | - | then 317740 | |
252 | - | else if ((P == 32)) | |
253 | - | then 307810 | |
254 | - | else if ((P == 33)) | |
255 | - | then 298480 | |
256 | - | else if ((P == 34)) | |
257 | - | then 289700 | |
258 | - | else if ((P == 35)) | |
259 | - | then 281420 | |
260 | - | else if ((P == 36)) | |
261 | - | then 273610 | |
262 | - | else if ((P == 37)) | |
263 | - | then 259210 | |
264 | - | else if ((P == 38)) | |
265 | - | then 259210 | |
266 | - | else if ((P == 39)) | |
267 | - | then 252560 | |
268 | - | else if ((P == 40)) | |
269 | - | then 246250 | |
270 | - | else if ((P == 41)) | |
271 | - | then 240240 | |
272 | - | else if ((P == 42)) | |
273 | - | then 234520 | |
274 | - | else if ((P == 43)) | |
275 | - | then 229060 | |
276 | - | else if ((P == 44)) | |
277 | - | then 223860 | |
278 | - | else if ((P == 45)) | |
279 | - | then 218880 | |
280 | - | else if ((P == 46)) | |
281 | - | then 214130 | |
282 | - | else if ((P == 47)) | |
283 | - | then 209570 | |
284 | - | else if ((P == 48)) | |
285 | - | then 205200 | |
286 | - | else if ((P == 49)) | |
287 | - | then 201020 | |
288 | - | else if ((P == 50)) | |
289 | - | then 197000 | |
290 | - | else if ((P == 51)) | |
291 | - | then 193130 | |
292 | - | else if ((P == 52)) | |
293 | - | then 189420 | |
294 | - | else if ((P == 53)) | |
295 | - | then 185840 | |
296 | - | else if ((P == 54)) | |
297 | - | then 182400 | |
298 | - | else if ((P == 55)) | |
299 | - | then 179090 | |
300 | - | else if ((P == 56)) | |
301 | - | then 175890 | |
302 | - | else if ((P == 57)) | |
303 | - | then 172800 | |
304 | - | else if ((P == 58)) | |
305 | - | then 169820 | |
306 | - | else if ((P == 59)) | |
307 | - | then 166940 | |
308 | - | else if ((P == 60)) | |
309 | - | then 164160 | |
310 | - | else if ((P == 61)) | |
311 | - | then 161470 | |
312 | - | else if ((P == 62)) | |
313 | - | then 158870 | |
314 | - | else if ((P == 63)) | |
315 | - | then 156340 | |
316 | - | else if ((P == 64)) | |
317 | - | then 153900 | |
318 | - | else if ((P == 65)) | |
319 | - | then 151530 | |
320 | - | else if ((P == 66)) | |
321 | - | then 149240 | |
322 | - | else if ((P == 67)) | |
323 | - | then 147010 | |
324 | - | else if ((P == 68)) | |
325 | - | then 144850 | |
326 | - | else if ((P == 69)) | |
327 | - | then 142750 | |
328 | - | else if ((P == 70)) | |
329 | - | then 140710 | |
330 | - | else if ((P == 71)) | |
331 | - | then 138730 | |
332 | - | else if ((P == 72)) | |
333 | - | then 136800 | |
334 | - | else if ((P == 73)) | |
335 | - | then 134930 | |
336 | - | else if ((P == 74)) | |
337 | - | then 133100 | |
338 | - | else if ((P == 75)) | |
339 | - | then 131330 | |
340 | - | else if ((P == 76)) | |
341 | - | then 129600 | |
342 | - | else if ((P == 77)) | |
343 | - | then 127920 | |
344 | - | else if ((P == 78)) | |
345 | - | then 126280 | |
346 | - | else if ((P == 79)) | |
347 | - | then 124680 | |
348 | - | else if ((P == 80)) | |
349 | - | then 123120 | |
350 | - | else if ((P == 81)) | |
351 | - | then 121600 | |
352 | - | else if ((P == 82)) | |
353 | - | then 120120 | |
354 | - | else if ((P == 83)) | |
355 | - | then 118670 | |
356 | - | else if ((P == 84)) | |
357 | - | then 117260 | |
358 | - | else if ((P == 85)) | |
359 | - | then 115880 | |
360 | - | else if ((P == 86)) | |
361 | - | then 114530 | |
362 | - | else if ((P == 87)) | |
363 | - | then 113210 | |
364 | - | else if ((P == 88)) | |
365 | - | then 111930 | |
366 | - | else if ((P == 89)) | |
367 | - | then 110670 | |
368 | - | else if ((P == 90)) | |
369 | - | then 109440 | |
370 | - | else if ((P == 91)) | |
371 | - | then 108240 | |
372 | - | else if ((P == 92)) | |
373 | - | then 107060 | |
374 | - | else if ((P == 93)) | |
375 | - | then 105910 | |
376 | - | else if ((P == 94)) | |
377 | - | then 104780 | |
378 | - | else if ((P == 95)) | |
379 | - | then 103680 | |
380 | - | else if ((P == 96)) | |
381 | - | then 103680 | |
382 | - | else 100000 | |
383 | - | else if ((ad == p)) | |
384 | - | then if ((P == 4)) | |
385 | - | then 103680 | |
386 | - | else if ((P == 5)) | |
387 | - | then 103680 | |
388 | - | else if ((P == 6)) | |
389 | - | then 104780 | |
390 | - | else if ((P == 7)) | |
391 | - | then 105910 | |
392 | - | else if ((P == 8)) | |
393 | - | then 107060 | |
394 | - | else if ((P == 9)) | |
395 | - | then 108240 | |
396 | - | else if ((P == 10)) | |
397 | - | then 109440 | |
398 | - | else if ((P == 11)) | |
399 | - | then 110670 | |
400 | - | else if ((P == 12)) | |
401 | - | then 111930 | |
402 | - | else if ((P == 13)) | |
403 | - | then 113210 | |
404 | - | else if ((P == 14)) | |
405 | - | then 114530 | |
406 | - | else if ((P == 15)) | |
407 | - | then 115880 | |
408 | - | else if ((P == 16)) | |
409 | - | then 117260 | |
410 | - | else if ((P == 17)) | |
411 | - | then 118670 | |
412 | - | else if ((P == 18)) | |
413 | - | then 120120 | |
414 | - | else if ((P == 19)) | |
415 | - | then 121600 | |
416 | - | else if ((P == 20)) | |
417 | - | then 123120 | |
418 | - | else if ((P == 21)) | |
419 | - | then 124680 | |
420 | - | else if ((P == 22)) | |
421 | - | then 126280 | |
422 | - | else if ((P == 23)) | |
423 | - | then 127920 | |
424 | - | else if ((P == 24)) | |
425 | - | then 129600 | |
426 | - | else if ((P == 25)) | |
427 | - | then 131330 | |
428 | - | else if ((P == 26)) | |
429 | - | then 133100 | |
430 | - | else if ((P == 27)) | |
431 | - | then 134930 | |
432 | - | else if ((P == 28)) | |
433 | - | then 136800 | |
434 | - | else if ((P == 29)) | |
435 | - | then 138730 | |
436 | - | else if ((P == 30)) | |
437 | - | then 140710 | |
438 | - | else if ((P == 31)) | |
439 | - | then 142750 | |
440 | - | else if ((P == 32)) | |
441 | - | then 144850 | |
442 | - | else if ((P == 33)) | |
443 | - | then 147010 | |
444 | - | else if ((P == 34)) | |
445 | - | then 149240 | |
446 | - | else if ((P == 35)) | |
447 | - | then 151530 | |
448 | - | else if ((P == 36)) | |
449 | - | then 153900 | |
450 | - | else if ((P == 37)) | |
451 | - | then 156340 | |
452 | - | else if ((P == 38)) | |
453 | - | then 158870 | |
454 | - | else if ((P == 39)) | |
455 | - | then 161470 | |
456 | - | else if ((P == 40)) | |
457 | - | then 164160 | |
458 | - | else if ((P == 41)) | |
459 | - | then 166940 | |
460 | - | else if ((P == 42)) | |
461 | - | then 169820 | |
462 | - | else if ((P == 43)) | |
463 | - | then 172800 | |
464 | - | else if ((P == 44)) | |
465 | - | then 175890 | |
466 | - | else if ((P == 45)) | |
467 | - | then 179090 | |
468 | - | else if ((P == 46)) | |
469 | - | then 185840 | |
470 | - | else if ((P == 47)) | |
471 | - | then 185840 | |
472 | - | else if ((P == 48)) | |
473 | - | then 189420 | |
474 | - | else if ((P == 49)) | |
475 | - | then 193130 | |
476 | - | else if ((P == 50)) | |
477 | - | then 197000 | |
478 | - | else if ((P == 51)) | |
479 | - | then 201020 | |
480 | - | else if ((P == 52)) | |
481 | - | then 205200 | |
482 | - | else if ((P == 53)) | |
483 | - | then 209570 | |
484 | - | else if ((P == 54)) | |
485 | - | then 214130 | |
486 | - | else if ((P == 55)) | |
487 | - | then 218880 | |
488 | - | else if ((P == 56)) | |
489 | - | then 223860 | |
490 | - | else if ((P == 57)) | |
491 | - | then 229060 | |
492 | - | else if ((P == 58)) | |
493 | - | then 234520 | |
494 | - | else if ((P == 59)) | |
495 | - | then 240240 | |
496 | - | else if ((P == 60)) | |
497 | - | then 246250 | |
498 | - | else if ((P == 61)) | |
499 | - | then 252560 | |
500 | - | else if ((P == 62)) | |
501 | - | then 259210 | |
502 | - | else if ((P == 63)) | |
503 | - | then 259210 | |
504 | - | else if ((P == 64)) | |
505 | - | then 273610 | |
506 | - | else if ((P == 65)) | |
507 | - | then 281420 | |
508 | - | else if ((P == 66)) | |
509 | - | then 289700 | |
510 | - | else if ((P == 67)) | |
511 | - | then 298480 | |
512 | - | else if ((P == 68)) | |
513 | - | then 307810 | |
514 | - | else if ((P == 69)) | |
515 | - | then 317740 | |
516 | - | else if ((P == 70)) | |
517 | - | then 328330 | |
518 | - | else if ((P == 71)) | |
519 | - | then 339650 | |
520 | - | else if ((P == 72)) | |
521 | - | then 351780 | |
522 | - | else if ((P == 73)) | |
523 | - | then 364810 | |
524 | - | else if ((P == 74)) | |
525 | - | then 378840 | |
526 | - | else if ((P == 75)) | |
527 | - | then 394000 | |
528 | - | else if ((P == 76)) | |
529 | - | then 410410 | |
530 | - | else if ((P == 77)) | |
531 | - | then 428260 | |
532 | - | else if ((P == 78)) | |
533 | - | then 447720 | |
534 | - | else if ((P == 79)) | |
535 | - | then 469040 | |
536 | - | else if ((P == 80)) | |
537 | - | then 492500 | |
538 | - | else if ((P == 81)) | |
539 | - | then 518420 | |
540 | - | else if ((P == 82)) | |
541 | - | then 547220 | |
542 | - | else if ((P == 83)) | |
543 | - | then 579410 | |
544 | - | else if ((P == 84)) | |
545 | - | then 615620 | |
546 | - | else if ((P == 85)) | |
547 | - | then 656660 | |
548 | - | else if ((P == 86)) | |
549 | - | then 703570 | |
550 | - | else if ((P == 87)) | |
551 | - | then 757690 | |
552 | - | else if ((P == 88)) | |
553 | - | then 820830 | |
554 | - | else if ((P == 89)) | |
555 | - | then 895450 | |
556 | - | else if ((P == 90)) | |
557 | - | then 985000 | |
558 | - | else if ((P == 91)) | |
559 | - | then 1094440 | |
560 | - | else if ((P == 92)) | |
561 | - | then 1231250 | |
562 | - | else if ((P == 93)) | |
563 | - | then 1407140 | |
564 | - | else if ((P == 94)) | |
565 | - | then 1641660 | |
566 | - | else if ((P == 95)) | |
567 | - | then 1970000 | |
568 | - | else if ((P == 96)) | |
569 | - | then 2462500 | |
570 | - | else if ((P == 97)) | |
571 | - | then 3283330 | |
572 | - | else if ((P == 98)) | |
573 | - | then 4925000 | |
574 | - | else if ((P == 99)) | |
575 | - | then 9850000 | |
576 | - | else 100000 | |
577 | - | else 100000 | |
578 | - | ||
579 | - | ||
580 | - | func ax (ay,P,az) = if ((ay == o)) | |
581 | - | then if ((P >= az)) | |
582 | - | then true | |
583 | - | else false | |
584 | - | else if ((ay == p)) | |
585 | - | then if ((az >= P)) | |
586 | - | then true | |
587 | - | else false | |
588 | - | else false | |
589 | - | ||
590 | - | ||
591 | - | func aA (aB,P,ad) = if (if ((q > aB)) | |
592 | - | then true | |
593 | - | else (aB > r)) | |
594 | - | then throw(((("Bet amount is not in range: minBet=" + toString((q / h))) + " maxBet=") + toString((r / h)))) | |
595 | - | else if (if ((ad != o)) | |
596 | - | then (ad != p) | |
597 | - | else false) | |
598 | - | then throw("Invalid Roll type, try with OVER or UNDER") | |
599 | - | else if (if (if ((ad == o)) | |
600 | - | then (1 > P) | |
601 | - | else false) | |
602 | - | then true | |
603 | - | else if ((ad == o)) | |
604 | - | then (P > 96) | |
605 | - | else false) | |
606 | - | then throw("Prediction is out of the range for ROLL UNDER: 1 <= PREDICTION <= 96") | |
607 | - | else if (if (if ((ad == p)) | |
608 | - | then (4 > P) | |
609 | - | else false) | |
610 | - | then true | |
611 | - | else if ((ad == p)) | |
612 | - | then (P > 99) | |
613 | - | else false) | |
614 | - | then throw("Prediction is out of the range for ROLL OVER: 4 <= PREDICTION <= 99") | |
615 | - | else { | |
616 | - | let aC = aw(P, ad) | |
617 | - | fraction(((aB / 100000) * aC), (((100 - j) - k) - i), 100) | |
618 | - | } | |
619 | - | ||
620 | - | ||
621 | - | @Callable(aD) | |
622 | - | func playDice (ad,P) = { | |
623 | - | let af = toBase58String(aD.transactionId) | |
624 | - | let aE = extract(aD.payment) | |
625 | - | let aF = isDefined(aD.feeAssetId) | |
626 | - | let H = aA(aE.amount, P, ad) | |
627 | - | let aG = wavesBalance(aD.caller) | |
628 | - | let aH = isDefined(getString(this, af)) | |
629 | - | if ((aE.assetId != d)) | |
630 | - | then throw("Payment should be in Wavesbet") | |
631 | - | else if ((1000000 > aG)) | |
632 | - | then throw("There are not enough waves, it takes 0.01 Waves to bet. Game aborted.") | |
633 | - | else if (aF) | |
634 | - | then throw("Transaction's fee must be in Waves. Game aborted.") | |
635 | - | else if (aH) | |
636 | - | then throw("Passed gameId had been used before. Game aborted.") | |
637 | - | else { | |
638 | - | let aI = A() | |
639 | - | let R = toBase58String(aD.callerPublicKey) | |
640 | - | let aJ = N(l, P, ad, R, H, "") | |
641 | - | ScriptResult(WriteSet([DataEntry(c, G(H)), DataEntry(b, aI), DataEntry(af, aJ)]), TransferSet([ScriptTransfer(e, fraction(aE.amount, i, 100), d), ScriptTransfer(f, fraction(aE.amount, j, 100), d), ScriptTransfer(g, fraction(aE.amount, k, 100), d)])) | |
642 | - | } | |
643 | 145 | } | |
644 | 146 | ||
645 | 147 | ||
646 | 148 | ||
647 | - | @Callable(aD) | |
648 | - | func withdraw (af,aK) = { | |
649 | - | let aL = ae(af) | |
650 | - | let O = aL[u] | |
651 | - | let P = parseIntValue(aL[v]) | |
652 | - | let ad = aL[w] | |
653 | - | let H = parseIntValue(aL[y]) | |
654 | - | let R = aL[x] | |
655 | - | let aq = addressFromPublicKey(fromBase58String(R)) | |
656 | - | let as = ai(af, H) | |
657 | - | if ((O != l)) | |
658 | - | then throw("Invalid game state for passed gameId. Game aborted.") | |
149 | + | @Callable(I) | |
150 | + | func unlock (Q) = { | |
151 | + | let v = toString(I.caller) | |
152 | + | let K = E(v) | |
153 | + | if ((Q == "WBET")) | |
154 | + | then if ((0 >= K[h])) | |
155 | + | then throw("You dont have enough balance to withdraw the amount requested.") | |
156 | + | else { | |
157 | + | let L = (q() - K[h]) | |
158 | + | ScriptResult(WriteSet([DataEntry(a, L), DataEntry(v, y(0, K[i], K[j], K[k], K[l]))]), TransferSet([ScriptTransfer(I.caller, K[h], e)])) | |
159 | + | } | |
160 | + | else if ((Q == "ROYAL")) | |
161 | + | then if ((0 >= K[i])) | |
162 | + | then throw("You dont have enough balance to withdraw the amount requested.") | |
163 | + | else { | |
164 | + | let O = (s() - K[i]) | |
165 | + | ScriptResult(WriteSet([DataEntry(b, O), DataEntry(v, y(K[h], 0, K[j], K[k], K[l]))]), TransferSet([ScriptTransfer(I.caller, K[i], f)])) | |
166 | + | } | |
167 | + | else throw("Invalid asset") | |
168 | + | } | |
169 | + | ||
170 | + | ||
171 | + | ||
172 | + | @Callable(I) | |
173 | + | func withdraw (Q) = { | |
174 | + | let v = toString(I.caller) | |
175 | + | let K = E(v) | |
176 | + | if ((Q == "WBET")) | |
177 | + | then if ((0 >= K[j])) | |
178 | + | then throw("You dont have enough balance to withdraw the amount requested.") | |
179 | + | else ScriptResult(WriteSet([DataEntry(v, y(K[h], K[i], 0, K[k], K[l]))]), TransferSet([ScriptTransfer(I.caller, K[j], e)])) | |
180 | + | else if ((Q == "ROYAL")) | |
181 | + | then if ((0 >= K[k])) | |
182 | + | then throw("You dont have enough balance to withdraw the amount requested.") | |
183 | + | else ScriptResult(WriteSet([DataEntry(v, y(K[h], K[i], K[j], 0, K[l]))]), TransferSet([ScriptTransfer(I.caller, K[k], f)])) | |
184 | + | else if ((Q == "WAVES")) | |
185 | + | then if ((0 >= K[l])) | |
186 | + | then throw("You dont have enough balance to withdraw the amount requested.") | |
187 | + | else ScriptResult(WriteSet([DataEntry(v, y(K[h], K[i], K[j], K[j], 0))]), TransferSet([ScriptTransfer(I.caller, K[l], unit)])) | |
188 | + | else throw("Invalid asset") | |
189 | + | } | |
190 | + | ||
191 | + | ||
192 | + | ||
193 | + | @Callable(I) | |
194 | + | func addWithdraw (v) = if ((I.caller == g)) | |
195 | + | then { | |
196 | + | let J = extract(I.payment) | |
197 | + | let K = E(v) | |
198 | + | if ((J.assetId == e)) | |
199 | + | then { | |
200 | + | let R = (K[j] + J.amount) | |
201 | + | ScriptResult(WriteSet([DataEntry(v, y(K[h], K[i], R, K[k], K[l]))]), TransferSet(nil)) | |
202 | + | } | |
203 | + | else if ((J.assetId == f)) | |
204 | + | then { | |
205 | + | let S = (K[k] + J.amount) | |
206 | + | ScriptResult(WriteSet([DataEntry(v, y(K[h], K[i], K[j], S, K[l]))]), TransferSet(nil)) | |
207 | + | } | |
208 | + | else if ((J.assetId == unit)) | |
209 | + | then { | |
210 | + | let T = (K[l] + J.amount) | |
211 | + | ScriptResult(WriteSet([DataEntry(v, y(K[h], K[i], K[j], K[k], T))]), TransferSet(nil)) | |
212 | + | } | |
213 | + | else throw("Invalid asset") | |
214 | + | } | |
215 | + | else throw("You do not have permission to perform this function.") | |
216 | + | ||
217 | + | ||
218 | + | ||
219 | + | @Callable(I) | |
220 | + | func addCommunityFee () = { | |
221 | + | let J = extract(I.payment) | |
222 | + | if ((J.assetId != assetInfo(base58'WAVES'))) | |
223 | + | then throw("Payment should be in WAVES.") | |
659 | 224 | else { | |
660 | - | let am = aj(af, aK) | |
661 | - | let aM = an(am) | |
662 | - | if (ax(ad, P, am)) | |
663 | - | then { | |
664 | - | let ar = N(m, P, ad, R, H, aM) | |
665 | - | ap(af, aq, H, ar, as) | |
666 | - | } | |
667 | - | else { | |
668 | - | let ar = N(n, P, ad, R, H, aM) | |
669 | - | WriteSet([DataEntry(af, ar), as]) | |
670 | - | } | |
225 | + | let U = (t() + J.amount) | |
226 | + | ScriptResult(WriteSet([DataEntry(d, U)]), TransferSet(nil)) | |
671 | 227 | } | |
672 | 228 | } | |
673 | 229 | ||
674 | 230 | ||
675 | - | @Verifier(aN) | |
676 | - | func aO () = if (sigVerify(aN.bodyBytes, aN.proofs[0], aN.senderPublicKey)) | |
231 | + | ||
232 | + | @Callable(I) | |
233 | + | func getCommunityFee (V) = if ((I.caller == g)) | |
677 | 234 | then { | |
678 | - | let C = aN | |
679 | - | if ($isInstanceOf(C, "TransferTransaction")) | |
680 | - | then { | |
681 | - | let aP = C | |
682 | - | ((assetBalance(this, d) - aP.amount) >= E()) | |
235 | + | let J = extract(I.payment) | |
236 | + | let W = t() | |
237 | + | if ((V > W)) | |
238 | + | then throw("You dont have enough balance to transfer the amount requested.") | |
239 | + | else { | |
240 | + | let U = (W - V) | |
241 | + | ScriptResult(WriteSet([DataEntry(d, U)]), TransferSet([ScriptTransfer(g, V, unit)])) | |
683 | 242 | } | |
684 | - | else if ($isInstanceOf(C, "SetScriptTransaction")) | |
685 | - | then { | |
686 | - | let aQ = C | |
687 | - | true | |
688 | - | } | |
689 | - | else false | |
690 | 243 | } | |
691 | - | else false | |
244 | + | else throw("You do not have permission to perform this function.") | |
245 | + | ||
692 | 246 |
github/deemru/w8io/026f985 81.65 ms ◑