tx · 4btWH4suLBndAcx2BcEbGTQ7z6KQUfq9D7kGshXEWBpb

3N7du7svEKUV5EHRB33Cr6Vjm66Vv1DE5p2:  -0.01000000 Waves

2022.09.23 14:23 [2241726] smart account 3N7du7svEKUV5EHRB33Cr6Vjm66Vv1DE5p2 > SELF 0.00000000 Waves

{ "type": 13, "id": "4btWH4suLBndAcx2BcEbGTQ7z6KQUfq9D7kGshXEWBpb", "fee": 1000000, "feeAssetId": null, "timestamp": 1663932205901, "version": 2, "chainId": 84, "sender": "3N7du7svEKUV5EHRB33Cr6Vjm66Vv1DE5p2", "senderPublicKey": "Bqo47NAWty6yqLXXUcLjBA9MHnJFma4uxrKwJh6nWLpP", "proofs": [ "3PoeaEp5ffHXqpJ5jHrjYXYRC1s8KRwMSzeH88oiqrBiyKbEEtdEHEm9YeU4bDAtmbiYZHspAwjE9geTHnn5MVUv" ], "script": "base64:AAIFAAAAAAAAAGgIAhIAIgRVU0ROIgltZUFkZHJlc3MiDGFkbWluQWRkcmVzcyIBaSIRdXNkbkFtb3VudE9uU3RhcnQiD2ludm9rZVRvVmVzdGluZyIDaW52Ihd1c2RuQW1vdW50QWZ0ZXJXaXRoZHJhdwAAAAMAAAAAAWEBAAAAILYmKcME9c5TkaQOS3UkL2SMUbH6369UKb1I0h0qsqrRAAAAAAFiCQEAAAAHQWRkcmVzcwAAAAEBAAAAGgFXJqAMCkZONGXCherIE8gqRGALS8LL8ZtsAAAAAAFjCQEAAAAHQWRkcmVzcwAAAAEBAAAAGgFXNBTfcURG3zBU0fe4nHNFDKs6K5tNjiZhAAAAAQAAAAFkAQAAAAh1c2RuXzEwMAAAAAADCQEAAAACIT0AAAACCAUAAAABZAAAAAZjYWxsZXIFAAAAAWMJAAACAAAAAQIAAAARb25seSBhZG1pbiBjYW4gZG8EAAAAAWUJAAPwAAAAAgUAAAAEdGhpcwUAAAABYQMJAAAAAAAAAgUAAAABZQUAAAABZQQAAAABZgkAA/wAAAAECQEAAAARQGV4dHJOYXRpdmUoMTA2MikAAAABAgAAACMzUENidlBWUWZTdlZ1ODhpcDhGbTVZandKaGpFWWsxVHhoawIAAAANY29udmVydFRvVVNETgUAAAADbmlsBQAAAANuaWwDCQAAAAAAAAIFAAAAAWYFAAAAAWYEAAAAAWcJAAP8AAAABAkBAAAAEUBleHRyTmF0aXZlKDEwNjIpAAAAAQIAAAAjM1BDYnZQVlFmU3ZWdTg4aXA4Rm01WWp3SmhqRVlrMVR4aGsCAAAAFXdpdGhkcmF3VmVzdGVkQWxsVVNETgkABEwAAAACBwkABEwAAAACBgUAAAADbmlsBQAAAANuaWwDCQAAAAAAAAIFAAAAAWcFAAAAAWcEAAAAAWgJAAPwAAAAAgUAAAAEdGhpcwUAAAABYQMJAAAAAAAAAgUAAAABaAUAAAABaAkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADBQAAAAFiBQAAAAFoBQAAAAFhBQAAAANuaWwJAAACAAAAAQIAAAAkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuCQAAAgAAAAECAAAAJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgkAAAIAAAABAgAAACRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4JAAACAAAAAQIAAAAkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuAAAAAP0FSOw=", "height": 2241726, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: none Full:
OldNewDifferences
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 
12.92 ms