tx · FafttEBTvj7ecMoLdHbfY8qBkDika5TzucCkhxViub2x

3N6mVEULck7uViUaDo1wi98wch9XzYNXriv:  -1.00000000 Waves

2019.02.19 14:48 [502035] smart asset 3N6mVEULck7uViUaDo1wi98wch9XzYNXriv > SELF 0 test

{ "type": 15, "id": "FafttEBTvj7ecMoLdHbfY8qBkDika5TzucCkhxViub2x", "fee": 100000000, "feeAssetId": null, "timestamp": 1550576913078, "version": 1, "sender": "3N6mVEULck7uViUaDo1wi98wch9XzYNXriv", "senderPublicKey": "GMCkL2F7fYotQtrpQq5sjNm5cjpR7CSfawr9kMSKLHVs", "proofs": [ "2VgHXjAicy3bAWdkb28rkXJHzUWVtZ2LZZxH91mF6Hwm5Nsn2qu8JLittTRg7tA3yxwNrQB6ro15srACtxvoBLvF" ], "assetId": "9xhbLMfTA77TqF3X6DDwWe6mFhUpwCS5o7Z7gx8JFt8b", "script": "base64:AQQAAAAKaGVpZ2h0RGlmZgAAAAAAAAAGggQAAAAOcHJpY2VEaWZmQ29uc3QAAAAAAAACisgEAAAAD2V4cGlyYXRpb25Ib3VycwAAAAAAAAAAGAQAAAANbWF4RXhwaXJhdGlvbgkAAGgAAAACCQAAaAAAAAIJAABoAAAAAgUAAAAPZXhwaXJhdGlvbkhvdXJzAAAAAAAAAAA8AAAAAAAAAAA8AAAAAAAAAAPoBAAAAAtzdGFydEhlaWdodAAAAAAAAAeozwQAAAAJcHJpY2VEaWZmCQAAaQAAAAIJAABoAAAAAgUAAAAOcHJpY2VEaWZmQ29uc3QJAABlAAAAAgUAAAAGaGVpZ2h0BQAAAAtzdGFydEhlaWdodAUAAAAKaGVpZ2h0RGlmZgQAAAANc3RhcnRCdXlQcmljZQAAAAAAAP5P6AQAAAALbWluQnV5UHJpY2UJAABkAAAAAgUAAAANc3RhcnRCdXlQcmljZQUAAAAJcHJpY2VEaWZmBAAAAAxtYXhCdXlBbW91bnQAAAAAAAAAApoEAAAADnN0YXJ0U2VsbFByaWNlAAAAAAAA/lEU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Complexity": 0 } View: original | compacted Prev: J198HJFwNNUHi87kb527z5mrVreGWCdeGcvsvTW8BUSP Next: 3Nm2MSc34g58wPQB46Q1KUJtwzW8X3qcDtWghXHDL8i9 Diff:
OldNewDifferences
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(minSellAmount)))
28+ then throw(("Sell amount must be >= " + toString(minSellPrice)))
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)
77 let startHeight = 501967
88 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(minSellAmount)))
28+ then throw(("Sell amount must be >= " + toString(minSellPrice)))
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 
21.07 ms