tx · 7bSf8Zh1RJweFJFiDfzeVmBaUEcBas4urmrxTfyFNtAp

3NBxmy6co128zY2x4nz4tdYE7LBLz2RXHuB:  -0.01000000 Waves

2022.03.22 00:09 [1974218] smart account 3NBxmy6co128zY2x4nz4tdYE7LBLz2RXHuB > SELF 0.00000000 Waves

{ "type": 13, "id": "7bSf8Zh1RJweFJFiDfzeVmBaUEcBas4urmrxTfyFNtAp", "fee": 1000000, "feeAssetId": null, "timestamp": 1647896996315, "version": 2, "chainId": 84, "sender": "3NBxmy6co128zY2x4nz4tdYE7LBLz2RXHuB", "senderPublicKey": "5HaVHwTnAqmQF8TLd8vAqExCLoKuBKoJ4wXKhVbSSapf", "proofs": [ "5rwdYz2oyQ3SYzxNn87DBCN27BH7uXQXQ8zAJogL8TGxGQTf3TRLErUYGuTCfDguN3vvsQqtdGkLLH2cSnBfA6PQ" ], "script": "base64:AAIFAAAAAAAAAAQIAhIAAAAAAAAAAAEAAAABaQEAAAAFemFyQXQAAAAABAAAAAN1bmkAAAAAAAAPQkAEAAAAA3RpYwMJAABmAAAAAgkAAZAAAAABCAUAAAABaQAAAAhwYXltZW50cwAAAAAAAAAAAAkAAZEAAAACCAUAAAABaQAAAAhwYXltZW50cwAAAAAAAAAAAAkAAAIAAAABAgAAABhObyBNb25leSBObyBGdW5ueSBIb25leS4DCQAAAAAAAAIIBQAAAAN0aWMAAAAGYW1vdW50AAAAAAAAD0JABAAAAANnSUQJAASxAAAAAQgFAAAAAWkAAAANdHJhbnNhY3Rpb25JZAQAAAABcgkAAGQAAAACCQAAagAAAAIJAABkAAAAAgkAAGQAAAACCQAAZAAAAAIIBQAAAAlsYXN0QmxvY2sAAAAGaGVpZ2h0CAUAAAAJbGFzdEJsb2NrAAAACXRpbWVzdGFtcAgFAAAACWxhc3RCbG9jawAAAApiYXNlVGFyZ2V0BQAAAANnSUQAAAAAAAAAAAYAAAAAAAAAAAEEAAAAAXoJAABkAAAAAgkAAGoAAAACCQAAZAAAAAIJAABkAAAA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QABpAAAAAEIBQAAAAlsYXN0QmxvY2sAAAAJdGltZXN0YW1wCQABLAAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACCQAEJQAAAAEIBQAAAAFpAAAABmNhbGxlcgIAAAABIAkAAaQAAAABBQAAAAFyAgAAAAEgCQABpAAAAAEFAAAAAXoCAAAAByBTZW50OiAJAAGkAAAAAQUAAAAHc2VudERpZgUAAAADbmlsCQAAAgAAAAECAAAAMVRpY2tldHMgYXJlIDAuMDEgV0FWRVMuIFBsZWFzZSBzZW50IGV4YWN0IGFtb3VudC4AAAAASb4pww==", "height": 1974218, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: AG4xBaaa23NNFfUg4LHo6zD6m4pVHaAhGdZj6TPNRuR6 Next: 8UdHiu36mZNqBGDEUTc1VSGXaB6zVd127S7AYUTUDSSX Diff:
OldNewDifferences
1717 let sentSame = ((r * z) * uni)
1818 let sentDif = ((r + z) * uni)
1919 if ((r == z))
20- then [ScriptTransfer(i.caller, ((r * 3) * uni), unit), StringEntry("Num", ((toString(r) + " ") + toString(z))), StringEntry(toString(lastBlock.timestamp), ((((((toString(i.caller) + " ") + toString(r)) + " ") + toString(z)) + " Sent: ") + toString(sentSame)))]
21- else [ScriptTransfer(i.caller, (((r + z) * uni) / 2), unit), StringEntry("Num", ((toString(r) + " ") + toString(z))), StringEntry(toString(lastBlock.timestamp), ((((((toString(i.caller) + " ") + toString(r)) + " ") + toString(z)) + " Sent: ") + toString(sentDif)))]
20+ 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)))]
21+ 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)))]
2222 }
2323 else throw("Tickets are 0.01 WAVES. Please sent exact amount.")
2424 }
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 let sentSame = ((r * z) * uni)
1818 let sentDif = ((r + z) * uni)
1919 if ((r == z))
20- then [ScriptTransfer(i.caller, ((r * 3) * uni), unit), StringEntry("Num", ((toString(r) + " ") + toString(z))), StringEntry(toString(lastBlock.timestamp), ((((((toString(i.caller) + " ") + toString(r)) + " ") + toString(z)) + " Sent: ") + toString(sentSame)))]
21- else [ScriptTransfer(i.caller, (((r + z) * uni) / 2), unit), StringEntry("Num", ((toString(r) + " ") + toString(z))), StringEntry(toString(lastBlock.timestamp), ((((((toString(i.caller) + " ") + toString(r)) + " ") + toString(z)) + " Sent: ") + toString(sentDif)))]
20+ 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)))]
21+ 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)))]
2222 }
2323 else throw("Tickets are 0.01 WAVES. Please sent exact amount.")
2424 }
2525
2626

github/deemru/w8io/169f3d6 
30.04 ms