tx · 3Nm2MSc34g58wPQB46Q1KUJtwzW8X3qcDtWghXHDL8i9

3N6mVEULck7uViUaDo1wi98wch9XzYNXriv:  -1.00000000 Waves

2019.02.19 14:53 [502041] smart asset 3N6mVEULck7uViUaDo1wi98wch9XzYNXriv > SELF 0 test

{ "type": 15, "id": "3Nm2MSc34g58wPQB46Q1KUJtwzW8X3qcDtWghXHDL8i9", "fee": 100000000, "feeAssetId": null, "timestamp": 1550577209266, "version": 1, "sender": "3N6mVEULck7uViUaDo1wi98wch9XzYNXriv", "senderPublicKey": "GMCkL2F7fYotQtrpQq5sjNm5cjpR7CSfawr9kMSKLHVs", "proofs": [ "25HGB5zgdEPRg6rDPUSUSCjeH9RVVmPKxhgkx4bjfFAV7EZqtENwYUehQP8vuwAncrAuviNgv1FgV1ZvDZgyiJXF" ], "assetId": "9xhbLMfTA77TqF3X6DDwWe6mFhUpwCS5o7Z7gx8JFt8b", "script": "base64:AQQAAAAKaGVpZ2h0RGlmZgAAAAAAAAAGggQAAAAOcHJpY2VEaWZmQ29uc3QAAAAAAAACisgEAAAAD2V4cGlyYXRpb25Ib3VycwAAAAAAAAAAGAQAAAANbWF4RXhwaXJhdGlvbgkAAGgAAAACCQAAaAAAAAIJAABoAAAAAgUAAAAPZXhwaXJhdGlvbkhvdXJzAAAAAAAAAAA8AAAAAAAAAAA8AAAAAAAAAAPoBAAAAAtzdGFydEhlaWdodAAAAAAAAAepFwQAAAAJcHJpY2VEaWZmCQAAaAAAAAIFAAAADnByaWNlRGlmZkNvbnN0CQAAaQAAAAIJAABlAAAAAgUAAAAGaGVpZ2h0BQAAAAtzdGFydEhlaWdodAUAAAAKaGVpZ2h0RGlmZgQAAAANc3RhcnRCdXlQcmljZQAAAAAAAP5P6AQAAAALbWluQnV5UHJpY2UJAABkAAAAAgUAAAANc3RhcnRCdXlQcmljZQUAAAAJcHJpY2VEaWZmBAAAAAxtYXhCdXlBbW91bnQAAAAAAAAAApoEAAAADnN0YXJ0U2VsbFByaWNlA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dhdmVsZXRzBgYd42R2", "chainId": 84, "height": 502041, "spentComplexity": 0 } View: original | compacted Prev: FafttEBTvj7ecMoLdHbfY8qBkDika5TzucCkhxViub2x Next: none Diff:
OldNewDifferences
44 let priceDiffConst = 166600
55 let expirationHours = 24
66 let maxExpiration = (((expirationHours * 60) * 60) * 1000)
7-let startHeight = 501967
8-let priceDiff = ((priceDiffConst * (height - startHeight)) / heightDiff)
7+let startHeight = 502039
8+let priceDiff = (priceDiffConst * ((height - startHeight) / heightDiff))
99 let startBuyPrice = 16666600
1010 let minBuyPrice = (startBuyPrice + priceDiff)
1111 let maxBuyAmount = 666
2525 else isDefined(e.sellOrder.assetPair.priceAsset))
2626 then throw((("Sell price must be >= " + toString(minSellPrice)) + " wavelets"))
2727 else if ((minSellAmount > e.sellOrder.amount))
28- then throw(("Sell amount must be >= " + toString(minSellPrice)))
28+ then throw(("Sell amount must be >= " + toString(e.sellOrder.price)))
2929 else true
3030 else if (buy)
3131 then if (if ((minBuyPrice > e.buyOrder.price))
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 1 #-}
22 {-# CONTENT_TYPE EXPRESSION #-}
33 let heightDiff = 1666
44 let priceDiffConst = 166600
55 let expirationHours = 24
66 let maxExpiration = (((expirationHours * 60) * 60) * 1000)
7-let startHeight = 501967
8-let priceDiff = ((priceDiffConst * (height - startHeight)) / heightDiff)
7+let startHeight = 502039
8+let priceDiff = (priceDiffConst * ((height - startHeight) / heightDiff))
99 let startBuyPrice = 16666600
1010 let minBuyPrice = (startBuyPrice + priceDiff)
1111 let maxBuyAmount = 666
1212 let startSellPrice = 16666900
1313 let minSellPrice = (startSellPrice + priceDiff)
1414 let minSellAmount = 6
1515 let transferFee = 6660000
1616 let burnFee = 666000
1717 let orderFee = 666000
1818 match tx {
1919 case e: ExchangeTransaction =>
2020 let sell = sigVerify(e.sellOrder.bodyBytes, e.sellOrder.proofs[0], e.sellOrder.senderPublicKey)
2121 let buy = sigVerify(e.buyOrder.bodyBytes, e.buyOrder.proofs[0], e.buyOrder.senderPublicKey)
2222 if (sell)
2323 then if (if ((minSellPrice > e.sellOrder.price))
2424 then true
2525 else isDefined(e.sellOrder.assetPair.priceAsset))
2626 then throw((("Sell price must be >= " + toString(minSellPrice)) + " wavelets"))
2727 else if ((minSellAmount > e.sellOrder.amount))
28- then throw(("Sell amount must be >= " + toString(minSellPrice)))
28+ then throw(("Sell amount must be >= " + toString(e.sellOrder.price)))
2929 else true
3030 else if (buy)
3131 then if (if ((minBuyPrice > e.buyOrder.price))
3232 then true
3333 else isDefined(e.buyOrder.assetPair.priceAsset))
3434 then throw((("Buy price must be >= " + toString(minBuyPrice)) + " wavelets"))
3535 else if ((e.buyOrder.amount >= maxBuyAmount))
3636 then throw(("Buy amount must be < " + toString(maxBuyAmount)))
3737 else true
3838 else false
3939 case t: TransferTransaction =>
4040 if (if (isDefined(t.feeAssetId))
4141 then true
4242 else (transferFee > t.fee))
4343 then throw((("Fee must be >= " + toString(transferFee)) + " wavelets"))
4444 else true
4545 case b: BurnTransaction =>
4646 if ((burnFee > b.fee))
4747 then throw((("Fee must be >= " + toString(burnFee)) + " wavelets"))
4848 else true
4949 case _ =>
5050 true
5151 }

github/deemru/w8io/026f985 
20.97 ms