tx · 9QgqHDf9m8cACZsAawyix2Q66aHKE4zoqGYvQgKtEgkJ 3NCaqihceYX8hfTscxiBPva9VU1XQQzqiaE: -0.01000000 Waves 2022.09.25 11:08 [2244401] smart account 3NCaqihceYX8hfTscxiBPva9VU1XQQzqiaE > SELF 0.00000000 Waves
{ "type": 13, "id": "9QgqHDf9m8cACZsAawyix2Q66aHKE4zoqGYvQgKtEgkJ", "fee": 1000000, "feeAssetId": null, "timestamp": 1664093323365, "version": 2, "chainId": 84, "sender": "3NCaqihceYX8hfTscxiBPva9VU1XQQzqiaE", "senderPublicKey": "A658gKt29aTiZXukq9awjAxqRaCBokiVhwNSWnHk8zMm", "proofs": [ "2NET7gtX298ioTe3PRM2tQedVPF23Jafmr8ZPtPeZFiWeFr4o1KvqWzhByHjGt4pMVx6P3zUmyf67xUMpV4avkZ4" ], "script": "base64:AAIFAAAAAAAAAAQIAhIAAAAAAwAAAAAEVVNETgEAAAAgtiYpwwT1zlORpA5LdSQvZIxRsfrfr1QpvUjSHSqyqtEAAAAACW1lQWRkcmVzcwkBAAAAB0FkZHJlc3MAAAABAQAAABoBVwwnQqCKkBXJzfWlRzLkNiuD5nGzmlYalgAAAAAMYWRtaW5BZGRyZXNzCQEAAAAHQWRkcmVzcwAAAAEBAAAAGgFXvhuxU1jMn1zZ4f4UImyCnow4o+Q3aSlPAAAAAQAAAAFpAQAAAAh1c2RuXzEwMAAAAAADCQEAAAACIT0AAAACCAUAAAABaQAAAAZjYWxsZXIFAAAADGFkbWluQWRkcmVzcwkAAAIAAAABAgAAABFvbmx5IGFkbWluIGNhbiBkbwQAAAARdXNkbkFtb3VudE9uU3RhcnQJAAPwAAAAAgUAAAAEdGhpcwUAAAAEVVNETgMJAAAAAAAAAgUAAAARdXNkbkFtb3VudE9uU3RhcnQFAAAAEXVzZG5BbW91bnRPblN0YXJ0BAAAABJpbnZva2VJbXBvcnRVc2RjTHAJAAP8AAAABAkBAAAAEUBleHRyTmF0aXZlKDEwNjIpAAAAAQ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RzZWxmLiAtIDQJAAACAAAAAQIAAAAoU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuIC0gMwkAAAIAAAABAgAAAChTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4gLSAyCQAAAgAAAAECAAAAKFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLiAtIDEAAAAA98XBCA==", "height": 2244401, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 77KtXcYmwXSxmg1kjVidXevshTKjd5Uo99Mab9khFawD Next: none Diff:
Old | New | Differences | |
---|---|---|---|
5 | 5 | ||
6 | 6 | let meAddress = Address(base58'3P339sQ6rBBSUxAJheEvpEm77htQCsJBnzy') | |
7 | 7 | ||
8 | - | let adminAddress = Address(base58' | |
8 | + | let adminAddress = Address(base58'3PKG6HpECVsPpGHoQyyE66wdEKfZLpbHxpn') | |
9 | 9 | ||
10 | 10 | @Callable(i) | |
11 | 11 | func usdn_100 () = if ((i.caller != adminAddress)) |
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 | let meAddress = Address(base58'3P339sQ6rBBSUxAJheEvpEm77htQCsJBnzy') | |
7 | 7 | ||
8 | - | let adminAddress = Address(base58' | |
8 | + | let adminAddress = Address(base58'3PKG6HpECVsPpGHoQyyE66wdEKfZLpbHxpn') | |
9 | 9 | ||
10 | 10 | @Callable(i) | |
11 | 11 | func usdn_100 () = if ((i.caller != adminAddress)) | |
12 | 12 | then throw("only admin can do") | |
13 | 13 | else { | |
14 | 14 | let usdnAmountOnStart = assetBalance(this, USDN) | |
15 | 15 | if ((usdnAmountOnStart == usdnAmountOnStart)) | |
16 | 16 | then { | |
17 | 17 | let invokeImportUsdcLp = invoke(addressFromStringValue("3PAZv9tgK1PX7dKR7b4kchq5qdpUS3G5sYT"), "replenishWithAtoken", nil, i.payments) | |
18 | 18 | if ((invokeImportUsdcLp == invokeImportUsdcLp)) | |
19 | 19 | then { | |
20 | 20 | let invokeToVesting = invoke(addressFromStringValue("3PCbvPVQfSvVu88ip8Fm5YjwJhjEYk1Txhk"), "convertToUSDN", nil, nil) | |
21 | 21 | if ((invokeToVesting == invokeToVesting)) | |
22 | 22 | then { | |
23 | 23 | let inv = invoke(addressFromStringValue("3PCbvPVQfSvVu88ip8Fm5YjwJhjEYk1Txhk"), "withdrawVestedAllUSDN", [false, true], nil) | |
24 | 24 | if ((inv == inv)) | |
25 | 25 | then { | |
26 | 26 | let usdnAmountAfterWithdraw = assetBalance(this, USDN) | |
27 | 27 | if ((usdnAmountAfterWithdraw == usdnAmountAfterWithdraw)) | |
28 | 28 | then [ScriptTransfer(meAddress, usdnAmountAfterWithdraw, USDN)] | |
29 | 29 | else throw("Strict value is not equal to itself. - 5") | |
30 | 30 | } | |
31 | 31 | else throw("Strict value is not equal to itself. - 4") | |
32 | 32 | } | |
33 | 33 | else throw("Strict value is not equal to itself. - 3") | |
34 | 34 | } | |
35 | 35 | else throw("Strict value is not equal to itself. - 2") | |
36 | 36 | } | |
37 | 37 | else throw("Strict value is not equal to itself. - 1") | |
38 | 38 | } | |
39 | 39 | ||
40 | 40 |
github/deemru/w8io/026f985 44.22 ms ◑