tx · 7bQN2JeVKAASp8J1Nhiz71kH5y7sXN7gyGmZRKAREPY5
3N7scAYKUXinMXdBLRFJVu7SpWPMNWDN4Yn: -1.00000000 Waves
2019.03.05 06:14 [522049] smart asset 3N7scAYKUXinMXdBLRFJVu7SpWPMNWDN4Yn > SELF 0.00000000 PROBAA
{
"type": 15,
"id": "7bQN2JeVKAASp8J1Nhiz71kH5y7sXN7gyGmZRKAREPY5",
"fee": 100000000,
"feeAssetId": null,
"timestamp": 1551755662107,
"version": 1,
"sender": "3N7scAYKUXinMXdBLRFJVu7SpWPMNWDN4Yn",
"senderPublicKey": "7XQiLNeBt9NjeipSMMyhb9cU8w217h4afcQS8FN8EM1A",
"proofs": [
"2Gvbv5742W5g1YFgxjHoqvLWtEeX4GUYAoMmdTH6he622eAYUs46wCzKgt23myfEgfykrWxcDUux2F1XJvRja2dq"
],
"assetId": "Eu9uUPUHCRqfQYEr3VXted27iKHAn9xSELQCuwcTKyid",
"script": "base64:AQQAAAAFcHJpY2UAAAAAAAX14QAEAAAAByRtYXRjaDAFAAAAAnR4AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABNFeGNoYW5nZVRyYW5zYWN0aW9uBAAAAAFlBQAAAAckbWF0Y2gwBAAAAARwYWlyCAgFAAAAAWUAAAAIYnV5T3JkZXIAAAAJYXNzZXRQYWlyBAAAAA50cmFkZWRGb3JXYXZlcwMJAQAAAAEhAAAAAQkBAAAACWlzRGVmaW5lZAAAAAEIBQAAAARwYWlyAAAAC2Ftb3VudEFzc2V0BgkBAAAAASEAAAABCQEAAAAJaXNEZWZpbmVkAAAAAQgFAAAABHBhaXIAAAAKcHJpY2VBc3NldAMFAAAADnRyYWRlZEZvcldhdmVzCQAAAAAAAAIIBQAAAAFlAAAABXByaWNlBQAAAAVwcmljZQcGZf7blQ==",
"chainId": 84,
"height": 522049,
"spentComplexity": 0
}
View: original | compacted
Prev: none
Next: none
Full:
Old | New | | Differences |
---|
1 | | - | # no script |
---|
| 1 | + | {-# STDLIB_VERSION 1 #-} |
---|
| 2 | + | {-# CONTENT_TYPE EXPRESSION #-} |
---|
| 3 | + | let price = 100000000 |
---|
| 4 | + | match tx { |
---|
| 5 | + | case e: ExchangeTransaction => |
---|
| 6 | + | let pair = e.buyOrder.assetPair |
---|
| 7 | + | let tradedForWaves = if (!(isDefined(pair.amountAsset))) |
---|
| 8 | + | then true |
---|
| 9 | + | else !(isDefined(pair.priceAsset)) |
---|
| 10 | + | if (tradedForWaves) |
---|
| 11 | + | then (e.price == price) |
---|
| 12 | + | else false |
---|
| 13 | + | case _ => |
---|
| 14 | + | true |
---|
| 15 | + | } |
---|