tx · DqauuVjmy2ei1M6FtMbavoE8ZtrAHc1Y5cv2QvxkmhPY
3N7dpRHRc9PPXSCLMZA4tRFEQXzPQNHjs6T: -0.01000000 Waves
2023.05.31 14:05 [2602056] smart account 3N7dpRHRc9PPXSCLMZA4tRFEQXzPQNHjs6T > SELF 0.00000000 Waves
{
"type": 13,
"id": "DqauuVjmy2ei1M6FtMbavoE8ZtrAHc1Y5cv2QvxkmhPY",
"fee": 1000000,
"feeAssetId": null,
"timestamp": 1685531280058,
"version": 2,
"chainId": 84,
"sender": "3N7dpRHRc9PPXSCLMZA4tRFEQXzPQNHjs6T",
"senderPublicKey": "6FwWutvTDWVXuYEgsyB6W34RQ5pNvL1ButovpyfJdgfr",
"proofs": [
"3gD2x8ba66bJF8ihPrxymc5xJBgyAensMvuCzURuPLczk1PSwydkbt3Zdp8RaATR6A2xGgVm8vi5Rs2RDnUkECrH"
],
"script": "base64:BgIOCAISBAoCAQESBAoCAQEAAgFpAQ13aXRoZHJhd0FzaW1pAgtwbGF0Zm9ybUZlZQZhbW91bnQEBXRlYW1zASCFY5Wj84iOsN4MF44ITr+aP5K7Jts66HaOFtwUIipIfgMJAAACCAUBaQZjYWxsZXIFBHRoaXMJAAIBAhlzb3JyeSAgeW91IGhhdmUgbm8gYWNjZXNzAwMJAGcCBQtwbGF0Zm9ybUZlZQAACQBnAgULcGxhdGZvcm1GZWUFBmFtb3VudAcJAMwIAgkBDlNjcmlwdFRyYW5zZmVyAwgFAWkGY2FsbGVyCQBoAgUGYW1vdW50AGQFBXRlYW1zBQNuaWwFA25pbAFpAQ13aXRoZHJhd1dhdmVzAgtwbGF0Zm9ybUZlZQZhbW91bnQDCQAAAggFAWkGY2FsbGVyBQR0aGlzCQACAQIZc29ycnkgIHlvdSBoYXZlIG5vIGFjY2VzcwMDCQBnAgULcGxhdGZvcm1GZWUAAAkAZwIFC3BsYXRmb3JtRmVlBQZhbW91bnQHCQDMCAIJAQ5TY3JpcHRUcmFuc2ZlcgMIBQFpBmNhbGxlcgUGYW1vdW50BQR1bml0BQNuaWwFA25pbADByOSS",
"height": 2602056,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: 3hbsKK4ashSAXgtikp5AJQq1hefDkE85hZVMFjrwbHtG
Next: 2DBjVmWtwbwBDoHTV9qNeB4dU3tbVU1sxJxdpqy7MKtU
Diff:
Old | New | | Differences |
---|
5 | 5 | | |
---|
6 | 6 | | @Callable(a) |
---|
7 | 7 | | func withdrawAsimi (b,c) = { |
---|
8 | | - | let d = base58'3N85YW6NZ9pLYvSdt1ASMQTGxvncnU1vUNx' |
---|
9 | | - | let e = base58'9yhJDfWjPpv6tFjWRD1AJyBQwausJf2ZdxzLn86Uknnq' |
---|
10 | | - | if ((a.caller.bytes == d)) |
---|
| 8 | + | let d = base58'9yhJDfWjPpv6tFjWRD1AJyBQwausJf2ZdxzLn86Uknnq' |
---|
| 9 | + | if ((a.caller == this)) |
---|
11 | 10 | | then throw("sorry you have no access") |
---|
12 | 11 | | else if (if ((b >= 0)) |
---|
13 | 12 | | then (b >= c) |
---|
14 | 13 | | else false) |
---|
15 | | - | then [ScriptTransfer(a.caller, (c * 100), e)] |
---|
| 14 | + | then [ScriptTransfer(a.caller, (c * 100), d)] |
---|
16 | 15 | | else nil |
---|
17 | 16 | | } |
---|
18 | 17 | | |
---|
19 | 18 | | |
---|
20 | 19 | | |
---|
21 | 20 | | @Callable(a) |
---|
22 | | - | func withdrawWaves (b,c) = { |
---|
23 | | - | let d = base58'3N85YW6NZ9pLYvSdt1ASMQTGxvncnU1vUNx' |
---|
24 | | - | if ((a.caller.bytes == d)) |
---|
25 | | - | then throw("sorry you have no access") |
---|
26 | | - | else if (if ((b >= 0)) |
---|
27 | | - | then (b >= c) |
---|
28 | | - | else false) |
---|
29 | | - | then [ScriptTransfer(a.caller, c, unit)] |
---|
30 | | - | else nil |
---|
31 | | - | } |
---|
| 21 | + | func withdrawWaves (b,c) = if ((a.caller == this)) |
---|
| 22 | + | then throw("sorry you have no access") |
---|
| 23 | + | else if (if ((b >= 0)) |
---|
| 24 | + | then (b >= c) |
---|
| 25 | + | else false) |
---|
| 26 | + | then [ScriptTransfer(a.caller, c, unit)] |
---|
| 27 | + | else nil |
---|
32 | 28 | | |
---|
33 | | - | |
---|
34 | | - | @Verifier(f) |
---|
35 | | - | func g () = true |
---|
36 | 29 | | |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 6 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | |
---|
5 | 5 | | |
---|
6 | 6 | | @Callable(a) |
---|
7 | 7 | | func withdrawAsimi (b,c) = { |
---|
8 | | - | let d = base58'3N85YW6NZ9pLYvSdt1ASMQTGxvncnU1vUNx' |
---|
9 | | - | let e = base58'9yhJDfWjPpv6tFjWRD1AJyBQwausJf2ZdxzLn86Uknnq' |
---|
10 | | - | if ((a.caller.bytes == d)) |
---|
| 8 | + | let d = base58'9yhJDfWjPpv6tFjWRD1AJyBQwausJf2ZdxzLn86Uknnq' |
---|
| 9 | + | if ((a.caller == this)) |
---|
11 | 10 | | then throw("sorry you have no access") |
---|
12 | 11 | | else if (if ((b >= 0)) |
---|
13 | 12 | | then (b >= c) |
---|
14 | 13 | | else false) |
---|
15 | | - | then [ScriptTransfer(a.caller, (c * 100), e)] |
---|
| 14 | + | then [ScriptTransfer(a.caller, (c * 100), d)] |
---|
16 | 15 | | else nil |
---|
17 | 16 | | } |
---|
18 | 17 | | |
---|
19 | 18 | | |
---|
20 | 19 | | |
---|
21 | 20 | | @Callable(a) |
---|
22 | | - | func withdrawWaves (b,c) = { |
---|
23 | | - | let d = base58'3N85YW6NZ9pLYvSdt1ASMQTGxvncnU1vUNx' |
---|
24 | | - | if ((a.caller.bytes == d)) |
---|
25 | | - | then throw("sorry you have no access") |
---|
26 | | - | else if (if ((b >= 0)) |
---|
27 | | - | then (b >= c) |
---|
28 | | - | else false) |
---|
29 | | - | then [ScriptTransfer(a.caller, c, unit)] |
---|
30 | | - | else nil |
---|
31 | | - | } |
---|
| 21 | + | func withdrawWaves (b,c) = if ((a.caller == this)) |
---|
| 22 | + | then throw("sorry you have no access") |
---|
| 23 | + | else if (if ((b >= 0)) |
---|
| 24 | + | then (b >= c) |
---|
| 25 | + | else false) |
---|
| 26 | + | then [ScriptTransfer(a.caller, c, unit)] |
---|
| 27 | + | else nil |
---|
32 | 28 | | |
---|
33 | | - | |
---|
34 | | - | @Verifier(f) |
---|
35 | | - | func g () = true |
---|
36 | 29 | | |
---|