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