tx · 3AM81A1eCL2mx7rxLU1FELDn6yeYybzsSgeDfcgxDhgt
3Muet8GgfyC6Xd1Qv7TNjqT2N4dUwmJPfXC: -1.00000000 Waves
2019.03.21 10:06 [545722] smart asset 3Muet8GgfyC6Xd1Qv7TNjqT2N4dUwmJPfXC > SELF 0.00 PAR7777
{
"type": 15,
"id": "3AM81A1eCL2mx7rxLU1FELDn6yeYybzsSgeDfcgxDhgt",
"fee": 100000000,
"feeAssetId": null,
"timestamp": 1553151874987,
"version": 1,
"sender": "3Muet8GgfyC6Xd1Qv7TNjqT2N4dUwmJPfXC",
"senderPublicKey": "74wMvThvfXfuxPa3JAiDoBuzpWD4wkZuLPVG2BigeUVi",
"proofs": [
"2dVGkQKywrBZy88mwdHP6qm52XFWy5vivEyei33E4jAmn1d2W8hazMz33qgF2CGn1e2ovFzsNx3UAVnKVNiJ11h4"
],
"assetId": "2M1AS3FfpEpUXoHMBGoBH7MxVTMNVt4GcSvFQtcjxaGY",
"script": "base64:AgQAAAAFcHJpY2UAAAAAADuaygAEAAAAByRtYXRjaDAFAAAAAnR4AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABNFeGNoYW5nZVRyYW5zYWN0aW9uBAAAAAFlBQAAAAckbWF0Y2gwBAAAAARwYWlyCAgFAAAAAWUAAAAIYnV5T3JkZXIAAAAJYXNzZXRQYWlyBAAAAA50cmFkZWRGb3JXYXZlcwMJAQAAAAEhAAAAAQkBAAAACWlzRGVmaW5lZAAAAAEIBQAAAARwYWlyAAAAC2Ftb3VudEFzc2V0BgkBAAAAASEAAAABCQEAAAAJaXNEZWZpbmVkAAAAAQgFAAAABHBhaXIAAAAKcHJpY2VBc3NldAMFAAAADnRyYWRlZEZvcldhdmVzCQAAZwAAAAIICAUAAAABZQAAAAhidXlPcmRlcgAAAAVwcmljZQUAAAAFcHJpY2UHAwMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAZU2V0QXNzZXRTY3JpcHRUcmFuc2FjdGlvbgYDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAF01hc3NUcmFuc2ZlclRyYW5zYWN0aW9uBgkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABNUcmFuc2ZlclRyYW5zYWN0aW9uBgc4R5tM",
"chainId": 84,
"height": 545722,
"spentComplexity": 0
}
View: original | compacted
Prev: 8nJSMkDdRtfdsduwDtQxf9GUC6q12N5EgdjADBdSwSxu
Next: 3phkkfXfjqtua1pxYrG2qtNA8hUQBnz8sSS7FMSD27Ew
Diff:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 2 #-} |
---|
2 | 2 | | {-# CONTENT_TYPE EXPRESSION #-} |
---|
3 | | - | let price = 100000000 |
---|
| 3 | + | let price = 1000000000 |
---|
4 | 4 | | match tx { |
---|
5 | 5 | | case e: ExchangeTransaction => |
---|
6 | | - | let pair = e.sellOrder.assetPair |
---|
| 6 | + | let pair = e.buyOrder.assetPair |
---|
7 | 7 | | let tradedForWaves = if (!(isDefined(pair.amountAsset))) |
---|
8 | 8 | | then true |
---|
9 | 9 | | else !(isDefined(pair.priceAsset)) |
---|
10 | 10 | | if (tradedForWaves) |
---|
11 | | - | then (e.sellOrder.price > price) |
---|
| 11 | + | then (e.buyOrder.price >= price) |
---|
12 | 12 | | else false |
---|
13 | | - | case s: SetAssetScriptTransaction => |
---|
| 13 | + | case _: SetAssetScriptTransaction|MassTransferTransaction|TransferTransaction => |
---|
14 | 14 | | true |
---|
15 | 15 | | case _ => |
---|
16 | 16 | | false |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 2 #-} |
---|
2 | 2 | | {-# CONTENT_TYPE EXPRESSION #-} |
---|
3 | | - | let price = 100000000 |
---|
| 3 | + | let price = 1000000000 |
---|
4 | 4 | | match tx { |
---|
5 | 5 | | case e: ExchangeTransaction => |
---|
6 | | - | let pair = e.sellOrder.assetPair |
---|
| 6 | + | let pair = e.buyOrder.assetPair |
---|
7 | 7 | | let tradedForWaves = if (!(isDefined(pair.amountAsset))) |
---|
8 | 8 | | then true |
---|
9 | 9 | | else !(isDefined(pair.priceAsset)) |
---|
10 | 10 | | if (tradedForWaves) |
---|
11 | | - | then (e.sellOrder.price > price) |
---|
| 11 | + | then (e.buyOrder.price >= price) |
---|
12 | 12 | | else false |
---|
13 | | - | case s: SetAssetScriptTransaction => |
---|
| 13 | + | case _: SetAssetScriptTransaction|MassTransferTransaction|TransferTransaction => |
---|
14 | 14 | | true |
---|
15 | 15 | | case _ => |
---|
16 | 16 | | false |
---|
17 | 17 | | } |
---|