tx · GL9ocdS1m1W1ra5yhthosobfyv6cddBqCD6mbMEkeb9K 3MygQawG2gPjoej8wX2cqkxmg7KXAPP6xar: -1.00000000 Waves 2020.09.06 17:22 [1165640] smart asset 3MygQawG2gPjoej8wX2cqkxmg7KXAPP6xar > SELF 0.00000000 Test200
{ "type": 15, "id": "GL9ocdS1m1W1ra5yhthosobfyv6cddBqCD6mbMEkeb9K", "fee": 100000000, "feeAssetId": null, "timestamp": 1599402166087, "version": 1, "sender": "3MygQawG2gPjoej8wX2cqkxmg7KXAPP6xar", "senderPublicKey": "BUxg9XtvamV81CZCqrQzi8BxCizU41dpSqoqt5mW56XS", "proofs": [ "2seqzk1nXy6F4UeUwkKByo6Bu8SWkCeh9gsopNKCmZg3yFchLDH7BJM8eqZM9qmPQuCa5iRi37A8MJZ9FTfWwRYZ" ], "assetId": "ELifKEtwTDt6TVLYYWJKNoCKuNJxzFTDcR5YC8YBWh2e", "script": "base64:AwQAAAALZEFwcEFkZHJlc3MJAQAAABFhZGRyZXNzRnJvbVN0cmluZwAAAAECAAAAIzNNeWdRYXdHMmdQam9lajh3WDJjcWt4bWc3S1hBUFA2eGFyBAAAAAdhZG1pblBLAQAAACCbvoDDAKlv8SHnGnzbjcmS7cF3EYTHum5V5rS3JwBICQQAAAADdGltCQAAaQAAAAIIBQAAAAlsYXN0QmxvY2sAAAAJdGltZXN0YW1wAAAAAAAAAAPoBAAAAAdzcG9uc29yAQAAACBBa8XAYqVvmo8A0b+Cee545P2vz+BaMZNc8EyMlYJWlQQAAAAJc3RhcnRUaW1lAAAAAABfTn4QBAAAAApzdGFydFByaWNlAAAAAAAAAYagBAAAAAxpbnRlcnZhbFRpbWUAAAAAAAAD9IAEAAAADWludGVydmFsUHJpY2UAAAAAAAABhqAEAAAABnBlcmlvZAkAAGkAAAACCQAAZQAAAAIFAAAAA3RpbQUAAAAJc3RhcnRUaW1lBQAAAAxpbnRlcnZhbFRpbWUEAAAACXBlcmlvZEVuZAkAAGQAAAACCQAAa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TnBuU2htSld4OURIMlVVdEdOV2dmOFRWRGFDICMjIwYDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAE0V4Y2hhbmdlVHJhbnNhY3Rpb24EAAAAAWUFAAAAByRtYXRjaDAEAAAABWFkbWluCQAAAAAAAAIICAUAAAABZQAAAAlzZWxsT3JkZXIAAAAGc2VuZGVyCQEAAAAUYWRkcmVzc0Zyb21QdWJsaWNLZXkAAAABBQAAAAdhZG1pblBLAwUAAAAFYWRtaW4GAwkBAAAACWlzRGVmaW5lZAAAAAEICAgFAAAAAWUAAAAJc2VsbE9yZGVyAAAACWFzc2V0UGFpcgAAAApwcmljZUFzc2V0CQAAAgAAAAECAAAAE09ubHkgd2F2ZXMgYWNjZXB0ZWQDCQAAZgAAAAIJAABlAAAAAggIBQAAAAFlAAAACXNlbGxPcmRlcgAAAApleHBpcmF0aW9uCAgFAAAAAWUAAAAJc2VsbE9yZGVyAAAACXRpbWVzdGFtcAkAAGUAAAACBQAAAAlwZXJpb2RFbmQFAAAAA3RpbQkAAAIAAAABAgAAACrQktGL0LHQtdGA0LjRgtC1INC80LXQvdGM0YjQtdC1INCy0YDQtdC80Y8DAwkAAGYAAAACBQAAAAxwcmljZVNlbGxNaW4ICAUAAAABZQAAAAhidXlPcmRlcgAAAAVwcmljZQYJAABmAAAAAggIBQAAAAFlAAAACXNlbGxPcmRlcgAAAAVwcmljZQUAAAAMcHJpY2VTZWxsTWF4CQAAAgAAAAEJAAEsAAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgIAAAAt0JTQuNCw0L/QsNC30L7QvSDRgtC+0YDQs9C+0LLQu9C4INC80LXQttC00YMgCQABpAAAAAEFAAAADHByaWNlU2VsbE1pbgIAAAADIC0gCQABpAAAAAEFAAAADHByaWNlU2VsbE1heAIAAAAJIFdhdmVsZXRzBgcO+btT", "chainId": 84, "height": 1165640, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 8xzCNTRDMkphPRcGgR4rwuUpHnKRvfCbGjTLG5iGyWYx Next: 7qi72X4Qu79mMsXMnoCKQ26G6GuqYyaixFWjLu3WrJjG Full:
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 3 #-} | |
2 | 2 | {-# CONTENT_TYPE EXPRESSION #-} | |
3 | 3 | let dAppAddress = addressFromString("3MygQawG2gPjoej8wX2cqkxmg7KXAPP6xar") | |
4 | 4 | let adminPK = base58'BUxg9XtvamV81CZCqrQzi8BxCizU41dpSqoqt5mW56XS' | |
5 | 5 | let tim = (lastBlock.timestamp / 1000) | |
6 | 6 | let sponsor = base58'5QNpGE1TbLFPcKiKcNpnShmJWx9DH2UUtGNWgf8TVDaC' | |
7 | 7 | let startTime = 1598979600 | |
8 | 8 | let startPrice = 100000 | |
9 | 9 | let intervalTime = 259200 | |
10 | 10 | let intervalPrice = 100000 | |
11 | 11 | let period = ((tim - startTime) / intervalTime) | |
12 | 12 | let periodEnd = (((period + 1) * intervalTime) + startTime) | |
13 | 13 | let priceSellMin = (startPrice + (intervalPrice * period)) | |
14 | 14 | let priceSellMax = (priceSellMin + intervalPrice) | |
15 | 15 | match tx { | |
16 | 16 | case tx: BurnTransaction|MassTransferTransaction|SetAssetScriptTransaction|ReissueTransaction => | |
17 | 17 | (tx.sender == dAppAddress) | |
18 | 18 | case t: TransferTransaction => | |
19 | 19 | if ((t.feeAssetId != sponsor)) | |
20 | 20 | then throw("### To send, use the sponsor token AYDIK ID - 5QNpGE1TbLFPcKiKcNpnShmJWx9DH2UUtGNWgf8TVDaC ### Для отправки используйте спонсорский токен AYDIK ID - 5QNpGE1TbLFPcKiKcNpnShmJWx9DH2UUtGNWgf8TVDaC ###") | |
21 | 21 | else true | |
22 | 22 | case e: ExchangeTransaction => | |
23 | 23 | let admin = (e.sellOrder.sender == addressFromPublicKey(adminPK)) | |
24 | 24 | if (admin) | |
25 | 25 | then true | |
26 | 26 | else if (isDefined(e.sellOrder.assetPair.priceAsset)) | |
27 | 27 | then throw("Only waves accepted") | |
28 | 28 | else if (((e.sellOrder.expiration - e.sellOrder.timestamp) > (periodEnd - tim))) | |
29 | 29 | then throw("Выберите меньшее время") | |
30 | 30 | else if (if ((priceSellMin > e.buyOrder.price)) | |
31 | 31 | then true | |
32 | 32 | else (e.sellOrder.price > priceSellMax)) | |
33 | 33 | then throw((((("Диапазон торговли между " + toString(priceSellMin)) + " - ") + toString(priceSellMax)) + " Wavelets")) | |
34 | 34 | else true | |
35 | 35 | case _ => | |
36 | 36 | false | |
37 | 37 | } |
github/deemru/w8io/169f3d6 26.95 ms ◑