tx · CN6AFL58wQDWxUE57yhakF2vFnLUdJpjkjee23hzGNfH
3MtHweJiyA6ikkkPCn4ssqpi4Nokcrf9hT9: -1.00000000 Waves
2019.03.18 04:43 [541031] smart asset 3MtHweJiyA6ikkkPCn4ssqpi4Nokcrf9hT9 > SELF 0.00000000 serrote
{
"type": 15,
"id": "CN6AFL58wQDWxUE57yhakF2vFnLUdJpjkjee23hzGNfH",
"fee": 100000000,
"feeAssetId": null,
"timestamp": 1552873397328,
"version": 1,
"sender": "3MtHweJiyA6ikkkPCn4ssqpi4Nokcrf9hT9",
"senderPublicKey": "5HwUTPzUP1wy7djMELX2wLNmasSaARD4kw1xpAyeJw1h",
"proofs": [
"2TBAQcjvZmHx6gfeweEQ9oCUrwNMRiTxNeSVqvHKXwbkXAubFXQ6TFYtn26NEgbKAvg7GaAbfiMUD4GJEsjuTZzF"
],
"assetId": "CpMnMP75j2vyK5cGaiVsLTgFTfxgFcFLMnVUshzzeHrA",
"script": "base64:AgQAAAAFcHJpY2UAAAAAAACYloAEAAAAByRtYXRjaDAFAAAAAnR4AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABNFeGNoYW5nZVRyYW5zYWN0aW9uBAAAAAFlBQAAAAckbWF0Y2gwBAAAAARwYWlyCAgFAAAAAWUAAAAJc2VsbE9yZGVyAAAACWFzc2V0UGFpcgQAAAAOdHJhZGVkRm9yV2F2ZXMDCQEAAAABIQAAAAEJAQAAAAlpc0RlZmluZWQAAAABCAUAAAAEcGFpcgAAAAthbW91bnRBc3NldAYJAQAAAAEhAAAAAQkBAAAACWlzRGVmaW5lZAAAAAEIBQAAAARwYWlyAAAACnByaWNlQXNzZXQDBQAAAA50cmFkZWRGb3JXYXZlcwkAAAAAAAACCAUAAAABZQAAAAZhbW91bnQFAAAABXByaWNlBwa9wT9H",
"chainId": 84,
"height": 541031,
"spentComplexity": 0
}
View: original | compacted
Prev: none
Next: 72x76ibkZpjP4xwQa55ESLKcLhgZ5Bq2cUdWMej1Xcgb
Full:
Old | New | | Differences |
---|
1 | | - | # no script |
---|
| 1 | + | {-# STDLIB_VERSION 2 #-} |
---|
| 2 | + | {-# CONTENT_TYPE EXPRESSION #-} |
---|
| 3 | + | let price = 10000000 |
---|
| 4 | + | match tx { |
---|
| 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.amount == price) |
---|
| 12 | + | else false |
---|
| 13 | + | case _ => |
---|
| 14 | + | true |
---|
| 15 | + | } |
---|