tx · DamLFyVxKFgQu8pLZ9LN22FzvWLGpmbihv8VYzyML2PW
3MvujUZTtoANRzrKYKzx99Vtb9TUh6VPCDm: -1.00000000 Waves
2019.07.11 19:10 [581255] smart asset 3MvujUZTtoANRzrKYKzx99Vtb9TUh6VPCDm > SELF 0.00000000 sicasicachu
{
"type": 15,
"id": "DamLFyVxKFgQu8pLZ9LN22FzvWLGpmbihv8VYzyML2PW",
"fee": 100000000,
"feeAssetId": null,
"timestamp": 1562861468476,
"version": 1,
"sender": "3MvujUZTtoANRzrKYKzx99Vtb9TUh6VPCDm",
"senderPublicKey": "GwAQybf677Q8jDYJ7x9GQTR8A5kyGEXtUmgbWGxovnAP",
"proofs": [
"6JPkguDdBrLGvhfRufnrC9KeRubE1SNffwMLTzf5vBKaASwtj2n51bDNR2KCfgDziaAZCUM4kvGMtdpbyMxnL4w"
],
"assetId": "EEkfh7kwwAMyUaW9rCACMSCQa7YdsjiD8AeaPZMEWghP",
"script": "base64:AwQAAAAKTmV3QXNzZXRJZAEAAAAgxK3a6C4MqaycLSY3YjxpZCNbx0AVyytghj+kclYY6HoEAAAACWFuQXNzZXRJZAEAAAAgGzjoWofi8/gmWw79C3tGz56RCNKMpZuetQB9yTq7qfIEAAAADXNlbGxlckFkZHJlc3MBAAAAGgFU/RDDq6XvYWhhCGdyTxxzEoTpUn6Sjg1bBAAAAAckbWF0Y2gwBQAAAAJ0eAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAATRXhjaGFuZ2VUcmFuc2FjdGlvbgQAAAABdAUAAAAHJG1hdGNoMAMJAQAAAAIhPQAAAAIICAgFAAAAAXQAAAAJc2VsbE9yZGVyAAAACWFzc2V0UGFpcgAAAApwcmljZUFzc2V0BQAAAAlhbkFzc2V0SWQGAwkAAAAAAAACCAgIBQAAAAF0AAAACXNlbGxPcmRlcgAAAAlhc3NldFBhaXIAAAAKcHJpY2VBc3NldAUAAAAJYW5Bc3NldElkCQAAAAAAAAIICAUAAAABdAAAAAlzZWxsT3JkZXIAAAAGc2VuZGVyCQEAAAAHQWRkcmVzcwAAAAEFAAAADXNlbGxlckFkZHJlc3MHBguq3bc=",
"chainId": 84,
"height": 581255,
"spentComplexity": 0
}
View: original | compacted
Prev: 5yfig6qojcpVpdCgfdZhvSACKVCXPUpvrtmZBGgbcNBZ
Next: none
Diff:
Old | New | | Differences |
---|
7 | 7 | | case t: ExchangeTransaction => |
---|
8 | 8 | | if ((t.sellOrder.assetPair.priceAsset != anAssetId)) |
---|
9 | 9 | | then true |
---|
10 | | - | else (t.sellOrder.assetPair.priceAsset == anAssetId) |
---|
| 10 | + | else if ((t.sellOrder.assetPair.priceAsset == anAssetId)) |
---|
| 11 | + | then (t.sellOrder.sender == Address(sellerAddress)) |
---|
| 12 | + | else false |
---|
11 | 13 | | case _ => |
---|
12 | 14 | | true |
---|
13 | 15 | | } |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 3 #-} |
---|
2 | 2 | | {-# CONTENT_TYPE EXPRESSION #-} |
---|
3 | 3 | | let NewAssetId = base58'EEkfh7kwwAMyUaW9rCACMSCQa7YdsjiD8AeaPZMEWghP' |
---|
4 | 4 | | let anAssetId = base58'2qGLZU2u7JDASt4fiqGFXKMrPo4h3xiLvotrFgUGVyvZ' |
---|
5 | 5 | | let sellerAddress = base58'3NCzApG3ka4tvDuKX8HxnJtXe7eJw5PmdVt' |
---|
6 | 6 | | match tx { |
---|
7 | 7 | | case t: ExchangeTransaction => |
---|
8 | 8 | | if ((t.sellOrder.assetPair.priceAsset != anAssetId)) |
---|
9 | 9 | | then true |
---|
10 | | - | else (t.sellOrder.assetPair.priceAsset == anAssetId) |
---|
| 10 | + | else if ((t.sellOrder.assetPair.priceAsset == anAssetId)) |
---|
| 11 | + | then (t.sellOrder.sender == Address(sellerAddress)) |
---|
| 12 | + | else false |
---|
11 | 13 | | case _ => |
---|
12 | 14 | | true |
---|
13 | 15 | | } |
---|