tx · 4fr224DEAcM69VBVaY32HPEF7NuftTGSpmWh85qT8K59

3NBxmy6co128zY2x4nz4tdYE7LBLz2RXHuB:  -0.01000000 Waves

2022.03.21 23:49 [1974196] smart account 3NBxmy6co128zY2x4nz4tdYE7LBLz2RXHuB > SELF 0.00000000 Waves

{ "type": 13, "id": "4fr224DEAcM69VBVaY32HPEF7NuftTGSpmWh85qT8K59", "fee": 1000000, "feeAssetId": null, "timestamp": 1647895866320, "version": 2, "chainId": 84, "sender": "3NBxmy6co128zY2x4nz4tdYE7LBLz2RXHuB", "senderPublicKey": "5HaVHwTnAqmQF8TLd8vAqExCLoKuBKoJ4wXKhVbSSapf", "proofs": [ "3hYRGAjcW9h3wXTLaBJCveGnHTvWcAn8bBFCpEnViUuNh43wjWruYJ7QCSs6anBrR4iYcR5avo4CXYM5oAqA2KJu" ], "script": "base64:AAIFAAAAAAAAAAQIAhIAAAAAAAAAAAEAAAABaQEAAAAFemFyQXQAAAAABAAAAAN1bmkAAAAAAAAPQkAEAAAAA3RpYwMJAABmAAAAAgkAAZAAAAABCAUAAAABaQAAAAhwYXltZW50cwAAAAAAAAAAAAkAAZEAAAACCAUAAAABaQAAAAhwYXltZW50cwAAAAAAAAAAAAkAAAIAAAABAgAAABhObyBNb25leSBObyBGdW5ueSBIb25leS4DCQAAAAAAAAIIBQAAAAN0aWMAAAAGYW1vdW50AAAAAAAAD0JABAAAAANnSUQJAASxAAAAAQgFAAAAAWkAAAANdHJhbnNhY3Rpb25JZAQAAAABcgkAAGQAAAACCQAAagAAAAIJAABkAAAAAgkAAGQAAAACCQAAZAAAAAIIBQAAAAlsYXN0QmxvY2sAAAAGaGVpZ2h0CAUAAAAJbGFzdEJsb2NrAAAACXRpbWVzdGFtcAgFAAAACWxhc3RCbG9jawAAAApiYXNlVGFyZ2V0BQAAAANnSUQAAAAAAAAAAAYAAAAAAAAAAAEEAAAAAXoJAABkAAAAAgkAAGoAAAACCQAAZAAAAAIJAABkAAAAAgkAAGQAAAACCQ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ded", "spentComplexity": 0 } View: original | compacted Prev: 8s85MpJVPwtYP1PsMQLcSqxsPvftPeioe33i2k3rf3xr Next: AWCAUByks1cH2rssorbfPRrQTzPm7jvdDx6KeAkzAgXj Diff:
OldNewDifferences
1515 let r = (((((lastBlock.height + lastBlock.timestamp) + lastBlock.baseTarget) + gID) % 6) + 1)
1616 let z = (((((toInt(lastBlock.generator.bytes) + lastBlock.timestamp) + lastBlock.baseTarget) + gID) % 6) + 1)
1717 if ((r == z))
18- then [ScriptTransfer(i.caller, ((r * 3) * uni), unit), StringEntry("Num", ((toString(r) + " ") + toString(z)))]
19- else [ScriptTransfer(i.caller, (((r + z) * uni) / 2), unit), StringEntry("Num", ((toString(r) + " ") + toString(z)))]
18+ then [ScriptTransfer(i.caller, ((r * 3) * uni), unit), StringEntry("Num", ((toString(r) + " ") + toString(z))), StringEntry(toString(lastBlock.timestamp), toString(i.caller))]
19+ else [ScriptTransfer(i.caller, (((r + z) * uni) / 2), unit), StringEntry("Num", ((toString(r) + " ") + toString(z))), StringEntry(toString(lastBlock.timestamp), toString(i.caller))]
2020 }
2121 else throw("Tickets are 0.01 WAVES. Please sent exact amount.")
2222 }
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44
55
66 @Callable(i)
77 func zarAt () = {
88 let uni = 1000000
99 let tic = if ((size(i.payments) > 0))
1010 then i.payments[0]
1111 else throw("No Money No Funny Honey.")
1212 if ((tic.amount == 1000000))
1313 then {
1414 let gID = toInt(i.transactionId)
1515 let r = (((((lastBlock.height + lastBlock.timestamp) + lastBlock.baseTarget) + gID) % 6) + 1)
1616 let z = (((((toInt(lastBlock.generator.bytes) + lastBlock.timestamp) + lastBlock.baseTarget) + gID) % 6) + 1)
1717 if ((r == z))
18- then [ScriptTransfer(i.caller, ((r * 3) * uni), unit), StringEntry("Num", ((toString(r) + " ") + toString(z)))]
19- else [ScriptTransfer(i.caller, (((r + z) * uni) / 2), unit), StringEntry("Num", ((toString(r) + " ") + toString(z)))]
18+ then [ScriptTransfer(i.caller, ((r * 3) * uni), unit), StringEntry("Num", ((toString(r) + " ") + toString(z))), StringEntry(toString(lastBlock.timestamp), toString(i.caller))]
19+ else [ScriptTransfer(i.caller, (((r + z) * uni) / 2), unit), StringEntry("Num", ((toString(r) + " ") + toString(z))), StringEntry(toString(lastBlock.timestamp), toString(i.caller))]
2020 }
2121 else throw("Tickets are 0.01 WAVES. Please sent exact amount.")
2222 }
2323
2424

github/deemru/w8io/169f3d6 
21.52 ms