tx · CrrTsVjR69Xv7DcjnZY4SqRzhA7zyCUGy2GhvaaVWz4k

3NBxmy6co128zY2x4nz4tdYE7LBLz2RXHuB:  -0.01000000 Waves

2022.03.22 10:09 [1974817] smart account 3NBxmy6co128zY2x4nz4tdYE7LBLz2RXHuB > SELF 0.00000000 Waves

{ "type": 13, "id": "CrrTsVjR69Xv7DcjnZY4SqRzhA7zyCUGy2GhvaaVWz4k", "fee": 1000000, "feeAssetId": null, "timestamp": 1647932952003, "version": 2, "chainId": 84, "sender": "3NBxmy6co128zY2x4nz4tdYE7LBLz2RXHuB", "senderPublicKey": "5HaVHwTnAqmQF8TLd8vAqExCLoKuBKoJ4wXKhVbSSapf", "proofs": [ "4YhrSgt6L8WRseZge5SaxnfW4mRNdrHYLiND7PjycGZ1TWH3W8xF4q1YyruPiSLvcfkGVWfKP9fSaQBrfjZHoQxn" ], "script": "base64:AAIFAAAAAAAAAAQIAhIAAAAAAAAAAAEAAAABaQEAAAAJdGhyb3dEaWNlAAAAAAQAAAADdW5pAAAAAAAAD0JABAAAAAN0aWMDCQAAZgAAAAIJAAGQAAAAAQgFAAAAAWkAAAAIcGF5bWVudHMAAAAAAAAAAAAJAAGRAAAAAggFAAAAAWkAAAAIcGF5bWVudHMAAAAAAAAAAAAJAAACAAAAAQIAAAAYTm8gTW9uZXkgTm8gRnVubnkgSG9uZXkuAwkAAGYAAAACCQAD8AAAAAIFAAAABHRoaXMJAAGbAAAAAQIAAAAFV0FWRVMAAAAAAAAAB9ADCQAAAAAAAAIIBQAAAAN0aWMAAAAGYW1vdW50AAAAAAAAmJaABAAAAANnSUQJAASxAAAAAQgFAAAAAWkAAAANdHJhbnNhY3Rpb25JZAQAAAABcgkAAGQAAAACCQAAagAAAAIJAABkAAAAAgkAAGQAAAACCQAAZAAAAAIIBQAAAAlsYXN0QmxvY2sAAAAGaGVpZ2h0CAUAAAAJbGFzdEJsb2NrAAAACXRpbWVzdGFtcAgFAAAACWxhc3RCbG9jawAAAApiYXNlVG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AAAgkAASwAAAACCQABpAAAAAEFAAAAAXICAAAAASAJAAGkAAAAAQUAAAABegkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACCQABpAAAAAEIBQAAAAlsYXN0QmxvY2sAAAAJdGltZXN0YW1wCQABLAAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACCQAEJQAAAAEIBQAAAAFpAAAABmNhbGxlcgIAAAABIAkAAaQAAAABBQAAAAFyAgAAAAEgCQABpAAAAAEFAAAAAXoCAAAAByBTZW50OiAJAAGkAAAAAQUAAAAHc2VudERpZgUAAAADbmlsCQAAAgAAAAECAAAAMFRpY2tldHMgYXJlIDAuMSBXQVZFUy4gUGxlYXNlIHNlbnQgZXhhY3QgYW1vdW50LgkAAAIAAAABAgAAAApDYXNhIGVtcHR5AAAAAA61n8w=", "height": 1974817, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 3yTCdmBr5ULbGrPVPiPhAub7GmUdGpgeENVS6Z5Guzat Next: 7drve2Z3wND9fgzu4WdVLGy5fXM8q364Pd9N7cugyoKn Diff:
OldNewDifferences
99 let tic = if ((size(i.payments) > 0))
1010 then i.payments[0]
1111 else throw("No Money No Funny Honey.")
12- if ((assetBalance(this, toBytes("WAVES")) > 20000000))
12+ if ((assetBalance(this, toBytes("WAVES")) > 2000))
1313 then if ((tic.amount == 10000000))
1414 then {
1515 let gID = toInt(i.transactionId)
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 tic = if ((size(i.payments) > 0))
1010 then i.payments[0]
1111 else throw("No Money No Funny Honey.")
12- if ((assetBalance(this, toBytes("WAVES")) > 20000000))
12+ if ((assetBalance(this, toBytes("WAVES")) > 2000))
1313 then if ((tic.amount == 10000000))
1414 then {
1515 let gID = toInt(i.transactionId)
1616 let r = (((((lastBlock.height + lastBlock.timestamp) + lastBlock.baseTarget) + gID) % 6) + 1)
1717 let z = (((((toInt(lastBlock.generator.bytes) + lastBlock.timestamp) + lastBlock.baseTarget) + gID) % 6) + 1)
1818 let sentSame = ((r * z) * uni)
1919 let sentDif = ((r + z) * uni)
2020 if ((r == z))
2121 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)))]
2222 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)))]
2323 }
2424 else throw("Tickets are 0.1 WAVES. Please sent exact amount.")
2525 else throw("Casa empty")
2626 }
2727
2828

github/deemru/w8io/169f3d6 
36.67 ms