tx · EkPjBWCsYuA8CtJitWN31tUyfKsjGY4zHujCxqRPpZWs 3N4T8eVemVK3f4E8KZgbwvBpk8csem2bFyb: -1.00000000 Waves 2019.02.13 20:24 [493630] smart asset 3N4T8eVemVK3f4E8KZgbwvBpk8csem2bFyb > SELF 0.00000000 zoolla
{ "type": 15, "id": "EkPjBWCsYuA8CtJitWN31tUyfKsjGY4zHujCxqRPpZWs", "fee": 100000000, "feeAssetId": null, "timestamp": 1550078654436, "version": 1, "sender": "3N4T8eVemVK3f4E8KZgbwvBpk8csem2bFyb", "senderPublicKey": "6XtTAMMi9snEs1mN1TBpR3npxA2R16FMxneyWXMZdMdf", "proofs": [ "EaXWbkfXiLfBTFFSxk3k7uN3o5fb9HBw46wzwAhAK1aTy5aqJGMqFFHK7V69wmQB4yZk5Ui4NmTmq1PmZx6huUm" ], "assetId": "7QnSodML1AAEFywANeQQkKrrjxK3voymkitfhZauWLqx", "script": "base64:AQQAAAAIbWlucHJpY2UAAAAAAAX14QAEAAAACG1heHByaWNlAAAAAAAANu6ABAAAAAdtaW5zZWxsAAAAAABZaC8ABAAAAAptaW5hbW1vdW50AAAAAAA7msoABAAAAAckbWF0Y2gwBQAAAAJ0eAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAATRXhjaGFuZ2VUcmFuc2FjdGlvbgQAAAABZQUAAAAHJG1hdGNoMAMJAABmAAAAAgUAAAAKbWluYW1tb3VudAgIBQAAAAFlAAAACGJ1eU9yZGVyAAAABmFtb3VudAkAAAIAAAABAgAAADEg0JzQuNC90LjQvNCw0LvRjNC90L7QtSDQutC+0LvQuNGH0LXRgdGC0LLQviA9IDEwAwkAAGYAAAACCAgFAAAAAWUAAAAJc2VsbE9yZGVyAAAABmFtb3VudAUAAAAHbWluc2VsbAkAAAIAAAABAgAAAEAg0JzQuNC90LjQvNCw0LvRjNC90L7QtSDQutC+0LvQuNGB0LXRgdGC0LLQviDQv9GA0L7QtNCw0LbQuCA9IDE1AwkAAGYAAAACBQAAAAhtaW5wcmljZQgFAAAAAWUAAAAFcHJpY2UJAAACAAAAAQIAAAAqINCc0LjQvdC40LzQsNC70YzQvdCw0Y8g0YbQtdC90LAgPSAxIHdhdmVzAwkBAAAAASEAAAABCQEAAAAJaXNEZWZpbmVkAAAAAQgICAUAAAABZQAAAAhidXlPcmRlcgAAAAlhc3NldFBhaXIAAAAKcHJpY2VBc3NldAYDCQEAAAABIQAAAAEJAQAAAAlpc0RlZmluZWQAAAABCAgIBQAAAAFlAAAACXNlbGxPcmRlcgAAAAlhc3NldFBhaXIAAAAKcHJpY2VBc3NldAYHAwMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAATRXhjaGFuZ2VUcmFuc2FjdGlvbgYDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAF01hc3NUcmFuc2ZlclRyYW5zYWN0aW9uBgMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAATVHJhbnNmZXJUcmFuc2FjdGlvbgYDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAGVNldEFzc2V0U2NyaXB0VHJhbnNhY3Rpb24GCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAD0J1cm5UcmFuc2FjdGlvbgQAAAACdHgFAAAAByRtYXRjaDAGB277a0k=", "chainId": 84, "height": 493630, "spentComplexity": 0 } View: original | compacted Prev: 9A7SmPaWCtSE3EGx9rifwoTP6TvwJVs1gYgL3e1rLXQR Next: G3N9A1GEkBQbxjasRNdCi8NDvUyLa1RsQM4P4BHkveww Diff:
Old | New | Differences | |
---|---|---|---|
6 | 6 | let minammount = 1000000000 | |
7 | 7 | match tx { | |
8 | 8 | case e: ExchangeTransaction => | |
9 | - | if ( | |
10 | - | then | |
11 | - | else if ( | |
12 | - | then | |
13 | - | else if (( | |
14 | - | then throw(" | |
15 | - | else if ((e. | |
16 | - | then | |
17 | - | else if (( | |
18 | - | then | |
19 | - | else | |
9 | + | if ((minammount > e.buyOrder.amount)) | |
10 | + | then throw(" Минимальное количество = 10") | |
11 | + | else if ((e.sellOrder.amount > minsell)) | |
12 | + | then throw(" Минимальное колисество продажи = 15") | |
13 | + | else if ((minprice > e.price)) | |
14 | + | then throw(" Минимальная цена = 1 waves") | |
15 | + | else if (!(isDefined(e.buyOrder.assetPair.priceAsset))) | |
16 | + | then true | |
17 | + | else if (!(isDefined(e.sellOrder.assetPair.priceAsset))) | |
18 | + | then true | |
19 | + | else false | |
20 | 20 | case tx: ExchangeTransaction|MassTransferTransaction|TransferTransaction|SetAssetScriptTransaction|BurnTransaction => | |
21 | 21 | true | |
22 | 22 | case _ => |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 1 #-} | |
2 | 2 | {-# CONTENT_TYPE EXPRESSION #-} | |
3 | 3 | let minprice = 100000000 | |
4 | 4 | let maxprice = 3600000 | |
5 | 5 | let minsell = 1500000000 | |
6 | 6 | let minammount = 1000000000 | |
7 | 7 | match tx { | |
8 | 8 | case e: ExchangeTransaction => | |
9 | - | if ( | |
10 | - | then | |
11 | - | else if ( | |
12 | - | then | |
13 | - | else if (( | |
14 | - | then throw(" | |
15 | - | else if ((e. | |
16 | - | then | |
17 | - | else if (( | |
18 | - | then | |
19 | - | else | |
9 | + | if ((minammount > e.buyOrder.amount)) | |
10 | + | then throw(" Минимальное количество = 10") | |
11 | + | else if ((e.sellOrder.amount > minsell)) | |
12 | + | then throw(" Минимальное колисество продажи = 15") | |
13 | + | else if ((minprice > e.price)) | |
14 | + | then throw(" Минимальная цена = 1 waves") | |
15 | + | else if (!(isDefined(e.buyOrder.assetPair.priceAsset))) | |
16 | + | then true | |
17 | + | else if (!(isDefined(e.sellOrder.assetPair.priceAsset))) | |
18 | + | then true | |
19 | + | else false | |
20 | 20 | case tx: ExchangeTransaction|MassTransferTransaction|TransferTransaction|SetAssetScriptTransaction|BurnTransaction => | |
21 | 21 | true | |
22 | 22 | case _ => | |
23 | 23 | false | |
24 | 24 | } |
github/deemru/w8io/169f3d6 47.60 ms ◑