tx · 32ydWiJyLBtq5coE7ak5GPxPTooaoi6fotNdeJKW8NmT 3Mpq2LM1tQ5k17Z4oTyoqi3NmoSoZAJHmJL: -0.01000000 Waves 2022.09.23 14:23 [2241726] smart account 3Mpq2LM1tQ5k17Z4oTyoqi3NmoSoZAJHmJL > SELF 0.00000000 Waves
{ "type": 13, "id": "32ydWiJyLBtq5coE7ak5GPxPTooaoi6fotNdeJKW8NmT", "fee": 1000000, "feeAssetId": null, "timestamp": 1663932205701, "version": 2, "chainId": 84, "sender": "3Mpq2LM1tQ5k17Z4oTyoqi3NmoSoZAJHmJL", "senderPublicKey": "9FkAUZB4ttzEtzU1r863SN9HCpAPBdTSgUEqwWLyuvAA", "proofs": [ "2uhqziwaHvqnk8UfVP8476A2SXrKUGpQUFzMLi2FMbAyAJkNsepPKqcfGZAdeZKGq6bAaKqMxSNSTnrAqjk6UvpE" ], "script": "base64:AAIFAAAAAAAAAGgIAhIAIgRVU0ROIgltZUFkZHJlc3MiDGFkbWluQWRkcmVzcyIBaSIRdXNkbkFtb3VudE9uU3RhcnQiD2ludm9rZVRvVmVzdGluZyIDaW52Ihd1c2RuQW1vdW50QWZ0ZXJXaXRoZHJhdwAAAAMAAAAAAWEBAAAAILYmKcME9c5TkaQOS3UkL2SMUbH6369UKb1I0h0qsqrRAAAAAAFiCQEAAAAHQWRkcmVzcwAAAAEBAAAAGgFXJqAMCkZONGXCherIE8gqRGALS8LL8ZtsAAAAAAFjCQEAAAAHQWRkcmVzcwAAAAEBAAAAGgFXNBTfcURG3zBU0fe4nHNFDKs6K5tNjiZhAAAAAQAAAAFkAQAAAAh1c2RuXzEwMAAAAAADCQEAAAACIT0AAAACCAUAAAABZAAAAAZjYWxsZXIFAAAAAWMJAAACAAAAAQIAAAARb25seSBhZG1pbiBjYW4gZG8EAAAAAWUJAAPwAAAAAgUAAAAEdGhpcwUAAAABYQMJAAAAAAAAAgUAAAABZQUAAAABZQQAAAABZgkAA/wAAAAECQEAAAARQGV4dHJOYXRpdmUoMTA2MikAAAABAgAAACMzUENidlBWUWZTdlZ1ODhpcDhGbTVZandKaGpFWWsxVHhoawIAAAANY29udmVydFRvVVNETgUAAAADbmlsBQAAAANuaWwDCQAAAAAAAAIFAAAAAWYFAAAAAWYEAAAAAWcJAAP8AAAABAkBAAAAEUBleHRyTmF0aXZlKDEwNjIpAAAAAQIAAAAjM1BDYnZQVlFmU3ZWdTg4aXA4Rm01WWp3SmhqRVlrMVR4aGsCAAAAFXdpdGhkcmF3VmVzdGVkQWxsVVNETgkABEwAAAACBwkABEwAAAACBgUAAAADbmlsBQAAAANuaWwDCQAAAAAAAAIFAAAAAWcFAAAAAWcEAAAAAWgJAAPwAAAAAgUAAAAEdGhpcwUAAAABYQMJAAAAAAAAAgUAAAABaAUAAAABaAkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADBQAAAAFiBQAAAAFoBQAAAAFhBQAAAANuaWwJAAACAAAAAQIAAAAkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuCQAAAgAAAAECAAAAJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgkAAAIAAAABAgAAACRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4JAAACAAAAAQIAAAAkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuAAAAAP0FSOw=", "height": 2241726, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: none 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'3P5T88oGg47FEsJcpC2o43BSF34Bs5dcFpP') | |
7 | + | ||
8 | + | let adminAddress = Address(base58'3P6gGsVQbD2xgmaNxN7Rj3arohPsBxvo5GC') | |
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 173.98 ms ◑