tx · AU1zpHyd9DvZ8qEWB8tVYAiVPd9ZtjavFVzVdnDiqk62

3NBNKJTqCGbPCDw1A86tAH3oLjFfhAmUYKW:  -0.00100000 Waves

2022.06.18 02:31 [2101032] smart account 3NBNKJTqCGbPCDw1A86tAH3oLjFfhAmUYKW > SELF 0.00000000 Waves

{ "type": 13, "id": "AU1zpHyd9DvZ8qEWB8tVYAiVPd9ZtjavFVzVdnDiqk62", "fee": 100000, "feeAssetId": null, "timestamp": 1655508746783, "version": 2, "chainId": 84, "sender": "3NBNKJTqCGbPCDw1A86tAH3oLjFfhAmUYKW", "senderPublicKey": "5KgB1ZojKX7qznjw2mAXoU9asTrLAHv5nEvk36suSN3c", "proofs": [ "4XaEJ4nQszguqbD8KshGhM7DP3p5RLFGcJsH5gZPPuo4sdPZCPNip7sAYZDhTQBAFvck2nLUTMuA2prnn4CiKSgp" ], "script": "base64:AAIEAAAAAAAAAAcIAhIDCgEBAAAAAQAAAAAEZGFwcAEAAAAaAVTrUL92ox/G8AFszp2fHW2IZ+gQLSc99iUAAAABAAAAAWkBAAAACWZyZWVXYXZlcwAAAAEAAAAGYW1vdW50AwkAAGYAAAACBQAAAAZhbW91bnQAAAAAAAvrwgAJAAACAAAAAQIAAAAZdGhlIG1heCBhbW91bnQgaXMgMiB3YXZlcwQAAAAGc2VuZGVyCAUAAAABaQAAAAZjYWxsZXIEAAAADGdldE9sZEFtb3VudAkABBoAAAACBQAAAAR0aGlzAgAAAAVXQVZFUwQAAAAJb2xkQW1vdW50BAAAAAckbWF0Y2gwBQAAAAxnZXRPbGRBbW91bnQDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAA0ludAQAAAACaW4FAAAAByRtYXRjaDAJAABkAAAAAgUAAAACaW4AAAAAAAAAAAADCQAAAQAAAAIFAAAAByRtYXRjaDACAAAABFVuaXQEAAAAAnVuBQAAAAckbWF0Y2gwAAAAAAAAAAAAAAAAAAAAAAAAAwkAAGYAAAACBQAAAAlvbGRBbW91bnQAAAAAADuaygAJAAACAAAAAQIAAAAmdGhlIG1heCBhbW91bnQgdG8gd2l0aGRyYXcgaXMgMTAgd2F2ZXMEAAAACW5ld0Ftb3VudAkAAGQAAAACBQAAAAlvbGRBbW91bnQFAAAABmFtb3VudAQAAAAEc2F2ZQkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgIAAAAFV0FWRVMFAAAACW5ld0Ftb3VudAUAAAADbmlsBAAAAAh0cmFuc2ZlcgkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADCAUAAAABaQAAAAZjYWxsZXIFAAAABmFtb3VudAUAAAAEdW5pdAUAAAADbmlsBQAAAARzYXZlAAAAADvHGxg=", "height": 2101032, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: C9SHWysp3sGXXYQbGz3T4JS4tqyPuyKvDcM6b4WiVPCW Next: FPNRSDTPF5yEEHB1gqnivh1EsKaAc6GpNh9dgttepgLU Diff:
OldNewDifferences
1-{-# STDLIB_VERSION 5 #-}
1+{-# STDLIB_VERSION 4 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let dapp = base58'3NBNKJTqCGbPCDw1A86tAH3oLjFfhAmUYKW'
2222 else {
2323 let newAmount = (oldAmount + amount)
2424 let save = [IntegerEntry("WAVES", newAmount)]
25- let transfer = Transfer(sender, amount)
25+ let transfer = [ScriptTransfer(i.caller, amount, unit)]
2626 save
2727 }
2828 }
Full:
OldNewDifferences
1-{-# STDLIB_VERSION 5 #-}
1+{-# STDLIB_VERSION 4 #-}
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 getOldAmount = getInteger(this, "WAVES")
1212 let oldAmount = match getOldAmount {
1313 case in: Int =>
1414 (in + 0)
1515 case un: Unit =>
1616 0
1717 case _ =>
1818 0
1919 }
2020 if ((oldAmount > 1000000000))
2121 then throw("the max amount to withdraw is 10 waves")
2222 else {
2323 let newAmount = (oldAmount + amount)
2424 let save = [IntegerEntry("WAVES", newAmount)]
25- let transfer = Transfer(sender, amount)
25+ let transfer = [ScriptTransfer(i.caller, amount, unit)]
2626 save
2727 }
2828 }
2929
3030

github/deemru/w8io/169f3d6 
23.43 ms