tx · 6ZZv3Myk53wBtTcM1nZCbfoiEXSaNfUD6LbEj8upXiXn

3MygQawG2gPjoej8wX2cqkxmg7KXAPP6xar:  -1.00000000 Waves

2020.05.29 13:51 [1019657] smart asset 3MygQawG2gPjoej8wX2cqkxmg7KXAPP6xar > SELF 0.00000000 MOITOKEN

{ "type": 15, "id": "6ZZv3Myk53wBtTcM1nZCbfoiEXSaNfUD6LbEj8upXiXn", "fee": 100000000, "feeAssetId": null, "timestamp": 1590749480929, "version": 1, "sender": "3MygQawG2gPjoej8wX2cqkxmg7KXAPP6xar", "senderPublicKey": "BUxg9XtvamV81CZCqrQzi8BxCizU41dpSqoqt5mW56XS", "proofs": [ "5k9VQ4NcDSy8mNdCAcDMNPkrG4dAMXvou5homckA44waqTNxx7LopeSZGvy5CPqYv7T8b3344GVf93KBhWg6bHjB" ], "assetId": "3tqknScoCegnWpFYGvYGiUM68iWC1Fw9KPgHdYgi8ZWc", "script": "base64:AQQAAAALZEFwcEFkZHJlc3MJAQAAABFhZGRyZXNzRnJvbVN0cmluZwAAAAECAAAAIzNNeWdRYXdHMmdQam9lajh3WDJjcWt4bWc3S1hBUFA2eGFyBAAAAAdhZG1pblBLAQAAACCbvoDDAKlv8SHnGnzbjcmS7cF3EYTHum5V5rS3JwBICQQAAAAEVVNETgEAAAAgImQ/Hr5gRukRahMT3KYz/hZ+B/l36bPyFfyZSSowCjcEAAAAB1Rlc3RCVEMBAAAAICZW18edbVw5IUDUbKCl7CbP+JI8377yHi104yBIibXVBAAAAAdUZXN0VVNEAQAAACBp1fCfRLiGXWNWEAnIPSWRqI5fVBR09z71nCpswiH1CQQAAAAGVVNEVVNEAQAAACBUr2qwpT1Hi/AgyRGQpHSVNChwe+axefnQkHElueCQdQQAAAAJc2VsbFByaWNlAAAAAAAAEAWQBAAAAAhidXlQcmljZQAAAAAAAA5+8AQAAAAHJG1hdGNoMAUAAAACdHgDAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAA9CdXJuVHJhbnNh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GV0YWlscyBpbiB0aGUgdGVsZWdyYW0gY2hhbm5lbCBAQURLQVJfV0FWRVMGAwUAAAADYnV5AwkAAGYAAAACBQAAAAhidXlQcmljZQgIBQAAAAFlAAAACXNlbGxPcmRlcgAAAAVwcmljZQkAAAIAAAABAgAAAPVUaGUgdHJhZGluZyByYW5nZSBpcyAwLjk1IC0gMS4wNSBVU0RULCB3aGVyZSAwLjk1IGlzIHRoZSBtaW5pbXVtIHB1cmNoYXNlIHByaWNlLCB3aGlsZSBzZWxsaW5nIGF0IHRoZSBwcmljZSBvZiAwLjUgVVNEVCwgeW91IGFsc28gbmVlZCB0byBzZXQgdGhlIHByaWNlIHRvIDAuOTUgVVNEVCwgb3RoZXJ3aXNlIHRoZSBvcmRlciB3aWxsIG5vdCB3b3JrLiBEZXRhaWxzIGluIHRoZSB0ZWxlZ3JhbSBjaGFubmVsIEBBREtBUl9XQVZFUwYJAAACAAAAAQIAAAAWU29tZXRoaW5nIGJhZCBoYXBwZW5lZAc4gtYP", "chainId": 84, "height": 1019657, "spentComplexity": 0 } View: original | compacted Prev: BknYqZmSDAkcxxn8D1Eo5GSuLxDemNJPdFSEigya2c4N Next: 4mmJRVU86dYQS6Wxeb2Ntx6SJVsyvAub2ZZeRnFcvTVM Diff:
OldNewDifferences
22 {-# CONTENT_TYPE EXPRESSION #-}
33 let dAppAddress = addressFromString("3MygQawG2gPjoej8wX2cqkxmg7KXAPP6xar")
44 let adminPK = base58'BUxg9XtvamV81CZCqrQzi8BxCizU41dpSqoqt5mW56XS'
5-let USDT = base58'5Sh9KghfkZyhjwuodovDhB6PghDUGBHiAPZ4MkrPgKtX'
5+let USDN = base58'3KFXBGGLCjA5Z2DuW4Dq9fDDrHjJJP1ZEkaoajSzuKsC'
66 let TestBTC = base58'3afJDTZVMvCdLB3rd1PEY6M7icZj1VkvwBiprVRbfD3a'
77 let TestUSD = base58'88922xdkSYjAPeqSGp6K22Tmkr43DGBZbbPDLK1sT6U8'
88 let USDUSD = base58'6haPPnD5NNMGsif6Zbr67L5xBEM9Dn54qAWpwGvydDSU'
3232 let admin = (e.sellOrder.sender == addressFromPublicKey(adminPK))
3333 if (admin)
3434 then true
35- else if (isDefined((e.sellOrder.assetPair.priceAsset != USDT)))
35+ else if (isDefined((e.sellOrder.assetPair.priceAsset != USDN)))
3636 then throw("USTOT is being traded in a pair: USTOT/USDT. Details in the telegram channel @ADKAR_WAVES")
3737 else if (sell)
3838 then if (if ((e.sellOrder.price > sellPrice))
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 1 #-}
22 {-# CONTENT_TYPE EXPRESSION #-}
33 let dAppAddress = addressFromString("3MygQawG2gPjoej8wX2cqkxmg7KXAPP6xar")
44 let adminPK = base58'BUxg9XtvamV81CZCqrQzi8BxCizU41dpSqoqt5mW56XS'
5-let USDT = base58'5Sh9KghfkZyhjwuodovDhB6PghDUGBHiAPZ4MkrPgKtX'
5+let USDN = base58'3KFXBGGLCjA5Z2DuW4Dq9fDDrHjJJP1ZEkaoajSzuKsC'
66 let TestBTC = base58'3afJDTZVMvCdLB3rd1PEY6M7icZj1VkvwBiprVRbfD3a'
77 let TestUSD = base58'88922xdkSYjAPeqSGp6K22Tmkr43DGBZbbPDLK1sT6U8'
88 let USDUSD = base58'6haPPnD5NNMGsif6Zbr67L5xBEM9Dn54qAWpwGvydDSU'
99 let sellPrice = 1050000
1010 let buyPrice = 950000
1111 match tx {
1212 case tx: BurnTransaction|SetAssetScriptTransaction|ReissueTransaction =>
1313 (tx.sender == dAppAddress)
1414 case tx: TransferTransaction|MassTransferTransaction =>
1515 true
1616 case e: ExchangeTransaction =>
1717 if (if ((e.sellOrder.assetPair.priceAsset == TestBTC))
1818 then true
1919 else (e.sellOrder.assetPair.amountAsset == TestBTC))
2020 then true
2121 else if (if ((e.sellOrder.assetPair.priceAsset == TestUSD))
2222 then true
2323 else (e.sellOrder.assetPair.amountAsset == TestUSD))
2424 then true
2525 else if (if ((e.sellOrder.assetPair.priceAsset == USDUSD))
2626 then true
2727 else (e.sellOrder.assetPair.amountAsset == USDUSD))
2828 then true
2929 else {
3030 let sell = sigVerify(e.sellOrder.bodyBytes, e.sellOrder.proofs[0], e.sellOrder.senderPublicKey)
3131 let buy = sigVerify(e.buyOrder.bodyBytes, e.buyOrder.proofs[0], e.buyOrder.senderPublicKey)
3232 let admin = (e.sellOrder.sender == addressFromPublicKey(adminPK))
3333 if (admin)
3434 then true
35- else if (isDefined((e.sellOrder.assetPair.priceAsset != USDT)))
35+ else if (isDefined((e.sellOrder.assetPair.priceAsset != USDN)))
3636 then throw("USTOT is being traded in a pair: USTOT/USDT. Details in the telegram channel @ADKAR_WAVES")
3737 else if (sell)
3838 then if (if ((e.sellOrder.price > sellPrice))
3939 then true
4040 else (buyPrice > e.sellOrder.price))
4141 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")
4242 else true
4343 else if (buy)
4444 then if ((buyPrice > e.sellOrder.price))
4545 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")
4646 else true
4747 else throw("Something bad happened")
4848 }
4949 case _ =>
5050 false
5151 }

github/deemru/w8io/169f3d6 
44.21 ms