tx · H21rQ2XQKTy54Af21PsxYS5WY9Fo486nrzgjVZ8kaN47
3N4T8eVemVK3f4E8KZgbwvBpk8csem2bFyb: -1.00000000 Waves
2019.02.13 15:45 [493350] smart asset 3N4T8eVemVK3f4E8KZgbwvBpk8csem2bFyb > SELF 0.00000000 zoolla
{
"type": 15,
"id": "H21rQ2XQKTy54Af21PsxYS5WY9Fo486nrzgjVZ8kaN47",
"fee": 100000000,
"feeAssetId": null,
"timestamp": 1550061939253,
"version": 1,
"sender": "3N4T8eVemVK3f4E8KZgbwvBpk8csem2bFyb",
"senderPublicKey": "6XtTAMMi9snEs1mN1TBpR3npxA2R16FMxneyWXMZdMdf",
"proofs": [
"3xCQMAphYAwqS5LV4HK95PXFPfdNFkc17HvbGcCP4MzuZCErsY3tvFYMKbzMke2CDdt97t8Etj5EEktCkNifwWQ8"
],
"assetId": "7QnSodML1AAEFywANeQQkKrrjxK3voymkitfhZauWLqx",
"script": "base64:AQQAAAAIbWlucHJpY2UAAAAAAAX14QAEAAAACm1pbmFtbW91bnQAAAAAACPDRgAEAAAAB21pbnNlbGwAAAAAAEeGjAAEAAAAByRtYXRjaDAFAAAAAnR4AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABNFeGNoYW5nZVRyYW5zYWN0aW9uBAAAAAFlBQAAAAckbWF0Y2gwAwkAAGYAAAACBQAAAAptaW5hbW1vdW50CAgFAAAAAWUAAAAIYnV5T3JkZXIAAAAGYW1vdW50CQAAAgAAAAECAAAASiDQnNC40L3QuNC80LDQu9GM0L3QvtC1INC60L7Qu9C40YfQtdGB0YLQstC+INC90LAg0L/QvtC60YPQv9C60YMgID0gNiBZT1ZJAwkAAGYAAAACBQAAAAdtaW5zZWxsCAUAAAABZQAAAAZhbW91bnQJAAACAAAAAQIAAABLINCc0LjQvdC40LzQsNC70YzQvdC+0LUg0LrQvtC70LjRh9C10YHRgtCy0L4g0L3QsCDQv9GA0L7QtNCw0LbRgyAgPSAxMiBZT1ZJAwkAAGYAAAACBQAAAAhtaW5wcmljZQgFAAAAAWUAAAAFcHJpY2UJAAACAAAAAQIAAAAqINCc0LjQvdC40LzQsNC70YzQvdCw0Y8g0YbQtdC90LAgPSAxIHdhdmVzAwkBAAAAASEAAAABCQEAAAAJaXNEZWZpbmVkAAAAAQgICAUAAAABZQAAAAlzZWxsT3JkZXIAAAAJYXNzZXRQYWlyAAAACnByaWNlQXNzZXQGAwkBAAAAASEAAAABCQEAAAAJaXNEZWZpbmVkAAAAAQgICAUAAAABZQAAAAhidXlPcmRlcgAAAAlhc3NldFBhaXIAAAAKcHJpY2VBc3NldAYHAwMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAATRXhjaGFuZ2VUcmFuc2FjdGlvbgYDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAF01hc3NUcmFuc2ZlclRyYW5zYWN0aW9uBgMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAATVHJhbnNmZXJUcmFuc2FjdGlvbgYDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAGVNldEFzc2V0U2NyaXB0VHJhbnNhY3Rpb24GCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAD0J1cm5UcmFuc2FjdGlvbgQAAAACdHgFAAAAByRtYXRjaDAGB+itd3I=",
"chainId": 84,
"height": 493350,
"spentComplexity": 0
}
View: original | compacted
Prev: EBV4yGiowoqG9RxK3UsPhEpJCntUa2njjMGrV2mSK5Xp
Next: AnZqqbd6Hxf9Z1Dh7eoBPzKGdggxFhbzSgkYFc1RCatd
Diff:
Old | New | | Differences |
---|
7 | 7 | | case e: ExchangeTransaction => |
---|
8 | 8 | | if ((minammount > e.buyOrder.amount)) |
---|
9 | 9 | | then throw(" Минимальное количество на покупку = 6 YOVI") |
---|
10 | | - | else if ((minsell > e.sellOrder.price)) |
---|
| 10 | + | else if ((minsell > e.amount)) |
---|
11 | 11 | | then throw(" Минимальное количество на продажу = 12 YOVI") |
---|
12 | 12 | | else if ((minprice > e.price)) |
---|
13 | 13 | | then throw(" Минимальная цена = 1 waves") |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 1 #-} |
---|
2 | 2 | | {-# CONTENT_TYPE EXPRESSION #-} |
---|
3 | 3 | | let minprice = 100000000 |
---|
4 | 4 | | let minammount = 600000000 |
---|
5 | 5 | | let minsell = 1200000000 |
---|
6 | 6 | | match tx { |
---|
7 | 7 | | case e: ExchangeTransaction => |
---|
8 | 8 | | if ((minammount > e.buyOrder.amount)) |
---|
9 | 9 | | then throw(" Минимальное количество на покупку = 6 YOVI") |
---|
10 | | - | else if ((minsell > e.sellOrder.price)) |
---|
| 10 | + | else if ((minsell > e.amount)) |
---|
11 | 11 | | then throw(" Минимальное количество на продажу = 12 YOVI") |
---|
12 | 12 | | else if ((minprice > e.price)) |
---|
13 | 13 | | then throw(" Минимальная цена = 1 waves") |
---|
14 | 14 | | else if (!(isDefined(e.sellOrder.assetPair.priceAsset))) |
---|
15 | 15 | | then true |
---|
16 | 16 | | else if (!(isDefined(e.buyOrder.assetPair.priceAsset))) |
---|
17 | 17 | | then true |
---|
18 | 18 | | else false |
---|
19 | 19 | | case tx: ExchangeTransaction|MassTransferTransaction|TransferTransaction|SetAssetScriptTransaction|BurnTransaction => |
---|
20 | 20 | | true |
---|
21 | 21 | | case _ => |
---|
22 | 22 | | false |
---|
23 | 23 | | } |
---|