tx · Awqp5uxuQLPJjj94AdXRgdMiV2GjVvtyCsWG4xwq11eD

3MygQawG2gPjoej8wX2cqkxmg7KXAPP6xar:  -1.00000000 Waves

2020.05.29 01:21 [1018805] smart asset 3MygQawG2gPjoej8wX2cqkxmg7KXAPP6xar > SELF 0.00000000 MOITOKEN

{ "type": 15, "id": "Awqp5uxuQLPJjj94AdXRgdMiV2GjVvtyCsWG4xwq11eD", "fee": 100000000, "feeAssetId": null, "timestamp": 1590704553198, "version": 1, "sender": "3MygQawG2gPjoej8wX2cqkxmg7KXAPP6xar", "senderPublicKey": "BUxg9XtvamV81CZCqrQzi8BxCizU41dpSqoqt5mW56XS", "proofs": [ "WSHxHFCmD9mQDj3XcJ6fJvunwoYav2ZVk7g37wN6R9AHpHecMuYssoms4ShSxdn53SumzQarnCEQJg44qLQng8X" ], "assetId": "3tqknScoCegnWpFYGvYGiUM68iWC1Fw9KPgHdYgi8ZWc", "script": "base64:AQQAAAALZEFwcEFkZHJlc3MJAQAAABFhZGRyZXNzRnJvbVN0cmluZwAAAAECAAAAIzNNeWdRYXdHMmdQam9lajh3WDJjcWt4bWc3S1hBUFA2eGFyBAAAAAdhZG1pblBLAQAAACCbvoDDAKlv8SHnGnzbjcmS7cF3EYTHum5V5rS3JwBICQQAAAAEVVNEVAEAAAAgQgOoh2J3l4MtPENb6Z+x/IVXhnG5IKTf37Twf68JKQwEAAAABFVTRE4BAAAAICJkPx6+YEbpEWoTE9ymM/4Wfgf5d+mz8hX8mUkqMAo3BAAAAAlzZWxsUHJpY2UAAAAAAAAQBZAEAAAACGJ1eVByaWNlAAAAAAAADn7wBAAAAAckbWF0Y2gwBQAAAAJ0eAMDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAD0J1cm5UcmFuc2FjdGlvbgYDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAGVNldEFzc2V0U2NyaXB0VHJhbnNhY3Rpb24GCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAElJlaXNzdWVUcmFu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AAAAAWUAAAAJc2VsbE9yZGVyAAAABXByaWNlBQAAAAlzZWxsUHJpY2UGCQAAZgAAAAIFAAAACGJ1eVByaWNlCAgFAAAAAWUAAAAJc2VsbE9yZGVyAAAABXByaWNlCQAAAgAAAAECAAAAq1RyYWRpbmcgcmFuZ2UgMC45NSAtIDEuMDUgQlRDLiBEbyBub3Qgd3JpdGUgb2ZmIHRoZSBzYWxlLCBpbiB0aGUgZnV0dXJlIHRva2VucyB3aWxsIGJlIGFkZGVkIGZvciB0cmFkaW5nIGluIHRhbmRlbSB3aXRoIEFES0FSLiBEZXRhaWxzIGluIHRoZSB0ZWxlZ3JhbSBjaGFubmVsIEBBREtBUl9XQVZFUwYDBQAAAANidXkDCQAAZgAAAAIFAAAACGJ1eVByaWNlCAgFAAAAAWUAAAAJc2VsbE9yZGVyAAAABXByaWNlCQAAAgAAAAECAAAA8lRoZSB0cmFkaW5nIHJhbmdlIGlzIDAuOTUgLSAxLjA1IEJUQywgd2hlcmUgMC45NSBpcyB0aGUgbWluaW11bSBwdXJjaGFzZSBwcmljZSwgd2hpbGUgc2VsbGluZyBhdCB0aGUgcHJpY2Ugb2YgMC41IEJUQywgeW91IGFsc28gbmVlZCB0byBzZXQgdGhlIHByaWNlIHRvIDAuOTUgQlRDLCBvdGhlcndpc2UgdGhlIG9yZGVyIHdpbGwgbm90IHdvcmsuIERldGFpbHMgaW4gdGhlIHRlbGVncmFtIGNoYW5uZWwgQEFES0FSX1dBVkVTBgkAAAIAAAABAgAAABZTb21ldGhpbmcgYmFkIGhhcHBlbmVkBy5/dFo=", "chainId": 84, "height": 1018805, "spentComplexity": 0 } View: original | compacted Prev: 12Mu4QRweaP1uxqKhhnBVCP6AGQVdUV1Npd67J7Xj77g Next: HAB8WpMz9YrQAq5J8bywPvvBEj3EdpciwnNbVdoduk1j Diff:
OldNewDifferences
1717 let admin = (e.sellOrder.sender == addressFromPublicKey(adminPK))
1818 if (admin)
1919 then true
20- else if (if ((e.sellOrder.assetPair.priceAsset != USDT))
21- then true
22- else (e.sellOrder.assetPair.priceAsset != USDN))
20+ else if ((e.sellOrder.assetPair.priceAsset != USDT))
2321 then throw("ADKAR is being traded in a pair: ADKAR/BTC. Details in the telegram channel @ADKAR_WAVES")
2422 else if (sell)
2523 then if (if ((e.sellOrder.price > sellPrice))
3129 then if ((buyPrice > e.sellOrder.price))
3230 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")
3331 else true
34- else throw("Something bad happened")
32+ else if ((e.sellOrder.assetPair.priceAsset != USDN))
33+ then throw("ADKAR is being traded in a pair: ADKAR/BTC. Details in the telegram channel @ADKAR_WAVES")
34+ else if (sell)
35+ then if (if ((e.sellOrder.price > sellPrice))
36+ then true
37+ else (buyPrice > e.sellOrder.price))
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+ else true
40+ else if (buy)
41+ then if ((buyPrice > e.sellOrder.price))
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+ else true
44+ else throw("Something bad happened")
3545 case _ =>
3646 false
3747 }
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 1 #-}
22 {-# CONTENT_TYPE EXPRESSION #-}
33 let dAppAddress = addressFromString("3MygQawG2gPjoej8wX2cqkxmg7KXAPP6xar")
44 let adminPK = base58'BUxg9XtvamV81CZCqrQzi8BxCizU41dpSqoqt5mW56XS'
55 let USDT = base58'5Sh9KghfkZyhjwuodovDhB6PghDUGBHiAPZ4MkrPgKtX'
66 let USDN = base58'3KFXBGGLCjA5Z2DuW4Dq9fDDrHjJJP1ZEkaoajSzuKsC'
77 let sellPrice = 1050000
88 let buyPrice = 950000
99 match tx {
1010 case tx: BurnTransaction|SetAssetScriptTransaction|ReissueTransaction =>
1111 (tx.sender == dAppAddress)
1212 case tx: TransferTransaction|MassTransferTransaction =>
1313 true
1414 case e: ExchangeTransaction =>
1515 let sell = sigVerify(e.sellOrder.bodyBytes, e.sellOrder.proofs[0], e.sellOrder.senderPublicKey)
1616 let buy = sigVerify(e.buyOrder.bodyBytes, e.buyOrder.proofs[0], e.buyOrder.senderPublicKey)
1717 let admin = (e.sellOrder.sender == addressFromPublicKey(adminPK))
1818 if (admin)
1919 then true
20- else if (if ((e.sellOrder.assetPair.priceAsset != USDT))
21- then true
22- else (e.sellOrder.assetPair.priceAsset != USDN))
20+ else if ((e.sellOrder.assetPair.priceAsset != USDT))
2321 then throw("ADKAR is being traded in a pair: ADKAR/BTC. Details in the telegram channel @ADKAR_WAVES")
2422 else if (sell)
2523 then if (if ((e.sellOrder.price > sellPrice))
2624 then true
2725 else (buyPrice > e.sellOrder.price))
2826 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")
2927 else true
3028 else if (buy)
3129 then if ((buyPrice > e.sellOrder.price))
3230 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")
3331 else true
34- else throw("Something bad happened")
32+ else if ((e.sellOrder.assetPair.priceAsset != USDN))
33+ then throw("ADKAR is being traded in a pair: ADKAR/BTC. Details in the telegram channel @ADKAR_WAVES")
34+ else if (sell)
35+ then if (if ((e.sellOrder.price > sellPrice))
36+ then true
37+ else (buyPrice > e.sellOrder.price))
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+ else true
40+ else if (buy)
41+ then if ((buyPrice > e.sellOrder.price))
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+ else true
44+ else throw("Something bad happened")
3545 case _ =>
3646 false
3747 }

github/deemru/w8io/169f3d6 
24.46 ms