tx · 2JZkKkpYYaU4Bt1QLtNtKukMBkf3ZszELPL4wXaYTMdq

3PFzi3igSfMKAX589f5BWrZPghW8FcTGMe3:  -0.00600000 Waves

2022.12.12 23:49 [3423093] smart account 3PFzi3igSfMKAX589f5BWrZPghW8FcTGMe3 > SELF 0.00000000 Waves

{ "type": 13, "id": "2JZkKkpYYaU4Bt1QLtNtKukMBkf3ZszELPL4wXaYTMdq", "fee": 600000, "feeAssetId": null, "timestamp": 1670878263062, "version": 1, "sender": "3PFzi3igSfMKAX589f5BWrZPghW8FcTGMe3", "senderPublicKey": "33akeVf7jEFxmTga9eaV3i1Zz4qKToZ16Bz6qPViqopo", "proofs": [ "2ZFdnjWdjhAeBoeoDUQSguAnj7oJ8Jyrk9FCNpQHH6kcj6rniLus3E5JboMXTfNmYvo2RQCyRDyjFY5k8eY9W8LQ" ], "script": "base64:BgIECAISAAQAClVTRE5fQVNTRVQBILYmKcME9c5TkaQOS3UkL2SMUbH6369UKb1I0h0qsqrRAAt2ZXN0aW5nRGFwcAkBB0FkZHJlc3MBARoBV3US3ZOCD1veJXYVOctJ1R9TKAnE6HFeJwAMYWRtaW5BZGRyZXNzCQEHQWRkcmVzcwEBGgFXXAFxMGmBfWInmRKv8B4hyE/6R201GX6DAANmZWUABwEBaQEBYgADCQECIT0CCAUBaQZjYWxsZXIFDGFkbWluQWRkcmVzcwkAAgECEm9ubHkgYWRtaW4gYWxsb3dlZAQQd2l0aGRyYXdhbEFtb3VudAkA/AcEBQt2ZXN0aW5nRGFwcAIVd2l0aGRyYXdWZXN0ZWRBbGxVU0ROCQDMCAIHCQDMCAIGBQNuaWwFA25pbAMJAAACBRB3aXRoZHJhd2FsQW1vdW50BRB3aXRoZHJhd2FsQW1vdW50BAckbWF0Y2gwBRB3aXRoZHJhd2FsQW1vdW50AwkAAQIFByRtYXRjaDACA0ludAQGYW1vdW50BQckbWF0Y2gwBAlmZWVBbW91bnQJAGsDBQZhbW91bnQFA2ZlZQBkCQDMCAIJAQ5TY3JpcHRUcmFuc2ZlcgMFDGFkbWluQWRkcmVzcwUJZmVlQW1vdW50BQpVU0ROX0FTU0VUBQNuaWwJAAIBAiRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4JAAIBAiRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4BAnR4AQZ2ZXJpZnkABAckbWF0Y2gwBQJ0eAMJAAECBQckbWF0Y2gwAhdJbnZva2VTY3JpcHRUcmFuc2FjdGlvbgQDaW52BQckbWF0Y2gwAwkAAAIJAKQIAQgFA2ludgRkQXBwBQR0aGlzBgkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAAgFAnR4D3NlbmRlclB1YmxpY0tleQkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAAgFAnR4D3NlbmRlclB1YmxpY0tleYYZ/lU=", "chainId": 87, "height": 3423093, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: GxjveiskMcteuY5stupNYSiUXbAACXN39E8euxQtWovD Next: Ha4WT2xTVTH5KULhttMALjL4JYustEU4b9BFDPghFBhm Diff:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
4-let c = base58'6XtHjpXbs9RRJP2Sr9GUyVqzACcby9TkThHXnjVC5CDJ'
4+let a = base58'DG2xFkPdDwKUoBkzGAhQtLpSGzfXLiCYPEzeKH2Ad24p'
55
6-let d = base58'34N9YcEETLWn93qYQ64EsP1x89tSruJU44RrEMSXXEPJ'
6+let c = Address(base58'3PCbvPVQfSvVu88ip8Fm5YjwJhjEYk1Txhk')
77
8-let e = base58'DG2xFkPdDwKUoBkzGAhQtLpSGzfXLiCYPEzeKH2Ad24p'
8+let d = Address(base58'3PAKNd6ZXGLhP1k6VemDYYC8kGCcs5kikJ6')
99
10-let f = base58'3PGCkrHBxFMi7tz1xqnxgBpeNvn5E4M4g8S'
10+let e = 7
1111
12-let g = base58'3PEiD1zJWTMZNWSCyzhvBw9pxxAWeEwaghR'
13-
14-let h = base58'FSRHtSyXRXQjzQLRtmaqFpBDDCNjY8PU8KNtwoGXVBmr'
15-
16-let i = addressFromStringValue("3P5ph4LDJwXouaZPjnqGTNtogbm4Z1dy7dY")
17-
18-let j = addressFromStringValue("3PAZv9tgK1PX7dKR7b4kchq5qdpUS3G5sYT")
19-
20-let k = addressFromStringValue("3PCbvPVQfSvVu88ip8Fm5YjwJhjEYk1Txhk")
21-
22-@Callable(l)
23-func b (m) = if ((l.caller != this))
24- then throw("Access Denied")
12+@Callable(f)
13+func b () = if ((f.caller != d))
14+ then throw("only admin allowed")
2515 else {
26- let n = invoke(j, "replenishWithAtoken", nil, [AttachedPayment(h, m)])
27- if ((n == n))
28- then nil
29- else throw("Strict value is not equal to itself.")
30- }
31-
32-
33-
34-@Callable(l)
35-func a () = if ((l.caller != this))
36- then throw("Access Denied")
37- else {
38- let o = assetBalance(this, h)
39- let p = if ((250000000 > o))
40- then o
41- else 250000000
42- let n = invoke(j, "replenishWithAtoken", nil, [AttachedPayment(h, p)])
43- if ((n == n))
44- then nil
45- else throw("Strict value is not equal to itself.")
46- }
47-
48-
49-
50-@Callable(l)
51-func claim () = if ((l.caller != this))
52- then throw("Access Denied")
53- else {
54- let q = assetBalance(this, e)
55- if ((q == q))
16+ let g = invoke(c, "withdrawVestedAllUSDN", [false, true], nil)
17+ if ((g == g))
5618 then {
57- let n = invoke(k, "withdrawVestedAllUSDN", [false, true], nil)
58- if ((n == n))
19+ let h = g
20+ if ($isInstanceOf(h, "Int"))
5921 then {
60- let r = assetBalance(this, e)
61- if ((r == r))
62- then [ScriptTransfer(i, r, e)]
63- else throw("Strict value is not equal to itself.")
22+ let i = h
23+ let j = fraction(i, e, 100)
24+[ScriptTransfer(d, j, a)]
6425 }
6526 else throw("Strict value is not equal to itself.")
6627 }
6829 }
6930
7031
71-@Verifier(s)
72-func t () = {
73- let u = s
74- if ($isInstanceOf(u, "InvokeScriptTransaction"))
32+@Verifier(k)
33+func l () = {
34+ let h = k
35+ if ($isInstanceOf(h, "InvokeScriptTransaction"))
7536 then {
76- let n = u
77- if ((addressFromRecipient(n.dApp) == this))
37+ let m = h
38+ if ((addressFromRecipient(m.dApp) == this))
7839 then true
79- else sigVerify(s.bodyBytes, s.proofs[0], s.senderPublicKey)
40+ else sigVerify(k.bodyBytes, k.proofs[0], k.senderPublicKey)
8041 }
81- else sigVerify(s.bodyBytes, s.proofs[0], s.senderPublicKey)
42+ else sigVerify(k.bodyBytes, k.proofs[0], k.senderPublicKey)
8243 }
8344
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
4-let c = base58'6XtHjpXbs9RRJP2Sr9GUyVqzACcby9TkThHXnjVC5CDJ'
4+let a = base58'DG2xFkPdDwKUoBkzGAhQtLpSGzfXLiCYPEzeKH2Ad24p'
55
6-let d = base58'34N9YcEETLWn93qYQ64EsP1x89tSruJU44RrEMSXXEPJ'
6+let c = Address(base58'3PCbvPVQfSvVu88ip8Fm5YjwJhjEYk1Txhk')
77
8-let e = base58'DG2xFkPdDwKUoBkzGAhQtLpSGzfXLiCYPEzeKH2Ad24p'
8+let d = Address(base58'3PAKNd6ZXGLhP1k6VemDYYC8kGCcs5kikJ6')
99
10-let f = base58'3PGCkrHBxFMi7tz1xqnxgBpeNvn5E4M4g8S'
10+let e = 7
1111
12-let g = base58'3PEiD1zJWTMZNWSCyzhvBw9pxxAWeEwaghR'
13-
14-let h = base58'FSRHtSyXRXQjzQLRtmaqFpBDDCNjY8PU8KNtwoGXVBmr'
15-
16-let i = addressFromStringValue("3P5ph4LDJwXouaZPjnqGTNtogbm4Z1dy7dY")
17-
18-let j = addressFromStringValue("3PAZv9tgK1PX7dKR7b4kchq5qdpUS3G5sYT")
19-
20-let k = addressFromStringValue("3PCbvPVQfSvVu88ip8Fm5YjwJhjEYk1Txhk")
21-
22-@Callable(l)
23-func b (m) = if ((l.caller != this))
24- then throw("Access Denied")
12+@Callable(f)
13+func b () = if ((f.caller != d))
14+ then throw("only admin allowed")
2515 else {
26- let n = invoke(j, "replenishWithAtoken", nil, [AttachedPayment(h, m)])
27- if ((n == n))
28- then nil
29- else throw("Strict value is not equal to itself.")
30- }
31-
32-
33-
34-@Callable(l)
35-func a () = if ((l.caller != this))
36- then throw("Access Denied")
37- else {
38- let o = assetBalance(this, h)
39- let p = if ((250000000 > o))
40- then o
41- else 250000000
42- let n = invoke(j, "replenishWithAtoken", nil, [AttachedPayment(h, p)])
43- if ((n == n))
44- then nil
45- else throw("Strict value is not equal to itself.")
46- }
47-
48-
49-
50-@Callable(l)
51-func claim () = if ((l.caller != this))
52- then throw("Access Denied")
53- else {
54- let q = assetBalance(this, e)
55- if ((q == q))
16+ let g = invoke(c, "withdrawVestedAllUSDN", [false, true], nil)
17+ if ((g == g))
5618 then {
57- let n = invoke(k, "withdrawVestedAllUSDN", [false, true], nil)
58- if ((n == n))
19+ let h = g
20+ if ($isInstanceOf(h, "Int"))
5921 then {
60- let r = assetBalance(this, e)
61- if ((r == r))
62- then [ScriptTransfer(i, r, e)]
63- else throw("Strict value is not equal to itself.")
22+ let i = h
23+ let j = fraction(i, e, 100)
24+[ScriptTransfer(d, j, a)]
6425 }
6526 else throw("Strict value is not equal to itself.")
6627 }
6728 else throw("Strict value is not equal to itself.")
6829 }
6930
7031
71-@Verifier(s)
72-func t () = {
73- let u = s
74- if ($isInstanceOf(u, "InvokeScriptTransaction"))
32+@Verifier(k)
33+func l () = {
34+ let h = k
35+ if ($isInstanceOf(h, "InvokeScriptTransaction"))
7536 then {
76- let n = u
77- if ((addressFromRecipient(n.dApp) == this))
37+ let m = h
38+ if ((addressFromRecipient(m.dApp) == this))
7839 then true
79- else sigVerify(s.bodyBytes, s.proofs[0], s.senderPublicKey)
40+ else sigVerify(k.bodyBytes, k.proofs[0], k.senderPublicKey)
8041 }
81- else sigVerify(s.bodyBytes, s.proofs[0], s.senderPublicKey)
42+ else sigVerify(k.bodyBytes, k.proofs[0], k.senderPublicKey)
8243 }
8344

github/deemru/w8io/3ef1775 
38.03 ms