tx · BknYqZmSDAkcxxn8D1Eo5GSuLxDemNJPdFSEigya2c4N

3MygQawG2gPjoej8wX2cqkxmg7KXAPP6xar:  -1.00000000 Waves

2020.05.29 13:40 [1019642] smart asset 3MygQawG2gPjoej8wX2cqkxmg7KXAPP6xar > SELF 0.00000000 MOITOKEN

{ "type": 15, "id": "BknYqZmSDAkcxxn8D1Eo5GSuLxDemNJPdFSEigya2c4N", "fee": 100000000, "feeAssetId": null, "timestamp": 1590748814797, "version": 1, "sender": "3MygQawG2gPjoej8wX2cqkxmg7KXAPP6xar", "senderPublicKey": "BUxg9XtvamV81CZCqrQzi8BxCizU41dpSqoqt5mW56XS", "proofs": [ "3Sqrq8tWT9xUFqJ17Prj36Ty4Na1kqfW7iymsoL3CgveFXVcU2tT1BSdNaxzRgU3LxTDHx9jhc1ZmuuQo6yBjy8T" ], "assetId": "3tqknScoCegnWpFYGvYGiUM68iWC1Fw9KPgHdYgi8ZWc", "script": "base64:AQQAAAALZEFwcEFkZHJlc3MJAQAAABFhZGRyZXNzRnJvbVN0cmluZwAAAAECAAAAIzNNeWdRYXdHMmdQam9lajh3WDJjcWt4bWc3S1hBUFA2eGFyBAAAAAdhZG1pblBLAQAAACCbvoDDAKlv8SHnGnzbjcmS7cF3EYTHum5V5rS3JwBICQQAAAAEVVNEVAEAAAAgQgOoh2J3l4MtPENb6Z+x/IVXhnG5IKTf37Twf68JKQwEAAAAB1Rlc3RCVEMBAAAAICZW18edbVw5IUDUbKCl7CbP+JI8377yHi104yBIibXVBAAAAAdUZXN0VVNEAQAAACBp1fCfRLiGXWNWEAnIPSWRqI5fVBR09z71nCpswiH1CQQAAAAGVVNEVVNEAQAAACBUr2qwpT1Hi/AgyRGQpHSVNChwe+axefnQkHElueCQdQQAAAAJc2VsbFByaWNlAAAAAAAAEAWQBAAAAAhidXlQcmljZQAAAAAAAA5+8AQAAAAHJG1hdGNoMAUAAAACdHgDAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAA9CdXJuVHJ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PVC4gRGV0YWlscyBpbiB0aGUgdGVsZWdyYW0gY2hhbm5lbCBAQURLQVJfV0FWRVMGAwUAAAADYnV5AwkAAGYAAAACBQAAAAhidXlQcmljZQgIBQAAAAFlAAAACXNlbGxPcmRlcgAAAAVwcmljZQkAAAIAAAABAgAAAPVUaGUgdHJhZGluZyByYW5nZSBpcyAwLjk1IC0gMS4wNSBVU0RULCB3aGVyZSAwLjk1IGlzIHRoZSBtaW5pbXVtIHB1cmNoYXNlIHByaWNlLCB3aGlsZSBzZWxsaW5nIGF0IHRoZSBwcmljZSBvZiAwLjUgVVNEVCwgeW91IGFsc28gbmVlZCB0byBzZXQgdGhlIHByaWNlIHRvIDAuOTUgVVNEVCwgb3RoZXJ3aXNlIHRoZSBvcmRlciB3aWxsIG5vdCB3b3JrLiBEZXRhaWxzIGluIHRoZSB0ZWxlZ3JhbSBjaGFubmVsIEBBREtBUl9XQVZFUwYJAAACAAAAAQIAAAAWU29tZXRoaW5nIGJhZCBoYXBwZW5lZAceRPIk", "chainId": 84, "height": 1019642, "spentComplexity": 0 } View: original | compacted Prev: 47PDjjG454to9XatK9Kes8ERVMwUL84Tay2teFGiPB8p Next: 6ZZv3Myk53wBtTcM1nZCbfoiEXSaNfUD6LbEj8upXiXn Diff:
OldNewDifferences
22 {-# CONTENT_TYPE EXPRESSION #-}
33 let dAppAddress = addressFromString("3MygQawG2gPjoej8wX2cqkxmg7KXAPP6xar")
44 let adminPK = base58'BUxg9XtvamV81CZCqrQzi8BxCizU41dpSqoqt5mW56XS'
5-let USDN = base58'6haPPnD5NNMGsif6Zbr67L5xBEM9Dn54qAWpwGvydDSU'
5+let USDT = base58'5Sh9KghfkZyhjwuodovDhB6PghDUGBHiAPZ4MkrPgKtX'
6+let TestBTC = base58'3afJDTZVMvCdLB3rd1PEY6M7icZj1VkvwBiprVRbfD3a'
7+let TestUSD = base58'88922xdkSYjAPeqSGp6K22Tmkr43DGBZbbPDLK1sT6U8'
8+let USDUSD = base58'6haPPnD5NNMGsif6Zbr67L5xBEM9Dn54qAWpwGvydDSU'
69 let sellPrice = 1050000
710 let buyPrice = 950000
811 match tx {
1114 case tx: TransferTransaction|MassTransferTransaction =>
1215 true
1316 case e: ExchangeTransaction =>
14- let sell = sigVerify(e.sellOrder.bodyBytes, e.sellOrder.proofs[0], e.sellOrder.senderPublicKey)
15- let buy = sigVerify(e.buyOrder.bodyBytes, e.buyOrder.proofs[0], e.buyOrder.senderPublicKey)
16- let admin = (e.sellOrder.sender == addressFromPublicKey(adminPK))
17- if (admin)
17+ if (if ((e.sellOrder.assetPair.priceAsset == TestBTC))
1818 then true
19- else if (isDefined((e.sellOrder.assetPair.priceAsset != USDN)))
20- then throw("USNON is being traded in a pair: USNON/USDN. Details in the telegram channel @ADKAR_WAVES")
21- else if (sell)
22- then if (if ((e.sellOrder.price > sellPrice))
23- then true
24- else (buyPrice > e.sellOrder.price))
25- then throw("Trading range 0.95 - 1.05 USDN. Do not write off the sale, in the future tokens will be added for trading in tandem with USNON. Details in the telegram channel @ADKAR_WAVES")
26- else true
27- else if (buy)
28- then if ((buyPrice > e.sellOrder.price))
29- then throw("The trading range is 0.95 - 1.05 USDN, where 0.95 is the minimum purchase price, while selling at the price of 0.5 USDN, you also need to set the price to 0.95 USDN, otherwise the order will not work. Details in the telegram channel @ADKAR_WAVES")
30- else true
31- else throw("Something bad happened")
19+ else (e.sellOrder.assetPair.amountAsset == TestBTC))
20+ then true
21+ else if (if ((e.sellOrder.assetPair.priceAsset == TestUSD))
22+ then true
23+ else (e.sellOrder.assetPair.amountAsset == TestUSD))
24+ then true
25+ else if (if ((e.sellOrder.assetPair.priceAsset == USDUSD))
26+ then true
27+ else (e.sellOrder.assetPair.amountAsset == USDUSD))
28+ then true
29+ else {
30+ let sell = sigVerify(e.sellOrder.bodyBytes, e.sellOrder.proofs[0], e.sellOrder.senderPublicKey)
31+ let buy = sigVerify(e.buyOrder.bodyBytes, e.buyOrder.proofs[0], e.buyOrder.senderPublicKey)
32+ let admin = (e.sellOrder.sender == addressFromPublicKey(adminPK))
33+ if (admin)
34+ then true
35+ else if (isDefined((e.sellOrder.assetPair.priceAsset != USDT)))
36+ then throw("USTOT is being traded in a pair: USTOT/USDT. Details in the telegram channel @ADKAR_WAVES")
37+ else if (sell)
38+ then if (if ((e.sellOrder.price > sellPrice))
39+ then true
40+ else (buyPrice > e.sellOrder.price))
41+ then throw("Trading range 0.95 - 1.05 USDT. Do not write off the sale, in the future tokens will be added for trading in tandem with USTOT. Details in the telegram channel @ADKAR_WAVES")
42+ else true
43+ else if (buy)
44+ then if ((buyPrice > e.sellOrder.price))
45+ then throw("The trading range is 0.95 - 1.05 USDT, where 0.95 is the minimum purchase price, while selling at the price of 0.5 USDT, you also need to set the price to 0.95 USDT, otherwise the order will not work. Details in the telegram channel @ADKAR_WAVES")
46+ else true
47+ else throw("Something bad happened")
48+ }
3249 case _ =>
3350 false
3451 }
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 1 #-}
22 {-# CONTENT_TYPE EXPRESSION #-}
33 let dAppAddress = addressFromString("3MygQawG2gPjoej8wX2cqkxmg7KXAPP6xar")
44 let adminPK = base58'BUxg9XtvamV81CZCqrQzi8BxCizU41dpSqoqt5mW56XS'
5-let USDN = base58'6haPPnD5NNMGsif6Zbr67L5xBEM9Dn54qAWpwGvydDSU'
5+let USDT = base58'5Sh9KghfkZyhjwuodovDhB6PghDUGBHiAPZ4MkrPgKtX'
6+let TestBTC = base58'3afJDTZVMvCdLB3rd1PEY6M7icZj1VkvwBiprVRbfD3a'
7+let TestUSD = base58'88922xdkSYjAPeqSGp6K22Tmkr43DGBZbbPDLK1sT6U8'
8+let USDUSD = base58'6haPPnD5NNMGsif6Zbr67L5xBEM9Dn54qAWpwGvydDSU'
69 let sellPrice = 1050000
710 let buyPrice = 950000
811 match tx {
912 case tx: BurnTransaction|SetAssetScriptTransaction|ReissueTransaction =>
1013 (tx.sender == dAppAddress)
1114 case tx: TransferTransaction|MassTransferTransaction =>
1215 true
1316 case e: ExchangeTransaction =>
14- let sell = sigVerify(e.sellOrder.bodyBytes, e.sellOrder.proofs[0], e.sellOrder.senderPublicKey)
15- let buy = sigVerify(e.buyOrder.bodyBytes, e.buyOrder.proofs[0], e.buyOrder.senderPublicKey)
16- let admin = (e.sellOrder.sender == addressFromPublicKey(adminPK))
17- if (admin)
17+ if (if ((e.sellOrder.assetPair.priceAsset == TestBTC))
1818 then true
19- else if (isDefined((e.sellOrder.assetPair.priceAsset != USDN)))
20- then throw("USNON is being traded in a pair: USNON/USDN. Details in the telegram channel @ADKAR_WAVES")
21- else if (sell)
22- then if (if ((e.sellOrder.price > sellPrice))
23- then true
24- else (buyPrice > e.sellOrder.price))
25- then throw("Trading range 0.95 - 1.05 USDN. Do not write off the sale, in the future tokens will be added for trading in tandem with USNON. Details in the telegram channel @ADKAR_WAVES")
26- else true
27- else if (buy)
28- then if ((buyPrice > e.sellOrder.price))
29- then throw("The trading range is 0.95 - 1.05 USDN, where 0.95 is the minimum purchase price, while selling at the price of 0.5 USDN, you also need to set the price to 0.95 USDN, otherwise the order will not work. Details in the telegram channel @ADKAR_WAVES")
30- else true
31- else throw("Something bad happened")
19+ else (e.sellOrder.assetPair.amountAsset == TestBTC))
20+ then true
21+ else if (if ((e.sellOrder.assetPair.priceAsset == TestUSD))
22+ then true
23+ else (e.sellOrder.assetPair.amountAsset == TestUSD))
24+ then true
25+ else if (if ((e.sellOrder.assetPair.priceAsset == USDUSD))
26+ then true
27+ else (e.sellOrder.assetPair.amountAsset == USDUSD))
28+ then true
29+ else {
30+ let sell = sigVerify(e.sellOrder.bodyBytes, e.sellOrder.proofs[0], e.sellOrder.senderPublicKey)
31+ let buy = sigVerify(e.buyOrder.bodyBytes, e.buyOrder.proofs[0], e.buyOrder.senderPublicKey)
32+ let admin = (e.sellOrder.sender == addressFromPublicKey(adminPK))
33+ if (admin)
34+ then true
35+ else if (isDefined((e.sellOrder.assetPair.priceAsset != USDT)))
36+ then throw("USTOT is being traded in a pair: USTOT/USDT. Details in the telegram channel @ADKAR_WAVES")
37+ else if (sell)
38+ then if (if ((e.sellOrder.price > sellPrice))
39+ then true
40+ else (buyPrice > e.sellOrder.price))
41+ then throw("Trading range 0.95 - 1.05 USDT. Do not write off the sale, in the future tokens will be added for trading in tandem with USTOT. Details in the telegram channel @ADKAR_WAVES")
42+ else true
43+ else if (buy)
44+ then if ((buyPrice > e.sellOrder.price))
45+ then throw("The trading range is 0.95 - 1.05 USDT, where 0.95 is the minimum purchase price, while selling at the price of 0.5 USDT, you also need to set the price to 0.95 USDT, otherwise the order will not work. Details in the telegram channel @ADKAR_WAVES")
46+ else true
47+ else throw("Something bad happened")
48+ }
3249 case _ =>
3350 false
3451 }

github/deemru/w8io/169f3d6 
36.41 ms