tx · CFNawDKRChy8Fs91eRWgfr6G29tyv2R4Y46zB8rSJREk

3MygQawG2gPjoej8wX2cqkxmg7KXAPP6xar:  -1.00000000 Waves

2020.05.26 10:13 [1014964] smart asset 3MygQawG2gPjoej8wX2cqkxmg7KXAPP6xar > SELF 0.00000000 MOITOKEN

{ "type": 15, "id": "CFNawDKRChy8Fs91eRWgfr6G29tyv2R4Y46zB8rSJREk", "fee": 100000000, "feeAssetId": null, "timestamp": 1590477207246, "version": 1, "sender": "3MygQawG2gPjoej8wX2cqkxmg7KXAPP6xar", "senderPublicKey": "BUxg9XtvamV81CZCqrQzi8BxCizU41dpSqoqt5mW56XS", "proofs": [ "5X723VZAARVDnAu3RxeveP2doLN2wH6hM8NhVE1fjV5uZHNFGpH64q3WREAAwmj5rLh47wt7oVwCok3zrqVSPc5x" ], "assetId": "3tqknScoCegnWpFYGvYGiUM68iWC1Fw9KPgHdYgi8ZWc", "script": "base64:AQQAAAALZEFwcEFkZHJlc3MJAQAAABFhZGRyZXNzRnJvbVN0cmluZwAAAAECAAAAIzNNeWdRYXdHMmdQam9lajh3WDJjcWt4bWc3S1hBUFA2eGFyBAAAAAdhZG1pblBLAQAAACCbvoDDAKlv8SHnGnzbjcmS7cF3EYTHum5V5rS3JwBICQQAAAAFQlRDSWQBAAAAICZW18edbVw5IUDUbKCl7CbP+JI8377yHi104yBIibXVBAAAAAVVU0RJZAEAAAAgadXwn0S4hl1jVhAJyD0lkaiOX1QUdPc+9ZwqbMIh9QkEAAAACXNlbGxQcmljZQAAAAAABkIsQAQAAAAIYnV5UHJpY2UAAAAAAAWplcAEAAAAByRtYXRjaDAFAAAAAnR4AwMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAPQnVyblRyYW5zYWN0aW9uBgMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAZU2V0QXNzZXRTY3JpcHRUcmFuc2FjdGlvbgYJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAASUmVpc3N1ZVRyYW5zYWN0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", "chainId": 84, "height": 1014964, "spentComplexity": 0 } View: original | compacted Prev: CV4n6C8DLmYafdp5bj1hmZggTxAKfoiNj7HiqMXY84Kn Next: 6baqspcCiBkeAZw97PQhN3dALpEfcz979Kg6pPfQVctD Diff:
OldNewDifferences
1717 else (e.sellOrder.assetPair.amountAsset == USDId))
1818 then true
1919 else {
20- let sender = e.sellOrder.sender
2120 let sell = sigVerify(e.sellOrder.bodyBytes, e.sellOrder.proofs[0], e.sellOrder.senderPublicKey)
2221 let buy = sigVerify(e.buyOrder.bodyBytes, e.buyOrder.proofs[0], e.buyOrder.senderPublicKey)
2322 let admin = (e.sellOrder.sender == addressFromPublicKey(adminPK))
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 1 #-}
22 {-# CONTENT_TYPE EXPRESSION #-}
33 let dAppAddress = addressFromString("3MygQawG2gPjoej8wX2cqkxmg7KXAPP6xar")
44 let adminPK = base58'BUxg9XtvamV81CZCqrQzi8BxCizU41dpSqoqt5mW56XS'
55 let BTCId = base58'3afJDTZVMvCdLB3rd1PEY6M7icZj1VkvwBiprVRbfD3a'
66 let USDId = base58'88922xdkSYjAPeqSGp6K22Tmkr43DGBZbbPDLK1sT6U8'
77 let sellPrice = 105000000
88 let buyPrice = 95000000
99 match tx {
1010 case tx: BurnTransaction|SetAssetScriptTransaction|ReissueTransaction =>
1111 (tx.sender == dAppAddress)
1212 case tx: TransferTransaction|MassTransferTransaction =>
1313 true
1414 case e: ExchangeTransaction =>
1515 if (if ((e.sellOrder.assetPair.priceAsset == USDId))
1616 then true
1717 else (e.sellOrder.assetPair.amountAsset == USDId))
1818 then true
1919 else {
20- let sender = e.sellOrder.sender
2120 let sell = sigVerify(e.sellOrder.bodyBytes, e.sellOrder.proofs[0], e.sellOrder.senderPublicKey)
2221 let buy = sigVerify(e.buyOrder.bodyBytes, e.buyOrder.proofs[0], e.buyOrder.senderPublicKey)
2322 let admin = (e.sellOrder.sender == addressFromPublicKey(adminPK))
2423 if (admin)
2524 then true
2625 else if ((e.sellOrder.assetPair.priceAsset != BTCId))
2726 then throw("UNREAL is being traded in a pair: UNREAL/BTC. Details in the telegram channel @UNREAL_WAVES")
2827 else if (sell)
2928 then if (if ((e.sellOrder.price > sellPrice))
3029 then true
3130 else (buyPrice > e.sellOrder.price))
3231 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 UNREAL. Details in the telegram channel @UNREAL_WAVES")
3332 else true
3433 else if (buy)
3534 then if ((buyPrice > e.sellOrder.price))
3635 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 @UNREAL_WAVES")
3736 else true
3837 else throw("something bad happened")
3938 }
4039 case _ =>
4140 false
4241 }

github/deemru/w8io/026f985 
21.96 ms