tx · GBeJ1L9rCZjwps4Wj8VmifAWSKqHiTeKXW7cDryaC14D

3N3sjhLSBU5duySKvnNuKe5S2YNebk2Pxye:  -0.01300000 Waves

2023.05.10 13:07 [2571648] smart account 3N3sjhLSBU5duySKvnNuKe5S2YNebk2Pxye > SELF 0.00000000 Waves

{ "type": 13, "id": "GBeJ1L9rCZjwps4Wj8VmifAWSKqHiTeKXW7cDryaC14D", "fee": 1300000, "feeAssetId": null, "timestamp": 1683713318316, "version": 2, "chainId": 84, "sender": "3N3sjhLSBU5duySKvnNuKe5S2YNebk2Pxye", "senderPublicKey": "Cm17BFEPG286HnXKy3BbrJ8QYz8AbCqoWfUi8rKwHo12", "proofs": [ "2Q1JU4Q2eynXXDRRYCPZvq1tsXP7bRqigFapn4Q6CbebGEyf32thueZb3T5r3gEPYR7Q8CgGp3y7hiE5fWEo43gn" ], "script": "base64:BgIECAISAA0BE2tleUludmVzdFd4WHRuRGVsYXkAAhMlX19pbnZlc3RXeFh0bkRlbGF5ARdrZXlJbnZlc3RXeFh0bkFtb3VudFh0bgACFyVfX2ludmVzdFd4WHRuQW1vdW50WHRuAQxrZXlXeFh0blBvb2wAAgwlX193eFh0blBvb2wBDWtleVh0bkFzc2V0SWQAAg0lX194dG5Bc3NldElkAQprZXlXeFh0bkxwAAIKJV9fd3hYdG5McAEOa2V5THBUb0FkZHJlc3MAAg4lX19scFRvQWRkcmVzcwETa2V5TWFuYWdlclB1YmxpY0tleQACFCVzX19tYW5hZ2VyUHVibGljS2V5ARZrZXlNYW5hZ2VyVmF1bHRBZGRyZXNzAAIXJXNfX21hbmFnZXJWYXVsdEFkZHJlc3MBGGtleUludmVzdFd4WHRuTGFzdEhlaWdodAACGCVfX2ludmVzdFd4WHRuTGFzdEhlaWdodAEcZ2V0TWFuYWdlclZhdWx0QWRkcmVzc09yVGhpcwAEByRtYXRjaDAJAKIIAQkBFmtleU1hbmFnZXJWYXVsdEFkZHJlc3MAAwkAAQIFByRtYXRjaDACBlN0cmluZw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kU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuCQACAQIkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuCQACAQIkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuCQACAQIkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuAQJ0eAEGdmVyaWZ5AAQPdGFyZ2V0UHVibGljS2V5BAckbWF0Y2gwCQEWbWFuYWdlclB1YmxpY0tleU9yVW5pdAADCQABAgUHJG1hdGNoMAIKQnl0ZVZlY3RvcgQCcGsFByRtYXRjaDAFAnBrAwkAAQIFByRtYXRjaDACBFVuaXQIBQJ0eA9zZW5kZXJQdWJsaWNLZXkJAAIBAgtNYXRjaCBlcnJvcgkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAAUPdGFyZ2V0UHVibGljS2V5fPlqYg==", "height": 2571648, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: BYkD7ugUjVNmjnuadJaYqbnrfExy6gwx8FpUW9xNPwUp Next: none Diff:
OldNewDifferences
2828 func i () = "%__investWxXtnLastHeight"
2929
3030
31-func j () = addressFromStringValue(getStringValue(h()))
31+func j () = {
32+ let k = getString(h())
33+ if ($isInstanceOf(k, "String"))
34+ then {
35+ let l = k
36+ addressFromStringValue(l)
37+ }
38+ else this
39+ }
3240
3341
34-func k () = {
35- let l = j()
36- let m = getString(l, g())
37- if ($isInstanceOf(m, "String"))
42+func m () = {
43+ let n = j()
44+ let k = getString(n, g())
45+ if ($isInstanceOf(k, "String"))
3846 then {
39- let n = m
40- fromBase58String(n)
47+ let l = k
48+ fromBase58String(l)
4149 }
42- else if ($isInstanceOf(m, "Unit"))
50+ else if ($isInstanceOf(k, "Unit"))
4351 then unit
4452 else throw("Match error")
4553 }
5058
5159 func q (r) = {
5260 let s = o("permission denied")
53- let m = k()
54- if ($isInstanceOf(m, "ByteVector"))
61+ let k = m()
62+ if ($isInstanceOf(k, "ByteVector"))
5563 then {
56- let t = m
64+ let t = k
5765 if ((r.callerPublicKey == t))
5866 then true
5967 else s
6068 }
61- else if ($isInstanceOf(m, "Unit"))
69+ else if ($isInstanceOf(k, "Unit"))
6270 then if ((r.caller == this))
6371 then true
6472 else s
111119 @Verifier(E)
112120 func F () = {
113121 let G = {
114- let m = k()
115- if ($isInstanceOf(m, "ByteVector"))
122+ let k = m()
123+ if ($isInstanceOf(k, "ByteVector"))
116124 then {
117- let t = m
125+ let t = k
118126 t
119127 }
120- else if ($isInstanceOf(m, "Unit"))
128+ else if ($isInstanceOf(k, "Unit"))
121129 then E.senderPublicKey
122130 else throw("Match error")
123131 }
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 func a () = "%__investWxXtnDelay"
55
66
77 func b () = "%__investWxXtnAmountXtn"
88
99
1010 func c () = "%__wxXtnPool"
1111
1212
1313 func d () = "%__xtnAssetId"
1414
1515
1616 func e () = "%__wxXtnLp"
1717
1818
1919 func f () = "%__lpToAddress"
2020
2121
2222 func g () = "%s__managerPublicKey"
2323
2424
2525 func h () = "%s__managerVaultAddress"
2626
2727
2828 func i () = "%__investWxXtnLastHeight"
2929
3030
31-func j () = addressFromStringValue(getStringValue(h()))
31+func j () = {
32+ let k = getString(h())
33+ if ($isInstanceOf(k, "String"))
34+ then {
35+ let l = k
36+ addressFromStringValue(l)
37+ }
38+ else this
39+ }
3240
3341
34-func k () = {
35- let l = j()
36- let m = getString(l, g())
37- if ($isInstanceOf(m, "String"))
42+func m () = {
43+ let n = j()
44+ let k = getString(n, g())
45+ if ($isInstanceOf(k, "String"))
3846 then {
39- let n = m
40- fromBase58String(n)
47+ let l = k
48+ fromBase58String(l)
4149 }
42- else if ($isInstanceOf(m, "Unit"))
50+ else if ($isInstanceOf(k, "Unit"))
4351 then unit
4452 else throw("Match error")
4553 }
4654
4755
4856 func o (p) = throw(makeString(["investor.ride:", p], " "))
4957
5058
5159 func q (r) = {
5260 let s = o("permission denied")
53- let m = k()
54- if ($isInstanceOf(m, "ByteVector"))
61+ let k = m()
62+ if ($isInstanceOf(k, "ByteVector"))
5563 then {
56- let t = m
64+ let t = k
5765 if ((r.callerPublicKey == t))
5866 then true
5967 else s
6068 }
61- else if ($isInstanceOf(m, "Unit"))
69+ else if ($isInstanceOf(k, "Unit"))
6270 then if ((r.caller == this))
6371 then true
6472 else s
6573 else throw("Match error")
6674 }
6775
6876
6977 @Callable(r)
7078 func investWxXtn () = {
7179 let u = q(r)
7280 if ((u == u))
7381 then {
7482 let v = valueOrElse(getInteger(i()), 0)
7583 let w = getIntegerValue(a())
7684 let x = [if ((height > (v + w)))
7785 then true
7886 else o("wait to invest")]
7987 if ((x == x))
8088 then {
8189 let y = fromBase58String(getStringValue(e()))
8290 let z = assetBalance(this, y)
8391 if ((z == z))
8492 then {
8593 let A = invoke(addressFromStringValue(getStringValue(c())), "putOneTkn", [0, false], [AttachedPayment(fromBase58String(getStringValue(d())), getIntegerValue(b()))])
8694 if ((A == A))
8795 then {
8896 let B = assetBalance(this, y)
8997 if ((B == B))
9098 then {
9199 let C = (B - z)
92100 let D = if ((C == 0))
93101 then o("lp to get is zero")
94102 else unit
95103 if ((D == D))
96104 then [IntegerEntry(i(), height), ScriptTransfer(addressFromStringValue(getStringValue(f())), C, y)]
97105 else throw("Strict value is not equal to itself.")
98106 }
99107 else throw("Strict value is not equal to itself.")
100108 }
101109 else throw("Strict value is not equal to itself.")
102110 }
103111 else throw("Strict value is not equal to itself.")
104112 }
105113 else throw("Strict value is not equal to itself.")
106114 }
107115 else throw("Strict value is not equal to itself.")
108116 }
109117
110118
111119 @Verifier(E)
112120 func F () = {
113121 let G = {
114- let m = k()
115- if ($isInstanceOf(m, "ByteVector"))
122+ let k = m()
123+ if ($isInstanceOf(k, "ByteVector"))
116124 then {
117- let t = m
125+ let t = k
118126 t
119127 }
120- else if ($isInstanceOf(m, "Unit"))
128+ else if ($isInstanceOf(k, "Unit"))
121129 then E.senderPublicKey
122130 else throw("Match error")
123131 }
124132 sigVerify(E.bodyBytes, E.proofs[0], G)
125133 }
126134

github/deemru/w8io/169f3d6 
31.69 ms