tx · Ga8ix3Wcaf4Hr4JJR7B1r4T3TtmjmwKU4yRqNorkHQGZ

3N1HdGqmcf4nVsUgmWiwB8p6p8ErWBmvQua:  -0.01000000 Waves

2023.11.16 15:43 [2845952] smart account 3N1HdGqmcf4nVsUgmWiwB8p6p8ErWBmvQua > SELF 0.00000000 Waves

{ "type": 13, "id": "Ga8ix3Wcaf4Hr4JJR7B1r4T3TtmjmwKU4yRqNorkHQGZ", "fee": 1000000, "feeAssetId": null, "timestamp": 1700138659692, "version": 2, "chainId": 84, "sender": "3N1HdGqmcf4nVsUgmWiwB8p6p8ErWBmvQua", "senderPublicKey": "JAEVvs5E9kGyXWx3YQaivUpUP3vb3pgr2eS6UrYr1A8P", "proofs": [ "eaiDtjvXCH6QToxjBgX4QDLWpjmFNBgwJYrfQwHuGFHzFdvjrXJHSCnrC8FZT2WrD6n44cM21Kf9rj39kXAGyKq" ], "script": "base64:AAIFAAAAAAAAAAYIAhIAEgAAAAANAAAAAAtTVEFLRV9BU1NFVAEAAAAg+yz52JX9bMBBBD7WcJozZ6kHlw3R1qS6Jzk7Sn1TrCIAAAAACkVBUk5fQVNTRVQBAAAAIPss+diV/WzAQQQ+1nCaM2epB5cN0dakuic5O0p9U6wiAAAAAA1UT0tFTlNfUEVSX01TAAAAAAAAAAABAAAAAANTRVACAAAAAl9fAAAAAAtERU5PTUlOQVRPUgAN4Lazp2QAAAEAAAAQdXNlckRlcG9zaXRlZEtleQAAAAEAAAAEdXNlcgkABLkAAAACCQAETAAAAAICAAAAAnVkCQAETAAAAAIJAAJYAAAAAQgFAAAABHVzZXIAAAAFYnl0ZXMFAAAAA25pbAUAAAADU0VQAQAAABF0b3RhbERlcG9zaXRlZEtleQAAAAACAAAAAnRkAQAAAA1sYXN0VXBkYXRlS2V5AAAAAAIAAAACbHUBAAAAF3Jld2FyZFBlclRva2VuU3RvcmVkS2V5AAAAAAIAAAAEcnB0cwEAAAAZdXNlclJld2FyZFBlclRva2VuUGFpZEtleQAAAAEAAA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2l0ZWQFAAAADXVzZXJEZXBvc2l0ZWQJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAIJAQAAAA1sYXN0VXBkYXRlS2V5AAAAAAgFAAAACWxhc3RCbG9jawAAAAl0aW1lc3RhbXAJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwgFAAAAAWkAAAAGY2FsbGVyBQAAAA11c2VyRGVwb3NpdGVkBQAAAAtTVEFLRV9BU1NFVAkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADCAUAAAABaQAAAAZjYWxsZXIFAAAADGVhcm5lZFRva2VucwUAAAAKRUFSTl9BU1NFVAkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACCQEAAAAXcmV3YXJkUGVyVG9rZW5TdG9yZWRLZXkAAAAACQABpgAAAAEJAQAAABhjYWxjUmV3YXJkUGVyVG9rZW5TdG9yZWQAAAAACQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAIJAQAAABl1c2VyUmV3YXJkUGVyVG9rZW5QYWlkS2V5AAAAAQgFAAAAAWkAAAAGY2FsbGVyCQABpgAAAAEJAQAAABhjYWxjUmV3YXJkUGVyVG9rZW5TdG9yZWQAAAAACQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACCQEAAAALdXNlclJld2FyZHMAAAABCAUAAAABaQAAAAZjYWxsZXIAAAAAAAAAAAAFAAAAA25pbAAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5xwshwA==", "height": 2845952, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: Gr3wQvFqWEQmDpPUeQnfFazxu5tqRDW1agfzAVU15tTc Next: 4Dqtd1ucyeBYQGnhd2rjxCgyLSiKGrYLdSKynpGHaN5A Diff:
OldNewDifferences
1414 func f (g) = makeString(["ud", toBase58String(g.bytes)], d)
1515
1616
17-func h (g) = makeString(["uu", toBase58String(g.bytes)], d)
17+func h () = "td"
1818
1919
20-func i () = "td"
20+func i () = "lu"
2121
2222
23-func j () = "lu"
23+func j () = "rpts"
2424
2525
26-func k () = "rpts"
26+func k (g) = makeString(["urpd", toBase58String(g.bytes)], d)
2727
2828
29-func l (g) = makeString(["urpd", toBase58String(g.bytes)], d)
29+func l (g) = makeString(["ur", toBase58String(g.bytes)], d)
3030
3131
32-func m (g) = makeString(["ur", toBase58String(g.bytes)], d)
33-
34-
35-func n () = {
36- let o = toBigInt({
37- let p = getInteger(i())
38- if ($isInstanceOf(p, "Int"))
32+func m () = {
33+ let n = toBigInt({
34+ let o = getInteger(h())
35+ if ($isInstanceOf(o, "Int"))
3936 then {
40- let q = p
41- q
37+ let p = o
38+ p
4239 }
4340 else 0
4441 })
45- let r = toBigInt({
46- let p = getInteger(j())
47- if ($isInstanceOf(p, "Int"))
42+ let q = toBigInt({
43+ let o = getInteger(i())
44+ if ($isInstanceOf(o, "Int"))
4845 then {
49- let q = p
50- q
46+ let p = o
47+ p
5148 }
5249 else lastBlock.timestamp
5350 })
54- let s = parseBigIntValue({
55- let p = getString(k())
56- if ($isInstanceOf(p, "String"))
51+ let r = parseBigIntValue({
52+ let o = getString(j())
53+ if ($isInstanceOf(o, "String"))
5754 then {
58- let q = p
59- q
55+ let p = o
56+ p
6057 }
6158 else "0"
6259 })
63- if ((o == toBigInt(0)))
64- then s
65- else (s + (((toBigInt(c) * (toBigInt(lastBlock.timestamp) - r)) * toBigInt(e)) / o))
60+ if ((n == toBigInt(0)))
61+ then r
62+ else (r + (((toBigInt(c) * (toBigInt(lastBlock.timestamp) - q)) * toBigInt(e)) / n))
6663 }
6764
6865
69-func t (g) = {
70- let u = toBigInt({
71- let p = getInteger(f(g))
72- if ($isInstanceOf(p, "Int"))
66+func s (g) = {
67+ let t = toBigInt({
68+ let o = getInteger(f(g))
69+ if ($isInstanceOf(o, "Int"))
7370 then {
74- let q = p
75- q
71+ let p = o
72+ p
7673 }
7774 else 0
7875 })
79- let v = parseBigIntValue(getStringValue(l(g)))
80- let w = toBigInt({
81- let p = getInteger(m(g))
82- if ($isInstanceOf(p, "Int"))
76+ let u = parseBigIntValue(getStringValue(k(g)))
77+ let v = toBigInt({
78+ let o = getInteger(l(g))
79+ if ($isInstanceOf(o, "Int"))
8380 then {
84- let q = p
85- q
81+ let p = o
82+ p
8683 }
8784 else 0
8885 })
89- (fraction(u, (n() - v), toBigInt(e)) + w)
86+ (fraction(t, (m() - u), toBigInt(e)) + v)
9087 }
9188
9289
93-@Callable(x)
94-func deposit () = if (if ((size(x.payments) != 1))
90+@Callable(w)
91+func deposit () = if (if ((size(w.payments) != 1))
9592 then true
96- else (x.payments[0].assetId != a))
93+ else (w.payments[0].assetId != a))
9794 then throw("incorrect asset deposits")
9895 else {
99- let u = {
100- let p = getInteger(f(x.caller))
101- if ($isInstanceOf(p, "Int"))
96+ let t = {
97+ let o = getInteger(f(w.caller))
98+ if ($isInstanceOf(o, "Int"))
10299 then {
103- let q = p
104- q
100+ let p = o
101+ p
105102 }
106103 else 0
107104 }
108- let o = {
109- let p = getInteger(i())
110- if ($isInstanceOf(p, "Int"))
105+ let n = {
106+ let o = getInteger(h())
107+ if ($isInstanceOf(o, "Int"))
111108 then {
112- let q = p
113- q
109+ let p = o
110+ p
114111 }
115112 else 0
116113 }
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))
114+[IntegerEntry(f(w.caller), (t + w.payments[0].amount)), IntegerEntry(h(), (n + w.payments[0].amount)), IntegerEntry(i(), lastBlock.timestamp), StringEntry(j(), toString(m())), StringEntry(k(w.caller), toString(m())), IntegerEntry(l(w.caller), if ((t == 0))
118115 then 0
119- else toInt(t(x.caller)))]
116+ else toInt(s(w.caller)))]
120117 }
121118
122119
123120
124-@Callable(x)
121+@Callable(w)
125122 func withdraw () = {
126- let u = {
127- let p = getInteger(f(x.caller))
128- if ($isInstanceOf(p, "Int"))
123+ let t = {
124+ let o = getInteger(f(w.caller))
125+ if ($isInstanceOf(o, "Int"))
129126 then {
130- let q = p
131- q
127+ let p = o
128+ p
132129 }
133130 else 0
134131 }
135- let o = {
136- let p = getInteger(i())
137- if ($isInstanceOf(p, "Int"))
132+ let n = {
133+ let o = getInteger(h())
134+ if ($isInstanceOf(o, "Int"))
138135 then {
139- let q = p
140- q
136+ let p = o
137+ p
141138 }
142139 else 0
143140 }
144- let y = toInt(t(x.caller))
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)]
141+ let x = toInt(s(w.caller))
142+ if ((t == 0))
143+ then throw("empty deposit")
144+ else [IntegerEntry(f(w.caller), 0), IntegerEntry(h(), (n - t)), IntegerEntry(i(), lastBlock.timestamp), ScriptTransfer(w.caller, t, a), ScriptTransfer(w.caller, x, b), StringEntry(j(), toString(m())), StringEntry(k(w.caller), toString(m())), IntegerEntry(l(w.caller), 0)]
146145 }
147146
148147
149-@Verifier(z)
150-func A () = sigVerify(z.bodyBytes, z.proofs[0], z.senderPublicKey)
148+@Verifier(y)
149+func z () = sigVerify(y.bodyBytes, y.proofs[0], y.senderPublicKey)
151150
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = base58'HuV7L2uJ4v2SDS5xqZLWPHhimTUgEMKstmxwfBY17SX3'
55
66 let b = base58'HuV7L2uJ4v2SDS5xqZLWPHhimTUgEMKstmxwfBY17SX3'
77
88 let c = 1
99
1010 let d = "__"
1111
1212 let e = 1000000000000000000
1313
1414 func f (g) = makeString(["ud", toBase58String(g.bytes)], d)
1515
1616
17-func h (g) = makeString(["uu", toBase58String(g.bytes)], d)
17+func h () = "td"
1818
1919
20-func i () = "td"
20+func i () = "lu"
2121
2222
23-func j () = "lu"
23+func j () = "rpts"
2424
2525
26-func k () = "rpts"
26+func k (g) = makeString(["urpd", toBase58String(g.bytes)], d)
2727
2828
29-func l (g) = makeString(["urpd", toBase58String(g.bytes)], d)
29+func l (g) = makeString(["ur", toBase58String(g.bytes)], d)
3030
3131
32-func m (g) = makeString(["ur", toBase58String(g.bytes)], d)
33-
34-
35-func n () = {
36- let o = toBigInt({
37- let p = getInteger(i())
38- if ($isInstanceOf(p, "Int"))
32+func m () = {
33+ let n = toBigInt({
34+ let o = getInteger(h())
35+ if ($isInstanceOf(o, "Int"))
3936 then {
40- let q = p
41- q
37+ let p = o
38+ p
4239 }
4340 else 0
4441 })
45- let r = toBigInt({
46- let p = getInteger(j())
47- if ($isInstanceOf(p, "Int"))
42+ let q = toBigInt({
43+ let o = getInteger(i())
44+ if ($isInstanceOf(o, "Int"))
4845 then {
49- let q = p
50- q
46+ let p = o
47+ p
5148 }
5249 else lastBlock.timestamp
5350 })
54- let s = parseBigIntValue({
55- let p = getString(k())
56- if ($isInstanceOf(p, "String"))
51+ let r = parseBigIntValue({
52+ let o = getString(j())
53+ if ($isInstanceOf(o, "String"))
5754 then {
58- let q = p
59- q
55+ let p = o
56+ p
6057 }
6158 else "0"
6259 })
63- if ((o == toBigInt(0)))
64- then s
65- else (s + (((toBigInt(c) * (toBigInt(lastBlock.timestamp) - r)) * toBigInt(e)) / o))
60+ if ((n == toBigInt(0)))
61+ then r
62+ else (r + (((toBigInt(c) * (toBigInt(lastBlock.timestamp) - q)) * toBigInt(e)) / n))
6663 }
6764
6865
69-func t (g) = {
70- let u = toBigInt({
71- let p = getInteger(f(g))
72- if ($isInstanceOf(p, "Int"))
66+func s (g) = {
67+ let t = toBigInt({
68+ let o = getInteger(f(g))
69+ if ($isInstanceOf(o, "Int"))
7370 then {
74- let q = p
75- q
71+ let p = o
72+ p
7673 }
7774 else 0
7875 })
79- let v = parseBigIntValue(getStringValue(l(g)))
80- let w = toBigInt({
81- let p = getInteger(m(g))
82- if ($isInstanceOf(p, "Int"))
76+ let u = parseBigIntValue(getStringValue(k(g)))
77+ let v = toBigInt({
78+ let o = getInteger(l(g))
79+ if ($isInstanceOf(o, "Int"))
8380 then {
84- let q = p
85- q
81+ let p = o
82+ p
8683 }
8784 else 0
8885 })
89- (fraction(u, (n() - v), toBigInt(e)) + w)
86+ (fraction(t, (m() - u), toBigInt(e)) + v)
9087 }
9188
9289
93-@Callable(x)
94-func deposit () = if (if ((size(x.payments) != 1))
90+@Callable(w)
91+func deposit () = if (if ((size(w.payments) != 1))
9592 then true
96- else (x.payments[0].assetId != a))
93+ else (w.payments[0].assetId != a))
9794 then throw("incorrect asset deposits")
9895 else {
99- let u = {
100- let p = getInteger(f(x.caller))
101- if ($isInstanceOf(p, "Int"))
96+ let t = {
97+ let o = getInteger(f(w.caller))
98+ if ($isInstanceOf(o, "Int"))
10299 then {
103- let q = p
104- q
100+ let p = o
101+ p
105102 }
106103 else 0
107104 }
108- let o = {
109- let p = getInteger(i())
110- if ($isInstanceOf(p, "Int"))
105+ let n = {
106+ let o = getInteger(h())
107+ if ($isInstanceOf(o, "Int"))
111108 then {
112- let q = p
113- q
109+ let p = o
110+ p
114111 }
115112 else 0
116113 }
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))
114+[IntegerEntry(f(w.caller), (t + w.payments[0].amount)), IntegerEntry(h(), (n + w.payments[0].amount)), IntegerEntry(i(), lastBlock.timestamp), StringEntry(j(), toString(m())), StringEntry(k(w.caller), toString(m())), IntegerEntry(l(w.caller), if ((t == 0))
118115 then 0
119- else toInt(t(x.caller)))]
116+ else toInt(s(w.caller)))]
120117 }
121118
122119
123120
124-@Callable(x)
121+@Callable(w)
125122 func withdraw () = {
126- let u = {
127- let p = getInteger(f(x.caller))
128- if ($isInstanceOf(p, "Int"))
123+ let t = {
124+ let o = getInteger(f(w.caller))
125+ if ($isInstanceOf(o, "Int"))
129126 then {
130- let q = p
131- q
127+ let p = o
128+ p
132129 }
133130 else 0
134131 }
135- let o = {
136- let p = getInteger(i())
137- if ($isInstanceOf(p, "Int"))
132+ let n = {
133+ let o = getInteger(h())
134+ if ($isInstanceOf(o, "Int"))
138135 then {
139- let q = p
140- q
136+ let p = o
137+ p
141138 }
142139 else 0
143140 }
144- let y = toInt(t(x.caller))
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)]
141+ let x = toInt(s(w.caller))
142+ if ((t == 0))
143+ then throw("empty deposit")
144+ else [IntegerEntry(f(w.caller), 0), IntegerEntry(h(), (n - t)), IntegerEntry(i(), lastBlock.timestamp), ScriptTransfer(w.caller, t, a), ScriptTransfer(w.caller, x, b), StringEntry(j(), toString(m())), StringEntry(k(w.caller), toString(m())), IntegerEntry(l(w.caller), 0)]
146145 }
147146
148147
149-@Verifier(z)
150-func A () = sigVerify(z.bodyBytes, z.proofs[0], z.senderPublicKey)
148+@Verifier(y)
149+func z () = sigVerify(y.bodyBytes, y.proofs[0], y.senderPublicKey)
151150

github/deemru/w8io/026f985 
45.43 ms