tx · 9Jj8TZ2Xo1LsE2g5B56xfAQHNShg6VjGxc6J2CwPASkJ 3MxWnia78EWAUh9wDwLoCrDnnagawxMKufB: -0.00100000 Waves 2023.09.01 02:51 [2735543] smart account 3MxWnia78EWAUh9wDwLoCrDnnagawxMKufB > SELF 0.00000000 Waves
{ "type": 13, "id": "9Jj8TZ2Xo1LsE2g5B56xfAQHNShg6VjGxc6J2CwPASkJ", "fee": 100000, "feeAssetId": null, "timestamp": 1693525928220, "version": 2, "chainId": 84, "sender": "3MxWnia78EWAUh9wDwLoCrDnnagawxMKufB", "senderPublicKey": "CBYyJYjLr6QcUATF9taECtyAsBYe79dCi3xEsvxxMCaa", "proofs": [ "2eyAhzKMjMriaEUC5XdGCiRABr8AcakAo3jENXRNHBPktbwokj5VBExY2xADRSsiqETHAp1bQoFVekVfhQajAZCZ" ], "script": "base64:BgIICAISABIAEgACAANmZWUAZAAGc2NhbGU1AKCNBgMBaQEOY2FsbGJhY2tSZXR1cm4ABAZhbW91bnQJAQV2YWx1ZQEICQCRAwIIBQFpCHBheW1lbnRzAAAGYW1vdW50BAdhc3NldElkCAkAkQMCCAUBaQhwYXltZW50cwAAB2Fzc2V0SWQECWZlZUFtb3VudAkAawMFBmFtb3VudAUDZmVlBQZzY2FsZTUEDWFtb3VudFRvUmVwYXkJAGQCBQZhbW91bnQFCWZlZUFtb3VudAkAzAgCCQEOU2NyaXB0VHJhbnNmZXIDCAUBaQZjYWxsZXIFDWFtb3VudFRvUmVwYXkFB2Fzc2V0SWQJAMwIAgkBDEludGVnZXJFbnRyeQICB3JlcGF5ZWQFDWFtb3VudFRvUmVwYXkFA25pbAFpARBjYWxsYmFja05vUmV0dXJuAAQGYW1vdW50CQEFdmFsdWUBCAkAkQMCCAUBaQhwYXltZW50cwAABmFtb3VudAQHYXNzZXRJZAgJAJEDAggFAWkIcGF5bWVudHMAAAdhc3NldElkBAlmZWVBbW91bnQJAGsDBQZhbW91bnQFA2ZlZQUGc2NhbGU1BA1hbW91bnRUb1JlcGF5CQBkAgUGYW1vdW50BQlmZWVBbW91bnQJAMwIAgkBDEludGVnZXJFbnRyeQICC25vdF9yZXBheWVkBQ1hbW91bnRUb1JlcGF5BQNuaWwBaQESY2FsbGJhY2tQYXJ0UmV0dXJuAAQGYW1vdW50CQEFdmFsdWUBCAkAkQMCCAUBaQhwYXltZW50cwAABmFtb3VudAQHYXNzZXRJZAgJAJEDAggFAWkIcGF5bWVudHMAAAdhc3NldElkBAlmZWVBbW91bnQJAGsDBQZhbW91bnQFA2ZlZQUGc2NhbGU1BA1hbW91bnRUb1JlcGF5CQBkAgUGYW1vdW50BQlmZWVBbW91bnQJAMwIAgkBDlNjcmlwdFRyYW5zZmVyAwgFAWkGY2FsbGVyCQBpAgUNYW1vdW50VG9SZXBheQACBQdhc3NldElkCQDMCAIJAQxJbnRlZ2VyRW50cnkCAgtub3RfcmVwYXllZAUNYW1vdW50VG9SZXBheQUDbmlsAP25qhc=", "height": 2735543, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: AGRGsAKcvvQVtvdAaFGh9wgHq2a2pUJx9yQWFZ2QSdAn Next: none Diff:
Old | New | Differences | |
---|---|---|---|
26 | 26 | } | |
27 | 27 | ||
28 | 28 | ||
29 | + | ||
30 | + | @Callable(i) | |
31 | + | func callbackPartReturn () = { | |
32 | + | let amount = value(i.payments[0].amount) | |
33 | + | let assetId = i.payments[0].assetId | |
34 | + | let feeAmount = fraction(amount, fee, scale5) | |
35 | + | let amountToRepay = (amount + feeAmount) | |
36 | + | [ScriptTransfer(i.caller, (amountToRepay / 2), assetId), IntegerEntry("not_repayed", amountToRepay)] | |
37 | + | } | |
38 | + | ||
39 | + |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let fee = 100 | |
5 | 5 | ||
6 | 6 | let scale5 = 100000 | |
7 | 7 | ||
8 | 8 | @Callable(i) | |
9 | 9 | func callbackReturn () = { | |
10 | 10 | let amount = value(i.payments[0].amount) | |
11 | 11 | let assetId = i.payments[0].assetId | |
12 | 12 | let feeAmount = fraction(amount, fee, scale5) | |
13 | 13 | let amountToRepay = (amount + feeAmount) | |
14 | 14 | [ScriptTransfer(i.caller, amountToRepay, assetId), IntegerEntry("repayed", amountToRepay)] | |
15 | 15 | } | |
16 | 16 | ||
17 | 17 | ||
18 | 18 | ||
19 | 19 | @Callable(i) | |
20 | 20 | func callbackNoReturn () = { | |
21 | 21 | let amount = value(i.payments[0].amount) | |
22 | 22 | let assetId = i.payments[0].assetId | |
23 | 23 | let feeAmount = fraction(amount, fee, scale5) | |
24 | 24 | let amountToRepay = (amount + feeAmount) | |
25 | 25 | [IntegerEntry("not_repayed", amountToRepay)] | |
26 | 26 | } | |
27 | 27 | ||
28 | 28 | ||
29 | + | ||
30 | + | @Callable(i) | |
31 | + | func callbackPartReturn () = { | |
32 | + | let amount = value(i.payments[0].amount) | |
33 | + | let assetId = i.payments[0].assetId | |
34 | + | let feeAmount = fraction(amount, fee, scale5) | |
35 | + | let amountToRepay = (amount + feeAmount) | |
36 | + | [ScriptTransfer(i.caller, (amountToRepay / 2), assetId), IntegerEntry("not_repayed", amountToRepay)] | |
37 | + | } | |
38 | + | ||
39 | + |
github/deemru/w8io/169f3d6 20.26 ms ◑