tx · BDnwasaEHXRW4LwFrEmsSef1Z8VpwZzASDZkAyTAgNLN 3N1xkaQQ1yMkyL78yJ2e41DoLz3WzuU56gb: -0.09000000 Waves 2020.08.08 16:42 [1123541] smart account 3N1xkaQQ1yMkyL78yJ2e41DoLz3WzuU56gb > SELF 0.00000000 Waves
{ "type": 13, "id": "BDnwasaEHXRW4LwFrEmsSef1Z8VpwZzASDZkAyTAgNLN", "fee": 9000000, "feeAssetId": null, "timestamp": 1596894200287, "version": 1, "sender": "3N1xkaQQ1yMkyL78yJ2e41DoLz3WzuU56gb", "senderPublicKey": "9xfw9zVWmncBh1JvRgpabJWLy7rYt8VSo7rFSDvGz5Lc", "proofs": [ "32UMwS4ubpfY6nQpseAG1bMxgpJbaowVT9DnCmrbj4CRiCrayW3iy2hgYaMVm8vBfs99GeYuLYwzt7B4G1B5BrA7" ], "script": "base64:AAIDAAAAAAAAAAYIARIAEgAAAAAEAAAAAAVscEtleQIAAAALbGFzdFBheW1lbnQAAAAABWxpS2V5AgAAAApiZXN0Rm9tb2VyAAAAAAVsaEtleQIAAAAGaGVpZ2h0AAAAAANkYXkAAAAAAAAAAAYAAAACAAAAAWkBAAAAC2ZlYXJtaXNzaW5nAAAAAAQAAAAHcGF5bWVudAQAAAAHJG1hdGNoMAgFAAAAAWkAAAAHcGF5bWVudAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAPQXR0YWNoZWRQYXltZW50BAAAAAFwBQAAAAckbWF0Y2gwBAAAAAckbWF0Y2gxCAUAAAABcAAAAAdhc3NldElkAwkAAAEAAAACBQAAAAckbWF0Y2gxAgAAAApCeXRlVmVjdG9yBAAAAAdhc3NldElkBQAAAAckbWF0Y2gxCQAAAgAAAAECAAAAD2ZvbW8gd2F2ZXMgb25seQgFAAAAAXAAAAAGYW1vdW50CQAAAgAAAAECAAAAGHBheW1lbnQgbXVzdCBiZSBhdHRhY2hlZAQAAAALbGFzdFBheW1lbnQEAAAAByRtYXRjaDAJAAQaAAAAAgUAA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123541, "spentComplexity": 0 } View: original | compacted Prev: 1331NisAJzqYPPrPkWsjcHTLiS26MUYf7onxGuu8jjLF Next: 7mpDrwKB3wmVwuLkLU9urMfyKEDkSuBQovCWpCtGffvc Full:
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 3 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "lastPayment" | |
5 | 5 | ||
6 | 6 | let b = "bestFomoer" | |
7 | 7 | ||
8 | 8 | let c = "height" | |
9 | 9 | ||
10 | 10 | let d = 6 | |
11 | 11 | ||
12 | 12 | @Callable(e) | |
13 | 13 | func fearmissing () = { | |
14 | 14 | let f = { | |
15 | 15 | let g = e.payment | |
16 | 16 | if ($isInstanceOf(g, "AttachedPayment")) | |
17 | 17 | then { | |
18 | 18 | let h = g | |
19 | 19 | let i = h.assetId | |
20 | 20 | if ($isInstanceOf(i, "ByteVector")) | |
21 | 21 | then { | |
22 | 22 | let j = i | |
23 | 23 | throw("fomo waves only") | |
24 | 24 | } | |
25 | 25 | else h.amount | |
26 | 26 | } | |
27 | 27 | else throw("payment must be attached") | |
28 | 28 | } | |
29 | 29 | let k = { | |
30 | 30 | let g = getInteger(this, "lastPayment") | |
31 | 31 | if ($isInstanceOf(g, "Int")) | |
32 | 32 | then { | |
33 | 33 | let h = g | |
34 | 34 | h | |
35 | 35 | } | |
36 | 36 | else 0 | |
37 | 37 | } | |
38 | 38 | if ((k >= f)) | |
39 | 39 | then throw(("min payment is " + toString(f))) | |
40 | 40 | else WriteSet([DataEntry(a, f), DataEntry(b, e.caller.bytes), DataEntry(c, height)]) | |
41 | 41 | } | |
42 | 42 | ||
43 | 43 | ||
44 | 44 | ||
45 | 45 | @Callable(e) | |
46 | 46 | func withdraw () = { | |
47 | 47 | let l = (e.caller.bytes == extract(getBinary(this, b))) | |
48 | 48 | let m = ((extract(getInteger(this, c)) - height) >= d) | |
49 | 49 | let n = if (m) | |
50 | 50 | then l | |
51 | 51 | else false | |
52 | 52 | if (n) | |
53 | 53 | then TransferSet([ScriptTransfer(e.caller, wavesBalance(this), unit)]) | |
54 | 54 | else throw("behold") | |
55 | 55 | } | |
56 | 56 | ||
57 | 57 |
github/deemru/w8io/026f985 31.25 ms ◑