tx · ESrUwJxTKRsJ1KwV4SDssisSf2fc9hVPgsYGZhPnAtBP
3Muet8GgfyC6Xd1Qv7TNjqT2N4dUwmJPfXC: -1.00000000 Waves
2019.03.21 07:25 [545552] smart asset 3Muet8GgfyC6Xd1Qv7TNjqT2N4dUwmJPfXC > SELF 0.00 PAR ZERO
{
"type": 15,
"id": "ESrUwJxTKRsJ1KwV4SDssisSf2fc9hVPgsYGZhPnAtBP",
"fee": 100000000,
"feeAssetId": null,
"timestamp": 1553142059342,
"version": 1,
"sender": "3Muet8GgfyC6Xd1Qv7TNjqT2N4dUwmJPfXC",
"senderPublicKey": "74wMvThvfXfuxPa3JAiDoBuzpWD4wkZuLPVG2BigeUVi",
"proofs": [
"55bDCyvgqiTfi7tskNKhq59kvQdyF2kFukJ6MBgvgtGpD8tkD4zHBf7CmkMWLn4KgjKyKANYLbdk5MJNunCvhRTN"
],
"assetId": "HijwxGkayqBU8eA6g35Sa1FbRzGvfeXDWKDFhD9hUSEs",
"script": "base64:AgQAAAAFcHJpY2UAAAAAAACYloAEAAAAByRtYXRjaDAFAAAAAnR4AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABNFeGNoYW5nZVRyYW5zYWN0aW9uBAAAAAFlBQAAAAckbWF0Y2gwBAAAAARwYWlyCAgFAAAAAWUAAAAJc2VsbE9yZGVyAAAACWFzc2V0UGFpcgQAAAAOdHJhZGVkRm9yV2F2ZXMDCQEAAAABIQAAAAEJAQAAAAlpc0RlZmluZWQAAAABCAUAAAAEcGFpcgAAAAthbW91bnRBc3NldAYJAQAAAAEhAAAAAQkBAAAACWlzRGVmaW5lZAAAAAEIBQAAAARwYWlyAAAACnByaWNlQXNzZXQDBQAAAA50cmFkZWRGb3JXYXZlcwkAAGcAAAACCAgFAAAAAWUAAAAJc2VsbE9yZGVyAAAABXByaWNlBQAAAAVwcmljZQcGsSY9jg==",
"chainId": 84,
"height": 545552,
"spentComplexity": 0
}
View: original | compacted
Prev: 7LV7EbLvZypjs4Yumf2UQ8xDkhdxoof2MmPwKPywRUzc
Next: 2HTwZWg1nuvCthRDFjxB4NMqHwc4FDDsj99yJAu1Ntfv
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 2 #-} |
---|
2 | 2 | | {-# CONTENT_TYPE EXPRESSION #-} |
---|
| 3 | + | let price = 10000000 |
---|
3 | 4 | | match tx { |
---|
4 | | - | case t: ExchangeTransaction|MassTransferTransaction|BurnTransaction => |
---|
5 | | - | false |
---|
| 5 | + | case e: ExchangeTransaction => |
---|
| 6 | + | let pair = e.sellOrder.assetPair |
---|
| 7 | + | let tradedForWaves = if (!(isDefined(pair.amountAsset))) |
---|
| 8 | + | then true |
---|
| 9 | + | else !(isDefined(pair.priceAsset)) |
---|
| 10 | + | if (tradedForWaves) |
---|
| 11 | + | then (e.sellOrder.price >= price) |
---|
| 12 | + | else false |
---|
6 | 13 | | case _ => |
---|
7 | 14 | | true |
---|
8 | 15 | | } |
---|