tx · 2JGPvSdEYKYZXPsRCHDT38NmAPv1HDj27wCcGzbhFH5b
3N5EYBTAEfEALhE15d6B2ZL7yu27enxMedz: -1.00000000 Waves
2019.02.13 10:44 [493057] smart asset 3N5EYBTAEfEALhE15d6B2ZL7yu27enxMedz > SELF 0.00000000 blablatoken1
{
"type": 15,
"id": "2JGPvSdEYKYZXPsRCHDT38NmAPv1HDj27wCcGzbhFH5b",
"fee": 100000000,
"feeAssetId": null,
"timestamp": 1550043869028,
"version": 1,
"sender": "3N5EYBTAEfEALhE15d6B2ZL7yu27enxMedz",
"senderPublicKey": "JAjDSSQ1LdVR1jVcWbdn3UqCUA1xuQeLqTTkZUKRVddL",
"proofs": [
"3uGRb5rcZqhxGy8UokP59W5fM93VhQLNYWgHYjLYhA43KjxUBoHz33E13ZfKXJESaduPXzQM9S5uHYhH3gmqu5me"
],
"assetId": "HNQwJc5YLXdf2LHFmfxr9hL6cY7mAcMGALi5L614XSa5",
"script": "base64:AQQAAAALc3RhcnRIZWlnaHQAAAAAAAAHhfoEAAAACnN0YXJ0UHJpY2UAAAAAAAAmJaAEAAAACGludGVydmFsCQAAaAAAAAIAAAAAAAAAABgAAAAAAAAAADwEAAAAA2V4cAkAAGgAAAACCQAAaAAAAAIAAAAAAAAAAB8AAAAAAAAAADwAAAAAAAAAA+gEAAAAByRtYXRjaDAFAAAAAnR4AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABNFeGNoYW5nZVRyYW5zYWN0aW9uBAAAAAFlBQAAAAckbWF0Y2gwBAAAAARkYXlzCQAAaQAAAAIJAABlAAAAAgUAAAAGaGVpZ2h0BQAAAAtzdGFydEhlaWdodAUAAAAIaW50ZXJ2YWwEAAAADGN1cnJlbnRQcmljZQkAAGQAAAACBQAAAApzdGFydFByaWNlCQAAZAAAAAIAAAAAAAAAAAEJAABoAAAAAgUAAAAEZGF5cwAAAAAAAAehIAMJAQAAAAEhAAAAAQkBAAAACWlzRGVmaW5lZAAAAAEICAgFAAAAAWUAAAAJc2VsbE9yZGVyAAAACWFzc2V0UGFpcgAAAApwcmljZUFzc2V0AwMDCQAAZwAAAAIIBQAAAAFlAAAABXByaWNlBQAAAAxjdXJyZW50UHJpY2UGBAAAAAlXQVZlcnJTdHIJAAEsAAAAAgkAASwAAAACAgAAABZNaW5pbWFsIFdBVkVTIHByaWNlID0gCQABpAAAAAEFAAAADGN1cnJlbnRQcmljZQIAAAAKIHdhdmVsZXRzLgkAAAIAAAABBQAAAAlXQVZlcnJTdHIJAABnAAAAAgUAAAADZXhwCQAAZQAAAAIICAUAAAABZQAAAAlzZWxsT3JkZXIAAAAKZXhwaXJhdGlvbggIBQAAAAFlAAAACXNlbGxPcmRlcgAAAAl0aW1lc3RhbXAHCQAAZwAAAAIFAAAAA2V4cAkAAGUAAAACCAgFAAAAAWUAAAAIYnV5T3JkZXIAAAAKZXhwaXJhdGlvbggIBQAAAAFlAAAACGJ1eU9yZGVyAAAACXRpbWVzdGFtcAcEAAAACURlZkVyclN0cgIAAAAiT25seSB0cmFkaW5nIGFnYWluc3QgV0FWRVMgYWxsb3dlZAkAAAIAAAABBQAAAAlEZWZFcnJTdHIGCGwSIw==",
"chainId": 84,
"height": 493057,
"spentComplexity": 0
}
View: original | compacted
Prev: 7yLuLQAZyH7w9NjtEJneiTt4cQetbYt9Nrd6bMdiXrZ8
Next: 5cfP29uqgjU3V1sLGNkBFzMK6hAoteikJGf2csxWN5EA
Diff:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 1 #-} |
---|
2 | 2 | | {-# CONTENT_TYPE EXPRESSION #-} |
---|
3 | | - | let MinWavesPrice = 2400000 |
---|
| 3 | + | let startHeight = 493050 |
---|
| 4 | + | let startPrice = 2500000 |
---|
| 5 | + | let interval = (24 * 60) |
---|
| 6 | + | let exp = ((31 * 60) * 1000) |
---|
4 | 7 | | match tx { |
---|
5 | 8 | | case e: ExchangeTransaction => |
---|
| 9 | + | let days = ((height - startHeight) / interval) |
---|
| 10 | + | let currentPrice = (startPrice + (1 + (days * 500000))) |
---|
6 | 11 | | if (!(isDefined(e.sellOrder.assetPair.priceAsset))) |
---|
7 | | - | then if ((e.sellOrder.price >= MinWavesPrice)) |
---|
| 12 | + | then if (if (if ((e.price >= currentPrice)) |
---|
8 | 13 | | then true |
---|
9 | 14 | | else { |
---|
10 | | - | let WAVerrStr = (("Minimal WAVES price = " + toString(MinWavesPrice)) + " wavelets.") |
---|
| 15 | + | let WAVerrStr = (("Minimal WAVES price = " + toString(currentPrice)) + " wavelets.") |
---|
11 | 16 | | throw(WAVerrStr) |
---|
12 | | - | } |
---|
| 17 | + | }) |
---|
| 18 | + | then (exp >= (e.sellOrder.expiration - e.sellOrder.timestamp)) |
---|
| 19 | + | else false) |
---|
| 20 | + | then (exp >= (e.buyOrder.expiration - e.buyOrder.timestamp)) |
---|
| 21 | + | else false |
---|
13 | 22 | | else { |
---|
14 | 23 | | let DefErrStr = "Only trading against WAVES allowed" |
---|
15 | 24 | | throw(DefErrStr) |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 1 #-} |
---|
2 | 2 | | {-# CONTENT_TYPE EXPRESSION #-} |
---|
3 | | - | let MinWavesPrice = 2400000 |
---|
| 3 | + | let startHeight = 493050 |
---|
| 4 | + | let startPrice = 2500000 |
---|
| 5 | + | let interval = (24 * 60) |
---|
| 6 | + | let exp = ((31 * 60) * 1000) |
---|
4 | 7 | | match tx { |
---|
5 | 8 | | case e: ExchangeTransaction => |
---|
| 9 | + | let days = ((height - startHeight) / interval) |
---|
| 10 | + | let currentPrice = (startPrice + (1 + (days * 500000))) |
---|
6 | 11 | | if (!(isDefined(e.sellOrder.assetPair.priceAsset))) |
---|
7 | | - | then if ((e.sellOrder.price >= MinWavesPrice)) |
---|
| 12 | + | then if (if (if ((e.price >= currentPrice)) |
---|
8 | 13 | | then true |
---|
9 | 14 | | else { |
---|
10 | | - | let WAVerrStr = (("Minimal WAVES price = " + toString(MinWavesPrice)) + " wavelets.") |
---|
| 15 | + | let WAVerrStr = (("Minimal WAVES price = " + toString(currentPrice)) + " wavelets.") |
---|
11 | 16 | | throw(WAVerrStr) |
---|
12 | | - | } |
---|
| 17 | + | }) |
---|
| 18 | + | then (exp >= (e.sellOrder.expiration - e.sellOrder.timestamp)) |
---|
| 19 | + | else false) |
---|
| 20 | + | then (exp >= (e.buyOrder.expiration - e.buyOrder.timestamp)) |
---|
| 21 | + | else false |
---|
13 | 22 | | else { |
---|
14 | 23 | | let DefErrStr = "Only trading against WAVES allowed" |
---|
15 | 24 | | throw(DefErrStr) |
---|
16 | 25 | | } |
---|
17 | 26 | | case _ => |
---|
18 | 27 | | true |
---|
19 | 28 | | } |
---|