tx · D9BAfHRMzHQwGysFHCk4XU6tfuFrvRYPXujwnWEm7Xx2

3NBNKJTqCGbPCDw1A86tAH3oLjFfhAmUYKW:  -0.00100000 Waves

2022.06.17 22:48 [2100810] smart account 3NBNKJTqCGbPCDw1A86tAH3oLjFfhAmUYKW > SELF 0.00000000 Waves

{ "type": 13, "id": "D9BAfHRMzHQwGysFHCk4XU6tfuFrvRYPXujwnWEm7Xx2", "fee": 100000, "feeAssetId": null, "timestamp": 1655495313631, "version": 2, "chainId": 84, "sender": "3NBNKJTqCGbPCDw1A86tAH3oLjFfhAmUYKW", "senderPublicKey": "5KgB1ZojKX7qznjw2mAXoU9asTrLAHv5nEvk36suSN3c", "proofs": [ "24HM368qoqs1yheQSgcF234SJJh1pbibfP6F34cRVipjpPNWwcTxUdHLTxTDXSqukceqkaFXF8BoiP4dkKroaWB7" ], "script": "base64:AAIFAAAAAAAAAAcIAhIDCgEBAAAAAAAAAAEAAAABaQEAAAAJZnJlZVdhdmVzAAAAAQAAAAZhbW91bnQDCQAAZgAAAAIFAAAABmFtb3VudAAAAAAAC+vCAAkAAAIAAAABAgAAABl0aGUgbWF4IGFtb3VudCBpcyAyIHdhdmVzBAAAAAZzZW5kZXIIBQAAAAFpAAAABmNhbGxlcgQAAAAMZ2V0T2xkQW1vdW50CQAEGgAAAAIFAAAABnNlbmRlcgIAAAAFV0FWRVMEAAAACW9sZEFtb3VudAQAAAAHJG1hdGNoMAUAAAAMZ2V0T2xkQW1vdW50AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAANJbnQEAAAAAmluBQAAAAckbWF0Y2gwCQAAZAAAAAIFAAAAAmluAAAAAAAAAAAAAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAARVbml0BAAAAAJ1bgUAAAAHJG1hdGNoMAAAAAAAAAAAAAAAAAAAAAAAAAMJAABmAAAAAgUAAAAJb2xkQW1vdW50AAAAAAA7msoACQAAAgAAAAECAAAAJnRoZSBtYXggYW1vdW50IHRvIHdpdGhkcmF3IGlzIDEwIHdhdmVzBAAAAAluZXdBbW91bnQJAABkAAAAAgUAAAAJb2xkQW1vdW50BQAAAAZhbW91bnQEAAAABHNhdmUJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAICAAAABVdBVkVTBQAAAAluZXdBbW91bnQFAAAAA25pbAUAAAAEc2F2ZQAAAACRVNUp", "height": 2100810, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: GpEAwrJx6LjvhyMNYNyD5TeCHdwuZeFrfg8KTKJVjXhL Full:
OldNewDifferences
1-# no script
1+{-# STDLIB_VERSION 5 #-}
2+{-# SCRIPT_TYPE ACCOUNT #-}
3+{-# CONTENT_TYPE DAPP #-}
4+
5+
6+@Callable(i)
7+func freeWaves (amount) = if ((amount > 200000000))
8+ then throw("the max amount is 2 waves")
9+ else {
10+ let sender = i.caller
11+ let getOldAmount = getInteger(sender, "WAVES")
12+ let oldAmount = match getOldAmount {
13+ case in: Int =>
14+ (in + 0)
15+ case un: Unit =>
16+ 0
17+ case _ =>
18+ 0
19+ }
20+ if ((oldAmount > 1000000000))
21+ then throw("the max amount to withdraw is 10 waves")
22+ else {
23+ let newAmount = (oldAmount + amount)
24+ let save = [IntegerEntry("WAVES", newAmount)]
25+ save
26+ }
27+ }
28+
29+

github/deemru/w8io/169f3d6 
42.56 ms