tx · 9xNn5TeuJPu8ixgmCdrxS9MDLqeqXXYePuKAAGSp4eCC
3N5EYBTAEfEALhE15d6B2ZL7yu27enxMedz: -1.00000000 Waves
2019.02.13 11:05 [493069] smart asset 3N5EYBTAEfEALhE15d6B2ZL7yu27enxMedz > SELF 0.00000000 blablatoken1
{
"type": 15,
"id": "9xNn5TeuJPu8ixgmCdrxS9MDLqeqXXYePuKAAGSp4eCC",
"fee": 100000000,
"feeAssetId": null,
"timestamp": 1550045135739,
"version": 1,
"sender": "3N5EYBTAEfEALhE15d6B2ZL7yu27enxMedz",
"senderPublicKey": "JAjDSSQ1LdVR1jVcWbdn3UqCUA1xuQeLqTTkZUKRVddL",
"proofs": [
"65BBRRhfrouVp7fkWJfDzB127XKJ7EzLDSZiJr4m9ohvaBd2Nu4Df6KBPXCWaAsRfCF28Y8nS3DtHFcbVLRuxLHb"
],
"assetId": "HNQwJc5YLXdf2LHFmfxr9hL6cY7mAcMGALi5L614XSa5",
"script": "base64:AQQAAAALc3RhcnRIZWlnaHQAAAAAAAAHhgIEAAAACnN0YXJ0UHJpY2UAAAAAAAAmJaAEAAAACGludGVydmFsAAAAAAAAAAAFBAAAAANleHAJAABoAAAAAgkAAGgAAAACAAAAAAAAAAJYAAAAAAAAAAA8AAAAAAAAAAPoBAAAAAckbWF0Y2gwBQAAAAJ0eAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAATRXhjaGFuZ2VUcmFuc2FjdGlvbgQAAAABZQUAAAAHJG1hdGNoMAQAAAAEZGF5cwkAAGkAAAACCQAAZQAAAAIFAAAABmhlaWdodAUAAAALc3RhcnRIZWlnaHQFAAAACGludGVydmFsBAAAAAxjdXJyZW50UHJpY2UJAABkAAAAAgUAAAAKc3RhcnRQcmljZQkAAGgAAAACBQAAAARkYXlzAAAAAAAAB6EgAwkBAAAAASEAAAABCQEAAAAJaXNEZWZpbmVkAAAAAQgICAUAAAABZQAAAAlzZWxsT3JkZXIAAAAJYXNzZXRQYWlyAAAACnByaWNlQXNzZXQDAwMDCQAAZwAAAAIIBQAAAAFlAAAABXByaWNlBQAAAAxjdXJyZW50UHJpY2UGBAAAAAlXQVZlcnJTdHIJAAEsAAAAAgkAASwAAAACAgAAABZNaW5pbWFsIFdBVkVTIHByaWNlID0gCQABpAAAAAEFAAAADGN1cnJlbnRQcmljZQIAAAAKIHdhdmVsZXRzLgkAAAIAAAABBQAAAAlXQVZlcnJTdHIJAABnAAAAAgUAAAADZXhwCQAAZQAAAAIICAUAAAABZQAAAAlzZWxsT3JkZXIAAAAKZXhwaXJhdGlvbggIBQAAAAFlAAAACXNlbGxPcmRlcgAAAAl0aW1lc3RhbXAHCQAAZwAAAAIFAAAAA2V4cAkAAGUAAAACCAgFAAAAAWUAAAAIYnV5T3JkZXIAAAAKZXhwaXJhdGlvbggIBQAAAAFlAAAACGJ1eU9yZGVyAAAACXRpbWVzdGFtcAkAAAIAAAABAgAAACdNYXggc2VsbCBvcmRlciBleHBpcmF0aW9uIG9mIDMwIG1pbnV0ZXMGCQAAAgAAAAECAAAAJk1heCBidXkgb3JkZXIgZXhwaXJhdGlvbiBvZiAzMCBtaW51dGVzBAAAAAlEZWZFcnJTdHICAAAAIk9ubHkgdHJhZGluZyBhZ2FpbnN0IFdBVkVTIGFsbG93ZWQJAAACAAAAAQUAAAAJRGVmRXJyU3RyBobPmYs=",
"chainId": 84,
"height": 493069,
"spentComplexity": 0
}
View: original | compacted
Prev: 3k8fAn3UYnFMg4PwELaDXAtTwf1UhmSdKZni5zSqbCYZ
Next: D3pKtTvotdwmu3szMQueUnkMoYMuzKtLTWXgXUVcSQde
Diff:
Old | New | | Differences |
---|
3 | 3 | | let startHeight = 493058 |
---|
4 | 4 | | let startPrice = 2500000 |
---|
5 | 5 | | let interval = 5 |
---|
6 | | - | let exp = ((31 * 60) * 1000) |
---|
| 6 | + | let exp = ((600 * 60) * 1000) |
---|
7 | 7 | | match tx { |
---|
8 | 8 | | case e: ExchangeTransaction => |
---|
9 | 9 | | let days = ((height - startHeight) / interval) |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 1 #-} |
---|
2 | 2 | | {-# CONTENT_TYPE EXPRESSION #-} |
---|
3 | 3 | | let startHeight = 493058 |
---|
4 | 4 | | let startPrice = 2500000 |
---|
5 | 5 | | let interval = 5 |
---|
6 | | - | let exp = ((31 * 60) * 1000) |
---|
| 6 | + | let exp = ((600 * 60) * 1000) |
---|
7 | 7 | | match tx { |
---|
8 | 8 | | case e: ExchangeTransaction => |
---|
9 | 9 | | let days = ((height - startHeight) / interval) |
---|
10 | 10 | | let currentPrice = (startPrice + (days * 500000)) |
---|
11 | 11 | | if (!(isDefined(e.sellOrder.assetPair.priceAsset))) |
---|
12 | 12 | | then if (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 throw("Max sell order expiration of 30 minutes")) |
---|
22 | 22 | | then true |
---|
23 | 23 | | else throw("Max buy order expiration of 30 minutes") |
---|
24 | 24 | | else { |
---|
25 | 25 | | let DefErrStr = "Only trading against WAVES allowed" |
---|
26 | 26 | | throw(DefErrStr) |
---|
27 | 27 | | } |
---|
28 | 28 | | case _ => |
---|
29 | 29 | | true |
---|
30 | 30 | | } |
---|