tx · Fgdns7VYeydfBjZ8JHuqaXBmctWj4BrdVe5Kk6qh3oGE 3Mzp2SVcAMDBu3Q4aG4EtTQGTKRtpkSsGFy: -0.01000000 Waves 2022.04.02 01:12 [1990106] smart account 3Mzp2SVcAMDBu3Q4aG4EtTQGTKRtpkSsGFy > SELF 0.00000000 Waves
{ "type": 13, "id": "Fgdns7VYeydfBjZ8JHuqaXBmctWj4BrdVe5Kk6qh3oGE", "fee": 1000000, "feeAssetId": null, "timestamp": 1648851163570, "version": 2, "chainId": 84, "sender": "3Mzp2SVcAMDBu3Q4aG4EtTQGTKRtpkSsGFy", "senderPublicKey": "9VSM67p8B4gEswZ5qFTRqzuBxkRT9kvkvTbRjDdwiAD2", "proofs": [ "2DzpNbN8uKVYEedqQs6KLnv1KEQNKyrVhhn22jfQD4WvNpWDa5w1YBx1YYHiBtsu3cJApHP7PLAmEamQ3JAb7kzV" ], "script": "base64:AAIFAAAAAAAAAAQIAhIAAAAABAAAAAAEdXNkTgEAAAAgD/IcEqzkxDya7EYaqyWosOy6BytGzG2IcvC14pJJAbQAAAAABnN0YWtlcgkBAAAAB0FkZHJlc3MAAAABAQAAABoBVDRN1hxurYPxlZgKuniaPP5OOF3+bmEyywAAAAAJbGVhc2VQb29sCQEAAAAHQWRkcmVzcwAAAAEBAAAAGgFUNE3WHG6tg/GVmAq6eJo8/k44Xf5uYTLLAAAAAApzaGFyZVRva2VuAQAAACAN1EdMdSgTCfvPg6qwJMmO22iRJQqRdvbLCj8IyZLdtgAAAAEAAAABaQEAAAAMYWRkTGlxdWlkaXR5AAAAAAMDCQEAAAACIT0AAAACCAkAAZEAAAACCAUAAAABaQAAAAhwYXltZW50cwAAAAAAAAAAAAAAAAdhc3NldElkBQAAAAR1bml0BgkBAAAAAiE9AAAAAggJAAGRAAAAAggFAAAAAWkAAAAIcGF5bWVudHMAAAAAAAAAAAEAAAAHYXNzZXRJZAUAAAAEdXNkTgkAAAIAAAABAgAAABF1bmV4cGVjdGVkIGFzc2V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kBAAAAC0xlYXNlQ2FuY2VsAAAAAQkAAlkAAAABBQAAAAJpZAUAAAADbmlsCQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAIFAAAABWlkS2V5CQACWAAAAAEFAAAACm5ld0xlYXNlSWQFAAAAA25pbAkABE4AAAACBQAAAAZjYW5jZWwJAARMAAAAAgUAAAAIbmV3TGVhc2UJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwgFAAAAAWkAAAAGY2FsbGVyAAAAAAAAAAABBQAAAApzaGFyZVRva2VuCQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACBQAAAA5sZWFzZUFtb3VudEtleQkAAGQAAAACBQAAAAxsZWFzZWRBbW91bnQICQABkQAAAAIIBQAAAAFpAAAACHBheW1lbnRzAAAAAAAAAAAAAAAABmFtb3VudAkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgUAAAAQc3Rha2luZ0Ftb3VudEtleQUAAAANc3Rha2luZ0Ftb3VudAUAAAADbmlsCQAAAgAAAAECAAAAJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgAAAADTAQuC", "height": 1990106, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 8ndH7wAZbp4FoYmRaf9BZx6apDQCdSaZkGkMwynbjhiR Next: none Diff:
Old | New | Differences | |
---|---|---|---|
5 | 5 | ||
6 | 6 | let b = Address(base58'3MtgeA4XXgXJ8JUcFnX7U4X5GFzisbnoZcW') | |
7 | 7 | ||
8 | - | let c = Address(base58' | |
8 | + | let c = Address(base58'3MtgeA4XXgXJ8JUcFnX7U4X5GFzisbnoZcW') | |
9 | 9 | ||
10 | 10 | let d = base58'vz3LSXQhs64FAd77oURX16nhJuB8YYe5NLB2em8AC5j' | |
11 | 11 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = base58'25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT' | |
5 | 5 | ||
6 | 6 | let b = Address(base58'3MtgeA4XXgXJ8JUcFnX7U4X5GFzisbnoZcW') | |
7 | 7 | ||
8 | - | let c = Address(base58' | |
8 | + | let c = Address(base58'3MtgeA4XXgXJ8JUcFnX7U4X5GFzisbnoZcW') | |
9 | 9 | ||
10 | 10 | let d = base58'vz3LSXQhs64FAd77oURX16nhJuB8YYe5NLB2em8AC5j' | |
11 | 11 | ||
12 | 12 | @Callable(e) | |
13 | 13 | func addLiquidity () = if (if ((e.payments[0].assetId != unit)) | |
14 | 14 | then true | |
15 | 15 | else (e.payments[1].assetId != a)) | |
16 | 16 | then throw("unexpected assets") | |
17 | 17 | else { | |
18 | 18 | let f = invoke(b, "stake", nil, [e.payments[1]]) | |
19 | 19 | if ((f == f)) | |
20 | 20 | then { | |
21 | 21 | let g = { | |
22 | 22 | let h = f | |
23 | 23 | if ($isInstanceOf(h, "Int")) | |
24 | 24 | then { | |
25 | 25 | let i = h | |
26 | 26 | i | |
27 | 27 | } | |
28 | 28 | else throw("unexpected result type from the staker") | |
29 | 29 | } | |
30 | 30 | let j = ("STAKING_AMOUNT_" + toString(e.caller)) | |
31 | 31 | let k = ("LEASE_AMOUNT_" + toString(e.caller)) | |
32 | 32 | let l = ("ID_" + toString(e.caller)) | |
33 | 33 | let m = valueOrElse(getInteger(this, k), 0) | |
34 | 34 | let n = getString(this, l) | |
35 | 35 | let o = Lease(c, (m + e.payments[0].amount)) | |
36 | 36 | let p = calculateLeaseId(o) | |
37 | 37 | let q = { | |
38 | 38 | let h = n | |
39 | 39 | if ($isInstanceOf(h, "String")) | |
40 | 40 | then { | |
41 | 41 | let r = h | |
42 | 42 | [LeaseCancel(fromBase58String(r))] | |
43 | 43 | } | |
44 | 44 | else [StringEntry(l, toBase58String(p))] | |
45 | 45 | } | |
46 | 46 | (q ++ [o, ScriptTransfer(e.caller, 1, d), IntegerEntry(k, (m + e.payments[0].amount)), IntegerEntry(j, g)]) | |
47 | 47 | } | |
48 | 48 | else throw("Strict value is not equal to itself.") | |
49 | 49 | } | |
50 | 50 | ||
51 | 51 |
github/deemru/w8io/169f3d6 30.39 ms ◑