tx · HwkvVKESTGvBf9KgrmBv1zMnRLmPJsJz8xuL868XZYJt

3N5CayN8CtoM2QuWDDDQFCPdiviGSt9GTpt:  -0.01300000 Waves

2023.05.10 13:16 [2571656] smart account 3N5CayN8CtoM2QuWDDDQFCPdiviGSt9GTpt > SELF 0.00000000 Waves

{ "type": 13, "id": "HwkvVKESTGvBf9KgrmBv1zMnRLmPJsJz8xuL868XZYJt", "fee": 1300000, "feeAssetId": null, "timestamp": 1683713796949, "version": 2, "chainId": 84, "sender": "3N5CayN8CtoM2QuWDDDQFCPdiviGSt9GTpt", "senderPublicKey": "8z79nXR33yhmSzh8WGovFPyrSqSq4gYftBwUQBsc577Y", "proofs": [ "3MQKzYDWSjuu13tkgF4wbterGYeJ4NP9qbBjnKAjeFpVUfAWpyXmv4Xex2oHJok4Dp5YTnz9XEK1QUJxUoGtyHGF" ], "script": "base64:BgIICAISABIAEgAPAAxjb250cmFjdEZpbGUCD3Byb3h5X3BlcGUucmlkZQARa2V5c1dhdmVzQ29udHJhY3QCEiVzX19zV2F2ZXNDb250cmFjdAAQa2V5c1dhdmVzQXNzZXRJZAIRJXNfX3NXYXZlc0Fzc2V0SWQBD2dldFN0cmluZ09yRmFpbAEDa2V5CQETdmFsdWVPckVycm9yTWVzc2FnZQIJAJ0IAgUEdGhpcwUDa2V5CQCsAgICFU5vIGRhdGEgZm9yIHRoaXMua2V5PQUDa2V5ARNwZXBlQ29udHJhY3RBZGRyZXNzAAkBD2dldFN0cmluZ09yRmFpbAEFEWtleXNXYXZlc0NvbnRyYWN0AQ5zV2F2ZXNJZFN0cmluZwAJAQ9nZXRTdHJpbmdPckZhaWwBBRBrZXlzV2F2ZXNBc3NldElkAAxwZXBlQ29udHJhY3QJARFAZXh0ck5hdGl2ZSgxMDYyKQEJARNwZXBlQ29udHJhY3RBZGRyZXNzAAAGc1dhdmVzCQDZBAEJAQ5zV2F2ZXNJZFN0cmluZwABE2tleU1hbmFnZXJQdWJsaWNLZXkAAhQlc19fbWFu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pY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4JAAIBAiRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4BAnR4AQZ2ZXJpZnkABA90YXJnZXRQdWJsaWNLZXkEByRtYXRjaDAJARZtYW5hZ2VyUHVibGljS2V5T3JVbml0AAMJAAECBQckbWF0Y2gwAgpCeXRlVmVjdG9yBAJwawUHJG1hdGNoMAUCcGsDCQABAgUHJG1hdGNoMAIEVW5pdAgFAnR4D3NlbmRlclB1YmxpY0tleQkAAgECC01hdGNoIGVycm9yCQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwAABQ90YXJnZXRQdWJsaWNLZXmL8IHr", "height": 2571656, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 8KKaYQJyBhmR4Szt7XySQqXoPrzmEwNtyYRicDZPNp8x Next: none Diff:
OldNewDifferences
2626 func k () = "%s__managerVaultAddress"
2727
2828
29-func l () = addressFromStringValue(getStringValue(k()))
29+func l () = {
30+ let m = getString(k())
31+ if ($isInstanceOf(m, "String"))
32+ then {
33+ let n = m
34+ addressFromStringValue(n)
35+ }
36+ else this
37+ }
3038
3139
32-func m (n) = throw(((a + ": ") + n))
40+func o (p) = throw(((a + ": ") + p))
3341
3442
35-func o () = {
36- let p = l()
37- let q = getString(p, j())
38- if ($isInstanceOf(q, "String"))
43+func q () = {
44+ let r = l()
45+ let m = getString(r, j())
46+ if ($isInstanceOf(m, "String"))
3947 then {
40- let r = q
41- fromBase58String(r)
48+ let n = m
49+ fromBase58String(n)
4250 }
43- else if ($isInstanceOf(q, "Unit"))
51+ else if ($isInstanceOf(m, "Unit"))
4452 then unit
4553 else throw("Match error")
4654 }
4755
4856
4957 func s (t) = {
50- let q = o()
51- if ($isInstanceOf(q, "ByteVector"))
58+ let m = q()
59+ if ($isInstanceOf(m, "ByteVector"))
5260 then {
53- let u = q
61+ let u = m
5462 (t.callerPublicKey == u)
5563 }
56- else if ($isInstanceOf(q, "Unit"))
64+ else if ($isInstanceOf(m, "Unit"))
5765 then (t.caller == this)
5866 else throw("Match error")
5967 }
6775 @Callable(t)
6876 func getRate () = {
6977 let w = invoke(h, "getRate", nil, nil)
70- let q = w
71- if ($isInstanceOf(q, "String"))
78+ let m = w
79+ if ($isInstanceOf(m, "String"))
7280 then {
73- let x = q
81+ let x = m
7482 $Tuple2(nil, parseIntValue(x))
7583 }
76- else m("getRate(): unexpected return")
84+ else o("getRate(): unexpected return")
7785 }
7886
7987
118126 @Verifier(B)
119127 func C () = {
120128 let D = {
121- let q = o()
122- if ($isInstanceOf(q, "ByteVector"))
129+ let m = q()
130+ if ($isInstanceOf(m, "ByteVector"))
123131 then {
124- let u = q
132+ let u = m
125133 u
126134 }
127- else if ($isInstanceOf(q, "Unit"))
135+ else if ($isInstanceOf(m, "Unit"))
128136 then B.senderPublicKey
129137 else throw("Match error")
130138 }
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = "proxy_pepe.ride"
55
66 let b = "%s__sWavesContract"
77
88 let c = "%s__sWavesAssetId"
99
1010 func d (e) = valueOrErrorMessage(getString(this, e), ("No data for this.key=" + e))
1111
1212
1313 func f () = d(b)
1414
1515
1616 func g () = d(c)
1717
1818
1919 let h = addressFromStringValue(f())
2020
2121 let i = fromBase58String(g())
2222
2323 func j () = "%s__managerPublicKey"
2424
2525
2626 func k () = "%s__managerVaultAddress"
2727
2828
29-func l () = addressFromStringValue(getStringValue(k()))
29+func l () = {
30+ let m = getString(k())
31+ if ($isInstanceOf(m, "String"))
32+ then {
33+ let n = m
34+ addressFromStringValue(n)
35+ }
36+ else this
37+ }
3038
3139
32-func m (n) = throw(((a + ": ") + n))
40+func o (p) = throw(((a + ": ") + p))
3341
3442
35-func o () = {
36- let p = l()
37- let q = getString(p, j())
38- if ($isInstanceOf(q, "String"))
43+func q () = {
44+ let r = l()
45+ let m = getString(r, j())
46+ if ($isInstanceOf(m, "String"))
3947 then {
40- let r = q
41- fromBase58String(r)
48+ let n = m
49+ fromBase58String(n)
4250 }
43- else if ($isInstanceOf(q, "Unit"))
51+ else if ($isInstanceOf(m, "Unit"))
4452 then unit
4553 else throw("Match error")
4654 }
4755
4856
4957 func s (t) = {
50- let q = o()
51- if ($isInstanceOf(q, "ByteVector"))
58+ let m = q()
59+ if ($isInstanceOf(m, "ByteVector"))
5260 then {
53- let u = q
61+ let u = m
5462 (t.callerPublicKey == u)
5563 }
56- else if ($isInstanceOf(q, "Unit"))
64+ else if ($isInstanceOf(m, "Unit"))
5765 then (t.caller == this)
5866 else throw("Match error")
5967 }
6068
6169
6270 func v (t) = if (s(t))
6371 then true
6472 else throw("permission denied")
6573
6674
6775 @Callable(t)
6876 func getRate () = {
6977 let w = invoke(h, "getRate", nil, nil)
70- let q = w
71- if ($isInstanceOf(q, "String"))
78+ let m = w
79+ if ($isInstanceOf(m, "String"))
7280 then {
73- let x = q
81+ let x = m
7482 $Tuple2(nil, parseIntValue(x))
7583 }
76- else m("getRate(): unexpected return")
84+ else o("getRate(): unexpected return")
7785 }
7886
7987
8088
8189 @Callable(t)
8290 func deposit () = {
8391 let y = assetBalance(this, i)
8492 if ((y == y))
8593 then {
8694 let w = invoke(h, "deposit", nil, t.payments)
8795 if ((w == w))
8896 then {
8997 let z = assetBalance(this, i)
9098 let A = (z - y)
9199 $Tuple2([ScriptTransfer(t.caller, A, i)], A)
92100 }
93101 else throw("Strict value is not equal to itself.")
94102 }
95103 else throw("Strict value is not equal to itself.")
96104 }
97105
98106
99107
100108 @Callable(t)
101109 func withdraw () = {
102110 let y = wavesBalance(this).available
103111 if ((y == y))
104112 then {
105113 let w = invoke(h, "withdraw", nil, t.payments)
106114 if ((w == w))
107115 then {
108116 let z = wavesBalance(this).available
109117 let A = (z - y)
110118 $Tuple2([ScriptTransfer(t.caller, A, unit)], A)
111119 }
112120 else throw("Strict value is not equal to itself.")
113121 }
114122 else throw("Strict value is not equal to itself.")
115123 }
116124
117125
118126 @Verifier(B)
119127 func C () = {
120128 let D = {
121- let q = o()
122- if ($isInstanceOf(q, "ByteVector"))
129+ let m = q()
130+ if ($isInstanceOf(m, "ByteVector"))
123131 then {
124- let u = q
132+ let u = m
125133 u
126134 }
127- else if ($isInstanceOf(q, "Unit"))
135+ else if ($isInstanceOf(m, "Unit"))
128136 then B.senderPublicKey
129137 else throw("Match error")
130138 }
131139 sigVerify(B.bodyBytes, B.proofs[0], D)
132140 }
133141

github/deemru/w8io/026f985 
29.43 ms