tx · 9rvCZiLZdc9MoqCpE8nq7gmpdkB7WNeV3fc9r6owkoQF
3N6mVEULck7uViUaDo1wi98wch9XzYNXriv: -1.00000000 Waves
2019.02.22 08:17 [506043] smart asset 3N6mVEULck7uViUaDo1wi98wch9XzYNXriv > SELF 0.00000000 exchange
{
"type": 15,
"id": "9rvCZiLZdc9MoqCpE8nq7gmpdkB7WNeV3fc9r6owkoQF",
"fee": 100000000,
"feeAssetId": null,
"timestamp": 1550812645609,
"version": 1,
"sender": "3N6mVEULck7uViUaDo1wi98wch9XzYNXriv",
"senderPublicKey": "GMCkL2F7fYotQtrpQq5sjNm5cjpR7CSfawr9kMSKLHVs",
"proofs": [
"45yYeL95m6ZJ2bgWdsSWqZLRAgnYAZ48zf3FbK3rrRU1ReWne7PnuWUJJ15Qk59nUKQgAHVkWYuc5Nc418m8PQYf"
],
"assetId": "CdAw5Uu1A9RT6jafc9cQSUy16naaYjzYgcVWDY8xGw8z",
"script": "base64:AQQAAAALbWluQnV5UHJpY2UAAAAAAAD+URQEAAAADG1pblNlbGxQcmljZQAAAAAAAP5SQAQAAAAHJG1hdGNoMAUAAAACdHgDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAE0V4Y2hhbmdlVHJhbnNhY3Rpb24EAAAAAWUFAAAAByRtYXRjaDAEAAAABHNlbGwJAAH0AAAAAwgIBQAAAAFlAAAACXNlbGxPcmRlcgAAAAlib2R5Qnl0ZXMJAAGRAAAAAggIBQAAAAFlAAAACXNlbGxPcmRlcgAAAAZwcm9vZnMAAAAAAAAAAAAICAUAAAABZQAAAAlzZWxsT3JkZXIAAAAPc2VuZGVyUHVibGljS2V5BAAAAANidXkJAAH0AAAAAwgIBQAAAAFlAAAACGJ1eU9yZGVyAAAACWJvZHlCeXRlcwkAAZEAAAACCAgFAAAAAWUAAAAIYnV5T3JkZXIAAAAGcHJvb2ZzAAAAAAAAAAAACAgFAAAAAWUAAAAIYnV5T3JkZXIAAAAPc2VuZGVyUHVibGljS2V5AwUAAAAEc2VsbAMDCQAAZgAAAAIFAAAADG1pblNlbGxQcmljZQgIBQAAAAFlAAAACXNlbGxPcmRlcgAAAAVwcmljZQYJAQAAAAlpc0RlZmluZWQAAAABCAgIBQAAAAFlAAAACXNlbGxPcmRlcgAAAAlhc3NldFBhaXIAAAAKcHJpY2VBc3NldAkBAAAABXRocm93AAAAAAYDAwkAAGYAAAACCAgFAAAAAWUAAAAIYnV5T3JkZXIAAAAFcHJpY2UFAAAAC21pbkJ1eVByaWNlBgkBAAAACWlzRGVmaW5lZAAAAAEICAgFAAAAAWUAAAAIYnV5T3JkZXIAAAAJYXNzZXRQYWlyAAAACnByaWNlQXNzZXQJAQAAAAV0aHJvdwAAAAAGAwMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAXTWFzc1RyYW5zZmVyVHJhbnNhY3Rpb24GAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAA9CdXJuVHJhbnNhY3Rpb24GCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAE1RyYW5zZmVyVHJhbnNhY3Rpb24EAAAAAXQFAAAAByRtYXRjaDAGBn5hj+M=",
"chainId": 84,
"height": 506043,
"spentComplexity": 0
}
View: original | compacted
Prev: D6i3k5MSKCBZAaaahixFbMfk8PohcgfBUmPphx4uG9iB
Next: G66xpDRj5P1aWMRVWPsVSwtKLPfnrVvLSa7zcHd6bjKT
Diff:
Old | New | | Differences |
---|
12 | 12 | | else isDefined(e.sellOrder.assetPair.priceAsset)) |
---|
13 | 13 | | then throw() |
---|
14 | 14 | | else true |
---|
15 | | - | else throw("buy") |
---|
| 15 | + | else if (if ((e.buyOrder.price > minBuyPrice)) |
---|
| 16 | + | then true |
---|
| 17 | + | else isDefined(e.buyOrder.assetPair.priceAsset)) |
---|
| 18 | + | then throw() |
---|
| 19 | + | else true |
---|
16 | 20 | | case t: MassTransferTransaction|BurnTransaction|TransferTransaction => |
---|
17 | 21 | | true |
---|
18 | 22 | | case _ => |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 1 #-} |
---|
2 | 2 | | {-# CONTENT_TYPE EXPRESSION #-} |
---|
3 | 3 | | let minBuyPrice = 16666900 |
---|
4 | 4 | | let minSellPrice = 16667200 |
---|
5 | 5 | | match tx { |
---|
6 | 6 | | case e: ExchangeTransaction => |
---|
7 | 7 | | let sell = sigVerify(e.sellOrder.bodyBytes, e.sellOrder.proofs[0], e.sellOrder.senderPublicKey) |
---|
8 | 8 | | let buy = sigVerify(e.buyOrder.bodyBytes, e.buyOrder.proofs[0], e.buyOrder.senderPublicKey) |
---|
9 | 9 | | if (sell) |
---|
10 | 10 | | then if (if ((minSellPrice > e.sellOrder.price)) |
---|
11 | 11 | | then true |
---|
12 | 12 | | else isDefined(e.sellOrder.assetPair.priceAsset)) |
---|
13 | 13 | | then throw() |
---|
14 | 14 | | else true |
---|
15 | | - | else throw("buy") |
---|
| 15 | + | else if (if ((e.buyOrder.price > minBuyPrice)) |
---|
| 16 | + | then true |
---|
| 17 | + | else isDefined(e.buyOrder.assetPair.priceAsset)) |
---|
| 18 | + | then throw() |
---|
| 19 | + | else true |
---|
16 | 20 | | case t: MassTransferTransaction|BurnTransaction|TransferTransaction => |
---|
17 | 21 | | true |
---|
18 | 22 | | case _ => |
---|
19 | 23 | | true |
---|
20 | 24 | | } |
---|