tx · H6Kz2f7QqGdEFY6EJvEX6d23yKPRD6mceFUsHuMPPY6i
3Mp2E6DeL9ypq5p2sKXQwxdrxuBqetS94WU: -1.00000000 Waves
2019.02.24 22:15 [509873] smart asset 3Mp2E6DeL9ypq5p2sKXQwxdrxuBqetS94WU > SELF 0.00000000 AAAAA
{
"type": 15,
"id": "H6Kz2f7QqGdEFY6EJvEX6d23yKPRD6mceFUsHuMPPY6i",
"fee": 100000000,
"feeAssetId": null,
"timestamp": 1551035800252,
"version": 1,
"sender": "3Mp2E6DeL9ypq5p2sKXQwxdrxuBqetS94WU",
"senderPublicKey": "HugNn9gBihFZqanUzThuNTsVsx4A5EeCm69D8M6MACM2",
"proofs": [
"5kULBbYGjg3kivKp2nyF1MJ2ukMXfbnxCgpDucNDmGPSGYmUM46HFe7Yubxka3jg9JFvLZKgZGX7aeRV8qP1Dy7d"
],
"assetId": "9NAmSQtDVjci4J9vQULKDxKaAd2P93ad8BKjYfveBK1o",
"script": "base64:AQQAAAALc3RhcnRIZWlnaHQAAAAAAAAHx4YEAAAACnN0YXJ0UHJpY2UAAAAAAAAAJxAEAAAACGludGVydmFsCQAAaAAAAAIAAAAAAAAAABgAAAAAAAAAAAoEAAAAA2V4cAkAAGgAAAACCQAAaAAAAAIAAAAAAAAAAAoAAAAAAAAAADwAAAAAAAAAA+gEAAAAByRtYXRjaDAFAAAAAnR4AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABNFeGNoYW5nZVRyYW5zYWN0aW9uBAAAAAFlBQAAAAckbWF0Y2gwBAAAAARkYXlzCQAAaQAAAAIJAABlAAAAAgUAAAAGaGVpZ2h0BQAAAAtzdGFydEhlaWdodAUAAAAIaW50ZXJ2YWwDAwMJAABnAAAAAggFAAAAAWUAAAAFcHJpY2UJAABoAAAAAgUAAAAKc3RhcnRQcmljZQkAAGQAAAACAAAAAAAAAAABBQAAAARkYXlzCQEAAAABIQAAAAEJAQAAAAlpc0RlZmluZWQAAAABCAgIBQAAAAFlAAAACXNlbGxPcmRlcgAAAAlhc3NldFBhaXIAAAAKcHJpY2VBc3NldAcJAABnAAAAAgUAAAADZXhwCQAAZQAAAAIICAUAAAABZQAAAAlzZWxsT3JkZXIAAAAKZXhwaXJhdGlvbggIBQAAAAFlAAAACXNlbGxPcmRlcgAAAAl0aW1lc3RhbXAHCQAAZwAAAAIFAAAAA2V4cAkAAGUAAAACCAgFAAAAAWUAAAAIYnV5T3JkZXIAAAAKZXhwaXJhdGlvbggIBQAAAAFlAAAACGJ1eU9yZGVyAAAACXRpbWVzdGFtcAcDAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABdNYXNzVHJhbnNmZXJUcmFuc2FjdGlvbgYDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAE1RyYW5zZmVyVHJhbnNhY3Rpb24GCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAD0J1cm5UcmFuc2FjdGlvbgQAAAACdHgFAAAAByRtYXRjaDAGAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABNFeGNoYW5nZVRyYW5zYWN0aW9uBAAAAAFlBQAAAAckbWF0Y2gwBAAAAARwYWlyCAgFAAAAAWUAAAAIYnV5T3JkZXIAAAAJYXNzZXRQYWlyBAAAAA50cmFkZWRGb3JXYXZlcwMJAQAAAAEhAAAAAQkBAAAACWlzRGVmaW5lZAAAAAEIBQAAAARwYWlyAAAAC2Ftb3VudEFzc2V0BgkBAAAAASEAAAABCQEAAAAJaXNEZWZpbmVkAAAAAQgFAAAABHBhaXIAAAAKcHJpY2VBc3NldAUAAAAOdHJhZGVkRm9yV2F2ZXMGfvJ2+Q==",
"chainId": 84,
"height": 509873,
"spentComplexity": 0
}
View: original | compacted
Prev: 5CqyNbjBoPPZMaUcnL74yYjTUqX5gp6rCJquXLuNxLTm
Next: none
Diff:
Old | New | | Differences |
---|
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 | | - | else isDefined(e.buyOrder.assetPair)) |
---|
| 12 | + | else false) |
---|
13 | 13 | | then (exp >= (e.sellOrder.expiration - e.sellOrder.timestamp)) |
---|
14 | 14 | | else false) |
---|
15 | 15 | | then (exp >= (e.buyOrder.expiration - e.buyOrder.timestamp)) |
---|
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 | | - | else isDefined(e.buyOrder.assetPair)) |
---|
| 12 | + | else false) |
---|
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 | 19 | | case e: ExchangeTransaction => |
---|
20 | 20 | | let pair = e.buyOrder.assetPair |
---|
21 | 21 | | let tradedForWaves = if (!(isDefined(pair.amountAsset))) |
---|
22 | 22 | | then true |
---|
23 | 23 | | else !(isDefined(pair.priceAsset)) |
---|
24 | 24 | | tradedForWaves |
---|
25 | 25 | | case _ => |
---|
26 | 26 | | true |
---|
27 | 27 | | } |
---|