tx · 6Fn3HB9pVEgymfPuqeuzsTVqzQepw3AqRyHfE3xwLSKT
3NBNKJTqCGbPCDw1A86tAH3oLjFfhAmUYKW: -0.00100000 Waves
2022.06.18 02:54 [2101053] smart account 3NBNKJTqCGbPCDw1A86tAH3oLjFfhAmUYKW > SELF 0.00000000 Waves
{
"type": 13,
"id": "6Fn3HB9pVEgymfPuqeuzsTVqzQepw3AqRyHfE3xwLSKT",
"fee": 100000,
"feeAssetId": null,
"timestamp": 1655510134066,
"version": 2,
"chainId": 84,
"sender": "3NBNKJTqCGbPCDw1A86tAH3oLjFfhAmUYKW",
"senderPublicKey": "5KgB1ZojKX7qznjw2mAXoU9asTrLAHv5nEvk36suSN3c",
"proofs": [
"Jjy9h8CVZf2HFmPoTf6cgJZhJAMmT3tQDCPqxyKKERe5EoxvDaV25duEFPxE8BdbuZsQX7Uwr3FygbTKXAJpRvS"
],
"script": "base64:BgIHCAISAwoBAQEABGRhcHABGgFU61C/dqMfxvABbM6dnx1tiGfoEC0nPfYlAQFpAQlmcmVlV2F2ZXMBBmFtb3VudAMJAGYCBQZhbW91bnQAgISvXwkAAgECGXRoZSBtYXggYW1vdW50IGlzIDIgd2F2ZXMEBnNlbmRlcggFAWkGY2FsbGVyBApzZW5kZXJfa2V5CQCsAgIJAKUIAQUGc2VuZGVyAgZfV0FWRVMEDGdldE9sZEFtb3VudAkAmggCBQR0aGlzBQpzZW5kZXJfa2V5BAlvbGRBbW91bnQEByRtYXRjaDAFDGdldE9sZEFtb3VudAMJAAECBQckbWF0Y2gwAgNJbnQEAmluBQckbWF0Y2gwCQBkAgUCaW4AAAMJAAECBQckbWF0Y2gwAgRVbml0BAJ1bgUHJG1hdGNoMAAAAAADCQBmAgUJb2xkQW1vdW50AICU69wDCQACAQImdGhlIG1heCBhbW91bnQgdG8gd2l0aGRyYXcgaXMgMTAgd2F2ZXMECW5ld0Ftb3VudAkAZAIFCW9sZEFtb3VudAUGYW1vdW50BARzYXZlCQDMCAIJAQxJbnRlZ2VyRW50cnkCBQpzZW5kZXJfa2V5BQluZXdBbW91bnQFA25pbAQIdHJhbnNmZXIJAMwIAgkBDlNjcmlwdFRyYW5zZmVyAwgFAWkGY2FsbGVyBQZhbW91bnQFBHVuaXQFA25pbAUIdHJhbnNmZXIAnTzEOw==",
"height": 2101053,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: 39bfsQzVqVLas1KBDVEQL7apMgSv1YYqwcPmrraWkv6w
Next: 4xpGQ6yo2FW7rpT3TyKkUVigVfgQvgFE5UUKPw66vMHB
Diff:
Old | New | | Differences |
---|
8 | 8 | | then throw("the max amount is 2 waves") |
---|
9 | 9 | | else { |
---|
10 | 10 | | let d = b.caller |
---|
11 | | - | let e = getInteger(this, (toString(d) + "_WAVES")) |
---|
12 | | - | let f = { |
---|
13 | | - | let g = e |
---|
14 | | - | if ($isInstanceOf(g, "Int")) |
---|
| 11 | + | let e = (toString(d) + "_WAVES") |
---|
| 12 | + | let f = getInteger(this, e) |
---|
| 13 | + | let g = { |
---|
| 14 | + | let h = f |
---|
| 15 | + | if ($isInstanceOf(h, "Int")) |
---|
15 | 16 | | then { |
---|
16 | | - | let h = g |
---|
17 | | - | (h + 0) |
---|
| 17 | + | let i = h |
---|
| 18 | + | (i + 0) |
---|
18 | 19 | | } |
---|
19 | | - | else if ($isInstanceOf(g, "Unit")) |
---|
| 20 | + | else if ($isInstanceOf(h, "Unit")) |
---|
20 | 21 | | then { |
---|
21 | | - | let i = g |
---|
| 22 | + | let j = h |
---|
22 | 23 | | 0 |
---|
23 | 24 | | } |
---|
24 | 25 | | else 0 |
---|
25 | 26 | | } |
---|
26 | | - | if ((f > 1000000000)) |
---|
| 27 | + | if ((g > 1000000000)) |
---|
27 | 28 | | then throw("the max amount to withdraw is 10 waves") |
---|
28 | 29 | | else { |
---|
29 | | - | let j = (f + c) |
---|
30 | | - | let k = [IntegerEntry((toString(d) + "_WAVES"), j)] |
---|
31 | | - | let l = [ScriptTransfer(b.caller, c, unit)] |
---|
32 | | - | l |
---|
| 30 | + | let k = (g + c) |
---|
| 31 | + | let l = [IntegerEntry(e, k)] |
---|
| 32 | + | let m = [ScriptTransfer(b.caller, c, unit)] |
---|
| 33 | + | m |
---|
33 | 34 | | } |
---|
34 | 35 | | } |
---|
35 | 36 | | |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 6 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | let a = base58'3NBNKJTqCGbPCDw1A86tAH3oLjFfhAmUYKW' |
---|
5 | 5 | | |
---|
6 | 6 | | @Callable(b) |
---|
7 | 7 | | func freeWaves (c) = if ((c > 200000000)) |
---|
8 | 8 | | then throw("the max amount is 2 waves") |
---|
9 | 9 | | else { |
---|
10 | 10 | | let d = b.caller |
---|
11 | | - | let e = getInteger(this, (toString(d) + "_WAVES")) |
---|
12 | | - | let f = { |
---|
13 | | - | let g = e |
---|
14 | | - | if ($isInstanceOf(g, "Int")) |
---|
| 11 | + | let e = (toString(d) + "_WAVES") |
---|
| 12 | + | let f = getInteger(this, e) |
---|
| 13 | + | let g = { |
---|
| 14 | + | let h = f |
---|
| 15 | + | if ($isInstanceOf(h, "Int")) |
---|
15 | 16 | | then { |
---|
16 | | - | let h = g |
---|
17 | | - | (h + 0) |
---|
| 17 | + | let i = h |
---|
| 18 | + | (i + 0) |
---|
18 | 19 | | } |
---|
19 | | - | else if ($isInstanceOf(g, "Unit")) |
---|
| 20 | + | else if ($isInstanceOf(h, "Unit")) |
---|
20 | 21 | | then { |
---|
21 | | - | let i = g |
---|
| 22 | + | let j = h |
---|
22 | 23 | | 0 |
---|
23 | 24 | | } |
---|
24 | 25 | | else 0 |
---|
25 | 26 | | } |
---|
26 | | - | if ((f > 1000000000)) |
---|
| 27 | + | if ((g > 1000000000)) |
---|
27 | 28 | | then throw("the max amount to withdraw is 10 waves") |
---|
28 | 29 | | else { |
---|
29 | | - | let j = (f + c) |
---|
30 | | - | let k = [IntegerEntry((toString(d) + "_WAVES"), j)] |
---|
31 | | - | let l = [ScriptTransfer(b.caller, c, unit)] |
---|
32 | | - | l |
---|
| 30 | + | let k = (g + c) |
---|
| 31 | + | let l = [IntegerEntry(e, k)] |
---|
| 32 | + | let m = [ScriptTransfer(b.caller, c, unit)] |
---|
| 33 | + | m |
---|
33 | 34 | | } |
---|
34 | 35 | | } |
---|
35 | 36 | | |
---|
36 | 37 | | |
---|