tx · 5SLaD539orDb2z3ocW7k7WyYfg3aJSef5pvJM6fVRbT2 3NCy4rT9no9CGLr89UrnyH8s75P8JjkSap8: -0.01400000 Waves 2020.12.10 15:30 [1302564] smart account 3NCy4rT9no9CGLr89UrnyH8s75P8JjkSap8 > SELF 0.00000000 Waves
{ "type": 13, "id": "5SLaD539orDb2z3ocW7k7WyYfg3aJSef5pvJM6fVRbT2", "fee": 1400000, "feeAssetId": null, "timestamp": 1607603441940, "version": 2, "chainId": 84, "sender": "3NCy4rT9no9CGLr89UrnyH8s75P8JjkSap8", "senderPublicKey": "62prNgRbWHRQAXh3a5sG95EtrJoYEsuUAgwkg3F4Kt6k", "proofs": [ "LRhEyCnCZGXjoJHtPk8k2qKJ9vPiwmB3Le9ugbSWbCbuTitX6CcGhXG76f8JBhchN78HHMxmyJp4x9CyCF18zFy" ], "script": "base64:AAIEAAAAAAAAAAQIAhIAAAAAAAAAAAEAAAABaQEAAAALWnJvYnByemVsZXcAAAAABAAAAAZsaXN0YTEJAARMAAAAAgAAAAAAAAAAAQkABEwAAAACAAAAAAAAAAACCQAETAAAAAIAAAAAAAAAAAMFAAAAA25pbAQAAAAGbGlzdGEyCQAETAAAAAIAAAAAAAAAAAQJAARMAAAAAgAAAAAAAAAABQkABEwAAAACAAAAAAAAAAAGBQAAAANuaWwEAAAABmxpc3RhMwkABEwAAAACBQAAAAZsaXN0YTEJAARMAAAAAgUAAAAGbGlzdGEyBQAAAANuaWwEAAAAAWEJAAGRAAAAAgUAAAAGbGlzdGEzAAAAAAAAAAAABAAAAAVrb250bwgFAAAAAWkAAAAGY2FsbGVyBAAAAAVJbG9zYwgJAAGRAAAAAggFAAAAAWkAAAAIcGF5bWVudHMAAAAAAAAAAAAAAAAGYW1vdW50BAAAAAJhYggJAAGRAAAAAggFAAAAAWkAAAAIcGF5bWVudHMAAAAAAAAAAAAAAAAHYXNzZXRJZAQAAAAIc3pjemVwYW4JAAJZAAAAAQIAAAAsR29KN3g0Ym9ZckZNY25mZloya2lwNG1nR3NGeTRLeVpyeUc5am9vTHRHWG8EAAAAEGRlbm9taW5vd2FuaWxvc2MJAABrAAAAAwUAAAAFSWxvc2MAAAAAAAAAAAEAAAAAAAAPQkAEAAAAD3Bvb2RqZWNpdW9wbGF0eQkAAGsAAAADBQAAABBkZW5vbWlub3dhbmlsb3NjAAAAAAAAAABhAAAAAAAAAABkBAAAABhkZW5vbWlub3dhbmlsb3Njb2R3cm90bmEJAABrAAAAAwUAAAAFSWxvc2MAAAAAAAAPQkAAAAAAAAAAAAEEAAAAEHBvb2RqZWNpdW9wbGF0eTIJAABrAAAAAwUAAAAYZGVub21pbm93YW5pbG9zY29kd3JvdG5hAAAAAAAAAABhAAAAAAAAAABkAwkAAAAAAAACBQAAAAJhYgUAAAAEdW5pdAkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADBQAAAAVrb250bwUAAAAPcG9vZGplY2l1b3BsYXR5CQACWQAAAAECAAAALEdvSjd4NGJvWXJGTWNuZmZaMmtpcDRtZ0dzRnk0S3lacnlHOWpvb0x0R1hvBQAAAANuaWwDCQAAAAAAAAIFAAAAAmFiBQAAAAhzemN6ZXBhbgkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADBQAAAAVrb250bwUAAAAQcG9vZGplY2l1b3BsYXR5MgUAAAAEdW5pdAUAAAADbmlsCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMFAAAABWtvbnRvAAAAAAAAAAAABQAAAAR1bml0BQAAAANuaWwAAAAAaD0IaQ==", "height": 1302564, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 4iXjN5sAXFqEGAVcYfvZosaXa5qdQ8skZ2BguoUMyYCp Next: 4i8xGs7pZz5LToD5oqw8568ELj8r3sP33pfsbdf9zZde Diff:
Old | New | Differences | |
---|---|---|---|
11 | 11 | let e = d[0] | |
12 | 12 | let f = a.caller | |
13 | 13 | let g = a.payments[0].amount | |
14 | - | let h = fraction(g, 1, 1000000) | |
15 | - | let i = fraction(h, 97, 100) | |
16 | - | let j = fromBase58String("GoJ7x4boYrFMcnffZ2kip4mgGsFy4KyZryG9jooLtGXo") | |
17 | - | [ScriptTransfer(f, i, j)] | |
14 | + | let h = a.payments[0].assetId | |
15 | + | let i = fromBase58String("GoJ7x4boYrFMcnffZ2kip4mgGsFy4KyZryG9jooLtGXo") | |
16 | + | let j = fraction(g, 1, 1000000) | |
17 | + | let k = fraction(j, 97, 100) | |
18 | + | let l = fraction(g, 1000000, 1) | |
19 | + | let m = fraction(l, 97, 100) | |
20 | + | if ((h == unit)) | |
21 | + | then [ScriptTransfer(f, k, fromBase58String("GoJ7x4boYrFMcnffZ2kip4mgGsFy4KyZryG9jooLtGXo"))] | |
22 | + | else if ((h == i)) | |
23 | + | then [ScriptTransfer(f, m, unit)] | |
24 | + | else [ScriptTransfer(f, 0, unit)] | |
18 | 25 | } | |
19 | 26 | ||
20 | 27 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 4 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | ||
5 | 5 | ||
6 | 6 | @Callable(a) | |
7 | 7 | func Zrobprzelew () = { | |
8 | 8 | let b = [1, 2, 3] | |
9 | 9 | let c = [4, 5, 6] | |
10 | 10 | let d = [b, c] | |
11 | 11 | let e = d[0] | |
12 | 12 | let f = a.caller | |
13 | 13 | let g = a.payments[0].amount | |
14 | - | let h = fraction(g, 1, 1000000) | |
15 | - | let i = fraction(h, 97, 100) | |
16 | - | let j = fromBase58String("GoJ7x4boYrFMcnffZ2kip4mgGsFy4KyZryG9jooLtGXo") | |
17 | - | [ScriptTransfer(f, i, j)] | |
14 | + | let h = a.payments[0].assetId | |
15 | + | let i = fromBase58String("GoJ7x4boYrFMcnffZ2kip4mgGsFy4KyZryG9jooLtGXo") | |
16 | + | let j = fraction(g, 1, 1000000) | |
17 | + | let k = fraction(j, 97, 100) | |
18 | + | let l = fraction(g, 1000000, 1) | |
19 | + | let m = fraction(l, 97, 100) | |
20 | + | if ((h == unit)) | |
21 | + | then [ScriptTransfer(f, k, fromBase58String("GoJ7x4boYrFMcnffZ2kip4mgGsFy4KyZryG9jooLtGXo"))] | |
22 | + | else if ((h == i)) | |
23 | + | then [ScriptTransfer(f, m, unit)] | |
24 | + | else [ScriptTransfer(f, 0, unit)] | |
18 | 25 | } | |
19 | 26 | ||
20 | 27 |
github/deemru/w8io/169f3d6 27.78 ms ◑