tx · 3jPEuvMAEvmXZoqSHBsd91MyVPqSnPvmBouzWuwSAKDp

3N5EryX3TucbwUpnjryZB3WLg3YDTcC9BbF:  -1.00000000 Waves

2020.04.22 23:38 [966208] smart asset 3N5EryX3TucbwUpnjryZB3WLg3YDTcC9BbF > SELF 0 CloMin2

{ "type": 15, "id": "3jPEuvMAEvmXZoqSHBsd91MyVPqSnPvmBouzWuwSAKDp", "fee": 100000000, "feeAssetId": null, "timestamp": 1587587954593, "version": 1, "sender": "3N5EryX3TucbwUpnjryZB3WLg3YDTcC9BbF", "senderPublicKey": "B9XyW4GriR4NKr6yyp8ZS5BmRzTXAhBn9jybWtpDhQKk", "proofs": [ "41UZqcPvabvQvPXZYwQ5FEMbpRJBXyHzzsEVEtDSZ3BhDijbeMeq58JNmQRFAxSx7FJ4iMQXkZxZDE58kS3TBa49" ], "assetId": "Wpf5EV46o2sDR46NYsncUq2169R7PYo9QnARj5XSwX9", "script": "base64:AgQAAAAHYWRtaW5QSwEAAAAglsSJz6KFUcFtfApcMGPSTcbUtji15ZrrZdwT1HPy9xsEAAAACnNlbGxBbW91bnQAAAAAAAAAA+gEAAAACXNlbGxQcmljZQkAAGkAAAACAAAAAAAAACcQAAAAAAAF9eEABAAAAAhidXlQcmljZQkAAGkAAAACAAAAAAAAABtYAAAAAAAF9eEABAAAAAckbWF0Y2gwBQAAAAJ0eAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAATRXhjaGFuZ2VUcmFuc2FjdGlvbgQAAAABZQUAAAAHJG1hdGNoMAQAAAAGc2VuZGVyCAgFAAAAAWUAAAAJc2VsbE9yZGVyAAAABnNlbmRlcgQAAAAEc2VsbAkAAfQAAAADCAgFAAAAAWUAAAAJc2VsbE9yZGVyAAAACWJvZHlCeXRlcwkAAZEAAAACCAgFAAAAAWUAAAAJc2VsbE9yZGVyAAAABnByb29mcwAAAAAAAAAAAAgIBQAAAAFlAAAACXNlbGxPcmRlcgAAAA9zZW5kZXJQdWJsaWNLZXkEAA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AAAACCQABLAAAAAICAAAAQtCm0LXQvdCwINC/0L7QutGD0L/QutC4INC00L7Qu9C20L3QsCDQsdGL0YLRjCDQsdC+0LvRjNGI0LUg0YfQtdC8IAkAAaQAAAABBQAAAAhidXlQcmljZQIAAAAJIHdhdmVsZXRzBgkAAAIAAAABAgAAACvRgdC70YPRh9C40LvQvtGB0Ywg0YfRgtC+LdGC0L4g0L/Qu9C+0YXQvtC1BmR9FLM=", "chainId": 84, "height": 966208, "spentComplexity": 0 } View: original | compacted Prev: C2ggT7iKqBwt7NChQqnEb94uEHzB4ovBEA3KEyJFGjfM Next: hme9DWjQNPCeSrAAFtiSbyM5dFq9gd7azATeNH2hbWR Diff:
OldNewDifferences
1616 then throw("Принимаются только волны")
1717 else if (sell)
1818 then if ((sellAmount > e.sellOrder.amount))
19- then throw(("Сумма продажи должна быть больше или равна " + toString(sellAmount)))
19+ then throw(("Сумма продажи должна быть больше или равна " + toString(buyPrice)))
2020 else if ((sellPrice >= e.sellOrder.price))
2121 then throw((("Цена продажи должна быть больше чем " + toString(sellPrice)) + " wavelets"))
2222 else true
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 2 #-}
22 {-# CONTENT_TYPE EXPRESSION #-}
33 let adminPK = base58'B9XyW4GriR4NKr6yyp8ZS5BmRzTXAhBn9jybWtpDhQKk'
44 let sellAmount = 1000
55 let sellPrice = (10000 / 100000000)
66 let buyPrice = (7000 / 100000000)
77 match tx {
88 case e: ExchangeTransaction =>
99 let sender = e.sellOrder.sender
1010 let sell = sigVerify(e.sellOrder.bodyBytes, e.sellOrder.proofs[0], e.sellOrder.senderPublicKey)
1111 let buy = sigVerify(e.buyOrder.bodyBytes, e.buyOrder.proofs[0], e.buyOrder.senderPublicKey)
1212 let admin = (e.sellOrder.sender == addressFromPublicKey(adminPK))
1313 if (admin)
1414 then true
1515 else if (isDefined(e.sellOrder.assetPair.priceAsset))
1616 then throw("Принимаются только волны")
1717 else if (sell)
1818 then if ((sellAmount > e.sellOrder.amount))
19- then throw(("Сумма продажи должна быть больше или равна " + toString(sellAmount)))
19+ then throw(("Сумма продажи должна быть больше или равна " + toString(buyPrice)))
2020 else if ((sellPrice >= e.sellOrder.price))
2121 then throw((("Цена продажи должна быть больше чем " + toString(sellPrice)) + " wavelets"))
2222 else true
2323 else if (buy)
2424 then if ((buyPrice > e.sellOrder.price))
2525 then throw((("Цена покупки должна быть больше чем " + toString(buyPrice)) + " wavelets"))
2626 else true
2727 else throw("случилось что-то плохое")
2828 case _ =>
2929 true
3030 }

github/deemru/w8io/026f985 
35.57 ms