tx · 27iB7CLFSyPwVbknxscdvESvQ1cjNzUYQsc27mFn52Vp

3NA7cHZ9oBicev5AEn3BidRAyitA3HdjRbE:  -0.05000000 Waves

2019.11.26 05:14 [781618] smart account 3NA7cHZ9oBicev5AEn3BidRAyitA3HdjRbE > SELF 0.00000000 Waves

{ "type": 13, "id": "27iB7CLFSyPwVbknxscdvESvQ1cjNzUYQsc27mFn52Vp", "fee": 5000000, "feeAssetId": null, "timestamp": 1574734457618, "version": 1, "sender": "3NA7cHZ9oBicev5AEn3BidRAyitA3HdjRbE", "senderPublicKey": "FEmBffz5oKcY5pLrHbwcj8jxovWVvTYCeNRzNT6uHBJc", "proofs": [ "vRrtA3UuGsYu5DJNUL5GLbZqGGG2PUp5ERKi6EmA2cVUmmou3gjiAbRiVSL4aqmV1CkS8ijL581xh2c925F15Qa" ], "script": "base64:AAIDAAAAAAAAAAcIARIDCgEIAAAALQAAAAAJUlNBUFVCTElDCQACWwAAAAECAAABj2Jhc2U2NDpNSUlCSWpBTkJna3Foa2lHOXcwQkFRRUZBQU9DQVE4QU1JSUJDZ0tDQVFFQWc0ZEFSNlhiQkRBUzloci9FajNkSnY2RmZjNDY2eC9tT0dNV1UzbHJBQnMzcWE4QkhtdUpHbmtmYnBFZjJ2QXdZVE9XUHZ2emZNMTBPQmJmbG9TeXEzYzlNS3Z5VGUxbHVCTEdxVzR2WlVYSXl2U2d6MWxpeVVWZWZJUXkzZHlGOWpiZVRaYkMwYmJjVC83TzNERUwrMDF6NkErckRDYWNTWjBsR29sU1E2QW5oTHh6SWtWcE9RSmJyQm1DK3grWnVaUENNV3pKeW5kNWFlT243amFqL21rUlZ5eGU2Zy8wT2hXejROaWlaWGV1TVJCKzhtS3kwZldEL1VsSWxaV0hzQVMyWm1ya1hLcWpMcTAvMHdyOElMSmt6bmpTcWRuSTVJYmpnM3VRcmovNEFOK2k5cjI4YVE3My9aa1B0WTVTYncwQU9pQUJCdTdnSG1xOWF5VnhaUUlEQVFBQgAAAAAPR0F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AAAPY2FsbGVyUHVibGljS2V5BAAAAAtnYW1lRGF0YVN0cgkAASwAAAACCQABLAAAAAIFAAAADlNUQVRFU1VCTUlUVEVEAgAAAAEtBQAAAARiZXRzCQEAAAAMU2NyaXB0UmVzdWx0AAAAAgkBAAAACFdyaXRlU2V0AAAAAQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgUAAAAPR0FNRVNDT1VOVEVSS0VZBQAAAApuZXdHYW1lTnVtCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACBQAAAAZnYW1lSWQFAAAAC2dhbWVEYXRhU3RyBQAAAANuaWwJAQAAAAtUcmFuc2ZlclNldAAAAAEJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwUAAAAOV0FMTEVUV0FWRVNCRVQJAABrAAAAAwgFAAAAB3BheW1lbnQAAAAGYW1vdW50BQAAAAtGRUVXQVZFU0JFVAAAAAAAAAAAZAUAAAAEV0JFVAkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADBQAAAAxXQUxMRVRNQ0FGRUUJAABrAAAAAwgFAAAAB3BheW1lbnQAAAAGYW1vdW50BQAAAAlGRUVNQ0FGRUUAAAAAAAAAAGQFAAAABFdCRVQFAAAAA25pbAAAAAARwPjj", "chainId": 84, "height": 781618, "spentComplexity": 0 } View: original | compacted Prev: 6gYp51dVNXQ8pkxbn82hGwRKrgUKVqVRSxNKsbcXRhxT Next: 7tCJuioLJyUqCUaZFmTxUh7DRNfFspwgcKqDrcDLCGCR Diff:
OldNewDifferences
460460 let ab = parseIntValue(Y[2])
461461 let ac = parseIntValue(Y[3])
462462 let ad = parseIntValue(Y[4])
463- let ae = if (if (D(ab))
464- then (size(Y) != 5)
463+ if (if (D(ab))
464+ then (size(Y) == 5)
465465 else false)
466466 then if ((Z == p))
467467 then F(ab, ac, ad)
489489 then V(ab)
490490 else throw("Invalid bet type, Game aborted!")
491491 else throw("Invalid bet, Game aborted!")
492- aa
493492 }
494493 else 0
495494
496495
497-func af (ag) = ((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((W(ag[0]) + W(ag[1])) + W(ag[2])) + W(ag[3])) + W(ag[4])) + W(ag[5])) + W(ag[6])) + W(ag[7])) + W(ag[8])) + W(ag[9])) + W(ag[10])) + W(ag[11])) + W(ag[12])) + W(ag[13])) + W(ag[14])) + W(ag[15])) + W(ag[16])) + W(ag[17])) + W(ag[18])) + W(ag[19])) + W(ag[20])) + W(ag[21])) + W(ag[22])) + W(ag[23])) + W(ag[24])) + W(ag[25])) + W(ag[26])) + W(ag[27])) + W(ag[28])) + W(ag[29])) + W(ag[30])) + W(ag[31])) + W(ag[32])) + W(ag[33])) + W(ag[34])) + W(ag[35])) + W(ag[36])) + W(ag[37])) + W(ag[38])) + W(ag[39])) + W(ag[40])) + W(ag[41])) + W(ag[42])) + W(ag[43])) + W(ag[44])) + W(ag[45])) + W(ag[46])) + W(ag[47])) + W(ag[48])) + W(ag[49])) + W(ag[50])) + W(ag[51])) + W(ag[52])) + W(ag[53])) + W(ag[54])) + W(ag[55])) + W(ag[56])) + W(ag[57])) + W(ag[58])) + W(ag[59])) + W(ag[60])) + W(ag[61])) + W(ag[62])) + W(ag[63])) + W(ag[64])) + W(ag[65])) + W(ag[66])) + W(ag[67])) + W(ag[68])) + W(ag[69])) + W(ag[70])) + W(ag[71])) + W(ag[72])) + W(ag[73])) + W(ag[74])) + W(ag[75])) + W(ag[76])) + W(ag[77])) + W(ag[78])) + W(ag[79])) + W(ag[80])) + W(ag[81])) + W(ag[82])) + W(ag[83])) + W(ag[84]))
496+func ae (af) = throw(af[0])
498497
499498
500-func ah () = {
501- let ai = {
502- let aj = getInteger(this, b)
503- if ($isInstanceOf(aj, "Int"))
499+func ag () = {
500+ let ah = {
501+ let ai = getInteger(this, b)
502+ if ($isInstanceOf(ai, "Int"))
504503 then {
505- let E = aj
504+ let E = ai
506505 E
507506 }
508507 else 0
509508 }
510- (ai + 1)
509+ (ah + 1)
511510 }
512511
513512
514-@Callable(ak)
515-func playRoulette (ag) = {
516- let al = toBase58String(ak.transactionId)
517- let am = extract(ak.payment)
518- let an = isDefined(ak.feeAssetId)
519- let ao = isDefined(getString(this, al))
520- let ap = wavesBalance(ak.caller)
521- let aq = split(ag, "|")
522- if ((am.assetId != d))
513+@Callable(aj)
514+func playRoulette (af) = {
515+ let ak = toBase58String(aj.transactionId)
516+ let al = extract(aj.payment)
517+ let am = isDefined(aj.feeAssetId)
518+ let an = isDefined(getString(this, ak))
519+ let ao = wavesBalance(aj.caller)
520+ let ap = split(af, "|")
521+ if ((al.assetId != d))
523522 then throw("Payment should be in WBET. Game aborted.")
524- else if ((1000000 > ap))
523+ else if ((1000000 > ao))
525524 then throw("There are not enough waves, it takes 0.01 Waves to bet. Game aborted.")
526- else if (an)
525+ else if (am)
527526 then throw("Transaction's fee must be in Waves. Game aborted.")
528- else if (ao)
527+ else if (an)
529528 then throw("Passed gameId had been used before. Game aborted.")
530- else if ((10 > size(ag)))
529+ else if ((10 > size(af)))
531530 then throw("No valid bets. Game aborted.")
532531 else {
533- let ar = af(aq)
534- let as = ah()
535- let at = toBase58String(ak.callerPublicKey)
536- let au = ((j + "-") + ag)
537- ScriptResult(WriteSet([DataEntry(b, as), DataEntry(al, au)]), TransferSet([ScriptTransfer(e, fraction(am.amount, h, 100), d), ScriptTransfer(f, fraction(am.amount, i, 100), d)]))
532+ let aq = ae(ap)
533+ let ar = ag()
534+ let as = toBase58String(aj.callerPublicKey)
535+ let at = ((j + "-") + af)
536+ ScriptResult(WriteSet([DataEntry(b, ar), DataEntry(ak, at)]), TransferSet([ScriptTransfer(e, fraction(al.amount, h, 100), d), ScriptTransfer(f, fraction(al.amount, i, 100), d)]))
538537 }
539538 }
540539
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = fromBase64String("base64:MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAg4dAR6XbBDAS9hr/Ej3dJv6Ffc466x/mOGMWU3lrABs3qa8BHmuJGnkfbpEf2vAwYTOWPvvzfM10OBbfloSyq3c9MKvyTe1luBLGqW4vZUXIyvSgz1liyUVefIQy3dyF9jbeTZbC0bbcT/7O3DEL+01z6A+rDCacSZ0lGolSQ6AnhLxzIkVpOQJbrBmC+x+ZuZPCMWzJynd5aeOn7jaj/mkRVyxe6g/0OhWz4NiiZXeuMRB+8mKy0fWD/UlIlZWHsAS2ZmrkXKqjLq0/0wr8ILJkznjSqdnI5Ibjg3uQrj/4AN+i9r28aQ73/ZkPtY5Sbw0AOiABBu7gHmq9ayVxZQIDAQAB")
55
66 let b = "$GAME_NUM"
77
88 let c = "$RESERVED_AMOUNT"
99
1010 let d = base58'A4q1mYKo11yuH9gmvDodeJoksagcyQzeFE9JtphMWddw'
1111
1212 let e = Address(base58'3MtCy2PCFPyu8A9SRNL4qUo1V17SGLHftD8')
1313
1414 let f = Address(base58'3MtCy2PCFPyu8A9SRNL4qUo1V17SGLHftD8')
1515
1616 let g = 100000000
1717
1818 let h = 4
1919
2020 let i = 2
2121
2222 let j = "SUBMITTED"
2323
2424 let k = "WON"
2525
2626 let l = "LOST"
2727
2828 let m = (1 * g)
2929
3030 let n = (20000000 * g)
3131
3232 let o = 1
3333
3434 let p = 2
3535
3636 let q = 3
3737
3838 let r = 4
3939
4040 let s = 5
4141
4242 let t = 6
4343
4444 let u = 7
4545
4646 let v = 8
4747
4848 let w = 9
4949
5050 let x = 10
5151
5252 let y = 11
5353
5454 let z = 12
5555
5656 let A = 13
5757
5858 let B = 1
5959
6060 let C = 2
6161
6262 func D (E) = if (if ((E >= 0))
6363 then (37 > E)
6464 else false)
6565 then true
6666 else throw("Invalid range, try between 0 and 36. Game aborted!")
6767
6868
6969 func F (G,H,I) = if ((I == B))
7070 then if (if (if (if (if ((G > 0))
7171 then (34 > G)
7272 else false)
7373 then true
7474 else if ((G == 0))
7575 then (H == 1)
7676 else false)
7777 then true
7878 else if ((G == 0))
7979 then (H == 2)
8080 else false)
8181 then true
8282 else if ((G == 0))
8383 then (H == 3)
8484 else false)
8585 then true
8686 else throw("Invalid hotizontal split move. Game aborted!")
8787 else if ((I == C))
8888 then if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if ((G == 1))
8989 then true
9090 else (G == 2))
9191 then true
9292 else (G == 4))
9393 then true
9494 else (G == 5))
9595 then true
9696 else (G == 7))
9797 then true
9898 else (G == 8))
9999 then true
100100 else (G == 10))
101101 then true
102102 else (G == 11))
103103 then true
104104 else (G == 13))
105105 then true
106106 else (G == 14))
107107 then true
108108 else (G == 16))
109109 then true
110110 else (G == 17))
111111 then true
112112 else (G == 19))
113113 then true
114114 else (G == 20))
115115 then true
116116 else (G == 22))
117117 then true
118118 else (G == 23))
119119 then true
120120 else (G == 25))
121121 then true
122122 else (G == 26))
123123 then true
124124 else (G == 28))
125125 then true
126126 else (G == 29))
127127 then true
128128 else (G == 31))
129129 then true
130130 else (G == 32))
131131 then true
132132 else (G == 34))
133133 then true
134134 else (G == 35))
135135 then true
136136 else throw("Invalid vertical split move. Game aborted!")
137137 else throw("Invalid split move. Game aborted!")
138138
139139
140140 func J (G,H) = if (if (if (if (if (if (if (if (if (if (if (if (if (if ((G == 1))
141141 then true
142142 else (G == 4))
143143 then true
144144 else (G == 7))
145145 then true
146146 else (G == 10))
147147 then true
148148 else (G == 13))
149149 then true
150150 else (G == 16))
151151 then true
152152 else (G == 19))
153153 then true
154154 else (G == 22))
155155 then true
156156 else (G == 25))
157157 then true
158158 else (G == 28))
159159 then true
160160 else (G == 31))
161161 then true
162162 else (G == 34))
163163 then true
164164 else if ((G == 0))
165165 then (H == 1)
166166 else false)
167167 then true
168168 else if ((G == 0))
169169 then (H == 3)
170170 else false)
171171 then true
172172 else throw("Invalid street move. Game aborted!")
173173
174174
175175 func K (G,H) = if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if ((G == 1))
176176 then true
177177 else (G == 2))
178178 then true
179179 else (G == 4))
180180 then true
181181 else (G == 5))
182182 then true
183183 else (G == 7))
184184 then true
185185 else (G == 8))
186186 then true
187187 else (G == 10))
188188 then true
189189 else (G == 11))
190190 then true
191191 else (G == 13))
192192 then true
193193 else (G == 14))
194194 then true
195195 else (G == 16))
196196 then true
197197 else (G == 17))
198198 then true
199199 else (G == 19))
200200 then true
201201 else (G == 20))
202202 then true
203203 else (G == 22))
204204 then true
205205 else (G == 23))
206206 then true
207207 else (G == 25))
208208 then true
209209 else (G == 26))
210210 then true
211211 else (G == 28))
212212 then true
213213 else (G == 29))
214214 then true
215215 else (G == 31))
216216 then true
217217 else (G == 32))
218218 then true
219219 else if ((G == 0))
220220 then (H == 1)
221221 else false)
222222 then true
223223 else throw("Invalid corner move. Game aborted!")
224224
225225
226226 func L (E) = if (if (if (if (if (if (if (if (if (if (if ((E == 1))
227227 then true
228228 else (E == 4))
229229 then true
230230 else (E == 7))
231231 then true
232232 else (E == 10))
233233 then true
234234 else (E == 13))
235235 then true
236236 else (E == 16))
237237 then true
238238 else (E == 19))
239239 then true
240240 else (E == 22))
241241 then true
242242 else (E == 25))
243243 then true
244244 else (E == 28))
245245 then true
246246 else (E == 31))
247247 then true
248248 else throw("Invalid line move. Game aborted!")
249249
250250
251251 func M (E,N) = if ((N == 1))
252252 then if (if (if (if (if (if (if (if (if (if (if (if ((E == 1))
253253 then true
254254 else (E == 4))
255255 then true
256256 else (E == 7))
257257 then true
258258 else (E == 10))
259259 then true
260260 else (E == 13))
261261 then true
262262 else (E == 16))
263263 then true
264264 else (E == 19))
265265 then true
266266 else (E == 22))
267267 then true
268268 else (E == 25))
269269 then true
270270 else (E == 28))
271271 then true
272272 else (E == 31))
273273 then true
274274 else (E == 34))
275275 then true
276276 else throw("Invalid column 1 move. Game aborted!")
277277 else if ((N == 2))
278278 then if (if (if (if (if (if (if (if (if (if (if (if ((E == 2))
279279 then true
280280 else (E == 5))
281281 then true
282282 else (E == 8))
283283 then true
284284 else (E == 11))
285285 then true
286286 else (E == 14))
287287 then true
288288 else (E == 17))
289289 then true
290290 else (E == 20))
291291 then true
292292 else (E == 23))
293293 then true
294294 else (E == 26))
295295 then true
296296 else (E == 29))
297297 then true
298298 else (E == 32))
299299 then true
300300 else (E == 35))
301301 then true
302302 else throw("Invalid column 2 move. Game aborted!")
303303 else if ((N == 3))
304304 then if (if (if (if (if (if (if (if (if (if (if (if ((E == 3))
305305 then true
306306 else (E == 6))
307307 then true
308308 else (E == 9))
309309 then true
310310 else (E == 12))
311311 then true
312312 else (E == 15))
313313 then true
314314 else (E == 18))
315315 then true
316316 else (E == 21))
317317 then true
318318 else (E == 24))
319319 then true
320320 else (E == 27))
321321 then true
322322 else (E == 30))
323323 then true
324324 else (E == 33))
325325 then true
326326 else (E == 36))
327327 then true
328328 else throw("Invalid column 3 move. Game aborted!")
329329 else throw("Invalid column move. Game aborted!")
330330
331331
332332 func O (E,P) = if ((P == 1))
333333 then if (if ((E > 0))
334334 then (13 > E)
335335 else false)
336336 then true
337337 else throw("Invalid dozen 1 move. Game aborted!")
338338 else if ((P == 2))
339339 then if (if ((E > 12))
340340 then (25 > E)
341341 else false)
342342 then true
343343 else throw("Invalid dozen 2 move. Game aborted!")
344344 else if ((P == 3))
345345 then if (if ((E > 24))
346346 then (37 > E)
347347 else false)
348348 then true
349349 else throw("Invalid dozen 3 move. Game aborted!")
350350 else throw("Invalid dozen move. Game aborted!")
351351
352352
353353 func Q (E) = if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if ((E == 1))
354354 then true
355355 else (E == 3))
356356 then true
357357 else (E == 5))
358358 then true
359359 else (E == 7))
360360 then true
361361 else (E == 9))
362362 then true
363363 else (E == 12))
364364 then true
365365 else (E == 14))
366366 then true
367367 else (E == 16))
368368 then true
369369 else (E == 18))
370370 then true
371371 else (E == 19))
372372 then true
373373 else (E == 21))
374374 then true
375375 else (E == 23))
376376 then true
377377 else (E == 25))
378378 then true
379379 else (E == 27))
380380 then true
381381 else (E == 30))
382382 then true
383383 else (E == 32))
384384 then true
385385 else (E == 34))
386386 then true
387387 else (E == 36))
388388 then true
389389 else throw("Invalid color, expected red color, try again. Game aborted!")
390390
391391
392392 func R (E) = if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if ((E == 2))
393393 then true
394394 else (E == 4))
395395 then true
396396 else (E == 6))
397397 then true
398398 else (E == 8))
399399 then true
400400 else (E == 10))
401401 then true
402402 else (E == 11))
403403 then true
404404 else (E == 13))
405405 then true
406406 else (E == 15))
407407 then true
408408 else (E == 17))
409409 then true
410410 else (E == 20))
411411 then true
412412 else (E == 22))
413413 then true
414414 else (E == 24))
415415 then true
416416 else (E == 26))
417417 then true
418418 else (E == 28))
419419 then true
420420 else (E == 29))
421421 then true
422422 else (E == 31))
423423 then true
424424 else (E == 33))
425425 then true
426426 else (E == 35))
427427 then true
428428 else throw("Invalid color, expected black color, try again. Game aborted!")
429429
430430
431431 func S (E) = if (((E % 2) != 0))
432432 then true
433433 else throw("Invalid move, number is not odd. Game aborted!")
434434
435435
436436 func T (E) = if (((E % 2) == 0))
437437 then true
438438 else throw("Invalid move, number is not even. Game aborted!")
439439
440440
441441 func U (E) = if (if ((E > 0))
442442 then (19 > E)
443443 else false)
444444 then true
445445 else throw("Invalid range for 1to18, try between 1 and 18. Game aborted!")
446446
447447
448448 func V (E) = if (if ((E > 18))
449449 then (37 > E)
450450 else false)
451451 then true
452452 else throw("Invalid range for 19to36, try between 1 and 18. Game aborted!")
453453
454454
455455 func W (X) = if ((size(X) > 10))
456456 then {
457457 let Y = split(X, "_")
458458 let Z = parseIntValue(Y[0])
459459 let aa = parseIntValue(Y[1])
460460 let ab = parseIntValue(Y[2])
461461 let ac = parseIntValue(Y[3])
462462 let ad = parseIntValue(Y[4])
463- let ae = if (if (D(ab))
464- then (size(Y) != 5)
463+ if (if (D(ab))
464+ then (size(Y) == 5)
465465 else false)
466466 then if ((Z == p))
467467 then F(ab, ac, ad)
468468 else if ((Z == q))
469469 then J(ab, ac)
470470 else if ((Z == t))
471471 then K(ab, ac)
472472 else if ((Z == s))
473473 then L(ab)
474474 else if ((Z == t))
475475 then M(ab, ac)
476476 else if ((Z == u))
477477 then O(ab, ac)
478478 else if ((Z == v))
479479 then Q(ab)
480480 else if ((Z == w))
481481 then R(ab)
482482 else if ((Z == x))
483483 then S(ab)
484484 else if ((Z == y))
485485 then T(ab)
486486 else if ((Z == z))
487487 then U(ab)
488488 else if ((Z == A))
489489 then V(ab)
490490 else throw("Invalid bet type, Game aborted!")
491491 else throw("Invalid bet, Game aborted!")
492- aa
493492 }
494493 else 0
495494
496495
497-func af (ag) = ((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((W(ag[0]) + W(ag[1])) + W(ag[2])) + W(ag[3])) + W(ag[4])) + W(ag[5])) + W(ag[6])) + W(ag[7])) + W(ag[8])) + W(ag[9])) + W(ag[10])) + W(ag[11])) + W(ag[12])) + W(ag[13])) + W(ag[14])) + W(ag[15])) + W(ag[16])) + W(ag[17])) + W(ag[18])) + W(ag[19])) + W(ag[20])) + W(ag[21])) + W(ag[22])) + W(ag[23])) + W(ag[24])) + W(ag[25])) + W(ag[26])) + W(ag[27])) + W(ag[28])) + W(ag[29])) + W(ag[30])) + W(ag[31])) + W(ag[32])) + W(ag[33])) + W(ag[34])) + W(ag[35])) + W(ag[36])) + W(ag[37])) + W(ag[38])) + W(ag[39])) + W(ag[40])) + W(ag[41])) + W(ag[42])) + W(ag[43])) + W(ag[44])) + W(ag[45])) + W(ag[46])) + W(ag[47])) + W(ag[48])) + W(ag[49])) + W(ag[50])) + W(ag[51])) + W(ag[52])) + W(ag[53])) + W(ag[54])) + W(ag[55])) + W(ag[56])) + W(ag[57])) + W(ag[58])) + W(ag[59])) + W(ag[60])) + W(ag[61])) + W(ag[62])) + W(ag[63])) + W(ag[64])) + W(ag[65])) + W(ag[66])) + W(ag[67])) + W(ag[68])) + W(ag[69])) + W(ag[70])) + W(ag[71])) + W(ag[72])) + W(ag[73])) + W(ag[74])) + W(ag[75])) + W(ag[76])) + W(ag[77])) + W(ag[78])) + W(ag[79])) + W(ag[80])) + W(ag[81])) + W(ag[82])) + W(ag[83])) + W(ag[84]))
496+func ae (af) = throw(af[0])
498497
499498
500-func ah () = {
501- let ai = {
502- let aj = getInteger(this, b)
503- if ($isInstanceOf(aj, "Int"))
499+func ag () = {
500+ let ah = {
501+ let ai = getInteger(this, b)
502+ if ($isInstanceOf(ai, "Int"))
504503 then {
505- let E = aj
504+ let E = ai
506505 E
507506 }
508507 else 0
509508 }
510- (ai + 1)
509+ (ah + 1)
511510 }
512511
513512
514-@Callable(ak)
515-func playRoulette (ag) = {
516- let al = toBase58String(ak.transactionId)
517- let am = extract(ak.payment)
518- let an = isDefined(ak.feeAssetId)
519- let ao = isDefined(getString(this, al))
520- let ap = wavesBalance(ak.caller)
521- let aq = split(ag, "|")
522- if ((am.assetId != d))
513+@Callable(aj)
514+func playRoulette (af) = {
515+ let ak = toBase58String(aj.transactionId)
516+ let al = extract(aj.payment)
517+ let am = isDefined(aj.feeAssetId)
518+ let an = isDefined(getString(this, ak))
519+ let ao = wavesBalance(aj.caller)
520+ let ap = split(af, "|")
521+ if ((al.assetId != d))
523522 then throw("Payment should be in WBET. Game aborted.")
524- else if ((1000000 > ap))
523+ else if ((1000000 > ao))
525524 then throw("There are not enough waves, it takes 0.01 Waves to bet. Game aborted.")
526- else if (an)
525+ else if (am)
527526 then throw("Transaction's fee must be in Waves. Game aborted.")
528- else if (ao)
527+ else if (an)
529528 then throw("Passed gameId had been used before. Game aborted.")
530- else if ((10 > size(ag)))
529+ else if ((10 > size(af)))
531530 then throw("No valid bets. Game aborted.")
532531 else {
533- let ar = af(aq)
534- let as = ah()
535- let at = toBase58String(ak.callerPublicKey)
536- let au = ((j + "-") + ag)
537- ScriptResult(WriteSet([DataEntry(b, as), DataEntry(al, au)]), TransferSet([ScriptTransfer(e, fraction(am.amount, h, 100), d), ScriptTransfer(f, fraction(am.amount, i, 100), d)]))
532+ let aq = ae(ap)
533+ let ar = ag()
534+ let as = toBase58String(aj.callerPublicKey)
535+ let at = ((j + "-") + af)
536+ ScriptResult(WriteSet([DataEntry(b, ar), DataEntry(ak, at)]), TransferSet([ScriptTransfer(e, fraction(al.amount, h, 100), d), ScriptTransfer(f, fraction(al.amount, i, 100), d)]))
538537 }
539538 }
540539
541540

github/deemru/w8io/169f3d6 
74.66 ms