tx · 4uLPkEcfKPe3SbkXmpLdYvJ37qCBebc1LiBkSzQKCtk3 3NCy4rT9no9CGLr89UrnyH8s75P8JjkSap8: -0.01400000 Waves 2021.01.11 06:49 [1348262] smart account 3NCy4rT9no9CGLr89UrnyH8s75P8JjkSap8 > SELF 0.00000000 Waves
{ "type": 13, "id": "4uLPkEcfKPe3SbkXmpLdYvJ37qCBebc1LiBkSzQKCtk3", "fee": 1400000, "feeAssetId": null, "timestamp": 1610337020192, "version": 2, "chainId": 84, "sender": "3NCy4rT9no9CGLr89UrnyH8s75P8JjkSap8", "senderPublicKey": "62prNgRbWHRQAXh3a5sG95EtrJoYEsuUAgwkg3F4Kt6k", "proofs": [ "pbEQESMSpbjGsEj7kZBXXYQ9BXj2YeL7d64eyHnArN4rQihMqoNmWQqDfFvi7j9u7zrC57k5nDmMcuRbNNDZUvQ" ], "script": "base64:AAIEAAAAAAAAAAYIAhIAEgAAAAACAAAAAAhzemN6ZXBhbgkAAlkAAAABAgAAACxHb0o3eDRib1lyRk1jbmZmWjJraXA0bWdHc0Z5NEt5WnJ5Rzlqb29MdEdYbwAAAAAJc3pjemVwYW4yCQACWQAAAAECAAAALDl5NG40bnFjUlVRVkxpYVBHVmV6eEI2Q1diUEhCNjI3TDlwWjdHU2FhWnp1AAAAAgAAAAFpAQAAAAtacm9icHJ6ZWxldwAAAAAEAAAABWtvbnRvCAUAAAABaQAAAAZjYWxsZXIEAAAABUlsb3NjCAkAAZEAAAACCAUAAAABaQAAAAhwYXltZW50cwAAAAAAAAAAAAAAAAZhbW91bnQEAAAABndhbHV0YQgJAAGRAAAAAggFAAAAAWkAAAAIcGF5bWVudHMAAAAAAAAAAAAAAAAHYXNzZXRJZAQAAAAQZGVub21pbm93YW5pbG9zYwkAAGsAAAADBQAAAAVJbG9zYwAAAAAAAAAAAQAAAAAAAA9CQAQAAAAPcG9vZGplY2l1b3BsYXR5CQAAawAAAAMFAAAAEGRlbm9taW5vd2FuaWxvc2MAAAAAAAAAAGEA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EQnVybgAAAAIFAAAACHN6Y3plcGFuBQAAAAVJbG9zYwUAAAADbmlsAwkAAAAAAAACBQAAAAZ3YWx1dGEFAAAACXN6Y3plcGFuMgkABEwAAAACCQEAAAAHUmVpc3N1ZQAAAAMFAAAACHN6Y3plcGFuBQAAAAVJbG9zYwYJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwUAAAAFa29udG8FAAAABUlsb3NjBQAAAAhzemN6ZXBhbgkABEwAAAACCQEAAAAEQnVybgAAAAIFAAAACXN6Y3plcGFuMgUAAAAFSWxvc2MFAAAAA25pbAkAAAIAAAABAgAAAB9UZWogd2FsdXR5IG5pZSBtb3plc3ogd3ltaWVuacSHAAAAAM1NmYI=", "height": 1348262, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 3XRyVVpinTmCmg3Z9RyaoB4wq6qN62ad16yPAaNcY24J Next: CGyoQ44a7XNUWpmY4Q2SshgpmDpTGsK4KpFkww1ZST2Q Full:
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 4 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | + | let a = fromBase58String("GoJ7x4boYrFMcnffZ2kip4mgGsFy4KyZryG9jooLtGXo") | |
5 | + | ||
6 | + | let b = fromBase58String("9y4n4nqcRUQVLiaPGVezxB6CWbPHB627L9pZ7GSaaZzu") | |
7 | + | ||
8 | + | @Callable(c) | |
9 | + | func Zrobprzelew () = { | |
10 | + | let d = c.caller | |
11 | + | let e = c.payments[0].amount | |
12 | + | let f = c.payments[0].assetId | |
13 | + | let g = fraction(e, 1, 1000000) | |
14 | + | let h = fraction(g, 97, 100) | |
15 | + | let i = fraction(e, 1000000, 1) | |
16 | + | let j = fraction(i, 97, 100) | |
17 | + | if ((f == unit)) | |
18 | + | then [ScriptTransfer(d, h, a)] | |
19 | + | else if ((f == a)) | |
20 | + | then [ScriptTransfer(d, j, unit)] | |
21 | + | else throw("Tej waluty nie możesz wymienić") | |
22 | + | } | |
4 | 23 | ||
5 | 24 | ||
6 | - | @Callable(a) | |
7 | - | func Zrobprzelew () = { | |
8 | - | let b = a.caller | |
9 | - | let c = a.payments[0].amount | |
10 | - | let d = a.payments[0].assetId | |
11 | - | let e = fromBase58String("GoJ7x4boYrFMcnffZ2kip4mgGsFy4KyZryG9jooLtGXo") | |
12 | - | let f = fraction(c, 1, 1000000) | |
13 | - | let g = fraction(f, 97, 100) | |
14 | - | let h = fraction(c, 1000000, 1) | |
15 | - | let i = fraction(h, 97, 100) | |
16 | - | if ((d == unit)) | |
17 | - | then [ScriptTransfer(b, g, e)] | |
18 | - | else if ((d == e)) | |
19 | - | then [ScriptTransfer(b, i, unit)] | |
20 | - | else [ScriptTransfer(b, 0, unit)] | |
25 | + | ||
26 | + | @Callable(c) | |
27 | + | func SzczepanNAszczepan () = { | |
28 | + | let d = c.caller | |
29 | + | let e = c.payments[0].amount | |
30 | + | let f = c.payments[0].assetId | |
31 | + | let h = fraction(e, 97, 100) | |
32 | + | if ((f == a)) | |
33 | + | then [Reissue(b, e, true), ScriptTransfer(d, e, b), Burn(a, e)] | |
34 | + | else if ((f == b)) | |
35 | + | then [Reissue(a, e, true), ScriptTransfer(d, e, a), Burn(b, e)] | |
36 | + | else throw("Tej waluty nie mozesz wymienić") | |
21 | 37 | } | |
22 | 38 | ||
23 | 39 |
github/deemru/w8io/169f3d6 67.90 ms ◑