tx · 7nTSF23nj4rJwJ6SjLN6oUz34rNwhKVQB9qYuYSitR8K 3N8x5gskz2zByy7F3pujiodg6HAgdHNU3MQ: -0.00900000 Waves 2022.09.15 18:42 [2230423] smart account 3N8x5gskz2zByy7F3pujiodg6HAgdHNU3MQ > SELF 0.00000000 Waves
{ "type": 13, "id": "7nTSF23nj4rJwJ6SjLN6oUz34rNwhKVQB9qYuYSitR8K", "fee": 900000, "feeAssetId": null, "timestamp": 1663256546847, "version": 2, "chainId": 84, "sender": "3N8x5gskz2zByy7F3pujiodg6HAgdHNU3MQ", "senderPublicKey": "DG81iJnTHiW65E3LH7birSpxT7WWregC8134iCotF6ur", "proofs": [ "4TxZBseSabgjR2qNriXeKj67MVRj3uyYqhnPQio28T5CfHt64TqXdiVYy9MXTNF9uChfw9yRwhJrXKho16YVduvo" ], "script": "base64:AAIFAAAAAAAAAAgIAhIECgIEBAAAAAMAAAAABFVTRE4BAAAAIA/yHBKs5MQ8muxGGqslqLDsugcrRsxtiHLwteKSSQG0AAAAAAtWZXN0aW5nRGFwcAIAAAAjM013R1h1d0F4WTVxbXAxTEc0aWJDQmVIejg2MlkyZ0VUQzgAAAAACmZlZUFkZHJlc3MJAQAAAAdBZGRyZXNzAAAAAQEAAAAaAVRN4ZyNCrFnIo+y6NX20ZPI4iW2M835D+AAAAABAAAAAWkBAAAAFXdpdGhkcmF3VmVzdGVkQWxsVVNETgAAAAIAAAAFd2hhbGUAAAADcmVnBAAAAAVhZG1pbgIAAAAjM013MXQ1VE1aSnhMdkdqQUZhM1JFckVxUHlvWFBMNE44QTMDCQEAAAACIT0AAAACCQAEJQAAAAEIBQAAAAFpAAAABmNhbGxlcgUAAAAFYWRtaW4JAAACAAAAAQIAAAARb25seSBhZG1pbiBjYW4gZG8EAAAAEXVzZG5BbW91bnRPblN0YXJ0CQAD8AAAAAIFAAAABHRoaXMFAAAABFVTRE4DCQAAAAAAAAIFAAAAEXVzZG5BbW91bnRPblN0YXJ0BQAAABF1c2RuQW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GVxdWFsIHRvIGl0c2VsZi4JAAACAAAAAQIAAAAkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXkuyyTL", "height": 2230423, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 8x2cAsfpeFwTfhyzoAhgDieQAqNMJMRDZTZWgBhQDEKL Next: AR1vH9BdD2vmEREYx1ER61zSF87Cct3TJak1cqedqboB Diff:
Old | New | Differences | |
---|---|---|---|
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let USDN = base58'25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT' | |
5 | 5 | ||
6 | + | let VestingDapp = "3MwGXuwAxY5qmp1LG4ibCBeHz862Y2gETC8" | |
7 | + | ||
6 | 8 | let feeAddress = Address(base58'3Mw1t5TMZJxLvGjAFa3RErEqPyoXPL4N8A3') | |
7 | 9 | ||
8 | 10 | @Callable(i) | |
9 | - | func | |
11 | + | func withdrawVestedAllUSDN (whale,reg) = { | |
10 | 12 | let admin = "3Mw1t5TMZJxLvGjAFa3RErEqPyoXPL4N8A3" | |
11 | 13 | if ((toString(i.caller) != admin)) | |
12 | 14 | then throw("only admin can do") | |
14 | 16 | let usdnAmountOnStart = assetBalance(this, USDN) | |
15 | 17 | if ((usdnAmountOnStart == usdnAmountOnStart)) | |
16 | 18 | then { | |
17 | - | let inv = invoke(addressFromStringValue( | |
19 | + | let inv = invoke(addressFromStringValue(VestingDapp), "withdrawVestedAllUSDN", [whale, reg], nil) | |
18 | 20 | if ((inv == inv)) | |
19 | 21 | then { | |
20 | 22 | let usdnAmountAfterWithdraw = assetBalance(this, USDN) |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let USDN = base58'25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT' | |
5 | 5 | ||
6 | + | let VestingDapp = "3MwGXuwAxY5qmp1LG4ibCBeHz862Y2gETC8" | |
7 | + | ||
6 | 8 | let feeAddress = Address(base58'3Mw1t5TMZJxLvGjAFa3RErEqPyoXPL4N8A3') | |
7 | 9 | ||
8 | 10 | @Callable(i) | |
9 | - | func | |
11 | + | func withdrawVestedAllUSDN (whale,reg) = { | |
10 | 12 | let admin = "3Mw1t5TMZJxLvGjAFa3RErEqPyoXPL4N8A3" | |
11 | 13 | if ((toString(i.caller) != admin)) | |
12 | 14 | then throw("only admin can do") | |
13 | 15 | else { | |
14 | 16 | let usdnAmountOnStart = assetBalance(this, USDN) | |
15 | 17 | if ((usdnAmountOnStart == usdnAmountOnStart)) | |
16 | 18 | then { | |
17 | - | let inv = invoke(addressFromStringValue( | |
19 | + | let inv = invoke(addressFromStringValue(VestingDapp), "withdrawVestedAllUSDN", [whale, reg], nil) | |
18 | 20 | if ((inv == inv)) | |
19 | 21 | then { | |
20 | 22 | let usdnAmountAfterWithdraw = assetBalance(this, USDN) | |
21 | 23 | if ((usdnAmountAfterWithdraw == usdnAmountAfterWithdraw)) | |
22 | 24 | then { | |
23 | 25 | let withAmount = (usdnAmountAfterWithdraw - usdnAmountOnStart) | |
24 | 26 | let feeAmount = fraction(withAmount, 5, 100) | |
25 | 27 | [IntegerEntry("fees", (valueOrElse(getInteger("fees"), 0) + feeAmount)), ScriptTransfer(feeAddress, feeAmount, USDN), IntegerEntry("withdrawals", (valueOrElse(getInteger("withdrawals"), 0) + 1))] | |
26 | 28 | } | |
27 | 29 | else throw("Strict value is not equal to itself.") | |
28 | 30 | } | |
29 | 31 | else throw("Strict value is not equal to itself.") | |
30 | 32 | } | |
31 | 33 | else throw("Strict value is not equal to itself.") | |
32 | 34 | } | |
33 | 35 | } | |
34 | 36 | ||
35 | 37 | ||
36 | 38 | @Verifier(tx) | |
37 | 39 | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
38 | 40 |
github/deemru/w8io/fabc49c 25.89 ms ◑