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