tx · 3BwbhS9qoQoCxDggSjkH4LMvPNHfxS1475NkvCjwv1Vd 3N44cXXhd7Xk7hr7JkLa3mTStLQnFpUfKgC: -0.00200000 Waves 2024.04.28 22:51 [3083151] smart account 3N44cXXhd7Xk7hr7JkLa3mTStLQnFpUfKgC > SELF 0.00000000 Waves
{ "type": 13, "id": "3BwbhS9qoQoCxDggSjkH4LMvPNHfxS1475NkvCjwv1Vd", "fee": 200000, "feeAssetId": null, "timestamp": 1714333961006, "version": 1, "sender": "3N44cXXhd7Xk7hr7JkLa3mTStLQnFpUfKgC", "senderPublicKey": "EMFFTUQwpCrBAT6yi2xNweK94ew8LJEghFxaD7GBTCrN", "proofs": [ "2GJYwrhPFRGR3WjoFDWLWFzo7mKMDtCBMsiAUkn7feTjc5rysMCEWkBogj2wKVLfkCuYUqVqwkukPut9ag48wqhu" ], "script": "base64:BgIGCAISABIABQAGdXNkbklkASAP8hwSrOTEPJrsRhqrJaiw7LoHK0bMbYhy8LXikkkBtAAJdXNkbklkU3RyAiwyNUZFcUVqUmtxSzZ5Q2tpVDdMejZTQVl6N2dVRkN0eGZDQ2huclZGRDVBVAAIcHV6emxlSWQBIFQg/ZqGxjcfmqC9eEjI30n8t7nczOflywY5wXQfieTbAAtwdXp6bGVJZFN0cgIsNmZRUmFMM0wyNW5HcWV2WFQ4a3h3akJTMjhma0JFcnJKNjlKWWNqN3FLZ1cBDXRyeUdldEludGVnZXIBA2tleQQHJG1hdGNoMAkAmggCBQR0aGlzBQNrZXkDCQABAgUHJG1hdGNoMAIDSW50BAFiBQckbWF0Y2gwBQFiAAACAWkBE3N3YXBBbmRUb3B1cFN0YWtpbmcABAdiYWxhbmNlCQDwBwIFBHRoaXMFBnVzZG5JZAQDaW52CQD8BwQJAQdBZGRyZXNzAQEaAVSv8yQUHiM2iXLvdiGKWE9nvJtEVfIzHpcCEmV4Y2hhbmdlVGhlbkludm9rZQkAzAgCBQtwdXp6bGVJZFN0cgkAzAgCAiMzTXU3VkhBV216RnVDOENDMWpMNjZlZ3dXZHpNbVUzR01kTgkAzAgCAgt0b3BVcFJld2FyZAkAzAgCBQNuaWwJAMwIAgAABQNuaWwJAMwIAgkBD0F0dGFjaGVkUGF5bWVudAIFBnVzZG5JZAUHYmFsYW5jZQUDbmlsAwkAAAIFA2ludgUDaW52CQDMCAIJAQxJbnRlZ2VyRW50cnkCAg5zdGF0c19sYXN0U3dhcAUGaGVpZ2h0CQDMCAIJAQxJbnRlZ2VyRW50cnkCCQCsAgICE3N0YXRzX3RvdGFsU3dhcHBlZF8FCXVzZG5JZFN0cgkAZAIJAQ10cnlHZXRJbnRlZ2VyAQkArAICAhNzdGF0c190b3RhbFN3YXBwZWRfBQl1c2RuSWRTdHIFB2JhbGFuY2UFA25pbAkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgFpAQx0b3B1cFN0YWtpbmcABANpbnYJAPwHBAkBB0FkZHJlc3MBARoBVDkA0yfX6Pybzd6Nx/bYRYn8qLmg8Z7zZQILdG9wVXBSZXdhcmQFA25pbAkAzAgCCQEPQXR0YWNoZWRQYXltZW50AgUIcHV6emxlSWQJAPAHAgUEdGhpcwUIcHV6emxlSWQFA25pbAMJAAACBQNpbnYFA2ludgkAzAgCCQEMSW50ZWdlckVudHJ5AgIOc3RhdHNfbGFzdFN3YXAFBmhlaWdodAUDbmlsCQACAQIkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuAQJ0eAEGdmVyaWZ5AAkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAAgFAnR4D3NlbmRlclB1YmxpY0tlebpcOI8=", "chainId": 84, "height": 3083151, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: D6UX9eVFsCGx9iSHFkKUScxc5UfuwhMtNjHpbeTS7dmp Next: none Diff:
Old | New | Differences | |
---|---|---|---|
5 | 5 | ||
6 | 6 | let b = "25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT" | |
7 | 7 | ||
8 | - | let c = base58' | |
8 | + | let c = base58'6fQRaL3L25nGqevXT8kxwjBS28fkBErrJ69JYcj7qKgW' | |
9 | 9 | ||
10 | - | let d = " | |
10 | + | let d = "6fQRaL3L25nGqevXT8kxwjBS28fkBErrJ69JYcj7qKgW" | |
11 | 11 | ||
12 | 12 | func e (f) = { | |
13 | 13 | let g = getInteger(this, f) |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = base58'25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT' | |
5 | 5 | ||
6 | 6 | let b = "25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT" | |
7 | 7 | ||
8 | - | let c = base58' | |
8 | + | let c = base58'6fQRaL3L25nGqevXT8kxwjBS28fkBErrJ69JYcj7qKgW' | |
9 | 9 | ||
10 | - | let d = " | |
10 | + | let d = "6fQRaL3L25nGqevXT8kxwjBS28fkBErrJ69JYcj7qKgW" | |
11 | 11 | ||
12 | 12 | func e (f) = { | |
13 | 13 | let g = getInteger(this, f) | |
14 | 14 | if ($isInstanceOf(g, "Int")) | |
15 | 15 | then { | |
16 | 16 | let h = g | |
17 | 17 | h | |
18 | 18 | } | |
19 | 19 | else 0 | |
20 | 20 | } | |
21 | 21 | ||
22 | 22 | ||
23 | 23 | @Callable(i) | |
24 | 24 | func swapAndTopupStaking () = { | |
25 | 25 | let j = assetBalance(this, a) | |
26 | 26 | let k = invoke(Address(base58'3N5xRJDevNVcgHnJ2pgKKS2DnxVmPrgzW1C'), "exchangeThenInvoke", [d, "3Mu7VHAWmzFuC8CC1jL66egwWdzMmU3GMdN", "topUpReward", nil, 0], [AttachedPayment(a, j)]) | |
27 | 27 | if ((k == k)) | |
28 | 28 | then [IntegerEntry("stats_lastSwap", height), IntegerEntry(("stats_totalSwapped_" + b), (e(("stats_totalSwapped_" + b)) + j))] | |
29 | 29 | else throw("Strict value is not equal to itself.") | |
30 | 30 | } | |
31 | 31 | ||
32 | 32 | ||
33 | 33 | ||
34 | 34 | @Callable(i) | |
35 | 35 | func topupStaking () = { | |
36 | 36 | let k = invoke(Address(base58'3Mu7VHAWmzFuC8CC1jL66egwWdzMmU3GMdN'), "topUpReward", nil, [AttachedPayment(c, assetBalance(this, c))]) | |
37 | 37 | if ((k == k)) | |
38 | 38 | then [IntegerEntry("stats_lastSwap", height)] | |
39 | 39 | else throw("Strict value is not equal to itself.") | |
40 | 40 | } | |
41 | 41 | ||
42 | 42 | ||
43 | 43 | @Verifier(l) | |
44 | 44 | func m () = sigVerify(l.bodyBytes, l.proofs[0], l.senderPublicKey) | |
45 | 45 |
github/deemru/w8io/026f985 23.25 ms ◑