tx · DhQgoEYqCnEeUn6gwDR2Rp4JF5gYy9xcJeTuy3qDqHoV 3NBxmy6co128zY2x4nz4tdYE7LBLz2RXHuB: -0.01000000 Waves 2022.03.28 20:00 [1984030] smart account 3NBxmy6co128zY2x4nz4tdYE7LBLz2RXHuB > SELF 0.00000000 Waves
{ "type": 13, "id": "DhQgoEYqCnEeUn6gwDR2Rp4JF5gYy9xcJeTuy3qDqHoV", "fee": 1000000, "feeAssetId": null, "timestamp": 1648486861039, "version": 2, "chainId": 84, "sender": "3NBxmy6co128zY2x4nz4tdYE7LBLz2RXHuB", "senderPublicKey": "5HaVHwTnAqmQF8TLd8vAqExCLoKuBKoJ4wXKhVbSSapf", "proofs": [ "55Q2U32icSGNH7Ax3JqpgWT5kTDpn5mnNM1V5HMRo4NRpDte87iND2DHLekbkSyGDKD4KvCwaDKtYmReaeZwVDQc" ], "script": "base64:AAIFAAAAAAAAAAQIAhIAAAAAAAAAAAEAAAABaQEAAAAJdGhyb3dEaWNlAAAAAAQAAAADdW5pAAAAAAAAD0JABAAAAAtjYXNhQmFsYW5jZQkAA+8AAAABBQAAAAR0aGlzBAAAAAN0aWMDCQAAZgAAAAIJAAGQAAAAAQgFAAAAAWkAAAAIcGF5bWVudHMAAAAAAAAAAAAJAAGRAAAAAggFAAAAAWkAAAAIcGF5bWVudHMAAAAAAAAAAAAJAAACAAAAAQIAAAAYTm8gTW9uZXkgTm8gRnVubnkgSG9uZXkuAwkAAGYAAAACCAUAAAALY2FzYUJhbGFuY2UAAAAJYXZhaWxhYmxlAAAAAAACNJNAAwMJAAAAAAAAAggFAAAAA3RpYwAAAAZhbW91bnQAAAAAAACYloAJAQAAAAlpc0RlZmluZWQAAAABCAUAAAADdGljAAAAB2Fzc2V0SWQHBAAAAANnSUQJAASxAAAAAQgFAAAAAWkAAAANdHJhbnNhY3Rpb25JZAQAAAABcgkAAGQAAAACCQAAagAAAAIJAABkAAAAAgkAAGQAAAACCQAAZAAAAAIIBQAAAAlsYXN0Qmx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NhbGxlcgUAAAAHc2VudERpZgUAAAAEdW5pdAkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACAgAAAANOdW0JAAEsAAAAAgkAASwAAAACCQABpAAAAAEFAAAAAXICAAAAASAJAAGkAAAAAQUAAAABegkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACCQABpAAAAAEIBQAAAAlsYXN0QmxvY2sAAAAJdGltZXN0YW1wCQABLAAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACCQAEJQAAAAEIBQAAAAFpAAAABmNhbGxlcgIAAAABIAkAAaQAAAABBQAAAAFyAgAAAAEgCQABpAAAAAEFAAAAAXoCAAAAByBTZW50OiAJAAGkAAAAAQUAAAAHc2VudERpZgUAAAADbmlsCQAAAgAAAAECAAAAMFRpY2tldHMgYXJlIDAuMSBXQVZFUy4gUGxlYXNlIHNlbnQgZXhhY3QgYW1vdW50LgkAAAIAAAABAgAAAApDYXNhIGVtcHR5AAAAAME/bc4=", "height": 1984030, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: J6rFRtzAVRQYHUW2RBRbdHSWYpvkeoGgp3EtTWNHaLus Next: 2DvuKekgbZscrUkeXdFy7zA97XeFydAu4NYGc37iftGE Diff:
Old | New | Differences | |
---|---|---|---|
10 | 10 | let tic = if ((size(i.payments) > 0)) | |
11 | 11 | then i.payments[0] | |
12 | 12 | else throw("No Money No Funny Honey.") | |
13 | - | if ((casaBalance.available > | |
13 | + | if ((casaBalance.available > 37000000)) | |
14 | 14 | then if (if ((tic.amount == 10000000)) | |
15 | 15 | then isDefined(tic.assetId) | |
16 | 16 | else false) |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | ||
5 | 5 | ||
6 | 6 | @Callable(i) | |
7 | 7 | func throwDice () = { | |
8 | 8 | let uni = 1000000 | |
9 | 9 | let casaBalance = wavesBalance(this) | |
10 | 10 | let tic = if ((size(i.payments) > 0)) | |
11 | 11 | then i.payments[0] | |
12 | 12 | else throw("No Money No Funny Honey.") | |
13 | - | if ((casaBalance.available > | |
13 | + | if ((casaBalance.available > 37000000)) | |
14 | 14 | then if (if ((tic.amount == 10000000)) | |
15 | 15 | then isDefined(tic.assetId) | |
16 | 16 | else false) | |
17 | 17 | then { | |
18 | 18 | let gID = toInt(i.transactionId) | |
19 | 19 | let r = (((((lastBlock.height + lastBlock.timestamp) + lastBlock.baseTarget) + gID) % 6) + 1) | |
20 | 20 | let z = (((((toInt(lastBlock.generator.bytes) + lastBlock.timestamp) + lastBlock.baseTarget) + gID) % 6) + 1) | |
21 | 21 | let sentSame = ((r * z) * uni) | |
22 | 22 | let sentDif = ((r + z) * uni) | |
23 | 23 | if ((r == z)) | |
24 | 24 | then [ScriptTransfer(i.caller, sentSame, unit), StringEntry("Num", ((toString(r) + " ") + toString(z))), StringEntry(toString(lastBlock.timestamp), ((((((toString(i.caller) + " ") + toString(r)) + " ") + toString(z)) + " Sent: ") + toString(sentSame)))] | |
25 | 25 | else [ScriptTransfer(i.caller, sentDif, unit), StringEntry("Num", ((toString(r) + " ") + toString(z))), StringEntry(toString(lastBlock.timestamp), ((((((toString(i.caller) + " ") + toString(r)) + " ") + toString(z)) + " Sent: ") + toString(sentDif)))] | |
26 | 26 | } | |
27 | 27 | else throw("Tickets are 0.1 WAVES. Please sent exact amount.") | |
28 | 28 | else throw("Casa empty") | |
29 | 29 | } | |
30 | 30 | ||
31 | 31 |
github/deemru/w8io/169f3d6 24.26 ms ◑