tx · E4Rfps6gEkfmmjyLByMVDysnXrnQ3ZvWgZPGVucGfg3E 3MygQawG2gPjoej8wX2cqkxmg7KXAPP6xar: -1.00000000 Waves 2020.05.28 22:27 [1018642] smart asset 3MygQawG2gPjoej8wX2cqkxmg7KXAPP6xar > SELF 0.00000000 MOITOKEN
{ "type": 15, "id": "E4Rfps6gEkfmmjyLByMVDysnXrnQ3ZvWgZPGVucGfg3E", "fee": 100000000, "feeAssetId": null, "timestamp": 1590694063066, "version": 1, "sender": "3MygQawG2gPjoej8wX2cqkxmg7KXAPP6xar", "senderPublicKey": "BUxg9XtvamV81CZCqrQzi8BxCizU41dpSqoqt5mW56XS", "proofs": [ "UDn1aav96jjLPunKFQb8PwG7mCTEuMjUCX7kNgmstMgsY6H3Cbqpm3set1aqjvs31U14sGQCd2tGunrJzFnruWo" ], "assetId": "3tqknScoCegnWpFYGvYGiUM68iWC1Fw9KPgHdYgi8ZWc", "script": "base64:AQQAAAALZEFwcEFkZHJlc3MJAQAAABFhZGRyZXNzRnJvbVN0cmluZwAAAAECAAAAIzNNeWdRYXdHMmdQam9lajh3WDJjcWt4bWc3S1hBUFA2eGFyBAAAAAdhZG1pblBLAQAAACCbvoDDAKlv8SHnGnzbjcmS7cF3EYTHum5V5rS3JwBICQQAAAAFVVNESWQBAAAAIFSvarClPUeL8CDJEZCkdJU0KHB75rF5+dCQcSW54JB1BAAAAAlzZWxsUHJpY2UAAAAAAAZCLEAEAAAACGJ1eVByaWNlAAAAAAAFqZXABAAAAAckbWF0Y2gwBQAAAAJ0eAMDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAD0J1cm5UcmFuc2FjdGlvbgYDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAGVNldEFzc2V0U2NyaXB0VHJhbnNhY3Rpb24GCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAElJlaXNzdWVUcmFuc2FjdGlvbgQAAAACdHgFAAAAByRtYXRjaDAJAAAAAAAAAggFAAAAAnR4AAAABnNlb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WxsUHJpY2UGCQAAZgAAAAIFAAAACGJ1eVByaWNlCAgFAAAAAWUAAAAJc2VsbE9yZGVyAAAABXByaWNlCQAAAgAAAAECAAAAq1RyYWRpbmcgcmFuZ2UgMC45NSAtIDEuMDUgQlRDLiBEbyBub3Qgd3JpdGUgb2ZmIHRoZSBzYWxlLCBpbiB0aGUgZnV0dXJlIHRva2VucyB3aWxsIGJlIGFkZGVkIGZvciB0cmFkaW5nIGluIHRhbmRlbSB3aXRoIEFES0FSLiBEZXRhaWxzIGluIHRoZSB0ZWxlZ3JhbSBjaGFubmVsIEBBREtBUl9XQVZFUwYDBQAAAANidXkDCQAAZgAAAAIFAAAACGJ1eVByaWNlCAgFAAAAAWUAAAAJc2VsbE9yZGVyAAAABXByaWNlCQAAAgAAAAECAAAA8lRoZSB0cmFkaW5nIHJhbmdlIGlzIDAuOTUgLSAxLjA1IEJUQywgd2hlcmUgMC45NSBpcyB0aGUgbWluaW11bSBwdXJjaGFzZSBwcmljZSwgd2hpbGUgc2VsbGluZyBhdCB0aGUgcHJpY2Ugb2YgMC41IEJUQywgeW91IGFsc28gbmVlZCB0byBzZXQgdGhlIHByaWNlIHRvIDAuOTUgQlRDLCBvdGhlcndpc2UgdGhlIG9yZGVyIHdpbGwgbm90IHdvcmsuIERldGFpbHMgaW4gdGhlIHRlbGVncmFtIGNoYW5uZWwgQEFES0FSX1dBVkVTBgkAAAIAAAABAgAAABZTb21ldGhpbmcgYmFkIGhhcHBlbmVkB88xLAc=", "chainId": 84, "height": 1018642, "spentComplexity": 0 } View: original | compacted Prev: CCQyqhE2dBbqbvp4v2B91YrHwZWakVT3fYU7QgQ4dJKd Next: 874FwwsQupRgtR8hgXQGb6Abvx2h7kAyMnYzJEMZC698 Diff:
Old | New | Differences | |
---|---|---|---|
2 | 2 | {-# CONTENT_TYPE EXPRESSION #-} | |
3 | 3 | let dAppAddress = addressFromString("3MygQawG2gPjoej8wX2cqkxmg7KXAPP6xar") | |
4 | 4 | let adminPK = base58'BUxg9XtvamV81CZCqrQzi8BxCizU41dpSqoqt5mW56XS' | |
5 | - | let USDId = base58' | |
5 | + | let USDId = base58'6haPPnD5NNMGsif6Zbr67L5xBEM9Dn54qAWpwGvydDSU' | |
6 | 6 | let sellPrice = 105000000 | |
7 | 7 | let buyPrice = 95000000 | |
8 | 8 | match tx { |
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 | - | let USDId = base58' | |
5 | + | let USDId = base58'6haPPnD5NNMGsif6Zbr67L5xBEM9Dn54qAWpwGvydDSU' | |
6 | 6 | let sellPrice = 105000000 | |
7 | 7 | let buyPrice = 95000000 | |
8 | 8 | match tx { | |
9 | 9 | case tx: BurnTransaction|SetAssetScriptTransaction|ReissueTransaction => | |
10 | 10 | (tx.sender == dAppAddress) | |
11 | 11 | case tx: TransferTransaction|MassTransferTransaction => | |
12 | 12 | true | |
13 | 13 | case e: ExchangeTransaction => | |
14 | 14 | let sell = sigVerify(e.sellOrder.bodyBytes, e.sellOrder.proofs[0], e.sellOrder.senderPublicKey) | |
15 | 15 | let buy = sigVerify(e.buyOrder.bodyBytes, e.buyOrder.proofs[0], e.buyOrder.senderPublicKey) | |
16 | 16 | let admin = (e.sellOrder.sender == addressFromPublicKey(adminPK)) | |
17 | 17 | if (admin) | |
18 | 18 | then true | |
19 | 19 | else if ((e.sellOrder.assetPair.priceAsset != USDId)) | |
20 | 20 | then throw("ADKAR is being traded in a pair: ADKAR/BTC. Details in the telegram channel @ADKAR_WAVES") | |
21 | 21 | else if (sell) | |
22 | 22 | then if (if ((e.sellOrder.price > sellPrice)) | |
23 | 23 | then true | |
24 | 24 | else (buyPrice > e.sellOrder.price)) | |
25 | 25 | 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") | |
26 | 26 | else true | |
27 | 27 | else if (buy) | |
28 | 28 | then if ((buyPrice > e.sellOrder.price)) | |
29 | 29 | 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") | |
30 | 30 | else true | |
31 | 31 | else throw("Something bad happened") | |
32 | 32 | case _ => | |
33 | 33 | false | |
34 | 34 | } |
github/deemru/w8io/026f985 26.89 ms ◑