tx · 6AaRuVeexEd2soWuySAmw69hYZb1Jio84f7dQtcKW6ub

3MygQawG2gPjoej8wX2cqkxmg7KXAPP6xar:  -1.00000000 Waves

2020.05.26 00:08 [1014345] smart asset 3MygQawG2gPjoej8wX2cqkxmg7KXAPP6xar > SELF 0.00000000 MOITOKEN

{ "type": 15, "id": "6AaRuVeexEd2soWuySAmw69hYZb1Jio84f7dQtcKW6ub", "fee": 100000000, "feeAssetId": null, "timestamp": 1590440973916, "version": 1, "sender": "3MygQawG2gPjoej8wX2cqkxmg7KXAPP6xar", "senderPublicKey": "BUxg9XtvamV81CZCqrQzi8BxCizU41dpSqoqt5mW56XS", "proofs": [ "NS48nzpdbUbvhJwV4MRMWu6RpNcKN9GWvJ4TBez6h6K4JP4vskW6KeedTrgt2fbENQVTw3ZjSD6sWN2xmC1zjpm" ], "assetId": "3tqknScoCegnWpFYGvYGiUM68iWC1Fw9KPgHdYgi8ZWc", "script": "base64:AQQAAAALZEFwcEFkZHJlc3MJAQAAABFhZGRyZXNzRnJvbVN0cmluZwAAAAECAAAAIzNNeWdRYXdHMmdQam9lajh3WDJjcWt4bWc3S1hBUFA2eGFyBAAAAAdhZG1pblBLAQAAACCbvoDDAKlv8SHnGnzbjcmS7cF3EYTHum5V5rS3JwBICQQAAAAFQlRDSWQBAAAAICZW18edbVw5IUDUbKCl7CbP+JI8377yHi104yBIibXVBAAAAAVVU0RJZAEAAAAgadXwn0S4hl1jVhAJyD0lkaiOX1QUdPc+9ZwqbMIh9QkEAAAACXNlbGxQcmljZQAAAAAABkIsQAQAAAAIYnV5UHJpY2UAAAAAAAWplcAEAAAAByRtYXRjaDAFAAAAAnR4AwMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAPQnVyblRyYW5zYWN0aW9uBgMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAZU2V0QXNzZXRTY3JpcHRUcmFuc2FjdGlvbgYJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAASUmVpc3N1ZVRyYW5z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0 } View: original | compacted Prev: G2k53RvCNmxZxCD7cuskuCDcCftwtgCFd1xPoLFsRmwo Next: HBWNjKV77vueNvb5sCoc7oZwF3TsSHCGJQYDeyg72M8Z Diff:
OldNewDifferences
33 let dAppAddress = addressFromString("3MygQawG2gPjoej8wX2cqkxmg7KXAPP6xar")
44 let adminPK = base58'BUxg9XtvamV81CZCqrQzi8BxCizU41dpSqoqt5mW56XS'
55 let BTCId = base58'3afJDTZVMvCdLB3rd1PEY6M7icZj1VkvwBiprVRbfD3a'
6+let USDId = base58'88922xdkSYjAPeqSGp6K22Tmkr43DGBZbbPDLK1sT6U8'
67 let sellPrice = 105000000
78 let buyPrice = 95000000
89 match tx {
1112 case tx: TransferTransaction|MassTransferTransaction =>
1213 true
1314 case e: ExchangeTransaction =>
14- let sender = e.sellOrder.sender
15- let sell = sigVerify(e.sellOrder.bodyBytes, e.sellOrder.proofs[0], e.sellOrder.senderPublicKey)
16- let buy = sigVerify(e.buyOrder.bodyBytes, e.buyOrder.proofs[0], e.buyOrder.senderPublicKey)
17- let admin = (e.sellOrder.sender == addressFromPublicKey(adminPK))
18- if (admin)
15+ if ((e.sellOrder.assetPair.priceAsset == USDId))
1916 then true
20- else if ((e.sellOrder.assetPair.priceAsset != BTCId))
21- then throw("UNREAL is being traded in a pair: UNREAL/BTC. Details in the telegram channel @UNREAL_WAVES")
22- else if (sell)
23- then if (if ((e.sellOrder.price > sellPrice))
24- then true
25- else (buyPrice > e.sellOrder.price))
26- 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")
27- else true
28- else if (buy)
29- then if ((buyPrice > e.sellOrder.price))
30- 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")
31- else true
32- else throw("something bad happened")
17+ else {
18+ let sender = e.sellOrder.sender
19+ let sell = sigVerify(e.sellOrder.bodyBytes, e.sellOrder.proofs[0], e.sellOrder.senderPublicKey)
20+ let buy = sigVerify(e.buyOrder.bodyBytes, e.buyOrder.proofs[0], e.buyOrder.senderPublicKey)
21+ let admin = (e.sellOrder.sender == addressFromPublicKey(adminPK))
22+ if (admin)
23+ then true
24+ else if ((e.sellOrder.assetPair.priceAsset != BTCId))
25+ then throw("UNREAL is being traded in a pair: UNREAL/BTC. Details in the telegram channel @UNREAL_WAVES")
26+ else if (sell)
27+ then if (if ((e.sellOrder.price > sellPrice))
28+ then true
29+ else (buyPrice > e.sellOrder.price))
30+ 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")
31+ else true
32+ else if (buy)
33+ then if ((buyPrice > e.sellOrder.price))
34+ 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")
35+ else true
36+ else throw("something bad happened")
37+ }
3338 case _ =>
3439 false
3540 }
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'
6+let USDId = base58'88922xdkSYjAPeqSGp6K22Tmkr43DGBZbbPDLK1sT6U8'
67 let sellPrice = 105000000
78 let buyPrice = 95000000
89 match tx {
910 case tx: BurnTransaction|SetAssetScriptTransaction|ReissueTransaction =>
1011 (tx.sender == dAppAddress)
1112 case tx: TransferTransaction|MassTransferTransaction =>
1213 true
1314 case e: ExchangeTransaction =>
14- let sender = e.sellOrder.sender
15- let sell = sigVerify(e.sellOrder.bodyBytes, e.sellOrder.proofs[0], e.sellOrder.senderPublicKey)
16- let buy = sigVerify(e.buyOrder.bodyBytes, e.buyOrder.proofs[0], e.buyOrder.senderPublicKey)
17- let admin = (e.sellOrder.sender == addressFromPublicKey(adminPK))
18- if (admin)
15+ if ((e.sellOrder.assetPair.priceAsset == USDId))
1916 then true
20- else if ((e.sellOrder.assetPair.priceAsset != BTCId))
21- then throw("UNREAL is being traded in a pair: UNREAL/BTC. Details in the telegram channel @UNREAL_WAVES")
22- else if (sell)
23- then if (if ((e.sellOrder.price > sellPrice))
24- then true
25- else (buyPrice > e.sellOrder.price))
26- 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")
27- else true
28- else if (buy)
29- then if ((buyPrice > e.sellOrder.price))
30- 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")
31- else true
32- else throw("something bad happened")
17+ else {
18+ let sender = e.sellOrder.sender
19+ let sell = sigVerify(e.sellOrder.bodyBytes, e.sellOrder.proofs[0], e.sellOrder.senderPublicKey)
20+ let buy = sigVerify(e.buyOrder.bodyBytes, e.buyOrder.proofs[0], e.buyOrder.senderPublicKey)
21+ let admin = (e.sellOrder.sender == addressFromPublicKey(adminPK))
22+ if (admin)
23+ then true
24+ else if ((e.sellOrder.assetPair.priceAsset != BTCId))
25+ then throw("UNREAL is being traded in a pair: UNREAL/BTC. Details in the telegram channel @UNREAL_WAVES")
26+ else if (sell)
27+ then if (if ((e.sellOrder.price > sellPrice))
28+ then true
29+ else (buyPrice > e.sellOrder.price))
30+ 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")
31+ else true
32+ else if (buy)
33+ then if ((buyPrice > e.sellOrder.price))
34+ 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")
35+ else true
36+ else throw("something bad happened")
37+ }
3338 case _ =>
3439 false
3540 }

github/deemru/w8io/169f3d6 
33.38 ms