tx · 32K2UfDZYir28cLwGUK3i6PUDscteFRHQEtraDgLMfR8 3MygQawG2gPjoej8wX2cqkxmg7KXAPP6xar: -1.00000000 Waves 2020.05.29 01:01 [1018787] smart asset 3MygQawG2gPjoej8wX2cqkxmg7KXAPP6xar > SELF 0.00000000 MOITOKEN
{ "type": 15, "id": "32K2UfDZYir28cLwGUK3i6PUDscteFRHQEtraDgLMfR8", "fee": 100000000, "feeAssetId": null, "timestamp": 1590703319660, "version": 1, "sender": "3MygQawG2gPjoej8wX2cqkxmg7KXAPP6xar", "senderPublicKey": "BUxg9XtvamV81CZCqrQzi8BxCizU41dpSqoqt5mW56XS", "proofs": [ "5131AeuyatDDvW2mVkfuXVQLo8MKgTLYQLJLNFJ6SeAUJJmLvnLJwZHbheQWjdBVVHAbKGYRjXhnHLRK4aniS2sq" ], "assetId": "3tqknScoCegnWpFYGvYGiUM68iWC1Fw9KPgHdYgi8ZWc", "script": "base64:AQQAAAALZEFwcEFkZHJlc3MJAQAAABFhZGRyZXNzRnJvbVN0cmluZwAAAAECAAAAIzNNeWdRYXdHMmdQam9lajh3WDJjcWt4bWc3S1hBUFA2eGFyBAAAAAdhZG1pblBLAQAAACCbvoDDAKlv8SHnGnzbjcmS7cF3EYTHum5V5rS3JwBICQQAAAAEVVNEVAEAAAAgQgOoh2J3l4MtPENb6Z+x/IVXhnG5IKTf37Twf68JKQwEAAAABFVTRE4BAAAAICJkPx6+YEbpEWoTE9ymM/4Wfgf5d+mz8hX8mUkqMAo3BAAAAAlzZWxsUHJpY2UAAAAAAAAQBZAEAAAACGJ1eVByaWNlAAAAAAAADn7wBAAAAAckbWF0Y2gwBQAAAAJ0eAMDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAD0J1cm5UcmFuc2FjdGlvbgYDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAGVNldEFzc2V0U2NyaXB0VHJhbnNhY3Rpb24GCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAElJlaXNzdWVUcmFuc2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P6AGQVdUV1Npd67J7Xj77g Full:
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 (if ((e.sellOrder.assetPair.priceAsset != USDT)) | |
21 | 21 | then true | |
22 | 22 | else (e.sellOrder.assetPair.priceAsset != USDN)) | |
23 | 23 | then throw("ADKAR is being traded in a pair: ADKAR/BTC. Details in the telegram channel @ADKAR_WAVES") | |
24 | 24 | else if (sell) | |
25 | 25 | then if (if ((e.sellOrder.price > sellPrice)) | |
26 | 26 | then true | |
27 | 27 | else (buyPrice > e.sellOrder.price)) | |
28 | 28 | 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") | |
29 | 29 | else true | |
30 | 30 | else if (buy) | |
31 | 31 | then if ((buyPrice > e.sellOrder.price)) | |
32 | 32 | 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") | |
33 | 33 | else true | |
34 | 34 | else throw("Something bad happened") | |
35 | 35 | case _ => | |
36 | 36 | false | |
37 | 37 | } |
github/deemru/w8io/169f3d6 42.98 ms ◑