tx · 5R2VgWJ9WCL8oFFYhVnwCAdmhMaAUKzDUXzgkAudCMcT
3MpTrfRhg53gCpMfQYE5Tc8DH8jynkPX7Mw: -0.00100000 Waves
2022.09.13 07:00 [2226819] smart account 3MpTrfRhg53gCpMfQYE5Tc8DH8jynkPX7Mw > SELF 0.00000000 Waves
{
"type": 13,
"id": "5R2VgWJ9WCL8oFFYhVnwCAdmhMaAUKzDUXzgkAudCMcT",
"fee": 100000,
"feeAssetId": null,
"timestamp": 1663041715347,
"version": 2,
"chainId": 84,
"sender": "3MpTrfRhg53gCpMfQYE5Tc8DH8jynkPX7Mw",
"senderPublicKey": "AZagFBYfQhNpk6VXgrAn9xKm9zkAcZGyhzbvSYJSMMHM",
"proofs": [
"2oMpwLGaRknyM5n13BoC9KWsnHFvXAg1s79jrpjaFrNGXhqVtrHr2S6mYkQMjiwWyNphVqCUGNxhyUZ4j7rt2G2w"
],
"script": "base64:BgIKCAISBgoECAgEBAEABWFkbWluCQERQGV4dHJOYXRpdmUoMTA2MikBAiMzUFBpck5NUjhaZHA4VlBBaEphaVdadmtpNTEyVlRyS01oMwEBaQEOd2l0aGRyYXdWZXN0ZWQEAWEBYgFjAWQDCQECIT0CCAUBaQZjYWxsZXIFBWFkbWluCQACAQIBIQQDaW52CQD8BwQJARFAZXh0ck5hdGl2ZSgxMDYyKQEFAWEFAWIJAMwIAgUBYwkAzAgCBQFkBQNuaWwFA25pbAMJAAACBQNpbnYFA2ludgUDbmlsCQACAQIkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuAQJ0eAEGdmVyaWZ5AAkAyBMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAAgFAnR4D3NlbmRlclB1YmxpY0tleXMEssg=",
"height": 2226819,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: NufugYfuSSq6cuLN7gdRYKLnzTL695yGGFdoiqGfLYE
Next: FB8PWr6haaFGMXsYWj7wu1ijFUNPzdRTwC3AjNPgGgeL
Diff:
Old | New | | Differences |
---|
1 | | - | {-# STDLIB_VERSION 5 #-} |
---|
| 1 | + | {-# STDLIB_VERSION 6 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | | - | let admin = addressFromStringValue("3P2ETTTFbquK5SSiRPUZwjsX3JxbMKnrBx1") |
---|
5 | | - | |
---|
6 | | - | let main = addressFromStringValue("3PAZv9tgK1PX7dKR7b4kchq5qdpUS3G5sYT") |
---|
7 | | - | |
---|
8 | | - | let assetStrings = ["6XtHjpXbs9RRJP2Sr9GUyVqzACcby9TkThHXnjVC5CDJ", "34N9YcEETLWn93qYQ64EsP1x89tSruJU44RrEMSXXEPJ", "DG2xFkPdDwKUoBkzGAhQtLpSGzfXLiCYPEzeKH2Ad24p"] |
---|
9 | | - | |
---|
10 | | - | let reserves = [addressFromStringValue("3PGCkrHBxFMi7tz1xqnxgBpeNvn5E4M4g8S"), addressFromStringValue("3PEiD1zJWTMZNWSCyzhvBw9pxxAWeEwaghR"), addressFromStringValue("3PCwFXSq8vj8iKitA5zrrLRbuqehfmimpce")] |
---|
| 4 | + | let admin = addressFromStringValue("3PPirNMR8Zdp8VPAhJaiWZvki512VTrKMh3") |
---|
11 | 5 | | |
---|
12 | 6 | | @Callable(i) |
---|
13 | | - | func w (bb,p,maxLimit) = if ((i.caller != admin)) |
---|
| 7 | + | func withdrawVested (a,b,c,d) = if ((i.caller != admin)) |
---|
14 | 8 | | then throw("!") |
---|
15 | 9 | | else { |
---|
16 | | - | let assetIdString = assetStrings[bb] |
---|
17 | | - | let assetId = fromBase58String(assetIdString) |
---|
18 | | - | let reserve = reserves[bb] |
---|
19 | | - | let available = assetBalance(reserve, assetId) |
---|
20 | | - | let v = if ((available > maxLimit)) |
---|
21 | | - | then maxLimit |
---|
22 | | - | else available |
---|
23 | | - | let ret = invoke(main, "withdraw", [assetIdString, v], nil) |
---|
24 | | - | nil |
---|
| 10 | + | let inv = invoke(addressFromStringValue(a), b, [c, d], nil) |
---|
| 11 | + | if ((inv == inv)) |
---|
| 12 | + | then nil |
---|
| 13 | + | else throw("Strict value is not equal to itself.") |
---|
25 | 14 | | } |
---|
26 | 15 | | |
---|
27 | 16 | | |
---|
Full:
Old | New | | Differences |
---|
1 | | - | {-# STDLIB_VERSION 5 #-} |
---|
| 1 | + | {-# STDLIB_VERSION 6 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | | - | let admin = addressFromStringValue("3P2ETTTFbquK5SSiRPUZwjsX3JxbMKnrBx1") |
---|
5 | | - | |
---|
6 | | - | let main = addressFromStringValue("3PAZv9tgK1PX7dKR7b4kchq5qdpUS3G5sYT") |
---|
7 | | - | |
---|
8 | | - | let assetStrings = ["6XtHjpXbs9RRJP2Sr9GUyVqzACcby9TkThHXnjVC5CDJ", "34N9YcEETLWn93qYQ64EsP1x89tSruJU44RrEMSXXEPJ", "DG2xFkPdDwKUoBkzGAhQtLpSGzfXLiCYPEzeKH2Ad24p"] |
---|
9 | | - | |
---|
10 | | - | let reserves = [addressFromStringValue("3PGCkrHBxFMi7tz1xqnxgBpeNvn5E4M4g8S"), addressFromStringValue("3PEiD1zJWTMZNWSCyzhvBw9pxxAWeEwaghR"), addressFromStringValue("3PCwFXSq8vj8iKitA5zrrLRbuqehfmimpce")] |
---|
| 4 | + | let admin = addressFromStringValue("3PPirNMR8Zdp8VPAhJaiWZvki512VTrKMh3") |
---|
11 | 5 | | |
---|
12 | 6 | | @Callable(i) |
---|
13 | | - | func w (bb,p,maxLimit) = if ((i.caller != admin)) |
---|
| 7 | + | func withdrawVested (a,b,c,d) = if ((i.caller != admin)) |
---|
14 | 8 | | then throw("!") |
---|
15 | 9 | | else { |
---|
16 | | - | let assetIdString = assetStrings[bb] |
---|
17 | | - | let assetId = fromBase58String(assetIdString) |
---|
18 | | - | let reserve = reserves[bb] |
---|
19 | | - | let available = assetBalance(reserve, assetId) |
---|
20 | | - | let v = if ((available > maxLimit)) |
---|
21 | | - | then maxLimit |
---|
22 | | - | else available |
---|
23 | | - | let ret = invoke(main, "withdraw", [assetIdString, v], nil) |
---|
24 | | - | nil |
---|
| 10 | + | let inv = invoke(addressFromStringValue(a), b, [c, d], nil) |
---|
| 11 | + | if ((inv == inv)) |
---|
| 12 | + | then nil |
---|
| 13 | + | else throw("Strict value is not equal to itself.") |
---|
25 | 14 | | } |
---|
26 | 15 | | |
---|
27 | 16 | | |
---|
28 | 17 | | @Verifier(tx) |
---|
29 | 18 | | func verify () = sigVerify_128Kb(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) |
---|
30 | 19 | | |
---|