tx · EyXTdk7dctSC1tPGqs1EF4tKebvRShJSnmhQriHQyYXa
3Muet8GgfyC6Xd1Qv7TNjqT2N4dUwmJPfXC: -1.00000000 Waves
2019.03.25 05:45 [551296] smart asset 3Muet8GgfyC6Xd1Qv7TNjqT2N4dUwmJPfXC > SELF 0.00 ccccc
{
"type": 15,
"id": "EyXTdk7dctSC1tPGqs1EF4tKebvRShJSnmhQriHQyYXa",
"fee": 100000000,
"feeAssetId": null,
"timestamp": 1553481951969,
"version": 1,
"sender": "3Muet8GgfyC6Xd1Qv7TNjqT2N4dUwmJPfXC",
"senderPublicKey": "74wMvThvfXfuxPa3JAiDoBuzpWD4wkZuLPVG2BigeUVi",
"proofs": [
"4E7jh8f86Uw1moaP7nHoeiptd2mVnJURAGUf8UZkaKFfmdp1zwPQAzurAQr32LF8itsChYbfjezFQ2PbTv7hSN8P"
],
"assetId": "6a8EtSnqp87GTjKdTvh4QrKUmvunv4VCtSh8Sv3vMbbS",
"script": "base64:AgQAAAAGUEFSN0lkAQAAACAV1H/l5cWNjbkUNHs7Af1VBfGHG5yTzOl2QaphBQ5sUAQAAAAFUHJpY2UAAAAAAAAAA+gEAAAAByRtYXRjaDAFAAAAAnR4AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABNFeGNoYW5nZVRyYW5zYWN0aW9uBAAAAAFlBQAAAAckbWF0Y2gwAwMDCQAAAAAAAAIICAgFAAAAAWUAAAAJc2VsbE9yZGVyAAAACWFzc2V0UGFpcgAAAApwcmljZUFzc2V0BQAAAAZQQVI3SWQJAAAAAAAAAggICAUAAAABZQAAAAhidXlPcmRlcgAAAAlhc3NldFBhaXIAAAAKcHJpY2VBc3NldAUAAAAGUEFSN0lkBwkAAAAAAAACCAUAAAABZQAAAAVwcmljZQUAAAAFUHJpY2UHBgkAAAIAAAABAgAAAEJOb3cgeW91IGNhbiBvbmx5IGV4Y2hhbmdlIHN3YXAgUEFSNyAhIFRoYW5rIHlvdSBmb3IgeW91ciBwYXRpZW5jZS4GrVyDVA==",
"chainId": 84,
"height": 551296,
"spentComplexity": 0
}
View: original | compacted
Prev: 9rkPgLQBbWzcjSmYgZdghKozkaTmSSu4V6AEZnCSvmCW
Next: 3P3aqi6Dn4XZV5FG5jMnDkseGukm3JvkJr5rr9TZLHan
Diff:
Old | New | | Differences |
---|
4 | 4 | | let Price = 1000 |
---|
5 | 5 | | match tx { |
---|
6 | 6 | | case e: ExchangeTransaction => |
---|
7 | | - | if (if ((e.sellOrder.assetPair.priceAsset == PAR7Id)) |
---|
| 7 | + | if (if (if ((e.sellOrder.assetPair.priceAsset == PAR7Id)) |
---|
| 8 | + | then (e.buyOrder.assetPair.priceAsset == PAR7Id) |
---|
| 9 | + | else false) |
---|
8 | 10 | | then (e.price == Price) |
---|
9 | | - | else false) |
---|
10 | | - | then true |
---|
11 | | - | else throw("Now you can only exchange swap PAR7 ! Thank you for your patience.") |
---|
12 | | - | case a: ExchangeTransaction => |
---|
13 | | - | if (if ((a.buyOrder.assetPair.priceAsset == PAR7Id)) |
---|
14 | | - | then (a.price == Price) |
---|
15 | 11 | | else false) |
---|
16 | 12 | | then true |
---|
17 | 13 | | else throw("Now you can only exchange swap PAR7 ! Thank you for your patience.") |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 2 #-} |
---|
2 | 2 | | {-# CONTENT_TYPE EXPRESSION #-} |
---|
3 | 3 | | let PAR7Id = base58'2UDVrBQuBpyVayA8giH4NjPE5F31WxkD7CzMvNRzZXHh' |
---|
4 | 4 | | let Price = 1000 |
---|
5 | 5 | | match tx { |
---|
6 | 6 | | case e: ExchangeTransaction => |
---|
7 | | - | if (if ((e.sellOrder.assetPair.priceAsset == PAR7Id)) |
---|
| 7 | + | if (if (if ((e.sellOrder.assetPair.priceAsset == PAR7Id)) |
---|
| 8 | + | then (e.buyOrder.assetPair.priceAsset == PAR7Id) |
---|
| 9 | + | else false) |
---|
8 | 10 | | then (e.price == Price) |
---|
9 | | - | else false) |
---|
10 | | - | then true |
---|
11 | | - | else throw("Now you can only exchange swap PAR7 ! Thank you for your patience.") |
---|
12 | | - | case a: ExchangeTransaction => |
---|
13 | | - | if (if ((a.buyOrder.assetPair.priceAsset == PAR7Id)) |
---|
14 | | - | then (a.price == Price) |
---|
15 | 11 | | else false) |
---|
16 | 12 | | then true |
---|
17 | 13 | | else throw("Now you can only exchange swap PAR7 ! Thank you for your patience.") |
---|
18 | 14 | | case _ => |
---|
19 | 15 | | true |
---|
20 | 16 | | } |
---|