tx · 2nHLFUuvZEqXEQtjswLs1NNggA24oWbA16kGYsvCcxCM
3MpZf6FEP5tyf7BrQ4RXJHUu3kG2JRM3tw8: -1.00000000 Waves
2019.07.04 21:29 [571079] smart asset 3MpZf6FEP5tyf7BrQ4RXJHUu3kG2JRM3tw8 > SELF 0.00 KYRA
{
"type": 15,
"id": "2nHLFUuvZEqXEQtjswLs1NNggA24oWbA16kGYsvCcxCM",
"fee": 100000000,
"feeAssetId": null,
"timestamp": 1562264896885,
"version": 1,
"sender": "3MpZf6FEP5tyf7BrQ4RXJHUu3kG2JRM3tw8",
"senderPublicKey": "Chg39hbmDb872TVhEGY5Axf47BEMRW4RgFetXnWhuJuu",
"proofs": [
"3reTWy1mFQod84FXTfGyRoWVmX6mdoJ6JL8CPmGbJ6SX5FdC7TwVLWSiUYwgAxEzoWU2Tid7Yp6PGbg6oJmyrFd8"
],
"assetId": "5UFVXMNAkQMEYmJeQN3Bux1j8CzLEjsK92fgSV6kaWnr",
"script": "base64:AwQAAAAFcHJpY2UAAAAAAlQL5AAEAAAAByRtYXRjaDAFAAAAAnR4AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABNFeGNoYW5nZVRyYW5zYWN0aW9uBAAAAAFlBQAAAAckbWF0Y2gwBAAAAARwYWlyCAgFAAAAAWUAAAAIYnV5T3JkZXIAAAAJYXNzZXRQYWlyBAAAAA50cmFkZWRGb3JXYXZlcwMJAQAAAAEhAAAAAQkBAAAACWlzRGVmaW5lZAAAAAEIBQAAAARwYWlyAAAAC2Ftb3VudEFzc2V0BgkBAAAAASEAAAABCQEAAAAJaXNEZWZpbmVkAAAAAQgFAAAABHBhaXIAAAAKcHJpY2VBc3NldAMDBQAAAA50cmFkZWRGb3JXYXZlcwkAAGcAAAACCAUAAAABZQAAAAVwcmljZQUAAAAFcHJpY2UHCQAAAAAAAAIIBQAAAAFlAAAABmFtb3VudAAAAAAABfXhAAcGeroLRw==",
"chainId": 84,
"height": 571079,
"spentComplexity": 0
}
View: original | compacted
Prev: HEyjaedqamWUADxpXjo7sdCXiZdH6WDqqYgVxoSMo6Qk
Next: 9oKXJ7LsbgK3FZiR73CcTrnj5fgr5xqgQ2SghC95BW5Y
Diff:
Old | New | | Differences |
---|
7 | 7 | | let tradedForWaves = if (!(isDefined(pair.amountAsset))) |
---|
8 | 8 | | then true |
---|
9 | 9 | | else !(isDefined(pair.priceAsset)) |
---|
10 | | - | if (tradedForWaves) |
---|
| 10 | + | if (if (tradedForWaves) |
---|
11 | 11 | | then (e.price >= price) |
---|
| 12 | + | else false) |
---|
| 13 | + | then (e.amount == 100000000) |
---|
12 | 14 | | else false |
---|
13 | 15 | | case _ => |
---|
14 | 16 | | true |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 3 #-} |
---|
2 | 2 | | {-# CONTENT_TYPE EXPRESSION #-} |
---|
3 | 3 | | let price = 10000000000 |
---|
4 | 4 | | match tx { |
---|
5 | 5 | | case e: ExchangeTransaction => |
---|
6 | 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 | | - | if (tradedForWaves) |
---|
| 10 | + | if (if (tradedForWaves) |
---|
11 | 11 | | then (e.price >= price) |
---|
| 12 | + | else false) |
---|
| 13 | + | then (e.amount == 100000000) |
---|
12 | 14 | | else false |
---|
13 | 15 | | case _ => |
---|
14 | 16 | | true |
---|
15 | 17 | | } |
---|