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:
OldNewDifferences
2626 }
2727
2828
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+
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let fee = 100
55
66 let scale5 = 100000
77
88 @Callable(i)
99 func callbackReturn () = {
1010 let amount = value(i.payments[0].amount)
1111 let assetId = i.payments[0].assetId
1212 let feeAmount = fraction(amount, fee, scale5)
1313 let amountToRepay = (amount + feeAmount)
1414 [ScriptTransfer(i.caller, amountToRepay, assetId), IntegerEntry("repayed", amountToRepay)]
1515 }
1616
1717
1818
1919 @Callable(i)
2020 func callbackNoReturn () = {
2121 let amount = value(i.payments[0].amount)
2222 let assetId = i.payments[0].assetId
2323 let feeAmount = fraction(amount, fee, scale5)
2424 let amountToRepay = (amount + feeAmount)
2525 [IntegerEntry("not_repayed", amountToRepay)]
2626 }
2727
2828
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