tx · hah8iB6uvj4swZWNkirWF9SkAwovKTnrUK474VyKF2s

3N1HdGqmcf4nVsUgmWiwB8p6p8ErWBmvQua:  -0.01000000 Waves

2023.11.16 02:45 [2845148] smart account 3N1HdGqmcf4nVsUgmWiwB8p6p8ErWBmvQua > SELF 0.00000000 Waves

{ "type": 13, "id": "hah8iB6uvj4swZWNkirWF9SkAwovKTnrUK474VyKF2s", "fee": 1000000, "feeAssetId": null, "timestamp": 1700091975352, "version": 2, "chainId": 84, "sender": "3N1HdGqmcf4nVsUgmWiwB8p6p8ErWBmvQua", "senderPublicKey": "JAEVvs5E9kGyXWx3YQaivUpUP3vb3pgr2eS6UrYr1A8P", "proofs": [ "5jG4aL8mcbpJGBxTdeNfji1P1cxbEHVgrqiMD9nTGJRsguquN7J5SdMHGdBfk7G6CXkiUSYoEueVysrvqbWXZqQD" ], "script": "base64:AAIFAAAAAAAAAAYIAhIAEgAAAAAOAAAAAAtTVEFLRV9BU1NFVAEAAAAg+yz52JX9bMBBBD7WcJozZ6kHlw3R1qS6Jzk7Sn1TrCIAAAAACkVBUk5fQVNTRVQBAAAAIPss+diV/WzAQQQ+1nCaM2epB5cN0dakuic5O0p9U6wiAAAAAA1UT0tFTlNfUEVSX01TAAAAAAAAAAABAAAAAANTRVACAAAAAl9fAAAAAAtERU5PTUlOQVRPUgAN4Lazp2QAAAEAAAAQdXNlckRlcG9zaXRlZEtleQAAAAEAAAAEdXNlcgkABLkAAAACCQAETAAAAAICAAAAAnVkCQAETAAAAAIJAAJYAAAAAQgFAAAABHVzZXIAAAAFYnl0ZXMFAAAAA25pbAUAAAADU0VQAQAAAA11c2VyVXBkYXRlS2V5AAAAAQAAAAR1c2VyCQAEuQAAAAIJAARMAAAAAgIAAAACdXUJAARMAAAAAgkAAlgAAAABCAUAAAAEdXNlcgAAAAVieXRlcwUAAAADbmlsBQAAAANTRVABAAAAEXRvdGFsRGVwb3NpdGVkS2V5AAAAAAIAAAACdGQBAAAADWxhc3RVcGRhdGVLZ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AAAAMZWFybmVkVG9rZW5zBQAAAApFQVJOX0FTU0VUCQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAIJAQAAABdyZXdhcmRQZXJUb2tlblN0b3JlZEtleQAAAAAJAAGmAAAAAQkBAAAAGGNhbGNSZXdhcmRQZXJUb2tlblN0b3JlZAAAAAAJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgkBAAAAGXVzZXJSZXdhcmRQZXJUb2tlblBhaWRLZXkAAAABCAUAAAABaQAAAAZjYWxsZXIJAAGmAAAAAQkBAAAAGGNhbGNSZXdhcmRQZXJUb2tlblN0b3JlZAAAAAAJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAIJAQAAAAt1c2VyUmV3YXJkcwAAAAEIBQAAAAFpAAAABmNhbGxlcgAAAAAAAAAAAAUAAAADbmlsAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXk/SLWU", "height": 2845148, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: EYsuSB85qVP5CHACifn15JWJqT4bv6SwciDkamS7PD1R Next: BS2Kj2aJ7qKMCqBgpk31hUX8YUitXf1eQKcb1MNa9tmA Diff:
OldNewDifferences
8888 else (x.payments[0].assetId != a))
8989 then throw("incorrect asset deposits")
9090 else {
91- let u = getIntegerValue(f(x.caller))
92- let o = getIntegerValue(i())
91+ let u = {
92+ let p = getInteger(f(x.caller))
93+ if ($isInstanceOf(p, "Int"))
94+ then {
95+ let q = p
96+ q
97+ }
98+ else 0
99+ }
100+ let o = {
101+ let p = getInteger(i())
102+ if ($isInstanceOf(p, "Int"))
103+ then {
104+ let q = p
105+ q
106+ }
107+ else 0
108+ }
93109 [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)))]
94110 }
95111
97113
98114 @Callable(x)
99115 func withdraw () = {
100- let u = getIntegerValue(f(x.caller))
101- let o = getIntegerValue(i())
116+ let u = {
117+ let p = getInteger(f(x.caller))
118+ if ($isInstanceOf(p, "Int"))
119+ then {
120+ let q = p
121+ q
122+ }
123+ else 0
124+ }
125+ let o = {
126+ let p = getInteger(i())
127+ if ($isInstanceOf(p, "Int"))
128+ then {
129+ let q = p
130+ q
131+ }
132+ else 0
133+ }
102134 let y = toInt(t(x.caller))
103135 [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)]
104136 }
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 (g) = makeString(["uu", toBase58String(g.bytes)], d)
1818
1919
2020 func i () = "td"
2121
2222
2323 func j () = "lu"
2424
2525
2626 func k () = "rpts"
2727
2828
2929 func l (g) = makeString(["urpd", toBase58String(g.bytes)], d)
3030
3131
3232 func m (g) = makeString(["ur", toBase58String(g.bytes)], d)
3333
3434
3535 func n () = {
3636 let o = toBigInt({
3737 let p = getInteger(i())
3838 if ($isInstanceOf(p, "Int"))
3939 then {
4040 let q = p
4141 q
4242 }
4343 else 0
4444 })
4545 let r = toBigInt({
4646 let p = getInteger(j())
4747 if ($isInstanceOf(p, "Int"))
4848 then {
4949 let q = p
5050 q
5151 }
5252 else lastBlock.timestamp
5353 })
5454 let s = parseBigIntValue({
5555 let p = getString(k())
5656 if ($isInstanceOf(p, "String"))
5757 then {
5858 let q = p
5959 q
6060 }
6161 else "0"
6262 })
6363 if ((o == toBigInt(0)))
6464 then s
6565 else (s + (((toBigInt(c) * (toBigInt(lastBlock.timestamp) - r)) * toBigInt(e)) / o))
6666 }
6767
6868
6969 func t (g) = {
7070 let u = toBigInt(getIntegerValue(f(g)))
7171 let v = toBigInt(getIntegerValue(l(g)))
7272 let w = toBigInt({
7373 let p = getInteger(m(g))
7474 if ($isInstanceOf(p, "Int"))
7575 then {
7676 let q = p
7777 q
7878 }
7979 else 0
8080 })
8181 (fraction(u, (n() - v), toBigInt(e)) + w)
8282 }
8383
8484
8585 @Callable(x)
8686 func deposit () = if (if ((size(x.payments) != 1))
8787 then true
8888 else (x.payments[0].assetId != a))
8989 then throw("incorrect asset deposits")
9090 else {
91- let u = getIntegerValue(f(x.caller))
92- let o = getIntegerValue(i())
91+ let u = {
92+ let p = getInteger(f(x.caller))
93+ if ($isInstanceOf(p, "Int"))
94+ then {
95+ let q = p
96+ q
97+ }
98+ else 0
99+ }
100+ let o = {
101+ let p = getInteger(i())
102+ if ($isInstanceOf(p, "Int"))
103+ then {
104+ let q = p
105+ q
106+ }
107+ else 0
108+ }
93109 [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)))]
94110 }
95111
96112
97113
98114 @Callable(x)
99115 func withdraw () = {
100- let u = getIntegerValue(f(x.caller))
101- let o = getIntegerValue(i())
116+ let u = {
117+ let p = getInteger(f(x.caller))
118+ if ($isInstanceOf(p, "Int"))
119+ then {
120+ let q = p
121+ q
122+ }
123+ else 0
124+ }
125+ let o = {
126+ let p = getInteger(i())
127+ if ($isInstanceOf(p, "Int"))
128+ then {
129+ let q = p
130+ q
131+ }
132+ else 0
133+ }
102134 let y = toInt(t(x.caller))
103135 [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)]
104136 }
105137
106138
107139 @Verifier(z)
108140 func A () = sigVerify(z.bodyBytes, z.proofs[0], z.senderPublicKey)
109141

github/deemru/w8io/026f985 
27.20 ms