tx · 7drve2Z3wND9fgzu4WdVLGy5fXM8q364Pd9N7cugyoKn

3NBxmy6co128zY2x4nz4tdYE7LBLz2RXHuB:  -0.01000000 Waves

2022.03.22 10:32 [1974841] smart account 3NBxmy6co128zY2x4nz4tdYE7LBLz2RXHuB > SELF 0.00000000 Waves

{ "type": 13, "id": "7drve2Z3wND9fgzu4WdVLGy5fXM8q364Pd9N7cugyoKn", "fee": 1000000, "feeAssetId": null, "timestamp": 1647934383546, "version": 2, "chainId": 84, "sender": "3NBxmy6co128zY2x4nz4tdYE7LBLz2RXHuB", "senderPublicKey": "5HaVHwTnAqmQF8TLd8vAqExCLoKuBKoJ4wXKhVbSSapf", "proofs": [ "4215vjMzzmabxgtsGWggaBYhCo1wmFT2s7ijD3VEnQuLgmEZW1kAmVVd8meif2VGDcYcX5gFuP9KF3AwhJNqeHhJ" ], "script": "base64:AAIFAAAAAAAAAAQIAhIAAAAAAAAAAAEAAAABaQEAAAAJdGhyb3dEaWNlAAAAAAQAAAADdW5pAAAAAAAAD0JABAAAAARjYXNhCQEAAAAHQWRkcmVzcwAAAAEBAAAAGgFU8dUmfV9XTKe8QHJbnae4Yz5z2sr+mbGiBAAAAAtjYXNhQmFsYW5jZQkAA+8AAAABBQAAAARjYXNhBAAAAAN0aWMDCQAAZgAAAAIJAAGQAAAAAQgFAAAAAWkAAAAIcGF5bWVudHMAAAAAAAAAAAAJAAGRAAAAAggFAAAAAWkAAAAIcGF5bWVudHMAAAAAAAAAAAAJAAACAAAAAQIAAAAYTm8gTW9uZXkgTm8gRnVubnkgSG9uZXkuAwkAAGYAAAACCAUAAAALY2FzYUJhbGFuY2UAAAAJYXZhaWxhYmxlAAAAAASoF8gAAwkAAAAAAAACCAUAAAADdGljAAAABmFtb3VudAAAAAAAAJiWgAQAAAADZ0lECQAEsQAAAAEIBQAAAAFpAAAADXRyYW5zYWN0aW9uSWQEAAAAAXIJAABkAAAAAgkAAGoAAAACCQAAZAAAAAIJAABkAAAAAgkAAGQAAAAC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AABaQAAAAZjYWxsZXIFAAAAB3NlbnREaWYFAAAABHVuaXQJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgIAAAADTnVtCQABLAAAAAIJAAEsAAAAAgkAAaQAAAABBQAAAAFyAgAAAAEgCQABpAAAAAEFAAAAAXoJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgkAAaQAAAABCAUAAAAJbGFzdEJsb2NrAAAACXRpbWVzdGFtcAkAASwAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgkABCUAAAABCAUAAAABaQAAAAZjYWxsZXICAAAAASAJAAGkAAAAAQUAAAABcgIAAAABIAkAAaQAAAABBQAAAAF6AgAAAAcgU2VudDogCQABpAAAAAEFAAAAB3NlbnREaWYFAAAAA25pbAkAAAIAAAABAgAAADBUaWNrZXRzIGFyZSAwLjEgV0FWRVMuIFBsZWFzZSBzZW50IGV4YWN0IGFtb3VudC4JAAACAAAAAQIAAAAKQ2FzYSBlbXB0eQAAAACfJkin", "height": 1974841, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: CrrTsVjR69Xv7DcjnZY4SqRzhA7zyCUGy2GhvaaVWz4k Next: H3LFZcb41G8rfWRbrRswFpPtCnEbfD98FRMP28CrUe4f Diff:
OldNewDifferences
66 @Callable(i)
77 func throwDice () = {
88 let uni = 1000000
9+ let casa = Address(base58'3NBxmy6co128zY2x4nz4tdYE7LBLz2RXHuB')
10+ let casaBalance = wavesBalance(casa)
911 let tic = if ((size(i.payments) > 0))
1012 then i.payments[0]
1113 else throw("No Money No Funny Honey.")
12- if ((assetBalance(this, toBytes("WAVES")) > 2000))
14+ if ((casaBalance.available > 20000000000))
1315 then if ((tic.amount == 10000000))
1416 then {
1517 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
9+ let casa = Address(base58'3NBxmy6co128zY2x4nz4tdYE7LBLz2RXHuB')
10+ let casaBalance = wavesBalance(casa)
911 let tic = if ((size(i.payments) > 0))
1012 then i.payments[0]
1113 else throw("No Money No Funny Honey.")
12- if ((assetBalance(this, toBytes("WAVES")) > 2000))
14+ if ((casaBalance.available > 20000000000))
1315 then if ((tic.amount == 10000000))
1416 then {
1517 let gID = toInt(i.transactionId)
1618 let r = (((((lastBlock.height + lastBlock.timestamp) + lastBlock.baseTarget) + gID) % 6) + 1)
1719 let z = (((((toInt(lastBlock.generator.bytes) + lastBlock.timestamp) + lastBlock.baseTarget) + gID) % 6) + 1)
1820 let sentSame = ((r * z) * uni)
1921 let sentDif = ((r + z) * uni)
2022 if ((r == z))
2123 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)))]
2224 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)))]
2325 }
2426 else throw("Tickets are 0.1 WAVES. Please sent exact amount.")
2527 else throw("Casa empty")
2628 }
2729
2830

github/deemru/w8io/169f3d6 
27.56 ms