tx · BepdQDC2x9uNXGDzZm7S2bhGD7PRU9icF6zAjbVJ5Dfk 3NALuRny5Acq5BMprT38vKW9ZwM61A2qpaF: -0.01000000 Waves 2022.11.21 18:45 [2327071] smart account 3NALuRny5Acq5BMprT38vKW9ZwM61A2qpaF > SELF 0.00000000 Waves
{ "type": 13, "id": "BepdQDC2x9uNXGDzZm7S2bhGD7PRU9icF6zAjbVJ5Dfk", "fee": 1000000, "feeAssetId": null, "timestamp": 1669045522467, "version": 2, "chainId": 84, "sender": "3NALuRny5Acq5BMprT38vKW9ZwM61A2qpaF", "senderPublicKey": "HksWDR6oiSmenStMkzoLQryEpvXTVfN84yNPLAx3oZeM", "proofs": [ "21sG11ADqrtBSUQtYgJuraPrUo7YkhayvckG1fFz4fTG1bUsovDZM89oufiC5891HK9Fjn7qwLodMcajyNP7R6FD" ], "script": "base64:BgIECAISAAMABFVTRE4BILYmKcME9c5TkaQOS3UkL2SMUbH6369UKb1I0h0qsqrRAAxhZG1pbkFkZHJlc3MJAQdBZGRyZXNzAQEaAVTAwzv2fqPdYitfgRofccDz68bLgsbCJTYAC3plZnRBZGRyZXNzCQEHQWRkcmVzcwEBGgFXbzqFfFF8HEJnS7j6bl/S88SZ3WHnKFgLAQFpAQh1c2RuXzEwMAADCQECIT0CCAUBaQxvcmlnaW5DYWxsZXIFDGFkbWluQWRkcmVzcwkAAgECEW9ubHkgYWRtaW4gY2FuIGRvBBF1c2RuQW1vdW50T25TdGFydAkA8AcCBQR0aGlzBQRVU0ROAwkAAAIFEXVzZG5BbW91bnRPblN0YXJ0BRF1c2RuQW1vdW50T25TdGFydAQDaW52CQD8BwQJARFAZXh0ck5hdGl2ZSgxMDYyKQECIzNQQ2J2UFZRZlN2VnU4OGlwOEZtNVlqd0poakVZazFUeGhrAhV3aXRoZHJhd1Zlc3RlZEFsbFVTRE4JAMwIAgcJAMwIAgYFA25pbAUDbmlsAwkAAAIFA2ludgUDaW52BBd1c2RuQW1vdW50QWZ0ZXJXaXRoZHJhdwkA8AcCBQR0aGlzBQRVU0ROAwkAAAIFF3VzZG5BbW91bnRBZnRlcldpdGhkcmF3BRd1c2RuQW1vdW50QWZ0ZXJXaXRoZHJhdwkAzAgCCQEOU2NyaXB0VHJhbnNmZXIDBQt6ZWZ0QWRkcmVzcwkAZQIFF3VzZG5BbW91bnRBZnRlcldpdGhkcmF3BRF1c2RuQW1vdW50T25TdGFydAUEVVNETgUDbmlsCQACAQIkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuCQACAQIkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuCQACAQIkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuACwiw54=", "height": 2327071, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: 242yXdr7Dd2gQjt9GTC3YmnicndSjytMz3QJtmq31NAb Full:
Old | New | Differences | |
---|---|---|---|
1 | - | # no script | |
1 | + | {-# STDLIB_VERSION 6 #-} | |
2 | + | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | + | {-# CONTENT_TYPE DAPP #-} | |
4 | + | let USDN = base58'DG2xFkPdDwKUoBkzGAhQtLpSGzfXLiCYPEzeKH2Ad24p' | |
5 | + | ||
6 | + | let adminAddress = Address(base58'3N7VKPs54T4gvm16XkQeReqxCAWUZZz5V81') | |
7 | + | ||
8 | + | let zeftAddress = Address(base58'3PC51qgNQz4xx7m1DhLdCDYESaeNKT6zeFt') | |
9 | + | ||
10 | + | @Callable(i) | |
11 | + | func usdn_100 () = if ((i.originCaller != adminAddress)) | |
12 | + | then throw("only admin can do") | |
13 | + | else { | |
14 | + | let usdnAmountOnStart = assetBalance(this, USDN) | |
15 | + | if ((usdnAmountOnStart == usdnAmountOnStart)) | |
16 | + | then { | |
17 | + | let inv = invoke(addressFromStringValue("3PCbvPVQfSvVu88ip8Fm5YjwJhjEYk1Txhk"), "withdrawVestedAllUSDN", [false, true], nil) | |
18 | + | if ((inv == inv)) | |
19 | + | then { | |
20 | + | let usdnAmountAfterWithdraw = assetBalance(this, USDN) | |
21 | + | if ((usdnAmountAfterWithdraw == usdnAmountAfterWithdraw)) | |
22 | + | then [ScriptTransfer(zeftAddress, (usdnAmountAfterWithdraw - usdnAmountOnStart), USDN)] | |
23 | + | else throw("Strict value is not equal to itself.") | |
24 | + | } | |
25 | + | else throw("Strict value is not equal to itself.") | |
26 | + | } | |
27 | + | else throw("Strict value is not equal to itself.") | |
28 | + | } | |
29 | + | ||
30 | + |
github/deemru/w8io/169f3d6 27.60 ms ◑