tx · 3XRyVVpinTmCmg3Z9RyaoB4wq6qN62ad16yPAaNcY24J 3NCy4rT9no9CGLr89UrnyH8s75P8JjkSap8: -0.01400000 Waves 2021.01.06 19:40 [1341792] smart account 3NCy4rT9no9CGLr89UrnyH8s75P8JjkSap8 > SELF 0.00000000 Waves
{ "type": 13, "id": "3XRyVVpinTmCmg3Z9RyaoB4wq6qN62ad16yPAaNcY24J", "fee": 1400000, "feeAssetId": null, "timestamp": 1609951263499, "version": 2, "chainId": 84, "sender": "3NCy4rT9no9CGLr89UrnyH8s75P8JjkSap8", "senderPublicKey": "62prNgRbWHRQAXh3a5sG95EtrJoYEsuUAgwkg3F4Kt6k", "proofs": [ "4zHRL3m8my8YBTkrx6xF3WTsDEWcKdHECrSsdXCnE38nKXMHTmqLpM77SbYbpbeZkN6SsVAdN827LhWjTozSAxAd" ], "script": "base64:AAIEAAAAAAAAAAQIAhIAAAAAAAAAAAEAAAABaQEAAAALWnJvYnByemVsZXcAAAAABAAAAAVrb250bwgFAAAAAWkAAAAGY2FsbGVyBAAAAAVJbG9zYwgJAAGRAAAAAggFAAAAAWkAAAAIcGF5bWVudHMAAAAAAAAAAAAAAAAGYW1vdW50BAAAAAZ3YWx1dGEICQABkQAAAAIIBQAAAAFpAAAACHBheW1lbnRzAAAAAAAAAAAAAAAAB2Fzc2V0SWQEAAAACHN6Y3plcGFuCQACWQAAAAECAAAALEdvSjd4NGJvWXJGTWNuZmZaMmtpcDRtZ0dzRnk0S3lacnlHOWpvb0x0R1hvBAAAABBkZW5vbWlub3dhbmlsb3NjCQAAawAAAAMFAAAABUlsb3NjAAAAAAAAAAABAAAAAAAAD0JABAAAAA9wb29kamVjaXVvcGxhdHkJAABrAAAAAwUAAAAQZGVub21pbm93YW5pbG9zYwAAAAAAAAAAYQAAAAAAAAAAZAQAAAAYZGVub21pbm93YW5pbG9zY29kd3JvdG5hCQAAawAAAAMFAAAABUlsb3NjAAAAAAAAD0JAAAAAAAAAAAABBAAAABBwb29kamVjaXVvcGxhdHkyCQAAawAAAAMFAAAAGGRlbm9taW5vd2FuaWxvc2NvZHdyb3RuYQAAAAAAAAAAYQAAAAAAAAAAZAMJAAAAAAAAAgUAAAAGd2FsdXRhBQAAAAR1bml0CQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMFAAAABWtvbnRvBQAAAA9wb29kamVjaXVvcGxhdHkFAAAACHN6Y3plcGFuBQAAAANuaWwDCQAAAAAAAAIFAAAABndhbHV0YQUAAAAIc3pjemVwYW4JAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwUAAAAFa29udG8FAAAAEHBvb2RqZWNpdW9wbGF0eTIFAAAABHVuaXQFAAAAA25pbAkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADBQAAAAVrb250bwAAAAAAAAAAAAUAAAAEdW5pdAUAAAADbmlsAAAAAHx/JU0=", "height": 1341792, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 2NTnaaBDGSxPCv3VUW6aWA4D94t18KXoAFGytk3Fn98g Next: 4uLPkEcfKPe3SbkXmpLdYvJ37qCBebc1LiBkSzQKCtk3 Diff:
Old | New | Differences | |
---|---|---|---|
4 | 4 | ||
5 | 5 | ||
6 | 6 | @Callable(i) | |
7 | - | func sponsorowanyaset () = [SponsorFee(fromBase58String("9y4n4nqcRUQVLiaPGVezxB6CWbPHB627L9pZ7GSaaZzu"), 100)] | |
7 | + | func Zrobprzelew () = { | |
8 | + | let konto = i.caller | |
9 | + | let Ilosc = i.payments[0].amount | |
10 | + | let waluta = i.payments[0].assetId | |
11 | + | let szczepan = fromBase58String("GoJ7x4boYrFMcnffZ2kip4mgGsFy4KyZryG9jooLtGXo") | |
12 | + | let denominowanilosc = fraction(Ilosc, 1, 1000000) | |
13 | + | let poodjeciuoplaty = fraction(denominowanilosc, 97, 100) | |
14 | + | let denominowaniloscodwrotna = fraction(Ilosc, 1000000, 1) | |
15 | + | let poodjeciuoplaty2 = fraction(denominowaniloscodwrotna, 97, 100) | |
16 | + | if ((waluta == unit)) | |
17 | + | then [ScriptTransfer(konto, poodjeciuoplaty, szczepan)] | |
18 | + | else if ((waluta == szczepan)) | |
19 | + | then [ScriptTransfer(konto, poodjeciuoplaty2, unit)] | |
20 | + | else [ScriptTransfer(konto, 0, unit)] | |
21 | + | } | |
8 | 22 | ||
9 | 23 |
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(i) | |
7 | - | func sponsorowanyaset () = [SponsorFee(fromBase58String("9y4n4nqcRUQVLiaPGVezxB6CWbPHB627L9pZ7GSaaZzu"), 100)] | |
7 | + | func Zrobprzelew () = { | |
8 | + | let konto = i.caller | |
9 | + | let Ilosc = i.payments[0].amount | |
10 | + | let waluta = i.payments[0].assetId | |
11 | + | let szczepan = fromBase58String("GoJ7x4boYrFMcnffZ2kip4mgGsFy4KyZryG9jooLtGXo") | |
12 | + | let denominowanilosc = fraction(Ilosc, 1, 1000000) | |
13 | + | let poodjeciuoplaty = fraction(denominowanilosc, 97, 100) | |
14 | + | let denominowaniloscodwrotna = fraction(Ilosc, 1000000, 1) | |
15 | + | let poodjeciuoplaty2 = fraction(denominowaniloscodwrotna, 97, 100) | |
16 | + | if ((waluta == unit)) | |
17 | + | then [ScriptTransfer(konto, poodjeciuoplaty, szczepan)] | |
18 | + | else if ((waluta == szczepan)) | |
19 | + | then [ScriptTransfer(konto, poodjeciuoplaty2, unit)] | |
20 | + | else [ScriptTransfer(konto, 0, unit)] | |
21 | + | } | |
8 | 22 | ||
9 | 23 |
github/deemru/w8io/169f3d6 27.88 ms ◑