tx · FyDzYi5Z5LL1NtQDF3ML3goXsDhDubS72Vtasf6eSNaF
3MyASQCCZh94ABAjDSYLcC38w6cQTDUxgoK: -0.01000000 Waves
2022.12.03 21:36 [2344551] smart account 3MyASQCCZh94ABAjDSYLcC38w6cQTDUxgoK > SELF 0.00000000 Waves
{
"type": 13,
"id": "FyDzYi5Z5LL1NtQDF3ML3goXsDhDubS72Vtasf6eSNaF",
"fee": 1000000,
"feeAssetId": null,
"timestamp": 1670092609124,
"version": 2,
"chainId": 84,
"sender": "3MyASQCCZh94ABAjDSYLcC38w6cQTDUxgoK",
"senderPublicKey": "3gpHAs1DbQTnHg2gafDSyTVkcPM1RsJCWcHs1A472ua5",
"proofs": [
"3GtuA55NctgFrjAUWD2hYx57HFx4N4ih86ri8z24XLJiC1feF6jcmkuCisREXy8YMnn1w4MnpS2PDJmr9NCjc72w"
],
"script": "base64:AAIFAAAAAAAAAAQIAhIAAAAAAQAAAAAEVVNETgEAAAAgtiYpwwT1zlORpA5LdSQvZIxRsfrfr1QpvUjSHSqyqtEAAAABAAAAAWkBAAAAAXcAAAAABAAAAAZiZWZvcmUJAAPwAAAAAgUAAAAEdGhpcwUAAAAEVVNETgMJAAAAAAAAAgUAAAAGYmVmb3JlBQAAAAZiZWZvcmUEAAAAAndyCQAD/AAAAAQJAQAAABFAZXh0ck5hdGl2ZSgxMDYyKQAAAAECAAAAIzNQQ2J2UFZRZlN2VnU4OGlwOEZtNVlqd0poakVZazFUeGhrAgAAABV3aXRoZHJhd1Zlc3RlZEFsbFVTRE4JAARMAAAAAgcJAARMAAAAAgYFAAAAA25pbAUAAAADbmlsAwkAAAAAAAACBQAAAAJ3cgUAAAACd3IEAAAABWFmdGVyCQAD8AAAAAIFAAAABHRoaXMFAAAABFVTRE4DCQAAAAAAAAIFAAAABWFmdGVyBQAAAAVhZnRlcgQAAAAJZmVlQW1vdW50CQAAaQAAAAIJAABlAAAAAgUAAAAFYWZ0ZXIFAAAABmJlZm9yZQAAAAAAAAAACgkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADCQEAAAARQGV4dHJOYXRpdmUoMTA2MikAAAABAgAAACMzUEZGTE02OGZnc2pIcjZjcU15aGQ2UHpTRUF6cFAxS255agUAAAAJZmVlQW1vdW50BQAAAARVU0ROBQAAAANuaWwJAAACAAAAAQIAAAAkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuCQAAAgAAAAECAAAAJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgkAAAIAAAABAgAAACRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4AAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAACQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tlecf0bFA=",
"height": 2344551,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: HMTzjvnBUQmF6Q8ffDupw9qEUNoGc6L7mWDz3jXdsRGW
Next: none
Diff:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 5 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | | - | |
---|
| 4 | + | let USDN = base58'DG2xFkPdDwKUoBkzGAhQtLpSGzfXLiCYPEzeKH2Ad24p' |
---|
5 | 5 | | |
---|
6 | 6 | | @Callable(i) |
---|
7 | | - | func fff () = { |
---|
8 | | - | let inv = invoke(addressFromStringValue("3MpcMQnVHFBgmyAdePudibCt3pzJYsEwkte"), "dapp", nil, nil) |
---|
9 | | - | if ((inv == inv)) |
---|
10 | | - | then nil |
---|
| 7 | + | func w () = { |
---|
| 8 | + | let before = assetBalance(this, USDN) |
---|
| 9 | + | if ((before == before)) |
---|
| 10 | + | then { |
---|
| 11 | + | let wr = invoke(addressFromStringValue("3PCbvPVQfSvVu88ip8Fm5YjwJhjEYk1Txhk"), "withdrawVestedAllUSDN", [false, true], nil) |
---|
| 12 | + | if ((wr == wr)) |
---|
| 13 | + | then { |
---|
| 14 | + | let after = assetBalance(this, USDN) |
---|
| 15 | + | if ((after == after)) |
---|
| 16 | + | then { |
---|
| 17 | + | let feeAmount = ((after - before) / 10) |
---|
| 18 | + | [ScriptTransfer(addressFromStringValue("3PFFLM68fgsjHr6cqMyhd6PzSEAzpP1Knyj"), feeAmount, USDN)] |
---|
| 19 | + | } |
---|
| 20 | + | else throw("Strict value is not equal to itself.") |
---|
| 21 | + | } |
---|
| 22 | + | else throw("Strict value is not equal to itself.") |
---|
| 23 | + | } |
---|
11 | 24 | | else throw("Strict value is not equal to itself.") |
---|
12 | 25 | | } |
---|
13 | 26 | | |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 5 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | | - | |
---|
| 4 | + | let USDN = base58'DG2xFkPdDwKUoBkzGAhQtLpSGzfXLiCYPEzeKH2Ad24p' |
---|
5 | 5 | | |
---|
6 | 6 | | @Callable(i) |
---|
7 | | - | func fff () = { |
---|
8 | | - | let inv = invoke(addressFromStringValue("3MpcMQnVHFBgmyAdePudibCt3pzJYsEwkte"), "dapp", nil, nil) |
---|
9 | | - | if ((inv == inv)) |
---|
10 | | - | then nil |
---|
| 7 | + | func w () = { |
---|
| 8 | + | let before = assetBalance(this, USDN) |
---|
| 9 | + | if ((before == before)) |
---|
| 10 | + | then { |
---|
| 11 | + | let wr = invoke(addressFromStringValue("3PCbvPVQfSvVu88ip8Fm5YjwJhjEYk1Txhk"), "withdrawVestedAllUSDN", [false, true], nil) |
---|
| 12 | + | if ((wr == wr)) |
---|
| 13 | + | then { |
---|
| 14 | + | let after = assetBalance(this, USDN) |
---|
| 15 | + | if ((after == after)) |
---|
| 16 | + | then { |
---|
| 17 | + | let feeAmount = ((after - before) / 10) |
---|
| 18 | + | [ScriptTransfer(addressFromStringValue("3PFFLM68fgsjHr6cqMyhd6PzSEAzpP1Knyj"), feeAmount, USDN)] |
---|
| 19 | + | } |
---|
| 20 | + | else throw("Strict value is not equal to itself.") |
---|
| 21 | + | } |
---|
| 22 | + | else throw("Strict value is not equal to itself.") |
---|
| 23 | + | } |
---|
11 | 24 | | else throw("Strict value is not equal to itself.") |
---|
12 | 25 | | } |
---|
13 | 26 | | |
---|
14 | 27 | | |
---|
15 | 28 | | @Verifier(tx) |
---|
16 | 29 | | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) |
---|
17 | 30 | | |
---|