tx · VvsghfYomW5YAUEVFkX2V8vT9S2pG4phr8BMRuVw5j8 3MygQawG2gPjoej8wX2cqkxmg7KXAPP6xar: -1.00000000 Waves 2020.09.06 17:34 [1165652] smart asset 3MygQawG2gPjoej8wX2cqkxmg7KXAPP6xar > SELF 0.00000000 Test200
{ "type": 15, "id": "VvsghfYomW5YAUEVFkX2V8vT9S2pG4phr8BMRuVw5j8", "fee": 100000000, "feeAssetId": null, "timestamp": 1599402925740, "version": 1, "sender": "3MygQawG2gPjoej8wX2cqkxmg7KXAPP6xar", "senderPublicKey": "BUxg9XtvamV81CZCqrQzi8BxCizU41dpSqoqt5mW56XS", "proofs": [ "5MWdk88hQYnYFeNpm93Wzh3p39XyQz1bfiVxG3n9fXFJJkcKLMrM1GauJCMpbgWP6JYPYkig213W7jECDS9UPZAd" ], "assetId": "ELifKEtwTDt6TVLYYWJKNoCKuNJxzFTDcR5YC8YBWh2e", "script": "base64:AwQAAAALZEFwcEFkZHJlc3MJAQAAABFhZGRyZXNzRnJvbVN0cmluZwAAAAECAAAAIzNNeWdRYXdHMmdQam9lajh3WDJjcWt4bWc3S1hBUFA2eGFyBAAAAAdhZG1pblBLAQAAACCbvoDDAKlv8SHnGnzbjcmS7cF3EYTHum5V5rS3JwBICQQAAAADdGltCAUAAAAJbGFzdEJsb2NrAAAACXRpbWVzdGFtcAQAAAAHc3BvbnNvcgEAAAAgQWvFwGKlb5qPANG/gnnueOT9r8/gWjGTXPBMjJWCVpUEAAAACXN0YXJ0VGltZQAAAAAAX05+EAQAAAAKc3RhcnRQcmljZQAAAAAAAAGGoAQAAAAMaW50ZXJ2YWxUaW1lAAAAAAAAA/SABAAAAA1pbnRlcnZhbFByaWNlAAAAAAAAAYagBAAAAAZwZXJpb2QJAABpAAAAAgkAAGUAAAACBQAAAAN0aW0FAAAACXN0YXJ0VGltZQUAAAAMaW50ZXJ2YWxUaW1lBAAAAAlwZXJpb2RFbmQJAABkAAAAAgkAAGgAAAACCQAAZAAAAAIFAAA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LQu9C4INC80LXQttC00YMgCQABpAAAAAEFAAAADHByaWNlU2VsbE1pbgIAAAADIC0gCQABpAAAAAEFAAAADHByaWNlU2VsbE1heAIAAAAJIFdhdmVsZXRzBgdB7vg6", "chainId": 84, "height": 1165652, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 7qi72X4Qu79mMsXMnoCKQ26G6GuqYyaixFWjLu3WrJjG Next: 3EksjHhcdZJDMto7qUx2aFemu5hx7qvHECmUd4jy2Nwu Diff:
Old | New | Differences | |
---|---|---|---|
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 | - | then throw(" | |
29 | + | then throw((((((((("Время" + toString(periodEnd)) + " - ") + toString(tim)) + " = ") + toString(e.sellOrder.expiration)) + " - ") + toString(e.sellOrder.timestamp)) + " 000")) | |
30 | 30 | else if (if ((priceSellMin > e.buyOrder.price)) | |
31 | 31 | then true | |
32 | 32 | else (e.sellOrder.price > priceSellMax)) |
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 | |
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 | - | then throw(" | |
29 | + | then throw((((((((("Время" + toString(periodEnd)) + " - ") + toString(tim)) + " = ") + toString(e.sellOrder.expiration)) + " - ") + toString(e.sellOrder.timestamp)) + " 000")) | |
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 42.22 ms ◑