tx · 7WEWb7pEkqAUT6S8Ddy8aTRC1pPoJQdDpEwg96tBgBZR

3PNixXRpaBngijBdNmKe3VHJKwD6PatDZX4:  -0.00200000 Waves

2022.12.21 07:21 [3435032] smart account 3PNixXRpaBngijBdNmKe3VHJKwD6PatDZX4 > SELF 0.00000000 Waves

{ "type": 13, "id": "7WEWb7pEkqAUT6S8Ddy8aTRC1pPoJQdDpEwg96tBgBZR", "fee": 200000, "feeAssetId": null, "timestamp": 1671596555821, "version": 1, "sender": "3PNixXRpaBngijBdNmKe3VHJKwD6PatDZX4", "senderPublicKey": "2d499SNJhrHLMh6Jjn4L2gFbZZ9jz81ta6Y8EaWZAf3S", "proofs": [ "5UtpZWdYGspTEEPSW33X35jwecyhVVx1SdrsLzuC8dGVCPr7kDJ8jKFSGkFU3gheTnBtSTWwTk86Pv1nF2DKjcjh" ], "script": "base64:BgKGAQgCEgASABIAIgRVU0ROIg1DbGFpbXNSZXdhcmRzIgdWZXN0aW5nIg9kZWxlZ2F0ZUFkZHJlc3MiDGFkbWluQWRkcmVzcyIBaSIDaW52Igt1c2RuSW5pdGlhbCIJdXNkbkZpbmFsIgpVU0ROUmV3YXJkIgJ0eCIGdmVyaWZ5IgckbWF0Y2gwBQABYQEgtiYpwwT1zlORpA5LdSQvZIxRsfrfr1QpvUjSHSqyqtEAAWIJAQdBZGRyZXNzAQEaAVfBck6YPz0QEz8ItSgBixhYcdv0PaqHx2QAAWMJAQdBZGRyZXNzAQEaAVd1Et2Tgg9b3iV2FTnLSdUfUygJxOhxXicAAWQJAQdBZGRyZXNzAQEaAVeCseCv9O4DBvfUEsqcCwjlU9tmnjqUogUAAWUJAQdBZGRyZXNzAQEaAVcULU/ulWtOLv6M9qfqEp7osy/PzlmN64UDAWYBAnZ2AAMDCQAAAggFAWYGY2FsbGVyBQR0aGlzBgkAAAIIBQFmBmNhbGxlcgUBZQQBZwkA/AcEBQFjAhV3aXRoZHJhd1Zlc3RlZEFsbFVTRE4JAMwIAgcJAMwIA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CCAUBawZwcm9vZnMAAAgFAWsPc2VuZGVyUHVibGljS2V5emEVbQ==", "chainId": 87, "height": 3435032, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 2k1zKtvJEStgkeC7YiSW8fQr6oKSLT46Adk1NC6UsFW5 Next: none Diff:
OldNewDifferences
33 {-# CONTENT_TYPE DAPP #-}
44 let a = base58'DG2xFkPdDwKUoBkzGAhQtLpSGzfXLiCYPEzeKH2Ad24p'
55
6-let b = base58'2tVLdi5fQXk2JcuDAojhctnDp5B5PZhNMyj5GUpeC3tZ'
6+let b = Address(base58'3PKZk5TdPCLP2GZviipLFfK46ExTnwkRCBd')
77
8-let c = base58'FSRHtSyXRXQjzQLRtmaqFpBDDCNjY8PU8KNtwoGXVBmr'
8+let c = Address(base58'3PCbvPVQfSvVu88ip8Fm5YjwJhjEYk1Txhk')
99
10-let d = addressFromStringValue("3PKZk5TdPCLP2GZviipLFfK46ExTnwkRCBd")
10+let d = Address(base58'3PDqwfLpLfmdsYvJrnT5wizggfzYt7XC7xY')
1111
12-let e = base58'DSbbhLsSTeDg5Lsiufk2Aneh3DjVqJuPr2M9uU1gwy5p'
12+let e = Address(base58'3P3maXS1yoBEvhbMTLBYHm2pAPeUSrfzDAc')
1313
14-let f = addressFromStringValue("3PCbvPVQfSvVu88ip8Fm5YjwJhjEYk1Txhk")
14+@Callable(f)
15+func vv () = if (if ((f.caller == this))
16+ then true
17+ else (f.caller == e))
18+ then {
19+ let g = invoke(c, "withdrawVestedAllUSDN", [false, true], nil)
20+ if ((g == g))
21+ then nil
22+ else throw("Strict value is not equal to itself.")
23+ }
24+ else throw("Access Denied")
1525
16-let g = addressFromStringValue("3PAZv9tgK1PX7dKR7b4kchq5qdpUS3G5sYT")
1726
18-let h = addressFromStringValue("3P3maXS1yoBEvhbMTLBYHm2pAPeUSrfzDAc")
1927
20-@Callable(i)
21-func cvw () = if ((i.caller != this))
22- then throw("Access Denied")
23- else {
24- let j = assetBalance(this, c)
25- if ((j == j))
28+@Callable(f)
29+func v () = if (if ((f.caller == this))
30+ then true
31+ else (f.caller == e))
32+ then {
33+ let h = assetBalance(this, a)
34+ if ((h == h))
2635 then {
27- let k = assetBalance(this, a)
28- if ((k == k))
36+ let g = invoke(c, "withdrawVestedAllUSDN", [false, true], nil)
37+ if ((g == g))
2938 then {
30- let l = invoke(f, "convertToUSDN", nil, nil)
31- if ((l == l))
32- then {
33- let m = invoke(f, "withdrawVestedAllUSDN", [false, true], nil)
34- if ((m == m))
35- then {
36- let n = assetBalance(this, a)
37- if ((n == n))
38- then [ScriptTransfer(h, n, a)]
39- else throw("Strict value is not equal to itself.")
40- }
41- else throw("Strict value is not equal to itself.")
42- }
39+ let i = assetBalance(this, a)
40+ if ((i == i))
41+ then [ScriptTransfer(d, i, a)]
4342 else throw("Strict value is not equal to itself.")
4443 }
4544 else throw("Strict value is not equal to itself.")
4645 }
4746 else throw("Strict value is not equal to itself.")
4847 }
48+ else throw("Access Denied")
4949
5050
5151
52-@Callable(i)
53-func v () = if ((i.caller != this))
54- then throw("Access Denied")
55- else {
56- let o = invoke(f, "withdrawVestedAllUSDN", [false, true], nil)
57- if ((o == o))
52+@Callable(f)
53+func ClaimRewardsUSDN () = if (if ((f.caller == this))
54+ then true
55+ else (f.caller == e))
56+ then {
57+ let j = invoke(b, "claimRewards", nil, nil)
58+ if ((j == j))
5859 then nil
5960 else throw("Strict value is not equal to itself.")
6061 }
62+ else throw("Access Denied")
6163
6264
63-
64-@Callable(i)
65-func vw () = if ((i.caller != this))
66- then throw("Access Denied")
67- else {
68- let p = assetBalance(this, a)
69- if ((p == p))
70- then {
71- let o = invoke(f, "withdrawVestedAllUSDN", [false, true], nil)
72- if ((o == o))
73- then {
74- let q = assetBalance(this, a)
75- if ((q == q))
76- then [ScriptTransfer(h, q, a)]
77- else throw("Strict value is not equal to itself.")
78- }
79- else throw("Strict value is not equal to itself.")
80- }
81- else throw("Strict value is not equal to itself.")
82- }
83-
84-
85-
86-@Callable(i)
87-func ic (r) = if ((i.caller != this))
88- then throw("Access Denied")
89- else {
90- let o = invoke(g, "replenishWithAtoken", nil, [AttachedPayment(c, r)])
91- if ((o == o))
92- then nil
93- else throw("Strict value is not equal to itself.")
94- }
95-
96-
97-
98-@Callable(i)
99-func it (r) = if ((i.caller != this))
100- then throw("Access Denied")
101- else {
102- let o = invoke(g, "replenishWithAtoken", nil, [AttachedPayment(b, r)])
103- if ((o == o))
104- then nil
105- else throw("Strict value is not equal to itself.")
106- }
107-
108-
109-
110-@Callable(i)
111-func ClaimRewardsUSDN () = if ((i.caller != this))
112- then throw("Access Denied")
113- else {
114- let s = invoke(d, "claimRewards", nil, nil)
115- if ((s == s))
116- then nil
117- else throw("Strict value is not equal to itself.")
118- }
119-
120-
121-@Verifier(t)
122-func u () = {
123- let w = t
124- if ($isInstanceOf(w, "InvokeScriptTransaction"))
65+@Verifier(k)
66+func l () = {
67+ let m = k
68+ if ($isInstanceOf(m, "InvokeScriptTransaction"))
12569 then {
126- let o = w
127- if ((addressFromRecipient(o.dApp) == this))
70+ let g = m
71+ if (if ((addressFromRecipient(g.dApp) == this))
72+ then (13000001 >= g.fee)
73+ else false)
12874 then true
129- else sigVerify(t.bodyBytes, t.proofs[0], t.senderPublicKey)
75+ else sigVerify(k.bodyBytes, k.proofs[0], k.senderPublicKey)
13076 }
131- else sigVerify(t.bodyBytes, t.proofs[0], t.senderPublicKey)
77+ else sigVerify(k.bodyBytes, k.proofs[0], k.senderPublicKey)
13278 }
13379
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = base58'DG2xFkPdDwKUoBkzGAhQtLpSGzfXLiCYPEzeKH2Ad24p'
55
6-let b = base58'2tVLdi5fQXk2JcuDAojhctnDp5B5PZhNMyj5GUpeC3tZ'
6+let b = Address(base58'3PKZk5TdPCLP2GZviipLFfK46ExTnwkRCBd')
77
8-let c = base58'FSRHtSyXRXQjzQLRtmaqFpBDDCNjY8PU8KNtwoGXVBmr'
8+let c = Address(base58'3PCbvPVQfSvVu88ip8Fm5YjwJhjEYk1Txhk')
99
10-let d = addressFromStringValue("3PKZk5TdPCLP2GZviipLFfK46ExTnwkRCBd")
10+let d = Address(base58'3PDqwfLpLfmdsYvJrnT5wizggfzYt7XC7xY')
1111
12-let e = base58'DSbbhLsSTeDg5Lsiufk2Aneh3DjVqJuPr2M9uU1gwy5p'
12+let e = Address(base58'3P3maXS1yoBEvhbMTLBYHm2pAPeUSrfzDAc')
1313
14-let f = addressFromStringValue("3PCbvPVQfSvVu88ip8Fm5YjwJhjEYk1Txhk")
14+@Callable(f)
15+func vv () = if (if ((f.caller == this))
16+ then true
17+ else (f.caller == e))
18+ then {
19+ let g = invoke(c, "withdrawVestedAllUSDN", [false, true], nil)
20+ if ((g == g))
21+ then nil
22+ else throw("Strict value is not equal to itself.")
23+ }
24+ else throw("Access Denied")
1525
16-let g = addressFromStringValue("3PAZv9tgK1PX7dKR7b4kchq5qdpUS3G5sYT")
1726
18-let h = addressFromStringValue("3P3maXS1yoBEvhbMTLBYHm2pAPeUSrfzDAc")
1927
20-@Callable(i)
21-func cvw () = if ((i.caller != this))
22- then throw("Access Denied")
23- else {
24- let j = assetBalance(this, c)
25- if ((j == j))
28+@Callable(f)
29+func v () = if (if ((f.caller == this))
30+ then true
31+ else (f.caller == e))
32+ then {
33+ let h = assetBalance(this, a)
34+ if ((h == h))
2635 then {
27- let k = assetBalance(this, a)
28- if ((k == k))
36+ let g = invoke(c, "withdrawVestedAllUSDN", [false, true], nil)
37+ if ((g == g))
2938 then {
30- let l = invoke(f, "convertToUSDN", nil, nil)
31- if ((l == l))
32- then {
33- let m = invoke(f, "withdrawVestedAllUSDN", [false, true], nil)
34- if ((m == m))
35- then {
36- let n = assetBalance(this, a)
37- if ((n == n))
38- then [ScriptTransfer(h, n, a)]
39- else throw("Strict value is not equal to itself.")
40- }
41- else throw("Strict value is not equal to itself.")
42- }
39+ let i = assetBalance(this, a)
40+ if ((i == i))
41+ then [ScriptTransfer(d, i, a)]
4342 else throw("Strict value is not equal to itself.")
4443 }
4544 else throw("Strict value is not equal to itself.")
4645 }
4746 else throw("Strict value is not equal to itself.")
4847 }
48+ else throw("Access Denied")
4949
5050
5151
52-@Callable(i)
53-func v () = if ((i.caller != this))
54- then throw("Access Denied")
55- else {
56- let o = invoke(f, "withdrawVestedAllUSDN", [false, true], nil)
57- if ((o == o))
52+@Callable(f)
53+func ClaimRewardsUSDN () = if (if ((f.caller == this))
54+ then true
55+ else (f.caller == e))
56+ then {
57+ let j = invoke(b, "claimRewards", nil, nil)
58+ if ((j == j))
5859 then nil
5960 else throw("Strict value is not equal to itself.")
6061 }
62+ else throw("Access Denied")
6163
6264
63-
64-@Callable(i)
65-func vw () = if ((i.caller != this))
66- then throw("Access Denied")
67- else {
68- let p = assetBalance(this, a)
69- if ((p == p))
70- then {
71- let o = invoke(f, "withdrawVestedAllUSDN", [false, true], nil)
72- if ((o == o))
73- then {
74- let q = assetBalance(this, a)
75- if ((q == q))
76- then [ScriptTransfer(h, q, a)]
77- else throw("Strict value is not equal to itself.")
78- }
79- else throw("Strict value is not equal to itself.")
80- }
81- else throw("Strict value is not equal to itself.")
82- }
83-
84-
85-
86-@Callable(i)
87-func ic (r) = if ((i.caller != this))
88- then throw("Access Denied")
89- else {
90- let o = invoke(g, "replenishWithAtoken", nil, [AttachedPayment(c, r)])
91- if ((o == o))
92- then nil
93- else throw("Strict value is not equal to itself.")
94- }
95-
96-
97-
98-@Callable(i)
99-func it (r) = if ((i.caller != this))
100- then throw("Access Denied")
101- else {
102- let o = invoke(g, "replenishWithAtoken", nil, [AttachedPayment(b, r)])
103- if ((o == o))
104- then nil
105- else throw("Strict value is not equal to itself.")
106- }
107-
108-
109-
110-@Callable(i)
111-func ClaimRewardsUSDN () = if ((i.caller != this))
112- then throw("Access Denied")
113- else {
114- let s = invoke(d, "claimRewards", nil, nil)
115- if ((s == s))
116- then nil
117- else throw("Strict value is not equal to itself.")
118- }
119-
120-
121-@Verifier(t)
122-func u () = {
123- let w = t
124- if ($isInstanceOf(w, "InvokeScriptTransaction"))
65+@Verifier(k)
66+func l () = {
67+ let m = k
68+ if ($isInstanceOf(m, "InvokeScriptTransaction"))
12569 then {
126- let o = w
127- if ((addressFromRecipient(o.dApp) == this))
70+ let g = m
71+ if (if ((addressFromRecipient(g.dApp) == this))
72+ then (13000001 >= g.fee)
73+ else false)
12874 then true
129- else sigVerify(t.bodyBytes, t.proofs[0], t.senderPublicKey)
75+ else sigVerify(k.bodyBytes, k.proofs[0], k.senderPublicKey)
13076 }
131- else sigVerify(t.bodyBytes, t.proofs[0], t.senderPublicKey)
77+ else sigVerify(k.bodyBytes, k.proofs[0], k.senderPublicKey)
13278 }
13379

github/deemru/w8io/873ac7e 
44.25 ms