tx · 4CMLRvN7mEEjZpQALC9TnymEAVk79fmApf7d1VL8nvQr
3Mqg7LwuHRY3GQjz8dbCFvHDQb33gWNFaSA: -1.00000000 Waves
2019.01.14 15:49 [449666] smart asset 3Mqg7LwuHRY3GQjz8dbCFvHDQb33gWNFaSA > SELF 0.00000000 DexLotto04
{
"type": 15,
"id": "4CMLRvN7mEEjZpQALC9TnymEAVk79fmApf7d1VL8nvQr",
"fee": 100000000,
"feeAssetId": null,
"timestamp": 1547470204068,
"version": 1,
"sender": "3Mqg7LwuHRY3GQjz8dbCFvHDQb33gWNFaSA",
"senderPublicKey": "Eu5ZUHQswbdySVdGsEw7y2MrKCJGPvjkFtyf1YVoJLfH",
"proofs": [
"4Ai8J6w4Fwwr1QN7zKWz2NVdzKQh4W4mVHp8nCryFJQswskoCJ5XHGEkotutqhh9DWZieR7mhovtTUGaeFVYjo7n"
],
"assetId": "HZXhef3KRrLHJiVpVVdbDWbYNTdXoYY4FYhVt6AyAJzQ",
"script": "base64:AQQAAAAFbG90dG8BAAAAIM5/SbYnQBvmeWPjlbnQqjja9sn0WmqR6XNSaCaPDtkgBAAAAAckbWF0Y2gwBQAAAAJ0eAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAATRXhjaGFuZ2VUcmFuc2FjdGlvbgQAAAABZQUAAAAHJG1hdGNoMAMDCQEAAAABIQAAAAEJAQAAAAlpc0RlZmluZWQAAAABCAgIBQAAAAFlAAAACXNlbGxPcmRlcgAAAAlhc3NldFBhaXIAAAAKcHJpY2VBc3NldAYJAQAAAAEhAAAAAQkBAAAACWlzRGVmaW5lZAAAAAEICAgFAAAAAWUAAAAIYnV5T3JkZXIAAAAJYXNzZXRQYWlyAAAACnByaWNlQXNzZXQDCQAAAAAAAAIICAUAAAABZQAAAAlzZWxsT3JkZXIAAAAFcHJpY2UAAAAAAAAAAAEGAwMJAQAAAAIhPQAAAAIICAUAAAABZQAAAAhidXlPcmRlcgAAAA9zZW5kZXJQdWJsaWNLZXkFAAAABWxvdHRvCQAAZgAAAAIICAUAAAABZQAAAAlzZWxsT3JkZXIAAAAFcHJpY2UAAAAAAAAAAAEHCQAAAAAAAAIJAQAAAA50YWtlUmlnaHRCeXRlcwAAAAIJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAAAAAAAAAAAAQkAAZsAAAABAgAAAAFXBgYGaTvmMw==",
"chainId": 84,
"height": 449666,
"spentComplexity": 0
}
View: original | compacted
Prev: 3hUBcteXM6z9NemtXdMAe87oLetwyojiZMeisFvDvnN1
Next: Aa2BMPYsassFDFJbfk1duzkHHCgV1ZaroeaJrLuUq4ee
Diff:
Old | New | | Differences |
---|
8 | 8 | | else !(isDefined(e.buyOrder.assetPair.priceAsset))) |
---|
9 | 9 | | then if ((e.sellOrder.price == 1)) |
---|
10 | 10 | | then true |
---|
11 | | - | else if ((e.buyOrder.senderPublicKey != lotto)) |
---|
12 | | - | then true |
---|
13 | | - | else false |
---|
| 11 | + | else if (if ((e.buyOrder.senderPublicKey != lotto)) |
---|
| 12 | + | then (e.sellOrder.price > 1) |
---|
| 13 | + | else false) |
---|
| 14 | + | then (takeRightBytes(tx.proofs[0], 1) == toBytes("W")) |
---|
| 15 | + | else true |
---|
14 | 16 | | else true |
---|
15 | 17 | | case _ => |
---|
16 | 18 | | true |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 1 #-} |
---|
2 | 2 | | {-# CONTENT_TYPE EXPRESSION #-} |
---|
3 | 3 | | let lotto = base58'Eu5ZUHQswbdySVdGsEw7y2MrKCJGPvjkFtyf1YVoJLfH' |
---|
4 | 4 | | match tx { |
---|
5 | 5 | | case e: ExchangeTransaction => |
---|
6 | 6 | | if (if (!(isDefined(e.sellOrder.assetPair.priceAsset))) |
---|
7 | 7 | | then true |
---|
8 | 8 | | else !(isDefined(e.buyOrder.assetPair.priceAsset))) |
---|
9 | 9 | | then if ((e.sellOrder.price == 1)) |
---|
10 | 10 | | then true |
---|
11 | | - | else if ((e.buyOrder.senderPublicKey != lotto)) |
---|
12 | | - | then true |
---|
13 | | - | else false |
---|
| 11 | + | else if (if ((e.buyOrder.senderPublicKey != lotto)) |
---|
| 12 | + | then (e.sellOrder.price > 1) |
---|
| 13 | + | else false) |
---|
| 14 | + | then (takeRightBytes(tx.proofs[0], 1) == toBytes("W")) |
---|
| 15 | + | else true |
---|
14 | 16 | | else true |
---|
15 | 17 | | case _ => |
---|
16 | 18 | | true |
---|
17 | 19 | | } |
---|