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+8AAAABBQAAAAR0aGlzBAAAAAN0aWMDCQAAZgAAAAIJAAGQAAAAAQgFAAAAAWkAAAAIcGF5bWVudHMAAAAAAAAAAAAJAAGRAAAAAggFAAAAAWkAAAAIcGF5bWVudHMAAAAAAAAAAAAJAAACAAAAAQIAAAAYTm8gTW9uZXkgTm8gRnVubnkgSG9uZXkuAwkAAGYAAAACCAUAAAALY2FzYUJhbGFuY2UAAAAJYXZhaWxhYmxlAAAAAAACNJNAAwMJAAAAAAAAAggFAAAAA3RpYwAAAAZhbW91bnQAAAAAAACYloAJAQAAAAlpc0RlZmluZWQAAAABCAUAAAADdGljAAAAB2Fzc2V0SWQHBAAAAANnSUQJAASxAAAAAQgFAAAAAWkAAAANdHJhbnNhY3Rpb25JZAQAAAABcgkAAGQAAAACCQAAagAAAAIJAABkAAAAAgkAAGQAAAACCQAAZAAAAAIIBQAAAAlsYXN0Qm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mNhbGxlcgUAAAAHc2VudERpZgUAAAAEdW5pdAkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACAgAAAANOdW0JAAEsAAAAAgkAASwAAAACCQABpAAAAAEFAAAAAXICAAAAASAJAAGkAAAAAQUAAAABegkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACCQABpAAAAAEIBQAAAAlsYXN0QmxvY2sAAAAJdGltZXN0YW1wCQABLAAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACCQAEJQAAAAEIBQAAAAFpAAAABmNhbGxlcgIAAAABIAkAAaQAAAABBQAAAAFyAgAAAAEgCQABpAAAAAEFAAAAAXoCAAAAByBTZW50OiAJAAGkAAAAAQUAAAAHc2VudERpZgUAAAADbmlsCQAAAgAAAAECAAAAMFRpY2tldHMgYXJlIDAuMSBXQVZFUy4gUGxlYXNlIHNlbnQgZXhhY3QgYW1vdW50LgkAAAIAAAABAgAAAApDYXNhIGVtcHR5AAAAAME/bc4=", "height": 1984030, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: J6rFRtzAVRQYHUW2RBRbdHSWYpvkeoGgp3EtTWNHaLus Next: 2DvuKekgbZscrUkeXdFy7zA97XeFydAu4NYGc37iftGE Diff:
OldNewDifferences
1010 let tic = if ((size(i.payments) > 0))
1111 then i.payments[0]
1212 else throw("No Money No Funny Honey.")
13- if ((casaBalance.available > 20000000))
13+ if ((casaBalance.available > 37000000))
1414 then if (if ((tic.amount == 10000000))
1515 then isDefined(tic.assetId)
1616 else false)
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44
55
66 @Callable(i)
77 func throwDice () = {
88 let uni = 1000000
99 let casaBalance = wavesBalance(this)
1010 let tic = if ((size(i.payments) > 0))
1111 then i.payments[0]
1212 else throw("No Money No Funny Honey.")
13- if ((casaBalance.available > 20000000))
13+ if ((casaBalance.available > 37000000))
1414 then if (if ((tic.amount == 10000000))
1515 then isDefined(tic.assetId)
1616 else false)
1717 then {
1818 let gID = toInt(i.transactionId)
1919 let r = (((((lastBlock.height + lastBlock.timestamp) + lastBlock.baseTarget) + gID) % 6) + 1)
2020 let z = (((((toInt(lastBlock.generator.bytes) + lastBlock.timestamp) + lastBlock.baseTarget) + gID) % 6) + 1)
2121 let sentSame = ((r * z) * uni)
2222 let sentDif = ((r + z) * uni)
2323 if ((r == z))
2424 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)))]
2525 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)))]
2626 }
2727 else throw("Tickets are 0.1 WAVES. Please sent exact amount.")
2828 else throw("Casa empty")
2929 }
3030
3131

github/deemru/w8io/169f3d6 
24.26 ms