tx · GWLoK45ZhADBuUDJfue2rxuiio1ogG9DUQ3UifCGvtXo
3NBNKJTqCGbPCDw1A86tAH3oLjFfhAmUYKW: -0.00100000 Waves
2022.06.18 02:59 [2101058] smart account 3NBNKJTqCGbPCDw1A86tAH3oLjFfhAmUYKW > SELF 0.00000000 Waves
{
"type": 13,
"id": "GWLoK45ZhADBuUDJfue2rxuiio1ogG9DUQ3UifCGvtXo",
"fee": 100000,
"feeAssetId": null,
"timestamp": 1655510464083,
"version": 2,
"chainId": 84,
"sender": "3NBNKJTqCGbPCDw1A86tAH3oLjFfhAmUYKW",
"senderPublicKey": "5KgB1ZojKX7qznjw2mAXoU9asTrLAHv5nEvk36suSN3c",
"proofs": [
"3Q349rLkJ6s9cPNW5uR7C4NGGKDwzRerdCHvnQ64pee8bXNeZw1KkZcKCCLxWPmFfKm1uGFKub3AGwgWuUV5AQ52"
],
"script": "base64:BgIHCAISAwoBAQEABGRhcHABGgFU61C/dqMfxvABbM6dnx1tiGfoEC0nPfYlAQFpAQlmcmVlV2F2ZXMBBmFtb3VudAMJAGYCBQZhbW91bnQAgISvXwkAAgECGXRoZSBtYXggYW1vdW50IGlzIDIgd2F2ZXMEBnNlbmRlcggFAWkGY2FsbGVyBApzZW5kZXJfa2V5CQCsAgIJAKUIAQUGc2VuZGVyAgZfV0FWRVMEDGdldE9sZEFtb3VudAkAmggCBQR0aGlzBQpzZW5kZXJfa2V5BAlvbGRBbW91bnQEByRtYXRjaDAFDGdldE9sZEFtb3VudAMJAAECBQckbWF0Y2gwAgNJbnQEAmluBQckbWF0Y2gwCQBkAgUCaW4AAAMJAAECBQckbWF0Y2gwAgRVbml0BAJ1bgUHJG1hdGNoMAAAAAADCQBmAgUJb2xkQW1vdW50AICo1rkHCQACAQImdGhlIG1heCBhbW91bnQgdG8gd2l0aGRyYXcgaXMgMTAgd2F2ZXMECW5ld0Ftb3VudAkAZAIFCW9sZEFtb3VudAUGYW1vdW50BARzYXZlCQEMSW50ZWdlckVudHJ5AgUKc2VuZGVyX2tleQUJbmV3QW1vdW50BAh0cmFuc2ZlcgkBDlNjcmlwdFRyYW5zZmVyAwgFAWkGY2FsbGVyBQZhbW91bnQFBHVuaXQJAMwIAgUIdHJhbnNmZXIJAMwIAgUEc2F2ZQUDbmlsAFb1oto=",
"height": 2101058,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: 4xpGQ6yo2FW7rpT3TyKkUVigVfgQvgFE5UUKPw66vMHB
Next: E5LmmHMfXY9bchycWQ64mbHat3EX8nXBJw2KjNesLx2u
Diff:
Old | New | | Differences |
---|
18 | 18 | | case _ => |
---|
19 | 19 | | 0 |
---|
20 | 20 | | } |
---|
21 | | - | if ((oldAmount > 1000000000)) |
---|
| 21 | + | if ((oldAmount > 2000000000)) |
---|
22 | 22 | | then throw("the max amount to withdraw is 10 waves") |
---|
23 | 23 | | else { |
---|
24 | 24 | | let newAmount = (oldAmount + amount) |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 6 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | let dapp = base58'3NBNKJTqCGbPCDw1A86tAH3oLjFfhAmUYKW' |
---|
5 | 5 | | |
---|
6 | 6 | | @Callable(i) |
---|
7 | 7 | | func freeWaves (amount) = if ((amount > 200000000)) |
---|
8 | 8 | | then throw("the max amount is 2 waves") |
---|
9 | 9 | | else { |
---|
10 | 10 | | let sender = i.caller |
---|
11 | 11 | | let sender_key = (toString(sender) + "_WAVES") |
---|
12 | 12 | | let getOldAmount = getInteger(this, sender_key) |
---|
13 | 13 | | let oldAmount = match getOldAmount { |
---|
14 | 14 | | case in: Int => |
---|
15 | 15 | | (in + 0) |
---|
16 | 16 | | case un: Unit => |
---|
17 | 17 | | 0 |
---|
18 | 18 | | case _ => |
---|
19 | 19 | | 0 |
---|
20 | 20 | | } |
---|
21 | | - | if ((oldAmount > 1000000000)) |
---|
| 21 | + | if ((oldAmount > 2000000000)) |
---|
22 | 22 | | then throw("the max amount to withdraw is 10 waves") |
---|
23 | 23 | | else { |
---|
24 | 24 | | let newAmount = (oldAmount + amount) |
---|
25 | 25 | | let save = IntegerEntry(sender_key, newAmount) |
---|
26 | 26 | | let transfer = ScriptTransfer(i.caller, amount, unit) |
---|
27 | 27 | | [transfer, save] |
---|
28 | 28 | | } |
---|
29 | 29 | | } |
---|
30 | 30 | | |
---|
31 | 31 | | |
---|