tx · 3k8fAn3UYnFMg4PwELaDXAtTwf1UhmSdKZni5zSqbCYZ

3N5EYBTAEfEALhE15d6B2ZL7yu27enxMedz:  -1.00000000 Waves

2019.02.13 11:02 [493067] smart asset 3N5EYBTAEfEALhE15d6B2ZL7yu27enxMedz > SELF 0.00000000 blablatoken1

{ "type": 15, "id": "3k8fAn3UYnFMg4PwELaDXAtTwf1UhmSdKZni5zSqbCYZ", "fee": 100000000, "feeAssetId": null, "timestamp": 1550045025748, "version": 1, "sender": "3N5EYBTAEfEALhE15d6B2ZL7yu27enxMedz", "senderPublicKey": "JAjDSSQ1LdVR1jVcWbdn3UqCUA1xuQeLqTTkZUKRVddL", "proofs": [ "4Lw331HiH599J5oy75aXxaosMnThLQfDRM9tuyMYKutR6C3TTdaTjm3r6vWsDv4Zrv2TgiHnh454FH84z5LBMnCV" ], "assetId": "HNQwJc5YLXdf2LHFmfxr9hL6cY7mAcMGALi5L614XSa5", "script": "base64:AQQAAAALc3RhcnRIZWlnaHQAAAAAAAAHhgIEAAAACnN0YXJ0UHJpY2UAAAAAAAAmJaAEAAAACGludGVydmFsAAAAAAAAAAAFBAAAAANleHAJAABoAAAAAgkAAGgAAAACAAAAAAAAAAAfAAAAAAAAAAA8AAAAAAAAAAPoBAAAAAckbWF0Y2gwBQAAAAJ0eAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAATRXhjaGFuZ2VUcmFuc2FjdGlvbgQAAAABZQUAAAAHJG1hdGNoMAQAAAAEZGF5cwkAAGkAAAACCQAAZQAAAAIFAAAABmhlaWdodAUAAAALc3RhcnRIZWlnaHQFAAAACGludGVydmFsBAAAAAxjdXJyZW50UHJpY2UJAABkAAAAAgUAAAAKc3RhcnRQcmljZQkAAGgAAAACBQAAAARkYXlzAAAAAAAAB6EgAwkBAAAAASEAAAABCQEAAAAJaXNEZWZpbmVkAAAAAQgICAUAAAABZQAAAAlzZWxsT3JkZXIAAAAJYXNzZXRQYWlyAAAACnByaWNlQXNzZXQDAwMDCQAAZwAAAAIIBQAAAAFlAAAABXByaWNlBQAAAAxjdXJyZW50UHJpY2UGBAAAAAlXQVZlcnJTdHIJAAEsAAAAAgkAASwAAAACAgAAABZNaW5pbWFsIFdBVkVTIHByaWNlID0gCQABpAAAAAEFAAAADGN1cnJlbnRQcmljZQIAAAAKIHdhdmVsZXRzLgkAAAIAAAABBQAAAAlXQVZlcnJTdHIJAABnAAAAAgUAAAADZXhwCQAAZQAAAAIICAUAAAABZQAAAAlzZWxsT3JkZXIAAAAKZXhwaXJhdGlvbggIBQAAAAFlAAAACXNlbGxPcmRlcgAAAAl0aW1lc3RhbXAHCQAAZwAAAAIFAAAAA2V4cAkAAGUAAAACCAgFAAAAAWUAAAAIYnV5T3JkZXIAAAAKZXhwaXJhdGlvbggIBQAAAAFlAAAACGJ1eU9yZGVyAAAACXRpbWVzdGFtcAkAAAIAAAABAgAAACdNYXggc2VsbCBvcmRlciBleHBpcmF0aW9uIG9mIDMwIG1pbnV0ZXMGCQAAAgAAAAECAAAAJk1heCBidXkgb3JkZXIgZXhwaXJhdGlvbiBvZiAzMCBtaW51dGVzBAAAAAlEZWZFcnJTdHICAAAAIk9ubHkgdHJhZGluZyBhZ2FpbnN0IFdBVkVTIGFsbG93ZWQJAAACAAAAAQUAAAAJRGVmRXJyU3RyBlWFtcs=", "chainId": 84, "height": 493067, "spentComplexity": 0 } View: original | compacted Prev: AQim9Hbc8gMGkz64TyUfDo5gNYE3rT3HzssZYZs313Uq Next: 9xNn5TeuJPu8ixgmCdrxS9MDLqeqXXYePuKAAGSp4eCC Diff:
OldNewDifferences
99 let days = ((height - startHeight) / interval)
1010 let currentPrice = (startPrice + (days * 500000))
1111 if (!(isDefined(e.sellOrder.assetPair.priceAsset)))
12- then if (if (if ((e.price >= currentPrice))
12+ then if (if (if (if ((e.price >= currentPrice))
1313 then true
1414 else {
1515 let WAVerrStr = (("Minimal WAVES price = " + toString(currentPrice)) + " wavelets.")
1616 throw(WAVerrStr)
1717 })
1818 then (exp >= (e.sellOrder.expiration - e.sellOrder.timestamp))
19+ else false)
20+ then (exp >= (e.buyOrder.expiration - e.buyOrder.timestamp))
1921 else throw("Max sell order expiration of 30 minutes"))
20- then (exp >= (e.buyOrder.expiration - e.buyOrder.timestamp))
22+ then true
2123 else throw("Max buy order expiration of 30 minutes")
2224 else {
2325 let DefErrStr = "Only trading against WAVES allowed"
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 1 #-}
22 {-# CONTENT_TYPE EXPRESSION #-}
33 let startHeight = 493058
44 let startPrice = 2500000
55 let interval = 5
66 let exp = ((31 * 60) * 1000)
77 match tx {
88 case e: ExchangeTransaction =>
99 let days = ((height - startHeight) / interval)
1010 let currentPrice = (startPrice + (days * 500000))
1111 if (!(isDefined(e.sellOrder.assetPair.priceAsset)))
12- then if (if (if ((e.price >= currentPrice))
12+ then if (if (if (if ((e.price >= currentPrice))
1313 then true
1414 else {
1515 let WAVerrStr = (("Minimal WAVES price = " + toString(currentPrice)) + " wavelets.")
1616 throw(WAVerrStr)
1717 })
1818 then (exp >= (e.sellOrder.expiration - e.sellOrder.timestamp))
19+ else false)
20+ then (exp >= (e.buyOrder.expiration - e.buyOrder.timestamp))
1921 else throw("Max sell order expiration of 30 minutes"))
20- then (exp >= (e.buyOrder.expiration - e.buyOrder.timestamp))
22+ then true
2123 else throw("Max buy order expiration of 30 minutes")
2224 else {
2325 let DefErrStr = "Only trading against WAVES allowed"
2426 throw(DefErrStr)
2527 }
2628 case _ =>
2729 true
2830 }

github/deemru/w8io/169f3d6 
28.42 ms