tx · EAVKqUZw1AVF9D2ZaP9yXu9ZjWAVqKGJGN4TfEHMZkpM 3NCy4rT9no9CGLr89UrnyH8s75P8JjkSap8: -0.01400000 Waves 2021.01.06 01:45 [1340722] smart account 3NCy4rT9no9CGLr89UrnyH8s75P8JjkSap8 > SELF 0.00000000 Waves
{ "type": 13, "id": "EAVKqUZw1AVF9D2ZaP9yXu9ZjWAVqKGJGN4TfEHMZkpM", "fee": 1400000, "feeAssetId": null, "timestamp": 1609886696183, "version": 2, "chainId": 84, "sender": "3NCy4rT9no9CGLr89UrnyH8s75P8JjkSap8", "senderPublicKey": "62prNgRbWHRQAXh3a5sG95EtrJoYEsuUAgwkg3F4Kt6k", "proofs": [ "4A3UT3QLX1jmXasCTJFK8TmJtrFCcuMYF85YLNgrLBueqs4gXB8Ep82FZsq9u3RatBJF3ZCBhdqT1TXddT8WRT9V" ], "script": "base64:AAIEAAAAAAAAAAQIAhIAAAAAAAAAAAEAAAABaQEAAAALWnJvYnByemVsZXcAAAAABAAAAAVrb250bwgFAAAAAWkAAAAGY2FsbGVyBAAAAAVJbG9zYwgJAAGRAAAAAggFAAAAAWkAAAAIcGF5bWVudHMAAAAAAAAAAAAAAAAGYW1vdW50BAAAAAZ3YWx1dGEICQABkQAAAAIIBQAAAAFpAAAACHBheW1lbnRzAAAAAAAAAAAAAAAAB2Fzc2V0SWQEAAAACHN6Y3plcGFuCQACWQAAAAECAAAALEdvSjd4NGJvWXJGTWNuZmZaMmtpcDRtZ0dzRnk0S3lacnlHOWpvb0x0R1hvBAAAABBkZW5vbWlub3dhbmlsb3NjCQAAawAAAAMFAAAABUlsb3NjAAAAAAAAAAABAAAAAAAAD0JABAAAAA9wb29kamVjaXVvcGxhdHkJAABrAAAAAwUAAAAQZGVub21pbm93YW5pbG9zYwAAAAAAAAAAYQAAAAAAAAAAZAQAAAAYZGVub21pbm93YW5pbG9zY29kd3JvdG5hCQAAawAAAAMFAAAABUlsb3NjAAAAAAAAD0JAAAAAAAAAAAABBAAAABBwb29kamVjaXVvcGxhdHkyCQAAawAAAAMFAAAAGGRlbm9taW5vd2FuaWxvc2NvZHdyb3RuYQAAAAAAAAAAYQAAAAAAAAAAZAMJAAAAAAAAAgUAAAAGd2FsdXRhBQAAAAR1bml0CQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMFAAAABWtvbnRvBQAAAA9wb29kamVjaXVvcGxhdHkFAAAACHN6Y3plcGFuBQAAAANuaWwDCQAAAAAAAAIFAAAABndhbHV0YQUAAAAIc3pjemVwYW4JAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwUAAAAFa29udG8FAAAAEHBvb2RqZWNpdW9wbGF0eTIFAAAABHVuaXQFAAAAA25pbAkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADBQAAAAVrb250bwAAAAAAAAAAAAUAAAAEdW5pdAUAAAADbmlsAAAAAHx/JU0=", "height": 1340722, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: GtQueQdBj3gmhrv6VsMoDGFm7BL9PMTMDJ6g3GrMUmT6 Next: 7nRhy26jwnrvEr6dqJMiUsUYxLb3B3WDTZhZLuUTZBF8 Diff:
Old | New | Differences | |
---|---|---|---|
4 | 4 | ||
5 | 5 | ||
6 | 6 | @Callable(i) | |
7 | - | func sponsorowanyaset () = [SponsorFee(toBytes("GoJ7x4boYrFMcnffZ2kip4mgGsFy4KyZryG9jooLtGXo"), 300)] | |
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(toBytes("GoJ7x4boYrFMcnffZ2kip4mgGsFy4KyZryG9jooLtGXo"), 300)] | |
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/026f985 18.56 ms ◑