tx · 2Bb5HKvPti6LRuNVLZCaZSLx9vad7Us8mPJ6Q6q1TZqg

3N6mVEULck7uViUaDo1wi98wch9XzYNXriv:  -1.00000000 Waves

2019.02.19 15:58 [502101] smart asset 3N6mVEULck7uViUaDo1wi98wch9XzYNXriv > SELF 0.00000000 test666

{ "type": 15, "id": "2Bb5HKvPti6LRuNVLZCaZSLx9vad7Us8mPJ6Q6q1TZqg", "fee": 100000000, "feeAssetId": null, "timestamp": 1550581127837, "version": 1, "sender": "3N6mVEULck7uViUaDo1wi98wch9XzYNXriv", "senderPublicKey": "GMCkL2F7fYotQtrpQq5sjNm5cjpR7CSfawr9kMSKLHVs", "proofs": [ "2StufEdhmiyF19D7nBzS7ZDFAsZgBhN4dWYxse3gF8LQjspKYTSVDRUZ5EFb5zFFy6DHs4uZUNtQbXCKA595FS1Q" ], "assetId": "5yjyBTmmUbpxnipdv8ZcS9gPn2bEXRo7fThXXruFiYXS", "script": "base64:AQQAAAAKaGVpZ2h0RGlmZgAAAAAAAAAAAQQAAAAOcHJpY2VEaWZmQ29uc3QAAAAAAAACisgEAAAAD2V4cGlyYXRpb25Ib3VycwAAAAAAAAAAGAQAAAANbWF4RXhwaXJhdGlvbgkAAGgAAAACCQAAaAAAAAIJAABoAAAAAgUAAAAPZXhwaXJhdGlvbkhvdXJzAAAAAAAAAAA8AAAAAAAAAAA8AAAAAAAAAAPoBAAAAA9leHBpcmF0aW9uRXJyb3ICAAAAHkV4cGlyYXRpb24gbXVzdCBiZSA8PSAyNCBob3VycwQAAAALc3RhcnRIZWlnaHQAAAAAAAAHqVUEAAAABmN5Y2xlcwkAAGkAAAACCQAAZQAAAAIFAAAABmhlaWdodAUAAAALc3RhcnRIZWlnaHQFAAAACmhlaWdodERpZmYEAAAACXByaWNlRGlmZgkAAGgAAAACBQAAAA5wcmljZURpZmZDb25zdAUAAAAGY3ljbGVzBAAAAA1zdGFydEJ1eVByaWNlAAAAAAAA/k/oBAAAAAttaW5CdXlQcmljZQkAAGQA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AAByRtYXRjaDACAAAAE1RyYW5zZmVyVHJhbnNhY3Rpb24EAAAAAXQFAAAAByRtYXRjaDADAwkBAAAACWlzRGVmaW5lZAAAAAEIBQAAAAF0AAAACmZlZUFzc2V0SWQGCQAAZgAAAAIFAAAAC3RyYW5zZmVyRmVlCAUAAAABdAAAAANmZWUJAAACAAAAAQkAASwAAAACCQABLAAAAAICAAAAD0ZlZSBtdXN0IGJlID49IAkAAaQAAAABBQAAAAt0cmFuc2ZlckZlZQIAAAAJIHdhdmVsZXRzBgMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAPQnVyblRyYW5zYWN0aW9uBAAAAAFiBQAAAAckbWF0Y2gwAwkAAGYAAAACBQAAAAdidXJuRmVlCAUAAAABYgAAAANmZWUJAAACAAAAAQkAASwAAAACCQABLAAAAAICAAAAD0ZlZSBtdXN0IGJlID49IAkAAaQAAAABBQAAAAdidXJuRmVlAgAAAAkgd2F2ZWxldHMGBrgy+74=", "chainId": 84, "height": 502101, "spentComplexity": 0 } View: original | compacted Prev: HKCiCy6iwgssmBCMuJZgJPvKcFvaWnp8943pCSMocTbi Next: 9fCFccHMjyi8imuNuXT2ea1RtYhcfxzBxbN6x4kZ25Zr Diff:
OldNewDifferences
11 {-# STDLIB_VERSION 1 #-}
22 {-# CONTENT_TYPE EXPRESSION #-}
3-let heightDiff = 1666
3+let heightDiff = 1
44 let priceDiffConst = 166600
55 let expirationHours = 24
66 let maxExpiration = (((expirationHours * 60) * 60) * 1000)
7-let expirationError = (("Expiration must be <= " + toString(maxExpiration)) + " ms")
8-let startHeight = 502078
7+let expirationError = "Expiration must be <= 24 hours"
8+let startHeight = 502101
99 let cycles = ((height - startHeight) / heightDiff)
1010 let priceDiff = (priceDiffConst * cycles)
1111 let startBuyPrice = 16666600
1212 let minBuyPrice = (startBuyPrice + priceDiff)
1313 let buyPriceError = (("Buy price must be >= " + toString(minBuyPrice)) + " wavelets")
1414 let maxBuyAmount = 66600000000
15-let buyAmountError = ("Buy amount must be < " + toString(maxBuyAmount))
15+let buyAmountError = ("Buy amount must be < " + toString((maxBuyAmount / 100000000)))
1616 let startSellPrice = 16666900
1717 let minSellPrice = (startSellPrice + priceDiff)
1818 let sellPriceError = (("Sell price must be >= " + toString(minSellPrice)) + " wavelets")
1919 let minSellAmount = 600000000
20-let sellAmountError = ("Sell amount must be >= " + toString(minSellAmount))
20+let sellAmountError = ("Sell amount must be >= " + toString((minSellAmount / 100000000)))
2121 let transferFee = 6660000
2222 let burnFee = 666000
2323 let orderFee = 666000
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 1 #-}
22 {-# CONTENT_TYPE EXPRESSION #-}
3-let heightDiff = 1666
3+let heightDiff = 1
44 let priceDiffConst = 166600
55 let expirationHours = 24
66 let maxExpiration = (((expirationHours * 60) * 60) * 1000)
7-let expirationError = (("Expiration must be <= " + toString(maxExpiration)) + " ms")
8-let startHeight = 502078
7+let expirationError = "Expiration must be <= 24 hours"
8+let startHeight = 502101
99 let cycles = ((height - startHeight) / heightDiff)
1010 let priceDiff = (priceDiffConst * cycles)
1111 let startBuyPrice = 16666600
1212 let minBuyPrice = (startBuyPrice + priceDiff)
1313 let buyPriceError = (("Buy price must be >= " + toString(minBuyPrice)) + " wavelets")
1414 let maxBuyAmount = 66600000000
15-let buyAmountError = ("Buy amount must be < " + toString(maxBuyAmount))
15+let buyAmountError = ("Buy amount must be < " + toString((maxBuyAmount / 100000000)))
1616 let startSellPrice = 16666900
1717 let minSellPrice = (startSellPrice + priceDiff)
1818 let sellPriceError = (("Sell price must be >= " + toString(minSellPrice)) + " wavelets")
1919 let minSellAmount = 600000000
20-let sellAmountError = ("Sell amount must be >= " + toString(minSellAmount))
20+let sellAmountError = ("Sell amount must be >= " + toString((minSellAmount / 100000000)))
2121 let transferFee = 6660000
2222 let burnFee = 666000
2323 let orderFee = 666000
2424 match tx {
2525 case e: ExchangeTransaction =>
2626 if (((e.sellOrder.expiration - e.sellOrder.timestamp) > maxExpiration))
2727 then throw(expirationError)
2828 else {
2929 let sell = sigVerify(e.sellOrder.bodyBytes, e.sellOrder.proofs[0], e.sellOrder.senderPublicKey)
3030 let buy = sigVerify(e.buyOrder.bodyBytes, e.buyOrder.proofs[0], e.buyOrder.senderPublicKey)
3131 if (sell)
3232 then if ((minSellAmount > e.sellOrder.amount))
3333 then throw(sellAmountError)
3434 else if (if ((minSellPrice > e.sellOrder.price))
3535 then true
3636 else isDefined(e.sellOrder.assetPair.priceAsset))
3737 then throw(sellPriceError)
3838 else true
3939 else if (buy)
4040 then if ((e.buyOrder.amount >= maxBuyAmount))
4141 then throw(buyAmountError)
4242 else if (if ((e.buyOrder.price > minBuyPrice))
4343 then true
4444 else isDefined(e.buyOrder.assetPair.priceAsset))
4545 then throw(buyPriceError)
4646 else true
4747 else false
4848 }
4949 case t: TransferTransaction =>
5050 if (if (isDefined(t.feeAssetId))
5151 then true
5252 else (transferFee > t.fee))
5353 then throw((("Fee must be >= " + toString(transferFee)) + " wavelets"))
5454 else true
5555 case b: BurnTransaction =>
5656 if ((burnFee > b.fee))
5757 then throw((("Fee must be >= " + toString(burnFee)) + " wavelets"))
5858 else true
5959 case _ =>
6060 true
6161 }

github/deemru/w8io/026f985 
28.12 ms