tx · F72gJPqjXk1Sn5PY9y9N7sESzLq78VkFgcjxQw89bDgs
3MygQawG2gPjoej8wX2cqkxmg7KXAPP6xar: -1.00000000 Waves
2020.05.29 02:08 [1018852] smart asset 3MygQawG2gPjoej8wX2cqkxmg7KXAPP6xar > SELF 0.00000000 MOITOKEN
{
"type": 15,
"id": "F72gJPqjXk1Sn5PY9y9N7sESzLq78VkFgcjxQw89bDgs",
"fee": 100000000,
"feeAssetId": null,
"timestamp": 1590707313826,
"version": 1,
"sender": "3MygQawG2gPjoej8wX2cqkxmg7KXAPP6xar",
"senderPublicKey": "BUxg9XtvamV81CZCqrQzi8BxCizU41dpSqoqt5mW56XS",
"proofs": [
"3uNjzkLj8vCeydo6uY73GHjqZ2PiM43q8h1gc3aPXQYZRLe3JK4zsjVjKnNXxe7ar2oA63N9Eeajn44K1j2yebHs"
],
"assetId": "3tqknScoCegnWpFYGvYGiUM68iWC1Fw9KPgHdYgi8ZWc",
"script": "base64:AQQAAAALZEFwcEFkZHJlc3MJAQAAABFhZGRyZXNzRnJvbVN0cmluZwAAAAECAAAAIzNNeWdRYXdHMmdQam9lajh3WDJjcWt4bWc3S1hBUFA2eGFyBAAAAAdhZG1pblBLAQAAACCbvoDDAKlv8SHnGnzbjcmS7cF3EYTHum5V5rS3JwBICQQAAAAEVVNETgEAAAAgImQ/Hr5gRukRahMT3KYz/hZ+B/l36bPyFfyZSSowCjcEAAAACXNlbGxQcmljZQAAAAAAABAFkAQAAAAIYnV5UHJpY2UAAAAAAAAOfvAEAAAAByRtYXRjaDAFAAAAAnR4AwMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAPQnVyblRyYW5zYWN0aW9uBgMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAZU2V0QXNzZXRTY3JpcHRUcmFuc2FjdGlvbgYJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAASUmVpc3N1ZVRyYW5zYWN0aW9uBAAAAAJ0eAUAAAAHJG1hdGNoMAkAAAAAAAACCAU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VyAAAABXByaWNlBQAAAAlzZWxsUHJpY2UGCQAAZgAAAAIFAAAACGJ1eVByaWNlCAgFAAAAAWUAAAAJc2VsbE9yZGVyAAAABXByaWNlCQAAAgAAAAECAAAAq1RyYWRpbmcgcmFuZ2UgMC45NSAtIDEuMDUgQlRDLiBEbyBub3Qgd3JpdGUgb2ZmIHRoZSBzYWxlLCBpbiB0aGUgZnV0dXJlIHRva2VucyB3aWxsIGJlIGFkZGVkIGZvciB0cmFkaW5nIGluIHRhbmRlbSB3aXRoIEFES0FSLiBEZXRhaWxzIGluIHRoZSB0ZWxlZ3JhbSBjaGFubmVsIEBBREtBUl9XQVZFUwYDBQAAAANidXkDCQAAZgAAAAIFAAAACGJ1eVByaWNlCAgFAAAAAWUAAAAJc2VsbE9yZGVyAAAABXByaWNlCQAAAgAAAAECAAAA8lRoZSB0cmFkaW5nIHJhbmdlIGlzIDAuOTUgLSAxLjA1IEJUQywgd2hlcmUgMC45NSBpcyB0aGUgbWluaW11bSBwdXJjaGFzZSBwcmljZSwgd2hpbGUgc2VsbGluZyBhdCB0aGUgcHJpY2Ugb2YgMC41IEJUQywgeW91IGFsc28gbmVlZCB0byBzZXQgdGhlIHByaWNlIHRvIDAuOTUgQlRDLCBvdGhlcndpc2UgdGhlIG9yZGVyIHdpbGwgbm90IHdvcmsuIERldGFpbHMgaW4gdGhlIHRlbGVncmFtIGNoYW5uZWwgQEFES0FSX1dBVkVTBgkAAAIAAAABAgAAABZTb21ldGhpbmcgYmFkIGhhcHBlbmVkB9517K4=",
"chainId": 84,
"height": 1018852,
"spentComplexity": 0
}
View: original | compacted
Prev: CugDYRBGCmqP1tGMZAhTbvgR8AkpPhgEJTeg8Zs2EDH6
Next: C3r77AVmmpVnxfRRJ1fPATfMt2tXZ7RkZMHDh4ur11Vu
Diff:
Old | New | | Differences |
---|
2 | 2 | | {-# CONTENT_TYPE EXPRESSION #-} |
---|
3 | 3 | | let dAppAddress = addressFromString("3MygQawG2gPjoej8wX2cqkxmg7KXAPP6xar") |
---|
4 | 4 | | let adminPK = base58'BUxg9XtvamV81CZCqrQzi8BxCizU41dpSqoqt5mW56XS' |
---|
5 | | - | let USDT = base58'5Sh9KghfkZyhjwuodovDhB6PghDUGBHiAPZ4MkrPgKtX' |
---|
| 5 | + | let USDN = base58'3KFXBGGLCjA5Z2DuW4Dq9fDDrHjJJP1ZEkaoajSzuKsC' |
---|
6 | 6 | | let sellPrice = 1050000 |
---|
7 | 7 | | let buyPrice = 950000 |
---|
8 | 8 | | match tx { |
---|
|
16 | 16 | | let admin = (e.sellOrder.sender == addressFromPublicKey(adminPK)) |
---|
17 | 17 | | if (admin) |
---|
18 | 18 | | then true |
---|
19 | | - | else if ((e.sellOrder.assetPair.priceAsset != USDT)) |
---|
| 19 | + | else if ((e.sellOrder.assetPair.priceAsset != USDN)) |
---|
20 | 20 | | then throw("1111 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)) |
---|
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 | | - | let USDT = base58'5Sh9KghfkZyhjwuodovDhB6PghDUGBHiAPZ4MkrPgKtX' |
---|
| 5 | + | let USDN = base58'3KFXBGGLCjA5Z2DuW4Dq9fDDrHjJJP1ZEkaoajSzuKsC' |
---|
6 | 6 | | let sellPrice = 1050000 |
---|
7 | 7 | | let buyPrice = 950000 |
---|
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 | | - | else if ((e.sellOrder.assetPair.priceAsset != USDT)) |
---|
| 19 | + | else if ((e.sellOrder.assetPair.priceAsset != USDN)) |
---|
20 | 20 | | then throw("1111 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 | | } |
---|