tx · 4xpGQ6yo2FW7rpT3TyKkUVigVfgQvgFE5UUKPw66vMHB

3NBNKJTqCGbPCDw1A86tAH3oLjFfhAmUYKW:  -0.00100000 Waves

2022.06.18 02:56 [2101055] smart account 3NBNKJTqCGbPCDw1A86tAH3oLjFfhAmUYKW > SELF 0.00000000 Waves

{ "type": 13, "id": "4xpGQ6yo2FW7rpT3TyKkUVigVfgQvgFE5UUKPw66vMHB", "fee": 100000, "feeAssetId": null, "timestamp": 1655510203529, "version": 2, "chainId": 84, "sender": "3NBNKJTqCGbPCDw1A86tAH3oLjFfhAmUYKW", "senderPublicKey": "5KgB1ZojKX7qznjw2mAXoU9asTrLAHv5nEvk36suSN3c", "proofs": [ "4uoDruUcg6jb8UwaSje4bvDEfzUYFjd1gyJJMWJvn6ovxxDC3utDzee54i6BqWUd6JAwf5wWQES9HwGP4ynrq5dc" ], "script": "base64:BgIHCAISAwoBAQEABGRhcHABGgFU61C/dqMfxvABbM6dnx1tiGfoEC0nPfYlAQFpAQlmcmVlV2F2ZXMBBmFtb3VudAMJAGYCBQZhbW91bnQAgISvXwkAAgECGXRoZSBtYXggYW1vdW50IGlzIDIgd2F2ZXMEBnNlbmRlcggFAWkGY2FsbGVyBApzZW5kZXJfa2V5CQCsAgIJAKUIAQUGc2VuZGVyAgZfV0FWRVMEDGdldE9sZEFtb3VudAkAmggCBQR0aGlzBQpzZW5kZXJfa2V5BAlvbGRBbW91bnQEByRtYXRjaDAFDGdldE9sZEFtb3VudAMJAAECBQckbWF0Y2gwAgNJbnQEAmluBQckbWF0Y2gwCQBkAgUCaW4AAAMJAAECBQckbWF0Y2gwAgRVbml0BAJ1bgUHJG1hdGNoMAAAAAADCQBmAgUJb2xkQW1vdW50AICU69wDCQACAQImdGhlIG1heCBhbW91bnQgdG8gd2l0aGRyYXcgaXMgMTAgd2F2ZXMECW5ld0Ftb3VudAkAZAIFCW9sZEFtb3VudAUGYW1vdW50BARzYXZlCQEMSW50ZWdlckVudHJ5AgUKc2VuZGVyX2tleQUJbmV3QW1vdW50BAh0cmFuc2ZlcgkBDlNjcmlwdFRyYW5zZmVyAwgFAWkGY2FsbGVyBQZhbW91bnQFBHVuaXQJAMwIAgUIdHJhbnNmZXIJAMwIAgUEc2F2ZQUDbmlsAK4lTbI=", "height": 2101055, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 6Fn3HB9pVEgymfPuqeuzsTVqzQepw3AqRyHfE3xwLSKT Next: GWLoK45ZhADBuUDJfue2rxuiio1ogG9DUQ3UifCGvtXo Diff:
OldNewDifferences
2222 then throw("the max amount to withdraw is 10 waves")
2323 else {
2424 let newAmount = (oldAmount + amount)
25- let save = [IntegerEntry(sender_key, newAmount)]
26- let transfer = [ScriptTransfer(i.caller, amount, unit)]
27- transfer
25+ let save = IntegerEntry(sender_key, newAmount)
26+ let transfer = ScriptTransfer(i.caller, amount, unit)
27+[transfer, save]
2828 }
2929 }
3030
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let dapp = base58'3NBNKJTqCGbPCDw1A86tAH3oLjFfhAmUYKW'
55
66 @Callable(i)
77 func freeWaves (amount) = if ((amount > 200000000))
88 then throw("the max amount is 2 waves")
99 else {
1010 let sender = i.caller
1111 let sender_key = (toString(sender) + "_WAVES")
1212 let getOldAmount = getInteger(this, sender_key)
1313 let oldAmount = match getOldAmount {
1414 case in: Int =>
1515 (in + 0)
1616 case un: Unit =>
1717 0
1818 case _ =>
1919 0
2020 }
2121 if ((oldAmount > 1000000000))
2222 then throw("the max amount to withdraw is 10 waves")
2323 else {
2424 let newAmount = (oldAmount + amount)
25- let save = [IntegerEntry(sender_key, newAmount)]
26- let transfer = [ScriptTransfer(i.caller, amount, unit)]
27- transfer
25+ let save = IntegerEntry(sender_key, newAmount)
26+ let transfer = ScriptTransfer(i.caller, amount, unit)
27+[transfer, save]
2828 }
2929 }
3030
3131

github/deemru/w8io/169f3d6 
30.26 ms