tx · Gr3wQvFqWEQmDpPUeQnfFazxu5tqRDW1agfzAVU15tTc 3N1HdGqmcf4nVsUgmWiwB8p6p8ErWBmvQua: -0.01000000 Waves 2023.11.16 02:56 [2845161] smart account 3N1HdGqmcf4nVsUgmWiwB8p6p8ErWBmvQua > SELF 0.00000000 Waves
{ "type": 13, "id": "Gr3wQvFqWEQmDpPUeQnfFazxu5tqRDW1agfzAVU15tTc", "fee": 1000000, "feeAssetId": null, "timestamp": 1700092566573, "version": 2, "chainId": 84, "sender": "3N1HdGqmcf4nVsUgmWiwB8p6p8ErWBmvQua", "senderPublicKey": "JAEVvs5E9kGyXWx3YQaivUpUP3vb3pgr2eS6UrYr1A8P", "proofs": [ "gWG9gyb81zfJqHnYzUkNZrwbf6w4CTqvFGBok5S31gQ8R5zkEz3soa3qgresdQhNiP7PeGPvP6BHKgZCuRy57vF" ], "script": "base64:AAIFAAAAAAAAAAYIAhIAEgAAAAAOAAAAAAtTVEFLRV9BU1NFVAEAAAAg+yz52JX9bMBBBD7WcJozZ6kHlw3R1qS6Jzk7Sn1TrCIAAAAACkVBUk5fQVNTRVQBAAAAIPss+diV/WzAQQQ+1nCaM2epB5cN0dakuic5O0p9U6wiAAAAAA1UT0tFTlNfUEVSX01TAAAAAAAAAAABAAAAAANTRVACAAAAAl9fAAAAAAtERU5PTUlOQVRPUgAN4Lazp2QAAAEAAAAQdXNlckRlcG9zaXRlZEtleQAAAAEAAAAEdXNlcgkABLkAAAACCQAETAAAAAICAAAAAnVkCQAETAAAAAIJAAJYAAAAAQgFAAAABHVzZXIAAAAFYnl0ZXMFAAAAA25pbAUAAAADU0VQAQAAAA11c2VyVXBkYXRlS2V5AAAAAQAAAAR1c2VyCQAEuQAAAAIJAARMAAAAAgIAAAACdXUJAARMAAAAAgkAAlgAAAABCAUAAAAEdXNlcgAAAAVieXRlcwUAAAADbmlsBQAAAANTRVABAAAAEXRvdGFsRGVwb3NpdGVkS2V5AAAAAAIAAAACdGQBAAAADWxhc3RVcG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JAABlAAAAAgUAAAAOdG90YWxEZXBvc2l0ZWQFAAAADXVzZXJEZXBvc2l0ZWQJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAIJAQAAAA1sYXN0VXBkYXRlS2V5AAAAAAgFAAAACWxhc3RCbG9jawAAAAl0aW1lc3RhbXAJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwgFAAAAAWkAAAAGY2FsbGVyBQAAAA11c2VyRGVwb3NpdGVkBQAAAAtTVEFLRV9BU1NFVAkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADCAUAAAABaQAAAAZjYWxsZXIFAAAADGVhcm5lZFRva2VucwUAAAAKRUFSTl9BU1NFVAkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACCQEAAAAXcmV3YXJkUGVyVG9rZW5TdG9yZWRLZXkAAAAACQABpgAAAAEJAQAAABhjYWxjUmV3YXJkUGVyVG9rZW5TdG9yZWQAAAAACQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAIJAQAAABl1c2VyUmV3YXJkUGVyVG9rZW5QYWlkS2V5AAAAAQgFAAAAAWkAAAAGY2FsbGVyCQABpgAAAAEJAQAAABhjYWxjUmV3YXJkUGVyVG9rZW5TdG9yZWQAAAAACQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACCQEAAAALdXNlclJld2FyZHMAAAABCAUAAAABaQAAAAZjYWxsZXIAAAAAAAAAAAAFAAAAA25pbAAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5C14sAQ==", "height": 2845161, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: f3cUv2VcktjQXLUho5ooGMVXwZKHsTzPQj9nYbXg8Qk Next: Ga8ix3Wcaf4Hr4JJR7B1r4T3TtmjmwKU4yRqNorkHQGZ Diff:
Old | New | Differences | |
---|---|---|---|
114 | 114 | } | |
115 | 115 | else 0 | |
116 | 116 | } | |
117 | - | [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), if ((u == 0)) | |
117 | + | [IntegerEntry(f(x.caller), (u + x.payments[0].amount)), IntegerEntry(i(), (o + x.payments[0].amount)), IntegerEntry(j(), lastBlock.timestamp), StringEntry(k(), toString(n())), StringEntry(l(x.caller), toString(n())), IntegerEntry(m(x.caller), if ((u == 0)) | |
118 | 118 | then 0 | |
119 | 119 | else toInt(t(x.caller)))] | |
120 | 120 | } | |
142 | 142 | else 0 | |
143 | 143 | } | |
144 | 144 | let y = toInt(t(x.caller)) | |
145 | - | [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)] | |
145 | + | [IntegerEntry(f(x.caller), 0), IntegerEntry(i(), (o - u)), IntegerEntry(j(), lastBlock.timestamp), 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)] | |
146 | 146 | } | |
147 | 147 | ||
148 | 148 |
Old | New | Differences | |
---|---|---|---|
1 | 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({ | |
71 | 71 | let p = getInteger(f(g)) | |
72 | 72 | if ($isInstanceOf(p, "Int")) | |
73 | 73 | then { | |
74 | 74 | let q = p | |
75 | 75 | q | |
76 | 76 | } | |
77 | 77 | else 0 | |
78 | 78 | }) | |
79 | 79 | let v = parseBigIntValue(getStringValue(l(g))) | |
80 | 80 | let w = toBigInt({ | |
81 | 81 | let p = getInteger(m(g)) | |
82 | 82 | if ($isInstanceOf(p, "Int")) | |
83 | 83 | then { | |
84 | 84 | let q = p | |
85 | 85 | q | |
86 | 86 | } | |
87 | 87 | else 0 | |
88 | 88 | }) | |
89 | 89 | (fraction(u, (n() - v), toBigInt(e)) + w) | |
90 | 90 | } | |
91 | 91 | ||
92 | 92 | ||
93 | 93 | @Callable(x) | |
94 | 94 | func deposit () = if (if ((size(x.payments) != 1)) | |
95 | 95 | then true | |
96 | 96 | else (x.payments[0].assetId != a)) | |
97 | 97 | then throw("incorrect asset deposits") | |
98 | 98 | else { | |
99 | 99 | let u = { | |
100 | 100 | let p = getInteger(f(x.caller)) | |
101 | 101 | if ($isInstanceOf(p, "Int")) | |
102 | 102 | then { | |
103 | 103 | let q = p | |
104 | 104 | q | |
105 | 105 | } | |
106 | 106 | else 0 | |
107 | 107 | } | |
108 | 108 | let o = { | |
109 | 109 | let p = getInteger(i()) | |
110 | 110 | if ($isInstanceOf(p, "Int")) | |
111 | 111 | then { | |
112 | 112 | let q = p | |
113 | 113 | q | |
114 | 114 | } | |
115 | 115 | else 0 | |
116 | 116 | } | |
117 | - | [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), if ((u == 0)) | |
117 | + | [IntegerEntry(f(x.caller), (u + x.payments[0].amount)), IntegerEntry(i(), (o + x.payments[0].amount)), IntegerEntry(j(), lastBlock.timestamp), StringEntry(k(), toString(n())), StringEntry(l(x.caller), toString(n())), IntegerEntry(m(x.caller), if ((u == 0)) | |
118 | 118 | then 0 | |
119 | 119 | else toInt(t(x.caller)))] | |
120 | 120 | } | |
121 | 121 | ||
122 | 122 | ||
123 | 123 | ||
124 | 124 | @Callable(x) | |
125 | 125 | func withdraw () = { | |
126 | 126 | let u = { | |
127 | 127 | let p = getInteger(f(x.caller)) | |
128 | 128 | if ($isInstanceOf(p, "Int")) | |
129 | 129 | then { | |
130 | 130 | let q = p | |
131 | 131 | q | |
132 | 132 | } | |
133 | 133 | else 0 | |
134 | 134 | } | |
135 | 135 | let o = { | |
136 | 136 | let p = getInteger(i()) | |
137 | 137 | if ($isInstanceOf(p, "Int")) | |
138 | 138 | then { | |
139 | 139 | let q = p | |
140 | 140 | q | |
141 | 141 | } | |
142 | 142 | else 0 | |
143 | 143 | } | |
144 | 144 | let y = toInt(t(x.caller)) | |
145 | - | [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)] | |
145 | + | [IntegerEntry(f(x.caller), 0), IntegerEntry(i(), (o - u)), IntegerEntry(j(), lastBlock.timestamp), 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)] | |
146 | 146 | } | |
147 | 147 | ||
148 | 148 | ||
149 | 149 | @Verifier(z) | |
150 | 150 | func A () = sigVerify(z.bodyBytes, z.proofs[0], z.senderPublicKey) | |
151 | 151 |
github/deemru/w8io/026f985 26.90 ms ◑