tx · 5CqyNbjBoPPZMaUcnL74yYjTUqX5gp6rCJquXLuNxLTm
3Mp2E6DeL9ypq5p2sKXQwxdrxuBqetS94WU: -1.00000000 Waves
2019.02.24 22:15 [509872] smart asset 3Mp2E6DeL9ypq5p2sKXQwxdrxuBqetS94WU > SELF 0.00000000 AAAAA
{
"type": 15,
"id": "5CqyNbjBoPPZMaUcnL74yYjTUqX5gp6rCJquXLuNxLTm",
"fee": 100000000,
"feeAssetId": null,
"timestamp": 1551035718767,
"version": 1,
"sender": "3Mp2E6DeL9ypq5p2sKXQwxdrxuBqetS94WU",
"senderPublicKey": "HugNn9gBihFZqanUzThuNTsVsx4A5EeCm69D8M6MACM2",
"proofs": [
"5o2MMRMywLPQQt5DvPjoBbqMsbfbQREhcPbY2GCy7UW9HCjus4YPpPd5E6VTAgWgnnTnTry3aXQf2jtnnMNuKfxH"
],
"assetId": "9NAmSQtDVjci4J9vQULKDxKaAd2P93ad8BKjYfveBK1o",
"script": "base64:AQQAAAALc3RhcnRIZWlnaHQAAAAAAAAHx4YEAAAACnN0YXJ0UHJpY2UAAAAAAAAAJxAEAAAACGludGVydmFsCQAAaAAAAAIAAAAAAAAAABgAAAAAAAAAAAoEAAAAA2V4cAkAAGgAAAACCQAAaAAAAAIAAAAAAAAAAAoAAAAAAAAAADwAAAAAAAAAA+gEAAAAByRtYXRjaDAFAAAAAnR4AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABNFeGNoYW5nZVRyYW5zYWN0aW9uBAAAAAFlBQAAAAckbWF0Y2gwBAAAAARkYXlzCQAAaQAAAAIJAABlAAAAAgUAAAAGaGVpZ2h0BQAAAAtzdGFydEhlaWdodAUAAAAIaW50ZXJ2YWwDAwMJAABnAAAAAggFAAAAAWUAAAAFcHJpY2UJAABoAAAAAgUAAAAKc3RhcnRQcmljZQkAAGQAAAACAAAAAAAAAAABBQAAAARkYXlzCQEAAAABIQAAAAEJAQAAAAlpc0RlZmluZWQAAAABCAgIBQAAAAFlAAAACXN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diff:
Old | New | | Differences |
---|
16 | 16 | | else false |
---|
17 | 17 | | case tx: MassTransferTransaction|TransferTransaction|BurnTransaction => |
---|
18 | 18 | | true |
---|
| 19 | + | case e: ExchangeTransaction => |
---|
| 20 | + | let pair = e.buyOrder.assetPair |
---|
| 21 | + | let tradedForWaves = if (!(isDefined(pair.amountAsset))) |
---|
| 22 | + | then true |
---|
| 23 | + | else !(isDefined(pair.priceAsset)) |
---|
| 24 | + | tradedForWaves |
---|
19 | 25 | | case _ => |
---|
20 | 26 | | true |
---|
21 | 27 | | } |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 1 #-} |
---|
2 | 2 | | {-# CONTENT_TYPE EXPRESSION #-} |
---|
3 | 3 | | let startHeight = 509830 |
---|
4 | 4 | | let startPrice = 10000 |
---|
5 | 5 | | let interval = (24 * 10) |
---|
6 | 6 | | let exp = ((10 * 60) * 1000) |
---|
7 | 7 | | match tx { |
---|
8 | 8 | | case e: ExchangeTransaction => |
---|
9 | 9 | | let days = ((height - startHeight) / interval) |
---|
10 | 10 | | if (if (if ((e.price >= (startPrice * (1 + days)))) |
---|
11 | 11 | | then !(isDefined(e.sellOrder.assetPair.priceAsset)) |
---|
12 | 12 | | else isDefined(e.buyOrder.assetPair)) |
---|
13 | 13 | | then (exp >= (e.sellOrder.expiration - e.sellOrder.timestamp)) |
---|
14 | 14 | | else false) |
---|
15 | 15 | | then (exp >= (e.buyOrder.expiration - e.buyOrder.timestamp)) |
---|
16 | 16 | | else false |
---|
17 | 17 | | case tx: MassTransferTransaction|TransferTransaction|BurnTransaction => |
---|
18 | 18 | | true |
---|
| 19 | + | case e: ExchangeTransaction => |
---|
| 20 | + | let pair = e.buyOrder.assetPair |
---|
| 21 | + | let tradedForWaves = if (!(isDefined(pair.amountAsset))) |
---|
| 22 | + | then true |
---|
| 23 | + | else !(isDefined(pair.priceAsset)) |
---|
| 24 | + | tradedForWaves |
---|
19 | 25 | | case _ => |
---|
20 | 26 | | true |
---|
21 | 27 | | } |
---|