tx · F94DCrJdxYqS5h9tEWmrEctF9rtKdjq2JRDYPjLPLBMj 3NBxmy6co128zY2x4nz4tdYE7LBLz2RXHuB: -0.01000000 Waves 2022.03.22 10:33 [1974842] smart account 3NBxmy6co128zY2x4nz4tdYE7LBLz2RXHuB > SELF 0.00000000 Waves
{ "type": 13, "id": "F94DCrJdxYqS5h9tEWmrEctF9rtKdjq2JRDYPjLPLBMj", "fee": 1000000, "feeAssetId": null, "timestamp": 1647934434333, "version": 2, "chainId": 84, "sender": "3NBxmy6co128zY2x4nz4tdYE7LBLz2RXHuB", "senderPublicKey": "5HaVHwTnAqmQF8TLd8vAqExCLoKuBKoJ4wXKhVbSSapf", "proofs": [ "3N64ERSqeb4VtYSAwxqAtSfZtFbMnKADPtnLkgthmKW8Cui1YbfPrv8j8rorQ18GpQMBZHi2izyZCG2nPvTSnijZ" ], "script": "base64:AAIFAAAAAAAAAAQIAhIAAAAAAAAAAAEAAAABaQEAAAAJdGhyb3dEaWNlAAAAAAQAAAADdW5pAAAAAAAAD0JABAAAAARjYXNhCQEAAAAHQWRkcmVzcwAAAAEBAAAAGgFU8dUmfV9XTKe8QHJbnae4Yz5z2sr+mbGiBAAAAAtjYXNhQmFsYW5jZQkAA+8AAAABBQAAAARjYXNhBAAAAAN0aWMDCQAAZgAAAAIJAAGQAAAAAQgFAAAAAWkAAAAIcGF5bWVudHMAAAAAAAAAAAAJAAGRAAAAAggFAAAAAWkAAAAIcGF5bWVudHMAAAAAAAAAAAAJAAACAAAAAQIAAAAYTm8gTW9uZXkgTm8gRnVubnkgSG9uZXkuAwkAAGYAAAACCAUAAAALY2FzYUJhbGFuY2UAAAAJYXZhaWxhYmxlAAAAAAAL68IAAwkAAAAAAAACCAUAAAADdGljAAAABmFtb3VudAAAAAAAAJiWgAQAAAADZ0lECQAEsQAAAAEIBQAAAAFpAAAADXRyYW5zYWN0aW9uSWQEAAAAAXIJAABkAAAAAgkAAGoAAAACCQAAZAAAAAIJAABkAAAAAgkAAGQAA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AAAABaQAAAAZjYWxsZXIFAAAAB3NlbnREaWYFAAAABHVuaXQJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgIAAAADTnVtCQABLAAAAAIJAAEsAAAAAgkAAaQAAAABBQAAAAFyAgAAAAEgCQABpAAAAAEFAAAAAXoJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgkAAaQAAAABCAUAAAAJbGFzdEJsb2NrAAAACXRpbWVzdGFtcAkAASwAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgkABCUAAAABCAUAAAABaQAAAAZjYWxsZXICAAAAASAJAAGkAAAAAQUAAAABcgIAAAABIAkAAaQAAAABBQAAAAF6AgAAAAcgU2VudDogCQABpAAAAAEFAAAAB3NlbnREaWYFAAAAA25pbAkAAAIAAAABAgAAADBUaWNrZXRzIGFyZSAwLjEgV0FWRVMuIFBsZWFzZSBzZW50IGV4YWN0IGFtb3VudC4JAAACAAAAAQIAAAAKQ2FzYSBlbXB0eQAAAADEjpQz", "height": 1974842, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: H3LFZcb41G8rfWRbrRswFpPtCnEbfD98FRMP28CrUe4f Next: C6BKeLJGeHMF2azvyh4Zo1qsNrvyHcLjQHry3Qxven8G Diff:
Old | New | Differences | |
---|---|---|---|
11 | 11 | let tic = if ((size(i.payments) > 0)) | |
12 | 12 | then i.payments[0] | |
13 | 13 | else throw("No Money No Funny Honey.") | |
14 | - | if ((casaBalance.available > | |
14 | + | if ((casaBalance.available > 200000000)) | |
15 | 15 | then if ((tic.amount == 10000000)) | |
16 | 16 | then { | |
17 | 17 | let gID = toInt(i.transactionId) |
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 casa = Address(base58'3NBxmy6co128zY2x4nz4tdYE7LBLz2RXHuB') | |
10 | 10 | let casaBalance = wavesBalance(casa) | |
11 | 11 | let tic = if ((size(i.payments) > 0)) | |
12 | 12 | then i.payments[0] | |
13 | 13 | else throw("No Money No Funny Honey.") | |
14 | - | if ((casaBalance.available > | |
14 | + | if ((casaBalance.available > 200000000)) | |
15 | 15 | then if ((tic.amount == 10000000)) | |
16 | 16 | then { | |
17 | 17 | let gID = toInt(i.transactionId) | |
18 | 18 | let r = (((((lastBlock.height + lastBlock.timestamp) + lastBlock.baseTarget) + gID) % 6) + 1) | |
19 | 19 | let z = (((((toInt(lastBlock.generator.bytes) + lastBlock.timestamp) + lastBlock.baseTarget) + gID) % 6) + 1) | |
20 | 20 | let sentSame = ((r * z) * uni) | |
21 | 21 | let sentDif = ((r + z) * uni) | |
22 | 22 | if ((r == z)) | |
23 | 23 | 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)))] | |
24 | 24 | 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)))] | |
25 | 25 | } | |
26 | 26 | else throw("Tickets are 0.1 WAVES. Please sent exact amount.") | |
27 | 27 | else throw("Casa empty") | |
28 | 28 | } | |
29 | 29 | ||
30 | 30 |
github/deemru/w8io/169f3d6 21.64 ms ◑