tx · 98vBsury8VxcRCw4ySZ1WjkN7EaC1u2cyVbBNJDYLVqL
3MpZf6FEP5tyf7BrQ4RXJHUu3kG2JRM3tw8: -1.00000000 Waves
2019.07.04 21:23 [571072] smart asset 3MpZf6FEP5tyf7BrQ4RXJHUu3kG2JRM3tw8 > SELF 0.00 KYRA
{
"type": 15,
"id": "98vBsury8VxcRCw4ySZ1WjkN7EaC1u2cyVbBNJDYLVqL",
"fee": 100000000,
"feeAssetId": null,
"timestamp": 1562264492981,
"version": 1,
"sender": "3MpZf6FEP5tyf7BrQ4RXJHUu3kG2JRM3tw8",
"senderPublicKey": "Chg39hbmDb872TVhEGY5Axf47BEMRW4RgFetXnWhuJuu",
"proofs": [
"3tRir4Htm3j84pZ13mpyxXThsyW8DeYNJ6ePjD1siHXWwQmdC44mzDN6c2ijKCJoE2ypqVpAsCy5MUCyFWDQ6po2"
],
"assetId": "5UFVXMNAkQMEYmJeQN3Bux1j8CzLEjsK92fgSV6kaWnr",
"script": "base64:AwQAAAAFcHJpY2UAAAAAAlQL5AAEAAAAByRtYXRjaDAFAAAAAnR4AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABNFeGNoYW5nZVRyYW5zYWN0aW9uBAAAAAFlBQAAAAckbWF0Y2gwBAAAAARwYWlyCAgFAAAAAWUAAAAIYnV5T3JkZXIAAAAJYXNzZXRQYWlyBAAAAA50cmFkZWRGb3JXYXZlcwMJAQAAAAEhAAAAAQkBAAAACWlzRGVmaW5lZAAAAAEIBQAAAARwYWlyAAAAC2Ftb3VudEFzc2V0BgkBAAAAASEAAAABCQEAAAAJaXNEZWZpbmVkAAAAAQgFAAAABHBhaXIAAAAKcHJpY2VBc3NldAMDBQAAAA50cmFkZWRGb3JXYXZlcwkAAGcAAAACCAUAAAABZQAAAAVwcmljZQUAAAAFcHJpY2UHCQAAZwAAAAIIBQAAAAFlAAAABmFtb3VudAUAAAAFcHJpY2UHBud+tIg=",
"chainId": 84,
"height": 571072,
"spentComplexity": 0
}
View: original | compacted
Prev: none
Next: 6PUGCSnQQatqQ5kSUrfKp9HXvPyeV6xmbV8KDwGAo8Wx
Full:
Old | New | | Differences |
---|
1 | | - | # no script |
---|
| 1 | + | {-# STDLIB_VERSION 3 #-} |
---|
| 2 | + | {-# CONTENT_TYPE EXPRESSION #-} |
---|
| 3 | + | let price = 10000000000 |
---|
| 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 (if (tradedForWaves) |
---|
| 11 | + | then (e.price >= price) |
---|
| 12 | + | else false) |
---|
| 13 | + | then (e.amount >= price) |
---|
| 14 | + | else false |
---|
| 15 | + | case _ => |
---|
| 16 | + | true |
---|
| 17 | + | } |
---|