tx · BaQqwX4aH7B2UPZjo9RZihEjpugvHK1trz2udKkUMr1p

3N9rn6oHDHVvfENDBwYm5P2LGuQkBLL4sVE:  -0.01870000 Waves

2020.10.04 01:16 [1204965] smart account 3N9rn6oHDHVvfENDBwYm5P2LGuQkBLL4sVE > SELF 0.00000000 Waves

{ "type": 13, "id": "BaQqwX4aH7B2UPZjo9RZihEjpugvHK1trz2udKkUMr1p", "fee": 1870000, "feeAssetId": null, "timestamp": 1601763291671, "version": 2, "chainId": 84, "sender": "3N9rn6oHDHVvfENDBwYm5P2LGuQkBLL4sVE", "senderPublicKey": "8dXboB91BfUTr4CrHZCqQR1g5SPMGtAQKRGFmPtcokrZ", "proofs": [ "4fG48LMc5UXf6XVAYMDNzUPbbyt9wdVqMXjGiC7wrruJy12M6JaBc3rxp6CwWYtck6YG8L8bMr5iu6cYQYd4zmEL" ], "script": "base64:AAIDAAAAAAAAAAYIARIAEgAAAAACAQAAAApyYW5kb21pemVyAAAAAQAAAANpbnYEAAAACGxhc3RQbGF5BAAAAAckbWF0Y2gwCQAEHAAAAAIFAAAABHRoaXMCAAAABFBsYXkDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAACkJ5dGVWZWN0b3IEAAAAAXMFAAAAByRtYXRjaDAFAAAAAXMDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAABFVuaXQEAAAAAWEFAAAAByRtYXRjaDABAAAADFdhdmVzTG90dG9WMgkAAAIAAAABAgAAAAtNYXRjaCBlcnJvcgQAAAAEcmFuZAkAAMsAAAACCQAAywAAAAIJAADLAAAAAgkAAMsAAAACCQAAywAAAAIFAAAACGxhc3RQbGF5CAUAAAADaW52AAAADXRyYW5zYWN0aW9uSWQIBQAAAANpbnYAAAAPY2FsbGVyUHVibGljS2V5CAUAAAAJbGFzdEJsb2NrAAAAE2dlbmVyYXRpb25TaWduYXR1cmUJAAGaAAAAAQgFAAAACWxhc3RCbG9jawAAAAl0aW1lc3RhbXAJAAGaAAAAAQgFAAAACWxhc3R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AAAPoCQEAAAAMU2NyaXB0UmVzdWx0AAAAAgUAAAANd3JpdGVMYXN0UGxheQUAAAALd2luVHJhbnNmZXIJAQAAAAxTY3JpcHRSZXN1bHQAAAACBQAAAA13cml0ZUxhc3RQbGF5CQEAAAALVHJhbnNmZXJTZXQAAAABBQAAAANuaWwAAAACAAAAA2ludgEAAAAFbG90dG8AAAAACQEAAAAKc3RhcnRMb3R0bwAAAAEFAAAAA2ludgAAAANpbnYBAAAAB2RlZmF1bHQAAAAACQEAAAAKc3RhcnRMb3R0bwAAAAEFAAAAA2ludgAAAABi+Do+", "height": 1204965, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: HHswXFZ258qfg3V4edTCvf6Vp12MY9SiEBSrXMb4m9Lm Next: none Diff:
OldNewDifferences
33 {-# CONTENT_TYPE DAPP #-}
44 func a (b) = {
55 let c = {
6- let d = getBinary(this, "lastPlay")
6+ let d = getBinary(this, "Play")
77 if ($isInstanceOf(d, "ByteVector"))
88 then {
99 let e = d
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 func a (b) = {
55 let c = {
6- let d = getBinary(this, "lastPlay")
6+ let d = getBinary(this, "Play")
77 if ($isInstanceOf(d, "ByteVector"))
88 then {
99 let e = d
1010 e
1111 }
1212 else if ($isInstanceOf(d, "Unit"))
1313 then {
1414 let f = d
1515 base58'2ee4oFDYriWJ9EMeR'
1616 }
1717 else throw("Match error")
1818 }
1919 let g = (((((c + b.transactionId) + b.callerPublicKey) + lastBlock.generationSignature) + toBytes(lastBlock.timestamp)) + toBytes(lastBlock.height))
2020 sha256(g)
2121 }
2222
2323
2424 func h (b) = {
2525 let i = (wavesBalance(this) / 100)
2626 let j = extract(b.payment)
2727 if (!(isDefined(b.payment)))
2828 then throw("Should be with Payment in Waves")
2929 else if (isDefined(j.assetId))
3030 then throw("Payment should be in Waves")
3131 else if ((j.amount > i))
3232 then throw(("Payment should be less than " + toString(i)))
3333 else {
3434 let k = a(b)
3535 let l = TransferSet([ScriptTransfer(b.caller, ((j.amount * 190) / 100), unit)])
3636 let m = WriteSet([DataEntry("lastPlay", k)])
3737 if ((500 > (toInt(k) % 1000)))
3838 then ScriptResult(m, l)
3939 else ScriptResult(m, TransferSet(nil))
4040 }
4141 }
4242
4343
4444 @Callable(b)
4545 func lotto () = h(b)
4646
4747
4848
4949 @Callable(b)
5050 func default () = h(b)
5151
5252

github/deemru/w8io/169f3d6 
35.92 ms