tx · AGRGsAKcvvQVtvdAaFGh9wgHq2a2pUJx9yQWFZ2QSdAn

3MxWnia78EWAUh9wDwLoCrDnnagawxMKufB:  -0.00100000 Waves

2023.09.01 02:16 [2735501] smart account 3MxWnia78EWAUh9wDwLoCrDnnagawxMKufB > SELF 0.00000000 Waves

{ "type": 13, "id": "AGRGsAKcvvQVtvdAaFGh9wgHq2a2pUJx9yQWFZ2QSdAn", "fee": 100000, "feeAssetId": null, "timestamp": 1693523808328, "version": 2, "chainId": 84, "sender": "3MxWnia78EWAUh9wDwLoCrDnnagawxMKufB", "senderPublicKey": "CBYyJYjLr6QcUATF9taECtyAsBYe79dCi3xEsvxxMCaa", "proofs": [ "FJyKetvttALjn1p9Lx6LWubeeCAUfTGeZSK8RBVeyh72ZtD5kLVtirkisPo1gSHbcMgoKqCHLqJRttvkBY6UFCc" ], "script": "base64:BgIGCAISABIAAgADZmVlAGQABnNjYWxlNQCgjQYCAWkBDmNhbGxiYWNrUmV0dXJuAAQGYW1vdW50CQEFdmFsdWUBCAkAkQMCCAUBaQhwYXltZW50cwAABmFtb3VudAQHYXNzZXRJZAgJAJEDAggFAWkIcGF5bWVudHMAAAdhc3NldElkBAlmZWVBbW91bnQJAGsDBQZhbW91bnQFA2ZlZQUGc2NhbGU1BA1hbW91bnRUb1JlcGF5CQBkAgUGYW1vdW50BQlmZWVBbW91bnQJAMwIAgkBDlNjcmlwdFRyYW5zZmVyAwgFAWkGY2FsbGVyBQ1hbW91bnRUb1JlcGF5BQdhc3NldElkCQDMCAIJAQxJbnRlZ2VyRW50cnkCAgdyZXBheWVkBQ1hbW91bnRUb1JlcGF5BQNuaWwBaQEQY2FsbGJhY2tOb1JldHVybgAEBmFtb3VudAkBBXZhbHVlAQgJAJEDAggFAWkIcGF5bWVudHMAAAZhbW91bnQEB2Fzc2V0SWQICQCRAwIIBQFpCHBheW1lbnRzAAAHYXNzZXRJZAQJZmVlQW1vdW50CQBrAwUGYW1vdW50BQNmZWUFBnNjYWxlNQQNYW1vdW50VG9SZXBheQkAZAIFBmFtb3VudAUJZmVlQW1vdW50CQDMCAIJAQxJbnRlZ2VyRW50cnkCAgtub3RfcmVwYXllZAUNYW1vdW50VG9SZXBheQUDbmlsAHEv5B4=", "height": 2735501, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: 9Jj8TZ2Xo1LsE2g5B56xfAQHNShg6VjGxc6J2CwPASkJ Full:
OldNewDifferences
1-# no script
1+{-# STDLIB_VERSION 6 #-}
2+{-# SCRIPT_TYPE ACCOUNT #-}
3+{-# CONTENT_TYPE DAPP #-}
4+let fee = 100
5+
6+let scale5 = 100000
7+
8+@Callable(i)
9+func callbackReturn () = {
10+ let amount = value(i.payments[0].amount)
11+ let assetId = i.payments[0].assetId
12+ let feeAmount = fraction(amount, fee, scale5)
13+ let amountToRepay = (amount + feeAmount)
14+[ScriptTransfer(i.caller, amountToRepay, assetId), IntegerEntry("repayed", amountToRepay)]
15+ }
16+
17+
18+
19+@Callable(i)
20+func callbackNoReturn () = {
21+ let amount = value(i.payments[0].amount)
22+ let assetId = i.payments[0].assetId
23+ let feeAmount = fraction(amount, fee, scale5)
24+ let amountToRepay = (amount + feeAmount)
25+[IntegerEntry("not_repayed", amountToRepay)]
26+ }
27+
28+

github/deemru/w8io/169f3d6 
13.02 ms