tx · H7akvjykD19aRRycLJeEmdLStxHTgCAxK6fFNNtEyj4G
3N5EYBTAEfEALhE15d6B2ZL7yu27enxMedz: -1.00000000 Waves
2019.03.05 12:16 [522427] smart asset 3N5EYBTAEfEALhE15d6B2ZL7yu27enxMedz > SELF 0.00000000 TokenA
{
"type": 15,
"id": "H7akvjykD19aRRycLJeEmdLStxHTgCAxK6fFNNtEyj4G",
"fee": 100000000,
"feeAssetId": null,
"timestamp": 1551777366684,
"version": 1,
"sender": "3N5EYBTAEfEALhE15d6B2ZL7yu27enxMedz",
"senderPublicKey": "JAjDSSQ1LdVR1jVcWbdn3UqCUA1xuQeLqTTkZUKRVddL",
"proofs": [
"2M9r6oRXCTdMbwAJDv7ySqFoWE7f7rtRnqqbfwVcWzPBxKSoA8jhV3bXrFj5hkvZPfLLgUEnWCCC3AW7TdAUgRUe"
],
"assetId": "4fCneYmvnZeX4wfUjmKV3dmtGBEubPe5oMgK1noeU35r",
"script": "base64:AgQAAAANTWluV2F2ZXNQcmljZQAAAAAAAAGGoAQAAAACbWUIBQAAAAJ0eAAAAAZzZW5kZXIEAAAABmlzc3VlcgkBAAAAB0FkZHJlc3MAAAABAQAAABoBVKgHapxItJail6/jw+jLQ0bSKJwdgkNEhQMJAAAAAAAAAgUAAAACbWUFAAAABmlzc3VlcgQAAAAHJG1hdGNoMAUAAAACdHgDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAE0V4Y2hhbmdlVHJhbnNhY3Rpb24EAAAAAXQFAAAAByRtYXRjaDAGBgQAAAAHJG1hdGNoMAUAAAACdHgDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAE0V4Y2hhbmdlVHJhbnNhY3Rpb24EAAAAAWUFAAAAByRtYXRjaDADCQEAAAABIQAAAAEJAQAAAAlpc0RlZmluZWQAAAABCAgIBQAAAAFlAAAACXNlbGxPcmRlcgAAAAlhc3NldFBhaXIAAAAKcHJpY2VBc3NldAMJAAAAAAAAAggIBQAAAAFlAAAACGJ1eU9yZGVyAAAACW9yZGVyVHlwZQUAAAADQnV5AwkAAGcAAAACCAgFAAAAAWUAAAAIYnV5T3JkZXIAAAAFcHJpY2UFAAAADU1pbldhdmVzUHJpY2UGBAAAAAlXQVZlcnJTdHIJAAEsAAAAAgkAASwAAAACAgAAABZNaW5pbWFsIFdBVkVTIHByaWNlID0gCQABpAAAAAEFAAAADU1pbldhdmVzUHJpY2UCAAAACiB3YXZlbGV0cy4JAAACAAAAAQUAAAAJV0FWZXJyU3RyBgQAAAAJRGVmRXJyU3RyAgAAACJPbmx5IHRyYWRpbmcgYWdhaW5zdCBXQVZFUyBhbGxvd2VkCQAAAgAAAAEFAAAACURlZkVyclN0cgbw7o7M",
"chainId": 84,
"height": 522427,
"spentComplexity": 0
}
View: original | compacted
Prev: 6effrPwHqnaeb8vu6ijfajEQoChr3MNqGCEy4EFxrp7r
Next: none
Diff:
Old | New | | Differences |
---|
4 | 4 | | let me = tx.sender |
---|
5 | 5 | | let issuer = Address(base58'3N5EYBTAEfEALhE15d6B2ZL7yu27enxMedz') |
---|
6 | 6 | | if ((me == issuer)) |
---|
7 | | - | then true |
---|
| 7 | + | then match tx { |
---|
| 8 | + | case t: ExchangeTransaction => |
---|
| 9 | + | true |
---|
| 10 | + | case _ => |
---|
| 11 | + | true |
---|
| 12 | + | } |
---|
8 | 13 | | else match tx { |
---|
9 | 14 | | case e: ExchangeTransaction => |
---|
10 | 15 | | if (!(isDefined(e.sellOrder.assetPair.priceAsset))) |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 2 #-} |
---|
2 | 2 | | {-# CONTENT_TYPE EXPRESSION #-} |
---|
3 | 3 | | let MinWavesPrice = 100000 |
---|
4 | 4 | | let me = tx.sender |
---|
5 | 5 | | let issuer = Address(base58'3N5EYBTAEfEALhE15d6B2ZL7yu27enxMedz') |
---|
6 | 6 | | if ((me == issuer)) |
---|
7 | | - | then true |
---|
| 7 | + | then match tx { |
---|
| 8 | + | case t: ExchangeTransaction => |
---|
| 9 | + | true |
---|
| 10 | + | case _ => |
---|
| 11 | + | true |
---|
| 12 | + | } |
---|
8 | 13 | | else match tx { |
---|
9 | 14 | | case e: ExchangeTransaction => |
---|
10 | 15 | | if (!(isDefined(e.sellOrder.assetPair.priceAsset))) |
---|
11 | 16 | | then if ((e.buyOrder.orderType == Buy)) |
---|
12 | 17 | | then if ((e.buyOrder.price >= MinWavesPrice)) |
---|
13 | 18 | | then true |
---|
14 | 19 | | else { |
---|
15 | 20 | | let WAVerrStr = (("Minimal WAVES price = " + toString(MinWavesPrice)) + " wavelets.") |
---|
16 | 21 | | throw(WAVerrStr) |
---|
17 | 22 | | } |
---|
18 | 23 | | else true |
---|
19 | 24 | | else { |
---|
20 | 25 | | let DefErrStr = "Only trading against WAVES allowed" |
---|
21 | 26 | | throw(DefErrStr) |
---|
22 | 27 | | } |
---|
23 | 28 | | case _ => |
---|
24 | 29 | | true |
---|
25 | 30 | | } |
---|