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:
OldNewDifferences
11 {-# STDLIB_VERSION 1 #-}
22 {-# 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)
47 match tx {
58 case e: ExchangeTransaction =>
9+ let days = ((height - startHeight) / interval)
10+ let currentPrice = (startPrice + (1 + (days * 500000)))
611 if (!(isDefined(e.sellOrder.assetPair.priceAsset)))
7- then if ((e.sellOrder.price >= MinWavesPrice))
12+ then if (if (if ((e.price >= currentPrice))
813 then true
914 else {
10- let WAVerrStr = (("Minimal WAVES price = " + toString(MinWavesPrice)) + " wavelets.")
15+ let WAVerrStr = (("Minimal WAVES price = " + toString(currentPrice)) + " wavelets.")
1116 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
1322 else {
1423 let DefErrStr = "Only trading against WAVES allowed"
1524 throw(DefErrStr)
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 1 #-}
22 {-# 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)
47 match tx {
58 case e: ExchangeTransaction =>
9+ let days = ((height - startHeight) / interval)
10+ let currentPrice = (startPrice + (1 + (days * 500000)))
611 if (!(isDefined(e.sellOrder.assetPair.priceAsset)))
7- then if ((e.sellOrder.price >= MinWavesPrice))
12+ then if (if (if ((e.price >= currentPrice))
813 then true
914 else {
10- let WAVerrStr = (("Minimal WAVES price = " + toString(MinWavesPrice)) + " wavelets.")
15+ let WAVerrStr = (("Minimal WAVES price = " + toString(currentPrice)) + " wavelets.")
1116 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
1322 else {
1423 let DefErrStr = "Only trading against WAVES allowed"
1524 throw(DefErrStr)
1625 }
1726 case _ =>
1827 true
1928 }

github/deemru/w8io/169f3d6 
32.73 ms