tx · 4Dqtd1ucyeBYQGnhd2rjxCgyLSiKGrYLdSKynpGHaN5A

3N1HdGqmcf4nVsUgmWiwB8p6p8ErWBmvQua:  -0.01000000 Waves

2023.11.16 15:47 [2845957] smart account 3N1HdGqmcf4nVsUgmWiwB8p6p8ErWBmvQua > SELF 0.00000000 Waves

{ "type": 13, "id": "4Dqtd1ucyeBYQGnhd2rjxCgyLSiKGrYLdSKynpGHaN5A", "fee": 1000000, "feeAssetId": null, "timestamp": 1700138882110, "version": 2, "chainId": 84, "sender": "3N1HdGqmcf4nVsUgmWiwB8p6p8ErWBmvQua", "senderPublicKey": "JAEVvs5E9kGyXWx3YQaivUpUP3vb3pgr2eS6UrYr1A8P", "proofs": [ "2Rhe8J2yq87ymfzBbe2mobXioKhqgfzPjQjK7CUUw9Y9FUg5NhKSCo3mj9xYaFDonQTMLYKpGgixRxekLVkiYFWp", "4119BBjn5TVQPKgcpKykKK8X3q5psh2cSGEVRUXfKTujvPqHn7hQ3yN57McLUxDoP7ayGNn6d4jTq7m1LELZETw4" ], "script": "base64:AAIFAAAAAAAAAAgIAhIAEgASAAAAAA0AAAAAC1NUQUtFX0FTU0VUAQAAACD7LPnYlf1swEEEPtZwmjNnqQeXDdHWpLonOTtKfVOsIgAAAAAKRUFSTl9BU1NFVAEAAAAg+yz52JX9bMBBBD7WcJozZ6kHlw3R1qS6Jzk7Sn1TrCIAAAAADVRPS0VOU19QRVJfTVMAAAAAAAAAAAEAAAAAA1NFUAIAAAACX18AAAAAC0RFTk9NSU5BVE9SAA3gtrOnZAAAAQAAABB1c2VyRGVwb3NpdGVkS2V5AAAAAQAAAAR1c2VyCQAEuQAAAAIJAARMAAAAAgIAAAACdWQJAARMAAAAAgkAAlgAAAABCAUAAAAEdXNlcgAAAAVieXRlcwUAAAADbmlsBQAAAANTRVABAAAAEXRvdGFsRGVwb3NpdGVkS2V5AAAAAAIAAAACdGQBAAAADWxhc3RVcGRhdGVLZXkAAAAAAgAAAAJsdQEAAAAXcmV3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AAAt1c2VyUmV3YXJkcwAAAAEIBQAAAAFpAAAABmNhbGxlcgAAAAAAAAAAAAUAAAADbmlsAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXnKGAYQ", "height": 2845957, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: Ga8ix3Wcaf4Hr4JJR7B1r4T3TtmjmwKU4yRqNorkHQGZ Next: G8PPjDoVTucoiTTZmikHFVkxRAmUtf9aKmTzp9uKSVJz Diff:
OldNewDifferences
8888
8989
9090 @Callable(w)
91+func update () = [IntegerEntry(i(), lastBlock.timestamp), StringEntry(j(), toString(m()))]
92+
93+
94+
95+@Callable(w)
9196 func deposit () = if (if ((size(w.payments) != 1))
9297 then true
9398 else (w.payments[0].assetId != a))
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
1717 func h () = "td"
1818
1919
2020 func i () = "lu"
2121
2222
2323 func j () = "rpts"
2424
2525
2626 func k (g) = makeString(["urpd", toBase58String(g.bytes)], d)
2727
2828
2929 func l (g) = makeString(["ur", toBase58String(g.bytes)], d)
3030
3131
3232 func m () = {
3333 let n = toBigInt({
3434 let o = getInteger(h())
3535 if ($isInstanceOf(o, "Int"))
3636 then {
3737 let p = o
3838 p
3939 }
4040 else 0
4141 })
4242 let q = toBigInt({
4343 let o = getInteger(i())
4444 if ($isInstanceOf(o, "Int"))
4545 then {
4646 let p = o
4747 p
4848 }
4949 else lastBlock.timestamp
5050 })
5151 let r = parseBigIntValue({
5252 let o = getString(j())
5353 if ($isInstanceOf(o, "String"))
5454 then {
5555 let p = o
5656 p
5757 }
5858 else "0"
5959 })
6060 if ((n == toBigInt(0)))
6161 then r
6262 else (r + (((toBigInt(c) * (toBigInt(lastBlock.timestamp) - q)) * toBigInt(e)) / n))
6363 }
6464
6565
6666 func s (g) = {
6767 let t = toBigInt({
6868 let o = getInteger(f(g))
6969 if ($isInstanceOf(o, "Int"))
7070 then {
7171 let p = o
7272 p
7373 }
7474 else 0
7575 })
7676 let u = parseBigIntValue(getStringValue(k(g)))
7777 let v = toBigInt({
7878 let o = getInteger(l(g))
7979 if ($isInstanceOf(o, "Int"))
8080 then {
8181 let p = o
8282 p
8383 }
8484 else 0
8585 })
8686 (fraction(t, (m() - u), toBigInt(e)) + v)
8787 }
8888
8989
9090 @Callable(w)
91+func update () = [IntegerEntry(i(), lastBlock.timestamp), StringEntry(j(), toString(m()))]
92+
93+
94+
95+@Callable(w)
9196 func deposit () = if (if ((size(w.payments) != 1))
9297 then true
9398 else (w.payments[0].assetId != a))
9499 then throw("incorrect asset deposits")
95100 else {
96101 let t = {
97102 let o = getInteger(f(w.caller))
98103 if ($isInstanceOf(o, "Int"))
99104 then {
100105 let p = o
101106 p
102107 }
103108 else 0
104109 }
105110 let n = {
106111 let o = getInteger(h())
107112 if ($isInstanceOf(o, "Int"))
108113 then {
109114 let p = o
110115 p
111116 }
112117 else 0
113118 }
114119 [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))
115120 then 0
116121 else toInt(s(w.caller)))]
117122 }
118123
119124
120125
121126 @Callable(w)
122127 func withdraw () = {
123128 let t = {
124129 let o = getInteger(f(w.caller))
125130 if ($isInstanceOf(o, "Int"))
126131 then {
127132 let p = o
128133 p
129134 }
130135 else 0
131136 }
132137 let n = {
133138 let o = getInteger(h())
134139 if ($isInstanceOf(o, "Int"))
135140 then {
136141 let p = o
137142 p
138143 }
139144 else 0
140145 }
141146 let x = toInt(s(w.caller))
142147 if ((t == 0))
143148 then throw("empty deposit")
144149 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)]
145150 }
146151
147152
148153 @Verifier(y)
149154 func z () = sigVerify(y.bodyBytes, y.proofs[0], y.senderPublicKey)
150155

github/deemru/w8io/026f985 
27.61 ms