tx · 4SNVkoe3sjZPWunuYwWPE9imxVkAuDKJvnXWEXutWrk7
3NBxmy6co128zY2x4nz4tdYE7LBLz2RXHuB: -0.01000000 Waves
2022.03.21 23:31 [1974180] smart account 3NBxmy6co128zY2x4nz4tdYE7LBLz2RXHuB > SELF 0.00000000 Waves
{
"type": 13,
"id": "4SNVkoe3sjZPWunuYwWPE9imxVkAuDKJvnXWEXutWrk7",
"fee": 1000000,
"feeAssetId": null,
"timestamp": 1647894684948,
"version": 2,
"chainId": 84,
"sender": "3NBxmy6co128zY2x4nz4tdYE7LBLz2RXHuB",
"senderPublicKey": "5HaVHwTnAqmQF8TLd8vAqExCLoKuBKoJ4wXKhVbSSapf",
"proofs": [
"4tDEoN3gD3iyuLgpGnBpPkj7GQUrLco4Th9yFD97jgsobtyFGmtSaQXg7avyLyukybS2gqYzCcsrvjK6BE6yyTKs"
],
"script": "base64:AAIFAAAAAAAAAAQIAhIAAAAAAAAAAAEAAAABaQEAAAAFemFyQXQAAAAABAAAAAN1bmkAAAAAAAAPQkAEAAAAA3RpYwMJAABmAAAAAgkAAZAAAAABCAUAAAABaQAAAAhwYXltZW50cwAAAAAAAAAAAAkAAZEAAAACCAUAAAABaQAAAAhwYXltZW50cwAAAAAAAAAAAAkAAAIAAAABAgAAABhObyBNb25leSBObyBGdW5ueSBIb25leS4DCQEAAAACIT0AAAACCAUAAAADdGljAAAABmFtb3VudAAAAAAAAA9CQAQAAAADZ0lECQAEsQAAAAEIBQAAAAFpAAAADXRyYW5zYWN0aW9uSWQEAAAAAXIJAABkAAAAAgkAAGoAAAACCQAAZAAAAAIJAABkAAAAAgkAAGQAAAACCAUAAAAJbGFzdEJsb2NrAAAABmhlaWdodAgFAAAACWxhc3RCbG9jawAAAAl0aW1lc3RhbXAIBQAAAAlsYXN0QmxvY2sAAAAKYmFzZVRhcmdldAUAAAADZ0lEAAAAAAAAAAAGAAAAAAAAAAABBAAAAAF6CQAAZAAAAAIJAABqAAAAAgkAAGQAAAACCQAAZAAAAAIJAABkAAAAAgkABLEAAAABCAgFAAAACWxhc3RCbG9jawAAAAlnZW5lcmF0b3IAAAAFYnl0ZXMIBQAAAAlsYXN0QmxvY2sAAAAJdGltZXN0YW1wCAUAAAAJbGFzdEJsb2NrAAAACmJhc2VUYXJnZXQFAAAAA2dJRAAAAAAAAAAABgAAAAAAAAAAAQMJAAAAAAAAAgUAAAABcgUAAAABegkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADCAUAAAABaQAAAAZjYWxsZXIJAABoAAAAAgkAAGgAAAACBQAAAAFyAAAAAAAAAAADBQAAAAN1bmkFAAAABHVuaXQJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgIAAAADTnVtCQABLAAAAAIJAAEsAAAAAgkAAaQAAAABBQAAAAFyAgAAAAEgCQABpAAAAAEFAAAAAXoFAAAAA25pbAkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADCAUAAAABaQAAAAZjYWxsZXIJAABpAAAAAgkAAGgAAAACCQAAZAAAAAIFAAAAAXIFAAAAAXoFAAAAA3VuaQAAAAAAAAAAAgUAAAAEdW5pdAkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACAgAAAANOdW0JAAEsAAAAAgkAASwAAAACCQABpAAAAAEFAAAAAXICAAAAASAJAAGkAAAAAQUAAAABegUAAAADbmlsCQAAAgAAAAECAAAAMVRpY2tldHMgYXJlIDAuMDEgV0FWRVMuIFBsZWFzZSBzZW50IGV4YWN0IGFtb3VudC4AAAAAHrFkKQ==",
"height": 1974180,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: 9D4APPCiCMopd45nMNv6Ws5hfqXP4U9x4agcinVQiWxi
Next: AcP7uMMEkUXfLUGnfqCkM76cuZdC5EpcL4gj5zfa94NG
Diff:
Old | New | | Differences |
---|
16 | 16 | | let z = (((((toInt(lastBlock.generator.bytes) + lastBlock.timestamp) + lastBlock.baseTarget) + gID) % 6) + 1) |
---|
17 | 17 | | if ((r == z)) |
---|
18 | 18 | | then [ScriptTransfer(i.caller, ((r * 3) * uni), unit), StringEntry("Num", ((toString(r) + " ") + toString(z)))] |
---|
19 | | - | else [ScriptTransfer(i.caller, (r + z), unit), StringEntry("Num", ((toString(r) + " ") + toString(z)))] |
---|
| 19 | + | else [ScriptTransfer(i.caller, (((r + z) * uni) / 2), unit), StringEntry("Num", ((toString(r) + " ") + toString(z)))] |
---|
20 | 20 | | } |
---|
21 | 21 | | else throw("Tickets are 0.01 WAVES. Please sent exact amount.") |
---|
22 | 22 | | } |
---|
Full:
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 zarAt () = { |
---|
8 | 8 | | let uni = 1000000 |
---|
9 | 9 | | let tic = if ((size(i.payments) > 0)) |
---|
10 | 10 | | then i.payments[0] |
---|
11 | 11 | | else throw("No Money No Funny Honey.") |
---|
12 | 12 | | if ((tic.amount != 1000000)) |
---|
13 | 13 | | then { |
---|
14 | 14 | | let gID = toInt(i.transactionId) |
---|
15 | 15 | | let r = (((((lastBlock.height + lastBlock.timestamp) + lastBlock.baseTarget) + gID) % 6) + 1) |
---|
16 | 16 | | let z = (((((toInt(lastBlock.generator.bytes) + lastBlock.timestamp) + lastBlock.baseTarget) + gID) % 6) + 1) |
---|
17 | 17 | | if ((r == z)) |
---|
18 | 18 | | then [ScriptTransfer(i.caller, ((r * 3) * uni), unit), StringEntry("Num", ((toString(r) + " ") + toString(z)))] |
---|
19 | | - | else [ScriptTransfer(i.caller, (r + z), unit), StringEntry("Num", ((toString(r) + " ") + toString(z)))] |
---|
| 19 | + | else [ScriptTransfer(i.caller, (((r + z) * uni) / 2), unit), StringEntry("Num", ((toString(r) + " ") + toString(z)))] |
---|
20 | 20 | | } |
---|
21 | 21 | | else throw("Tickets are 0.01 WAVES. Please sent exact amount.") |
---|
22 | 22 | | } |
---|
23 | 23 | | |
---|
24 | 24 | | |
---|