tx · E4Rfps6gEkfmmjyLByMVDysnXrnQ3ZvWgZPGVucGfg3E

3MygQawG2gPjoej8wX2cqkxmg7KXAPP6xar:  -1.00000000 Waves

2020.05.28 22:27 [1018642] smart asset 3MygQawG2gPjoej8wX2cqkxmg7KXAPP6xar > SELF 0.00000000 MOITOKEN

{ "type": 15, "id": "E4Rfps6gEkfmmjyLByMVDysnXrnQ3ZvWgZPGVucGfg3E", "fee": 100000000, "feeAssetId": null, "timestamp": 1590694063066, "version": 1, "sender": "3MygQawG2gPjoej8wX2cqkxmg7KXAPP6xar", "senderPublicKey": "BUxg9XtvamV81CZCqrQzi8BxCizU41dpSqoqt5mW56XS", "proofs": [ "UDn1aav96jjLPunKFQb8PwG7mCTEuMjUCX7kNgmstMgsY6H3Cbqpm3set1aqjvs31U14sGQCd2tGunrJzFnruWo" ], "assetId": "3tqknScoCegnWpFYGvYGiUM68iWC1Fw9KPgHdYgi8ZWc", "script": "base64:AQQAAAALZEFwcEFkZHJlc3MJAQAAABFhZGRyZXNzRnJvbVN0cmluZwAAAAECAAAAIzNNeWdRYXdHMmdQam9lajh3WDJjcWt4bWc3S1hBUFA2eGFyBAAAAAdhZG1pblBLAQAAACCbvoDDAKlv8SHnGnzbjcmS7cF3EYTHum5V5rS3JwBICQQAAAAFVVNESWQBAAAAIFSvarClPUeL8CDJEZCkdJU0KHB75rF5+dCQcSW54JB1BAAAAAlzZWxsUHJpY2UAAAAAAAZCLEAEAAAACGJ1eVByaWNlAAAAAAAFqZXABAAAAAckbWF0Y2gwBQAAAAJ0eAMDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAD0J1cm5UcmFuc2FjdGlvbgYDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAGVNldEFzc2V0U2NyaXB0VHJhbnNhY3Rpb24GCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAElJlaXNzdWVUcmFuc2FjdGlvbgQAAAACdHgFAAAAByRtYXRjaDAJAAAAAAAAAggFAAAAAnR4AAAABnNl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ZWxsUHJpY2UGCQAAZgAAAAIFAAAACGJ1eVByaWNlCAgFAAAAAWUAAAAJc2VsbE9yZGVyAAAABXByaWNlCQAAAgAAAAECAAAAq1RyYWRpbmcgcmFuZ2UgMC45NSAtIDEuMDUgQlRDLiBEbyBub3Qgd3JpdGUgb2ZmIHRoZSBzYWxlLCBpbiB0aGUgZnV0dXJlIHRva2VucyB3aWxsIGJlIGFkZGVkIGZvciB0cmFkaW5nIGluIHRhbmRlbSB3aXRoIEFES0FSLiBEZXRhaWxzIGluIHRoZSB0ZWxlZ3JhbSBjaGFubmVsIEBBREtBUl9XQVZFUwYDBQAAAANidXkDCQAAZgAAAAIFAAAACGJ1eVByaWNlCAgFAAAAAWUAAAAJc2VsbE9yZGVyAAAABXByaWNlCQAAAgAAAAECAAAA8lRoZSB0cmFkaW5nIHJhbmdlIGlzIDAuOTUgLSAxLjA1IEJUQywgd2hlcmUgMC45NSBpcyB0aGUgbWluaW11bSBwdXJjaGFzZSBwcmljZSwgd2hpbGUgc2VsbGluZyBhdCB0aGUgcHJpY2Ugb2YgMC41IEJUQywgeW91IGFsc28gbmVlZCB0byBzZXQgdGhlIHByaWNlIHRvIDAuOTUgQlRDLCBvdGhlcndpc2UgdGhlIG9yZGVyIHdpbGwgbm90IHdvcmsuIERldGFpbHMgaW4gdGhlIHRlbGVncmFtIGNoYW5uZWwgQEFES0FSX1dBVkVTBgkAAAIAAAABAgAAABZTb21ldGhpbmcgYmFkIGhhcHBlbmVkB88xLAc=", "chainId": 84, "height": 1018642, "spentComplexity": 0 } View: original | compacted Prev: CCQyqhE2dBbqbvp4v2B91YrHwZWakVT3fYU7QgQ4dJKd Next: 874FwwsQupRgtR8hgXQGb6Abvx2h7kAyMnYzJEMZC698 Diff:
OldNewDifferences
22 {-# CONTENT_TYPE EXPRESSION #-}
33 let dAppAddress = addressFromString("3MygQawG2gPjoej8wX2cqkxmg7KXAPP6xar")
44 let adminPK = base58'BUxg9XtvamV81CZCqrQzi8BxCizU41dpSqoqt5mW56XS'
5-let USDId = base58'3vYWgDC13f1RNf9ZouJ12QQScZV26BN16CRqobawmaVu'
5+let USDId = base58'6haPPnD5NNMGsif6Zbr67L5xBEM9Dn54qAWpwGvydDSU'
66 let sellPrice = 105000000
77 let buyPrice = 95000000
88 match tx {
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 1 #-}
22 {-# CONTENT_TYPE EXPRESSION #-}
33 let dAppAddress = addressFromString("3MygQawG2gPjoej8wX2cqkxmg7KXAPP6xar")
44 let adminPK = base58'BUxg9XtvamV81CZCqrQzi8BxCizU41dpSqoqt5mW56XS'
5-let USDId = base58'3vYWgDC13f1RNf9ZouJ12QQScZV26BN16CRqobawmaVu'
5+let USDId = base58'6haPPnD5NNMGsif6Zbr67L5xBEM9Dn54qAWpwGvydDSU'
66 let sellPrice = 105000000
77 let buyPrice = 95000000
88 match tx {
99 case tx: BurnTransaction|SetAssetScriptTransaction|ReissueTransaction =>
1010 (tx.sender == dAppAddress)
1111 case tx: TransferTransaction|MassTransferTransaction =>
1212 true
1313 case e: ExchangeTransaction =>
1414 let sell = sigVerify(e.sellOrder.bodyBytes, e.sellOrder.proofs[0], e.sellOrder.senderPublicKey)
1515 let buy = sigVerify(e.buyOrder.bodyBytes, e.buyOrder.proofs[0], e.buyOrder.senderPublicKey)
1616 let admin = (e.sellOrder.sender == addressFromPublicKey(adminPK))
1717 if (admin)
1818 then true
1919 else if ((e.sellOrder.assetPair.priceAsset != USDId))
2020 then throw("ADKAR is being traded in a pair: ADKAR/BTC. Details in the telegram channel @ADKAR_WAVES")
2121 else if (sell)
2222 then if (if ((e.sellOrder.price > sellPrice))
2323 then true
2424 else (buyPrice > e.sellOrder.price))
2525 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")
2626 else true
2727 else if (buy)
2828 then if ((buyPrice > e.sellOrder.price))
2929 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")
3030 else true
3131 else throw("Something bad happened")
3232 case _ =>
3333 false
3434 }

github/deemru/w8io/026f985 
26.89 ms