tx · 3B5gpPosLC6PK5sMUZhuwsL2H4CP8x7q6vmhn8TyKHtD 3MqALvDMEv6iTv1GELcdtGKSWZHE1JGoatt: -0.01000000 Waves 2022.11.21 18:45 [2327071] smart account 3MqALvDMEv6iTv1GELcdtGKSWZHE1JGoatt > SELF 0.00000000 Waves
{ "type": 13, "id": "3B5gpPosLC6PK5sMUZhuwsL2H4CP8x7q6vmhn8TyKHtD", "fee": 1000000, "feeAssetId": null, "timestamp": 1669045510090, "version": 2, "chainId": 84, "sender": "3MqALvDMEv6iTv1GELcdtGKSWZHE1JGoatt", "senderPublicKey": "2fbTFg4RZu1nBNbS5wVcZkDFMRym9rCFBNztu9nXXLmk", "proofs": [ "42XgUfZr9CKCptfw6nggaKxkFfMiLq2hBx5miDzX5meU4hHVZ4RfNswfgYFYT7826hMfycEDYRBRXgNpXoQwjNB5" ], "script": "base64:BgIECAISAAMABFVTRE4BILYmKcME9c5TkaQOS3UkL2SMUbH6369UKb1I0h0qsqrRAAxhZG1pbkFkZHJlc3MJAQdBZGRyZXNzAQEaAVTAwzv2fqPdYitfgRofccDz68bLgsbCJTYAC3plZnRBZGRyZXNzCQEHQWRkcmVzcwEBGgFXbzqFfFF8HEJnS7j6bl/S88SZ3WHnKFgLAQFpAQh1c2RuXzEwMAADCQECIT0CCAUBaQxvcmlnaW5DYWxsZXIFDGFkbWluQWRkcmVzcwkAAgECEW9ubHkgYWRtaW4gY2FuIGRvBBF1c2RuQW1vdW50T25TdGFydAkA8AcCBQR0aGlzBQRVU0ROAwkAAAIFEXVzZG5BbW91bnRPblN0YXJ0BRF1c2RuQW1vdW50T25TdGFydAQDaW52CQD8BwQJARFAZXh0ck5hdGl2ZSgxMDYyKQECIzNQQ2J2UFZRZlN2VnU4OGlwOEZtNVlqd0poakVZazFUeGhrAhV3aXRoZHJhd1Zlc3RlZEFsbFVTRE4JAMwIAgcJAMwIAgYFA25pbAUDbmlsAwkAAAIFA2ludgUDaW52BBd1c2RuQW1vdW50QWZ0ZXJXaXRoZHJhdwkA8AcCBQR0aGlzBQRVU0ROAwkAAAIFF3VzZG5BbW91bnRBZnRlcldpdGhkcmF3BRd1c2RuQW1vdW50QWZ0ZXJXaXRoZHJhdwkAzAgCCQEOU2NyaXB0VHJhbnNmZXIDBQt6ZWZ0QWRkcmVzcwkAZQIFF3VzZG5BbW91bnRBZnRlcldpdGhkcmF3BRF1c2RuQW1vdW50T25TdGFydAUEVVNETgUDbmlsCQACAQIkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuCQACAQIkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuCQACAQIkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuACwiw54=", "height": 2327071, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: 66MBozs2dSNZDgvyibypBAgMHh7LRJSCtrt9xtrSB9va 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/026f985 32.31 ms ◑