tx · BoPJbUjM2je3qg9XVTRMkmSNyF6FbMB2hcmfCQqnseiK 3Myspwi68n4FgkQ47DQUj9kUFaeoW57s4re: -0.01000000 Waves 2022.09.24 06:35 [2242695] smart account 3Myspwi68n4FgkQ47DQUj9kUFaeoW57s4re > SELF 0.00000000 Waves
{ "type": 13, "id": "BoPJbUjM2je3qg9XVTRMkmSNyF6FbMB2hcmfCQqnseiK", "fee": 1000000, "feeAssetId": null, "timestamp": 1663990527139, "version": 2, "chainId": 84, "sender": "3Myspwi68n4FgkQ47DQUj9kUFaeoW57s4re", "senderPublicKey": "4GpoXQVTqKxCAThHaBPxkjc7w64ney77QpfYaZ4ekUbv", "proofs": [ "n3gADa9eHtR3w4Nx1HYYseh3RLbSP11zpjc6AXnzyM6Jpx1CPo4ryqVyff2QLz9DraxWVEq5L8vxpoHTMgqHiym" ], "script": "base64:AAIFAAAAAAAAAAQIAhIAAAAAAwAAAAAEVVNETgEAAAAgtiYpwwT1zlORpA5LdSQvZIxRsfrfr1QpvUjSHSqyqtEAAAAACW1lQWRkcmVzcwkBAAAAB0FkZHJlc3MAAAABAQAAABoBV3GrzGDEdHgNA5CKBV+xUcCDKxT0be8i8wAAAAAMYWRtaW5BZGRyZXNzCQEAAAAHQWRkcmVzcwAAAAEBAAAAGgFUvhuxU1jMn1zZ4f4UImyCnow4o+QNzDAwAAAAAQAAAAFpAQAAAAh1c2RuXzEwMAAAAAADCQEAAAACIT0AAAACCAUAAAABaQAAAAZjYWxsZXIFAAAADGFkbWluQWRkcmVzcwkAAAIAAAABAgAAABFvbmx5IGFkbWluIGNhbiBkbwQAAAARdXNkbkFtb3VudE9uU3RhcnQJAAPwAAAAAgUAAAAEdGhpcwUAAAAEVVNETgMJAAAAAAAAAgUAAAARdXNkbkFtb3VudE9uU3RhcnQFAAAAEXVzZG5BbW91bnRPblN0YXJ0BAAAAA9pbnZva2VUb1Zlc3RpbmcJAAP8AAAABAkBAAAAEUBleHRyTmF0aXZlKDEwNjIpAAAAAQIAAAAjM1BDYnZQVlFmU3ZWdTg4aXA4Rm01WWp3SmhqRVlrMVR4aGsCAAAADWNvbnZlcnRUb1VTRE4FAAAAA25pbAUAAAADbmlsAwkAAAAAAAACBQAAAA9pbnZva2VUb1Zlc3RpbmcFAAAAD2ludm9rZVRvVmVzdGluZwQAAAADaW52CQAD/AAAAAQJAQAAABFAZXh0ck5hdGl2ZSgxMDYyKQAAAAECAAAAIzNQQ2J2UFZRZlN2VnU4OGlwOEZtNVlqd0poakVZazFUeGhrAgAAABV3aXRoZHJhd1Zlc3RlZEFsbFVTRE4JAARMAAAAAgcJAARMAAAAAgYFAAAAA25pbAUAAAADbmlsAwkAAAAAAAACBQAAAANpbnYFAAAAA2ludgQAAAAXdXNkbkFtb3VudEFmdGVyV2l0aGRyYXcJAAPwAAAAAgUAAAAEdGhpcwUAAAAEVVNETgMJAAAAAAAAAgUAAAAXdXNkbkFtb3VudEFmdGVyV2l0aGRyYXcFAAAAF3VzZG5BbW91bnRBZnRlcldpdGhkcmF3CQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMFAAAACW1lQWRkcmVzcwUAAAAXdXNkbkFtb3VudEFmdGVyV2l0aGRyYXcFAAAABFVTRE4FAAAAA25pbAkAAAIAAAABAgAAACRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4JAAACAAAAAQIAAAAkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuCQAAAgAAAAECAAAAJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgkAAAIAAAABAgAAACRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4AAAAAqY0kIw==", "height": 2242695, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: 9zksszv9mWZ21H8u1rjsXM5XaA118pd8xNRiHhgqtBHd Full:
Old | New | Differences | |
---|---|---|---|
1 | - | # no script | |
1 | + | {-# STDLIB_VERSION 5 #-} | |
2 | + | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | + | {-# CONTENT_TYPE DAPP #-} | |
4 | + | let USDN = base58'DG2xFkPdDwKUoBkzGAhQtLpSGzfXLiCYPEzeKH2Ad24p' | |
5 | + | ||
6 | + | let meAddress = Address(base58'3PCHvtgW5EJ5KPbpWPXSj7FARoQaYzLG6g2') | |
7 | + | ||
8 | + | let adminAddress = Address(base58'3N7FHLVLLNL1BozP9uiE8eZosS9nWfprFEo') | |
9 | + | ||
10 | + | @Callable(i) | |
11 | + | func usdn_100 () = if ((i.caller != adminAddress)) | |
12 | + | then throw("only admin can do") | |
13 | + | else { | |
14 | + | let usdnAmountOnStart = assetBalance(this, USDN) | |
15 | + | if ((usdnAmountOnStart == usdnAmountOnStart)) | |
16 | + | then { | |
17 | + | let invokeToVesting = invoke(addressFromStringValue("3PCbvPVQfSvVu88ip8Fm5YjwJhjEYk1Txhk"), "convertToUSDN", nil, nil) | |
18 | + | if ((invokeToVesting == invokeToVesting)) | |
19 | + | then { | |
20 | + | let inv = invoke(addressFromStringValue("3PCbvPVQfSvVu88ip8Fm5YjwJhjEYk1Txhk"), "withdrawVestedAllUSDN", [false, true], nil) | |
21 | + | if ((inv == inv)) | |
22 | + | then { | |
23 | + | let usdnAmountAfterWithdraw = assetBalance(this, USDN) | |
24 | + | if ((usdnAmountAfterWithdraw == usdnAmountAfterWithdraw)) | |
25 | + | then [ScriptTransfer(meAddress, usdnAmountAfterWithdraw, USDN)] | |
26 | + | else throw("Strict value is not equal to itself.") | |
27 | + | } | |
28 | + | else throw("Strict value is not equal to itself.") | |
29 | + | } | |
30 | + | else throw("Strict value is not equal to itself.") | |
31 | + | } | |
32 | + | else throw("Strict value is not equal to itself.") | |
33 | + | } | |
34 | + | ||
35 | + |
github/deemru/w8io/026f985 32.77 ms ◑