tx · 6rrqcNLHi8wzomVHoMtnw5YmvvGLPnPuPNGM2kx5rY6c 3N1HdGqmcf4nVsUgmWiwB8p6p8ErWBmvQua: -0.01000000 Waves 2023.11.16 02:42 [2845146] smart account 3N1HdGqmcf4nVsUgmWiwB8p6p8ErWBmvQua > SELF 0.00000000 Waves
{ "type": 13, "id": "6rrqcNLHi8wzomVHoMtnw5YmvvGLPnPuPNGM2kx5rY6c", "fee": 1000000, "feeAssetId": null, "timestamp": 1700091790558, "version": 2, "chainId": 84, "sender": "3N1HdGqmcf4nVsUgmWiwB8p6p8ErWBmvQua", "senderPublicKey": "JAEVvs5E9kGyXWx3YQaivUpUP3vb3pgr2eS6UrYr1A8P", "proofs": [ "49fyDpyEKKXCRb1PGKcUxzswyKAUT9G4QH9ha34wgr2CoGmqXvXNTYsrhuMotZfWbuH3P3Y6dcksu4S2d1366N1x" ], "script": "base64:AAIFAAAAAAAAAAYIAhIAEgAAAAAOAAAAAAtTVEFLRV9BU1NFVAEAAAAg+yz52JX9bMBBBD7WcJozZ6kHlw3R1qS6Jzk7Sn1TrCIAAAAACkVBUk5fQVNTRVQBAAAAIPss+diV/WzAQQQ+1nCaM2epB5cN0dakuic5O0p9U6wiAAAAAA1UT0tFTlNfUEVSX01TAAAAAAAAAAABAAAAAANTRVACAAAAAl9fAAAAAAtERU5PTUlOQVRPUgAN4Lazp2QAAAEAAAAQdXNlckRlcG9zaXRlZEtleQAAAAEAAAAEdXNlcgkABLkAAAACCQAETAAAAAICAAAAAnVkCQAETAAAAAIJAAJYAAAAAQgFAAAABHVzZXIAAAAFYnl0ZXMFAAAAA25pbAUAAAADU0VQAQAAAA11c2VyVXBkYXRlS2V5AAAAAQAAAAR1c2VyCQAEuQAAAAIJAARMAAAAAgIAAAACdXUJAARMAAAAAgkAAlgAAAABCAUAAAAEdXNlcgAAAAVieXRlcwUAAAADbmlsBQAAAANTRVABAAAAEXRvdGFsRGVwb3NpdGVkS2V5AAAAAAIAAAACdGQBAAAADWxhc3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AAAFpAAAABmNhbGxlcgkAAaYAAAABCQEAAAAYY2FsY1Jld2FyZFBlclRva2VuU3RvcmVkAAAAAAkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgkBAAAAC3VzZXJSZXdhcmRzAAAAAQgFAAAAAWkAAAAGY2FsbGVyAAAAAAAAAAAABQAAAANuaWwAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAACQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleQyGL70=", "height": 2845146, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 8v7pPUzpRSdW9TfSFP1QemszYEyeUM21wiCL6ALRqbET Next: EYsuSB85qVP5CHACifn15JWJqT4bv6SwciDkamS7PD1R Diff:
Old | New | Differences | |
---|---|---|---|
1 | - | {-# STDLIB_VERSION | |
1 | + | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = base58'HuV7L2uJ4v2SDS5xqZLWPHhimTUgEMKstmxwfBY17SX3' |
Old | New | Differences | |
---|---|---|---|
1 | - | {-# STDLIB_VERSION | |
1 | + | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = base58'HuV7L2uJ4v2SDS5xqZLWPHhimTUgEMKstmxwfBY17SX3' | |
5 | 5 | ||
6 | 6 | let b = base58'HuV7L2uJ4v2SDS5xqZLWPHhimTUgEMKstmxwfBY17SX3' | |
7 | 7 | ||
8 | 8 | let c = 1 | |
9 | 9 | ||
10 | 10 | let d = "__" | |
11 | 11 | ||
12 | 12 | let e = 1000000000000000000 | |
13 | 13 | ||
14 | 14 | func f (g) = makeString(["ud", toBase58String(g.bytes)], d) | |
15 | 15 | ||
16 | 16 | ||
17 | 17 | func h (g) = makeString(["uu", toBase58String(g.bytes)], d) | |
18 | 18 | ||
19 | 19 | ||
20 | 20 | func i () = "td" | |
21 | 21 | ||
22 | 22 | ||
23 | 23 | func j () = "lu" | |
24 | 24 | ||
25 | 25 | ||
26 | 26 | func k () = "rpts" | |
27 | 27 | ||
28 | 28 | ||
29 | 29 | func l (g) = makeString(["urpd", toBase58String(g.bytes)], d) | |
30 | 30 | ||
31 | 31 | ||
32 | 32 | func m (g) = makeString(["ur", toBase58String(g.bytes)], d) | |
33 | 33 | ||
34 | 34 | ||
35 | 35 | func n () = { | |
36 | 36 | let o = toBigInt({ | |
37 | 37 | let p = getInteger(i()) | |
38 | 38 | if ($isInstanceOf(p, "Int")) | |
39 | 39 | then { | |
40 | 40 | let q = p | |
41 | 41 | q | |
42 | 42 | } | |
43 | 43 | else 0 | |
44 | 44 | }) | |
45 | 45 | let r = toBigInt({ | |
46 | 46 | let p = getInteger(j()) | |
47 | 47 | if ($isInstanceOf(p, "Int")) | |
48 | 48 | then { | |
49 | 49 | let q = p | |
50 | 50 | q | |
51 | 51 | } | |
52 | 52 | else lastBlock.timestamp | |
53 | 53 | }) | |
54 | 54 | let s = parseBigIntValue({ | |
55 | 55 | let p = getString(k()) | |
56 | 56 | if ($isInstanceOf(p, "String")) | |
57 | 57 | then { | |
58 | 58 | let q = p | |
59 | 59 | q | |
60 | 60 | } | |
61 | 61 | else "0" | |
62 | 62 | }) | |
63 | 63 | if ((o == toBigInt(0))) | |
64 | 64 | then s | |
65 | 65 | else (s + (((toBigInt(c) * (toBigInt(lastBlock.timestamp) - r)) * toBigInt(e)) / o)) | |
66 | 66 | } | |
67 | 67 | ||
68 | 68 | ||
69 | 69 | func t (g) = { | |
70 | 70 | let u = toBigInt(getIntegerValue(f(g))) | |
71 | 71 | let v = toBigInt(getIntegerValue(l(g))) | |
72 | 72 | let w = toBigInt({ | |
73 | 73 | let p = getInteger(m(g)) | |
74 | 74 | if ($isInstanceOf(p, "Int")) | |
75 | 75 | then { | |
76 | 76 | let q = p | |
77 | 77 | q | |
78 | 78 | } | |
79 | 79 | else 0 | |
80 | 80 | }) | |
81 | 81 | (fraction(u, (n() - v), toBigInt(e)) + w) | |
82 | 82 | } | |
83 | 83 | ||
84 | 84 | ||
85 | 85 | @Callable(x) | |
86 | 86 | func deposit () = if (if ((x.payments[0].assetId != a)) | |
87 | 87 | then true | |
88 | 88 | else (size(x.payments) != 1)) | |
89 | 89 | then throw("incorrect asset deposits") | |
90 | 90 | else { | |
91 | 91 | let u = getIntegerValue(f(x.caller)) | |
92 | 92 | let o = getIntegerValue(i()) | |
93 | 93 | [IntegerEntry(f(x.caller), (u + x.payments[0].amount)), IntegerEntry(i(), (o + x.payments[0].amount)), StringEntry(k(), toString(n())), StringEntry(l(x.caller), toString(n())), IntegerEntry(m(x.caller), toInt(t(x.caller)))] | |
94 | 94 | } | |
95 | 95 | ||
96 | 96 | ||
97 | 97 | ||
98 | 98 | @Callable(x) | |
99 | 99 | func withdraw () = { | |
100 | 100 | let u = getIntegerValue(f(x.caller)) | |
101 | 101 | let o = getIntegerValue(i()) | |
102 | 102 | let y = toInt(t(x.caller)) | |
103 | 103 | [IntegerEntry(f(x.caller), 0), IntegerEntry(i(), (o - u)), ScriptTransfer(x.caller, u, a), ScriptTransfer(x.caller, y, b), StringEntry(k(), toString(n())), StringEntry(l(x.caller), toString(n())), IntegerEntry(m(x.caller), 0)] | |
104 | 104 | } | |
105 | 105 | ||
106 | 106 | ||
107 | 107 | @Verifier(z) | |
108 | 108 | func A () = sigVerify(z.bodyBytes, z.proofs[0], z.senderPublicKey) | |
109 | 109 |
github/deemru/w8io/026f985 25.73 ms ◑