tx · H1U3CBEy4y6YBg9N3cwN4XkLWwKLkgQ5mhvCuWq2FMD4

3MygQawG2gPjoej8wX2cqkxmg7KXAPP6xar:  -1.00000000 Waves

2020.05.29 01:37 [1018817] smart asset 3MygQawG2gPjoej8wX2cqkxmg7KXAPP6xar > SELF 0.00000000 MOITOKEN

{ "type": 15, "id": "H1U3CBEy4y6YBg9N3cwN4XkLWwKLkgQ5mhvCuWq2FMD4", "fee": 100000000, "feeAssetId": null, "timestamp": 1590705425872, "version": 1, "sender": "3MygQawG2gPjoej8wX2cqkxmg7KXAPP6xar", "senderPublicKey": "BUxg9XtvamV81CZCqrQzi8BxCizU41dpSqoqt5mW56XS", "proofs": [ "yGVnd2hDa1pABc34Evf7roxWAETXeB36E8riVmKHoM6CbS2xeWQEmSWiWscz8LL3E5ih2iq5iWstdf1buVQUcqT" ], "assetId": "3tqknScoCegnWpFYGvYGiUM68iWC1Fw9KPgHdYgi8ZWc", "script": "base64:AQQAAAALZEFwcEFkZHJlc3MJAQAAABFhZGRyZXNzRnJvbVN0cmluZwAAAAECAAAAIzNNeWdRYXdHMmdQam9lajh3WDJjcWt4bWc3S1hBUFA2eGFyBAAAAAdhZG1pblBLAQAAACCbvoDDAKlv8SHnGnzbjcmS7cF3EYTHum5V5rS3JwBICQQAAAAEVVNEVAEAAAAgQgOoh2J3l4MtPENb6Z+x/IVXhnG5IKTf37Twf68JKQwEAAAABFVTRE4BAAAAICJkPx6+YEbpEWoTE9ymM/4Wfgf5d+mz8hX8mUkqMAo3BAAAAAlzZWxsUHJpY2UAAAAAAAAQBZAEAAAACGJ1eVByaWNlAAAAAAAADn7wBAAAAAckbWF0Y2gwBQAAAAJ0eAMDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAD0J1cm5UcmFuc2FjdGlvbgYDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAGVNldEFzc2V0U2NyaXB0VHJhbnNhY3Rpb24GCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAElJlaXNzdW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 0 } View: original | compacted Prev: 5ZUzWJbkL2NBe2x4fLNfhszaES34GUTmogKTWAPhscJq Next: cwicYTbkzVfr7oES9tmSEiU9UtzgPifL9YyNLBfywmj Diff:
OldNewDifferences
1717 let admin = (e.sellOrder.sender == addressFromPublicKey(adminPK))
1818 if (admin)
1919 then true
20- else if (if ((e.sellOrder.assetPair.priceAsset == USDT))
20+ else if (if ((e.sellOrder.assetPair.priceAsset != USDT))
2121 then true
22- else (e.sellOrder.assetPair.amountAsset == USDT))
22+ else (e.sellOrder.assetPair.amountAsset != USDT))
2323 then throw("1111 is being traded in a pair: ADKAR/BTC. Details in the telegram channel @ADKAR_WAVES")
2424 else if (sell)
2525 then if (if ((e.sellOrder.price > sellPrice))
3131 then if ((buyPrice > e.sellOrder.price))
3232 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")
3333 else true
34- else if ((e.sellOrder.assetPair.priceAsset != USDN))
34+ else if (if ((e.sellOrder.assetPair.priceAsset != USDN))
35+ then true
36+ else (e.sellOrder.assetPair.amountAsset != USDN))
3537 then throw("2222 is being traded in a pair: ADKAR/BTC. Details in the telegram channel @ADKAR_WAVES")
3638 else if (sell)
3739 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'
55 let USDT = base58'5Sh9KghfkZyhjwuodovDhB6PghDUGBHiAPZ4MkrPgKtX'
66 let USDN = base58'3KFXBGGLCjA5Z2DuW4Dq9fDDrHjJJP1ZEkaoajSzuKsC'
77 let sellPrice = 1050000
88 let buyPrice = 950000
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 let sell = sigVerify(e.sellOrder.bodyBytes, e.sellOrder.proofs[0], e.sellOrder.senderPublicKey)
1616 let buy = sigVerify(e.buyOrder.bodyBytes, e.buyOrder.proofs[0], e.buyOrder.senderPublicKey)
1717 let admin = (e.sellOrder.sender == addressFromPublicKey(adminPK))
1818 if (admin)
1919 then true
20- else if (if ((e.sellOrder.assetPair.priceAsset == USDT))
20+ else if (if ((e.sellOrder.assetPair.priceAsset != USDT))
2121 then true
22- else (e.sellOrder.assetPair.amountAsset == USDT))
22+ else (e.sellOrder.assetPair.amountAsset != USDT))
2323 then throw("1111 is being traded in a pair: ADKAR/BTC. Details in the telegram channel @ADKAR_WAVES")
2424 else if (sell)
2525 then if (if ((e.sellOrder.price > sellPrice))
2626 then true
2727 else (buyPrice > e.sellOrder.price))
2828 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")
2929 else true
3030 else if (buy)
3131 then if ((buyPrice > e.sellOrder.price))
3232 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")
3333 else true
34- else if ((e.sellOrder.assetPair.priceAsset != USDN))
34+ else if (if ((e.sellOrder.assetPair.priceAsset != USDN))
35+ then true
36+ else (e.sellOrder.assetPair.amountAsset != USDN))
3537 then throw("2222 is being traded in a pair: ADKAR/BTC. Details in the telegram channel @ADKAR_WAVES")
3638 else if (sell)
3739 then if (if ((e.sellOrder.price > sellPrice))
3840 then true
3941 else (buyPrice > e.sellOrder.price))
4042 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")
4143 else true
4244 else if (buy)
4345 then if ((buyPrice > e.sellOrder.price))
4446 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")
4547 else true
4648 else throw("Something bad happened")
4749 case _ =>
4850 false
4951 }

github/deemru/w8io/169f3d6 
31.37 ms