tx · C5v4P635HsqAhoM9EiukXzvXdhkrHxzSu8j9LbKrmSUG

3MygQawG2gPjoej8wX2cqkxmg7KXAPP6xar:  -1.00000000 Waves

2020.05.25 18:33 [1014013] smart asset 3MygQawG2gPjoej8wX2cqkxmg7KXAPP6xar > SELF 0.00000000 MOITOKEN

{ "type": 15, "id": "C5v4P635HsqAhoM9EiukXzvXdhkrHxzSu8j9LbKrmSUG", "fee": 100000000, "feeAssetId": null, "timestamp": 1590420812639, "version": 1, "sender": "3MygQawG2gPjoej8wX2cqkxmg7KXAPP6xar", "senderPublicKey": "BUxg9XtvamV81CZCqrQzi8BxCizU41dpSqoqt5mW56XS", "proofs": [ "42Uiiz5aFgFQjJHSrw3YdTy21YDiB4XuiYTa9JkyDyQ7bEMi87nTibUxGg4BArWF3cgKiKyMEF4CBs3d5JaGkC59" ], "assetId": "3tqknScoCegnWpFYGvYGiUM68iWC1Fw9KPgHdYgi8ZWc", "script": "base64:AQQAAAALZEFwcEFkZHJlc3MJAQAAABFhZGRyZXNzRnJvbVN0cmluZwAAAAECAAAAIzNNeWdRYXdHMmdQam9lajh3WDJjcWt4bWc3S1hBUFA2eGFyBAAAAAdhZG1pblBLAQAAACCbvoDDAKlv8SHnGnzbjcmS7cF3EYTHum5V5rS3JwBICQQAAAAFQlRDSWQBAAAAICZW18edbVw5IUDUbKCl7CbP+JI8377yHi104yBIibXVBAAAAAlzZWxsUHJpY2UJAABoAAAAAgAAAAAABkIsQAAAAAAABfXhAAQAAAAIYnV5UHJpY2UJAABoAAAAAgAAAAAABamVwAAAAAAABfXhAAQAAAAHJG1hdGNoMAUAAAACdHgDAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAA9CdXJuVHJhbnNhY3Rpb24GAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABlTZXRBc3NldFNjcmlwdFRyYW5zYWN0aW9uBgkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABJSZWlzc3VlVHJhbnNhY3Rpb24EAAAAAnR4BQ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bGwDCQAAZgAAAAIFAAAACXNlbGxQcmljZQgIBQAAAAFlAAAACXNlbGxPcmRlcgAAAAVwcmljZQkAAAIAAAABAgAAABfQptC10L3QsCDQv9GA0L7QtNCw0LbQuAYDBQAAAANidXkDCQAAZgAAAAIICAUAAAABZQAAAAlzZWxsT3JkZXIAAAAFcHJpY2UFAAAACGJ1eVByaWNlCQAAAgAAAAECAAAAF9Cm0LXQvdCwINC/0L7QutGD0L/QutC4BgkAAAIAAAABAgAAABZzb21ldGhpbmcgYmFkIGhhcHBlbmVkB8UqBLs=", "chainId": 84, "height": 1014013, "spentComplexity": 0 } View: original | compacted Prev: 3q9K5oyo5T3yfjzXtGanUCHoY1TVG6kX8GKLZFrupEdP Next: 73HGdkvjBprNtKDzj6Qoi3WwK6RXwdRXARajBUCtBLce Diff:
OldNewDifferences
33 let dAppAddress = addressFromString("3MygQawG2gPjoej8wX2cqkxmg7KXAPP6xar")
44 let adminPK = base58'BUxg9XtvamV81CZCqrQzi8BxCizU41dpSqoqt5mW56XS'
55 let BTCId = base58'3afJDTZVMvCdLB3rd1PEY6M7icZj1VkvwBiprVRbfD3a'
6-let sellPrice = 105000000
7-let buyPrice = 95000000
6+let sellPrice = (105000000 * 100000000)
7+let buyPrice = (95000000 * 100000000)
88 match tx {
99 case tx: BurnTransaction|SetAssetScriptTransaction|ReissueTransaction =>
1010 (tx.sender == dAppAddress)
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 sellPrice = 105000000
7-let buyPrice = 95000000
6+let sellPrice = (105000000 * 100000000)
7+let buyPrice = (95000000 * 100000000)
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 sender = e.sellOrder.sender
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
2020 else if ((e.sellOrder.assetPair.priceAsset != BTCId))
2121 then throw("торгуется только с парами BTC")
2222 else if (sell)
2323 then if ((sellPrice > e.sellOrder.price))
2424 then throw("Цена продажи")
2525 else true
2626 else if (buy)
2727 then if ((e.sellOrder.price > buyPrice))
2828 then throw("Цена покупки")
2929 else true
3030 else throw("something bad happened")
3131 case _ =>
3232 false
3333 }

github/deemru/w8io/026f985 
25.91 ms