tx · 78c1xn6t9KGn7mGBtq7ZNrXaD3KboMqssRZgX2HtUkBd

3MygQawG2gPjoej8wX2cqkxmg7KXAPP6xar:  -1.00000000 Waves

2020.05.31 23:50 [1023189] smart asset 3MygQawG2gPjoej8wX2cqkxmg7KXAPP6xar > SELF 0.00000000 MOITOKEN

{ "type": 15, "id": "78c1xn6t9KGn7mGBtq7ZNrXaD3KboMqssRZgX2HtUkBd", "fee": 100000000, "feeAssetId": null, "timestamp": 1590958232146, "version": 1, "sender": "3MygQawG2gPjoej8wX2cqkxmg7KXAPP6xar", "senderPublicKey": "BUxg9XtvamV81CZCqrQzi8BxCizU41dpSqoqt5mW56XS", "proofs": [ "2nVDabxiFXMiZnRrRaCQfwYrv7hLod5rsrojWxkzbz2E4f4WMhKMKkCb1DhMiXRZMzBZWMiTGtKTHqnAuLDABMuK" ], "assetId": "3tqknScoCegnWpFYGvYGiUM68iWC1Fw9KPgHdYgi8ZWc", "script": "base64:AQQAAAALZEFwcEFkZHJlc3MJAQAAABFhZGRyZXNzRnJvbVN0cmluZwAAAAECAAAAIzNNeWdRYXdHMmdQam9lajh3WDJjcWt4bWc3S1hBUFA2eGFyBAAAAAdhZG1pblBLAQAAACCbvoDDAKlv8SHnGnzbjcmS7cF3EYTHum5V5rS3JwBICQQAAAAHJG1hdGNoMAUAAAACdHgDAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAA9CdXJuVHJhbnNhY3Rpb24GAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABlTZXRBc3NldFNjcmlwdFRyYW5zYWN0aW9uBgkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABJSZWlzc3VlVHJhbnNhY3Rpb24EAAAAAnR4BQAAAAckbWF0Y2gwCQAAAAAAAAIIBQAAAAJ0eAAAAAZzZW5kZXIFAAAAC2RBcHBBZGRyZXNzAwMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAATVHJhbnNmZXJUcmFuc2FjdGlvbgYJAAABAAAAAgUAAAAHJG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GPINGG0LXQvdCwINC90LAg0L/QvtC60YPQv9C60YMgMC4wMDAwMDAwMiwg0L3QsCDQv9GA0L7QtNCw0LbRgyDQvdC10YIg0L7Qs9GA0LDQvdC40YfQtdC90LjQuQYJAAACAAAAAQIAAAAWU29tZXRoaW5nIGJhZCBoYXBwZW5lZAfarHQm", "chainId": 84, "height": 1023189, "spentComplexity": 0 } View: original | compacted Prev: DgnihLAbJnCk12qJew6bH772ZdCyheL88AvNuh3Q9DP3 Next: HDvQHAq125PEtZKoxyGHcabjLHWhK2bxtdAwgPFBr3sd Diff:
OldNewDifferences
88 case tx: TransferTransaction|MassTransferTransaction =>
99 (tx.sender == dAppAddress)
1010 case e: ExchangeTransaction =>
11+ let sell = sigVerify(e.sellOrder.bodyBytes, e.sellOrder.proofs[0], e.sellOrder.senderPublicKey)
1112 let buy = sigVerify(e.buyOrder.bodyBytes, e.buyOrder.proofs[0], e.buyOrder.senderPublicKey)
1213 let admin = (e.sellOrder.sender == addressFromPublicKey(adminPK))
1314 if (admin)
1415 then true
1516 else if (isDefined(e.sellOrder.assetPair.priceAsset))
1617 then throw("только WAVES")
17- else if (buy)
18- then if ((1 >= e.sellOrder.price))
19- then throw("Минимальная цена на покупку 0.00000002, на продажу нет ограничений")
18+ else if (sell)
19+ then if ((e.sellOrder.price == 0))
20+ then throw("0")
2021 else true
21- else throw("Something bad happened")
22+ else if (buy)
23+ then if ((1 >= e.sellOrder.price))
24+ then throw("Минимальная цена на покупку 0.00000002, на продажу нет ограничений")
25+ else true
26+ else throw("Something bad happened")
2227 case _ =>
2328 false
2429 }
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 1 #-}
22 {-# CONTENT_TYPE EXPRESSION #-}
33 let dAppAddress = addressFromString("3MygQawG2gPjoej8wX2cqkxmg7KXAPP6xar")
44 let adminPK = base58'BUxg9XtvamV81CZCqrQzi8BxCizU41dpSqoqt5mW56XS'
55 match tx {
66 case tx: BurnTransaction|SetAssetScriptTransaction|ReissueTransaction =>
77 (tx.sender == dAppAddress)
88 case tx: TransferTransaction|MassTransferTransaction =>
99 (tx.sender == dAppAddress)
1010 case e: ExchangeTransaction =>
11+ let sell = sigVerify(e.sellOrder.bodyBytes, e.sellOrder.proofs[0], e.sellOrder.senderPublicKey)
1112 let buy = sigVerify(e.buyOrder.bodyBytes, e.buyOrder.proofs[0], e.buyOrder.senderPublicKey)
1213 let admin = (e.sellOrder.sender == addressFromPublicKey(adminPK))
1314 if (admin)
1415 then true
1516 else if (isDefined(e.sellOrder.assetPair.priceAsset))
1617 then throw("только WAVES")
17- else if (buy)
18- then if ((1 >= e.sellOrder.price))
19- then throw("Минимальная цена на покупку 0.00000002, на продажу нет ограничений")
18+ else if (sell)
19+ then if ((e.sellOrder.price == 0))
20+ then throw("0")
2021 else true
21- else throw("Something bad happened")
22+ else if (buy)
23+ then if ((1 >= e.sellOrder.price))
24+ then throw("Минимальная цена на покупку 0.00000002, на продажу нет ограничений")
25+ else true
26+ else throw("Something bad happened")
2227 case _ =>
2328 false
2429 }

github/deemru/w8io/026f985 
23.24 ms