tx · G8PPjDoVTucoiTTZmikHFVkxRAmUtf9aKmTzp9uKSVJz

3N1HdGqmcf4nVsUgmWiwB8p6p8ErWBmvQua:  -0.01000000 Waves

2023.11.16 16:04 [2845975] smart account 3N1HdGqmcf4nVsUgmWiwB8p6p8ErWBmvQua > SELF 0.00000000 Waves

{ "type": 13, "id": "G8PPjDoVTucoiTTZmikHFVkxRAmUtf9aKmTzp9uKSVJz", "fee": 1000000, "feeAssetId": null, "timestamp": 1700139916894, "version": 2, "chainId": 84, "sender": "3N1HdGqmcf4nVsUgmWiwB8p6p8ErWBmvQua", "senderPublicKey": "JAEVvs5E9kGyXWx3YQaivUpUP3vb3pgr2eS6UrYr1A8P", "proofs": [ "4Qk3wezqf7wUPoUQUkoFMFDnByKn8MpFDYhWxvtfwaxNBoNEAc11tXEcxsM5W36ZiVXB2QhYUYTCsesiX5bUAtv5" ], "script": "base64:AAIFAAAAAAAAAAgIAhIAEgASAAAAAA4AAAAACE9XTkVSX1BLAQAAACD+9CsLFiFJC8RGtLCwzR0ek1aKw5ef/3Hp6vXrubt/IAAAAAALU1RBS0VfQVNTRVQBAAAAIPss+diV/WzAQQQ+1nCaM2epB5cN0dakuic5O0p9U6wiAAAAAApFQVJOX0FTU0VUAQAAACD7LPnYlf1swEEEPtZwmjNnqQeXDdHWpLonOTtKfVOsIgAAAAANVE9LRU5TX1BFUl9NUwAAAAAAAAAAAQAAAAADU0VQAgAAAAJfXwAAAAALREVOT01JTkFUT1IADeC2s6dkAAABAAAAEHVzZXJEZXBvc2l0ZWRLZXkAAAABAAAABHVzZXIJAAS5AAAAAgkABEwAAAACAgAAAAJ1ZAkABEwAAAACCQACWAAAAAEIBQAAAAR1c2VyAAAABWJ5dGVzBQAAAANuaWwFAAAAA1NFUAEAAAARdG90YWxEZXBvc2l0ZWRLZXkAAAAAAgAAAAJ0ZAEAAAANbGFzdFVwZGF0ZUtleQAAAAACAAAAAmx1AQAAABdyZXdhcmRQZXJUb2tlblN0b3JlZEtleQAA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AAAAWkAAAAGY2FsbGVyAAAAAAAAAAAABQAAAANuaWwAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAACQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAUAAAAIT1dORVJfUEv33ITa", "height": 2845975, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 4Dqtd1ucyeBYQGnhd2rjxCgyLSiKGrYLdSKynpGHaN5A Next: 9aXKVK5LNruHXzZrUVaz5R8z93pEDHP4wjJRXXKKEPde Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
4-let a = base58'HuV7L2uJ4v2SDS5xqZLWPHhimTUgEMKstmxwfBY17SX3'
4+let a = base58'JAEVvs5E9kGyXWx3YQaivUpUP3vb3pgr2eS6UrYr1A8P'
55
66 let b = base58'HuV7L2uJ4v2SDS5xqZLWPHhimTUgEMKstmxwfBY17SX3'
77
8-let c = 1
8+let c = base58'HuV7L2uJ4v2SDS5xqZLWPHhimTUgEMKstmxwfBY17SX3'
99
10-let d = "__"
10+let d = 1
1111
12-let e = 1000000000000000000
12+let e = "__"
1313
14-func f (g) = makeString(["ud", toBase58String(g.bytes)], d)
14+let f = 1000000000000000000
15+
16+func g (h) = makeString(["ud", toBase58String(h.bytes)], e)
1517
1618
17-func h () = "td"
19+func i () = "td"
1820
1921
20-func i () = "lu"
22+func j () = "lu"
2123
2224
23-func j () = "rpts"
25+func k () = "rpts"
2426
2527
26-func k (g) = makeString(["urpd", toBase58String(g.bytes)], d)
28+func l (h) = makeString(["urpd", toBase58String(h.bytes)], e)
2729
2830
29-func l (g) = makeString(["ur", toBase58String(g.bytes)], d)
31+func m (h) = makeString(["ur", toBase58String(h.bytes)], e)
3032
3133
32-func m () = {
33- let n = toBigInt({
34- let o = getInteger(h())
35- if ($isInstanceOf(o, "Int"))
34+func n () = {
35+ let o = toBigInt({
36+ let p = getInteger(i())
37+ if ($isInstanceOf(p, "Int"))
3638 then {
37- let p = o
38- p
39+ let q = p
40+ q
3941 }
4042 else 0
4143 })
42- let q = toBigInt({
43- let o = getInteger(i())
44- if ($isInstanceOf(o, "Int"))
44+ let r = toBigInt({
45+ let p = getInteger(j())
46+ if ($isInstanceOf(p, "Int"))
4547 then {
46- let p = o
47- p
48+ let q = p
49+ q
4850 }
4951 else lastBlock.timestamp
5052 })
51- let r = parseBigIntValue({
52- let o = getString(j())
53- if ($isInstanceOf(o, "String"))
53+ let s = parseBigIntValue({
54+ let p = getString(k())
55+ if ($isInstanceOf(p, "String"))
5456 then {
55- let p = o
56- p
57+ let q = p
58+ q
5759 }
5860 else "0"
5961 })
60- if ((n == toBigInt(0)))
61- then r
62- else (r + (((toBigInt(c) * (toBigInt(lastBlock.timestamp) - q)) * toBigInt(e)) / n))
62+ if ((o == toBigInt(0)))
63+ then s
64+ else (s + (((toBigInt(d) * (toBigInt(lastBlock.timestamp) - r)) * toBigInt(f)) / o))
6365 }
6466
6567
66-func s (g) = {
67- let t = toBigInt({
68- let o = getInteger(f(g))
69- if ($isInstanceOf(o, "Int"))
68+func t (h) = {
69+ let u = toBigInt({
70+ let p = getInteger(g(h))
71+ if ($isInstanceOf(p, "Int"))
7072 then {
71- let p = o
72- p
73+ let q = p
74+ q
7375 }
7476 else 0
7577 })
76- let u = parseBigIntValue(getStringValue(k(g)))
77- let v = toBigInt({
78- let o = getInteger(l(g))
79- if ($isInstanceOf(o, "Int"))
78+ let v = parseBigIntValue(getStringValue(l(h)))
79+ let w = toBigInt({
80+ let p = getInteger(m(h))
81+ if ($isInstanceOf(p, "Int"))
8082 then {
81- let p = o
82- p
83+ let q = p
84+ q
8385 }
8486 else 0
8587 })
86- (fraction(t, (m() - u), toBigInt(e)) + v)
88+ (fraction(u, (n() - v), toBigInt(f)) + w)
8789 }
8890
8991
90-@Callable(w)
91-func update () = [IntegerEntry(i(), lastBlock.timestamp), StringEntry(j(), toString(m()))]
92+@Callable(x)
93+func update () = [IntegerEntry(j(), lastBlock.timestamp), StringEntry(k(), toString(n()))]
9294
9395
9496
95-@Callable(w)
96-func deposit () = if (if ((size(w.payments) != 1))
97+@Callable(x)
98+func deposit () = if (if ((size(x.payments) != 1))
9799 then true
98- else (w.payments[0].assetId != a))
100+ else (x.payments[0].assetId != b))
99101 then throw("incorrect asset deposits")
100102 else {
101- let t = {
102- let o = getInteger(f(w.caller))
103- if ($isInstanceOf(o, "Int"))
103+ let u = {
104+ let p = getInteger(g(x.caller))
105+ if ($isInstanceOf(p, "Int"))
104106 then {
105- let p = o
106- p
107+ let q = p
108+ q
107109 }
108110 else 0
109111 }
110- let n = {
111- let o = getInteger(h())
112- if ($isInstanceOf(o, "Int"))
112+ let o = {
113+ let p = getInteger(i())
114+ if ($isInstanceOf(p, "Int"))
113115 then {
114- let p = o
115- p
116+ let q = p
117+ q
116118 }
117119 else 0
118120 }
119-[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))
121+[IntegerEntry(g(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))
120122 then 0
121- else toInt(s(w.caller)))]
123+ else toInt(t(x.caller)))]
122124 }
123125
124126
125127
126-@Callable(w)
128+@Callable(x)
127129 func withdraw () = {
128- let t = {
129- let o = getInteger(f(w.caller))
130- if ($isInstanceOf(o, "Int"))
130+ let u = {
131+ let p = getInteger(g(x.caller))
132+ if ($isInstanceOf(p, "Int"))
131133 then {
132- let p = o
133- p
134+ let q = p
135+ q
134136 }
135137 else 0
136138 }
137- let n = {
138- let o = getInteger(h())
139- if ($isInstanceOf(o, "Int"))
139+ let o = {
140+ let p = getInteger(i())
141+ if ($isInstanceOf(p, "Int"))
140142 then {
141- let p = o
142- p
143+ let q = p
144+ q
143145 }
144146 else 0
145147 }
146- let x = toInt(s(w.caller))
147- if ((t == 0))
148+ let y = toInt(t(x.caller))
149+ if ((u == 0))
148150 then throw("empty deposit")
149- 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)]
151+ else [IntegerEntry(g(x.caller), 0), IntegerEntry(i(), (o - u)), IntegerEntry(j(), lastBlock.timestamp), ScriptTransfer(x.caller, u, b), ScriptTransfer(x.caller, y, c), StringEntry(k(), toString(n())), StringEntry(l(x.caller), toString(n())), IntegerEntry(m(x.caller), 0)]
150152 }
151153
152154
153-@Verifier(y)
154-func z () = sigVerify(y.bodyBytes, y.proofs[0], y.senderPublicKey)
155+@Verifier(z)
156+func A () = sigVerify(z.bodyBytes, z.proofs[0], a)
155157

github/deemru/w8io/026f985 
53.75 ms