tx · HAB8WpMz9YrQAq5J8bywPvvBEj3EdpciwnNbVdoduk1j 3MygQawG2gPjoej8wX2cqkxmg7KXAPP6xar: -1.00000000 Waves 2020.05.29 01:25 [1018807] smart asset 3MygQawG2gPjoej8wX2cqkxmg7KXAPP6xar > SELF 0.00000000 MOITOKEN
{ "type": 15, "id": "HAB8WpMz9YrQAq5J8bywPvvBEj3EdpciwnNbVdoduk1j", "fee": 100000000, "feeAssetId": null, "timestamp": 1590704721286, "version": 1, "sender": "3MygQawG2gPjoej8wX2cqkxmg7KXAPP6xar", "senderPublicKey": "BUxg9XtvamV81CZCqrQzi8BxCizU41dpSqoqt5mW56XS", "proofs": [ "XG8LgrZyvUof6AKV8UT1WmmpQ8KsS2HorFDSYzbnkGWCC3e7FKXDWphtLKMiFf1qj3VkwKJPuYsvAXYXNaGq9oj" ], "assetId": "3tqknScoCegnWpFYGvYGiUM68iWC1Fw9KPgHdYgi8ZWc", "script": "base64:AQQAAAALZEFwcEFkZHJlc3MJAQAAABFhZGRyZXNzRnJvbVN0cmluZwAAAAECAAAAIzNNeWdRYXdHMmdQam9lajh3WDJjcWt4bWc3S1hBUFA2eGFyBAAAAAdhZG1pblBLAQAAACCbvoDDAKlv8SHnGnzbjcmS7cF3EYTHum5V5rS3JwBICQQAAAAEVVNEVAEAAAAgQgOoh2J3l4MtPENb6Z+x/IVXhnG5IKTf37Twf68JKQwEAAAABFVTRE4BAAAAICJkPx6+YEbpEWoTE9ymM/4Wfgf5d+mz8hX8mUkqMAo3BAAAAAlzZWxsUHJpY2UAAAAAAAAQBZAEAAAACGJ1eVByaWNlAAAAAAAADn7wBAAAAAckbWF0Y2gwBQAAAAJ0eAMDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAD0J1cm5UcmFuc2FjdGlvbgYDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAGVNldEFzc2V0U2NyaXB0VHJhbnNhY3Rpb24GCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAElJlaXNzdWVU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AAAAAggIBQAAAAFlAAAACXNlbGxPcmRlcgAAAAVwcmljZQUAAAAJc2VsbFByaWNlBgkAAGYAAAACBQAAAAhidXlQcmljZQgIBQAAAAFlAAAACXNlbGxPcmRlcgAAAAVwcmljZQkAAAIAAAABAgAAAKtUcmFkaW5nIHJhbmdlIDAuOTUgLSAxLjA1IEJUQy4gRG8gbm90IHdyaXRlIG9mZiB0aGUgc2FsZSwgaW4gdGhlIGZ1dHVyZSB0b2tlbnMgd2lsbCBiZSBhZGRlZCBmb3IgdHJhZGluZyBpbiB0YW5kZW0gd2l0aCBBREtBUi4gRGV0YWlscyBpbiB0aGUgdGVsZWdyYW0gY2hhbm5lbCBAQURLQVJfV0FWRVMGAwUAAAADYnV5AwkAAGYAAAACBQAAAAhidXlQcmljZQgIBQAAAAFlAAAACXNlbGxPcmRlcgAAAAVwcmljZQkAAAIAAAABAgAAAPJUaGUgdHJhZGluZyByYW5nZSBpcyAwLjk1IC0gMS4wNSBCVEMsIHdoZXJlIDAuOTUgaXMgdGhlIG1pbmltdW0gcHVyY2hhc2UgcHJpY2UsIHdoaWxlIHNlbGxpbmcgYXQgdGhlIHByaWNlIG9mIDAuNSBCVEMsIHlvdSBhbHNvIG5lZWQgdG8gc2V0IHRoZSBwcmljZSB0byAwLjk1IEJUQywgb3RoZXJ3aXNlIHRoZSBvcmRlciB3aWxsIG5vdCB3b3JrLiBEZXRhaWxzIGluIHRoZSB0ZWxlZ3JhbSBjaGFubmVsIEBBREtBUl9XQVZFUwYJAAACAAAAAQIAAAAWU29tZXRoaW5nIGJhZCBoYXBwZW5lZAe3Y5DD", "chainId": 84, "height": 1018807, "spentComplexity": 0 } View: original | compacted Prev: Awqp5uxuQLPJjj94AdXRgdMiV2GjVvtyCsWG4xwq11eD Next: 5ZUzWJbkL2NBe2x4fLNfhszaES34GUTmogKTWAPhscJq Diff:
Old | New | Differences | |
---|---|---|---|
18 | 18 | if (admin) | |
19 | 19 | then true | |
20 | 20 | else if ((e.sellOrder.assetPair.priceAsset != USDT)) | |
21 | - | then throw(" | |
21 | + | then throw("1111 is being traded in a pair: ADKAR/BTC. Details in the telegram channel @ADKAR_WAVES") | |
22 | 22 | else if (sell) | |
23 | 23 | then if (if ((e.sellOrder.price > sellPrice)) | |
24 | 24 | then true | |
30 | 30 | then throw("The trading range is 0.95 - 1.05 BTC, where 0.95 is the minimum purchase price, while selling at the price of 0.5 BTC, you also need to set the price to 0.95 BTC, otherwise the order will not work. Details in the telegram channel @ADKAR_WAVES") | |
31 | 31 | else true | |
32 | 32 | else if ((e.sellOrder.assetPair.priceAsset != USDN)) | |
33 | - | then throw(" | |
33 | + | then throw("2222 is being traded in a pair: ADKAR/BTC. Details in the telegram channel @ADKAR_WAVES") | |
34 | 34 | else if (sell) | |
35 | 35 | then if (if ((e.sellOrder.price > sellPrice)) | |
36 | 36 | then true |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 1 #-} | |
2 | 2 | {-# CONTENT_TYPE EXPRESSION #-} | |
3 | 3 | let dAppAddress = addressFromString("3MygQawG2gPjoej8wX2cqkxmg7KXAPP6xar") | |
4 | 4 | let adminPK = base58'BUxg9XtvamV81CZCqrQzi8BxCizU41dpSqoqt5mW56XS' | |
5 | 5 | let USDT = base58'5Sh9KghfkZyhjwuodovDhB6PghDUGBHiAPZ4MkrPgKtX' | |
6 | 6 | let USDN = base58'3KFXBGGLCjA5Z2DuW4Dq9fDDrHjJJP1ZEkaoajSzuKsC' | |
7 | 7 | let sellPrice = 1050000 | |
8 | 8 | let buyPrice = 950000 | |
9 | 9 | match tx { | |
10 | 10 | case tx: BurnTransaction|SetAssetScriptTransaction|ReissueTransaction => | |
11 | 11 | (tx.sender == dAppAddress) | |
12 | 12 | case tx: TransferTransaction|MassTransferTransaction => | |
13 | 13 | true | |
14 | 14 | case e: ExchangeTransaction => | |
15 | 15 | let sell = sigVerify(e.sellOrder.bodyBytes, e.sellOrder.proofs[0], e.sellOrder.senderPublicKey) | |
16 | 16 | let buy = sigVerify(e.buyOrder.bodyBytes, e.buyOrder.proofs[0], e.buyOrder.senderPublicKey) | |
17 | 17 | let admin = (e.sellOrder.sender == addressFromPublicKey(adminPK)) | |
18 | 18 | if (admin) | |
19 | 19 | then true | |
20 | 20 | else if ((e.sellOrder.assetPair.priceAsset != USDT)) | |
21 | - | then throw(" | |
21 | + | then throw("1111 is being traded in a pair: ADKAR/BTC. Details in the telegram channel @ADKAR_WAVES") | |
22 | 22 | else if (sell) | |
23 | 23 | then if (if ((e.sellOrder.price > sellPrice)) | |
24 | 24 | then true | |
25 | 25 | else (buyPrice > e.sellOrder.price)) | |
26 | 26 | then throw("Trading range 0.95 - 1.05 BTC. Do not write off the sale, in the future tokens will be added for trading in tandem with ADKAR. Details in the telegram channel @ADKAR_WAVES") | |
27 | 27 | else true | |
28 | 28 | else if (buy) | |
29 | 29 | then if ((buyPrice > e.sellOrder.price)) | |
30 | 30 | then throw("The trading range is 0.95 - 1.05 BTC, where 0.95 is the minimum purchase price, while selling at the price of 0.5 BTC, you also need to set the price to 0.95 BTC, otherwise the order will not work. Details in the telegram channel @ADKAR_WAVES") | |
31 | 31 | else true | |
32 | 32 | else if ((e.sellOrder.assetPair.priceAsset != USDN)) | |
33 | - | then throw(" | |
33 | + | then throw("2222 is being traded in a pair: ADKAR/BTC. Details in the telegram channel @ADKAR_WAVES") | |
34 | 34 | else if (sell) | |
35 | 35 | then if (if ((e.sellOrder.price > sellPrice)) | |
36 | 36 | then true | |
37 | 37 | else (buyPrice > e.sellOrder.price)) | |
38 | 38 | then throw("Trading range 0.95 - 1.05 BTC. Do not write off the sale, in the future tokens will be added for trading in tandem with ADKAR. Details in the telegram channel @ADKAR_WAVES") | |
39 | 39 | else true | |
40 | 40 | else if (buy) | |
41 | 41 | then if ((buyPrice > e.sellOrder.price)) | |
42 | 42 | then throw("The trading range is 0.95 - 1.05 BTC, where 0.95 is the minimum purchase price, while selling at the price of 0.5 BTC, you also need to set the price to 0.95 BTC, otherwise the order will not work. Details in the telegram channel @ADKAR_WAVES") | |
43 | 43 | else true | |
44 | 44 | else throw("Something bad happened") | |
45 | 45 | case _ => | |
46 | 46 | false | |
47 | 47 | } |
github/deemru/w8io/169f3d6 35.52 ms ◑