tx · HKCiCy6iwgssmBCMuJZgJPvKcFvaWnp8943pCSMocTbi

3N6mVEULck7uViUaDo1wi98wch9XzYNXriv:  -1.00000000 Waves

2019.02.19 15:55 [502098] smart asset 3N6mVEULck7uViUaDo1wi98wch9XzYNXriv > SELF 0.00000000 test666

{ "type": 15, "id": "HKCiCy6iwgssmBCMuJZgJPvKcFvaWnp8943pCSMocTbi", "fee": 100000000, "feeAssetId": null, "timestamp": 1550580928074, "version": 1, "sender": "3N6mVEULck7uViUaDo1wi98wch9XzYNXriv", "senderPublicKey": "GMCkL2F7fYotQtrpQq5sjNm5cjpR7CSfawr9kMSKLHVs", "proofs": [ "3uyQhJU2xVaGHgsRVrzYXqR5YyaAfCdog3UgKSCr8LkRvM1gi5rWmjpaJtNEJrUgvasRbpXZ56ubK31WSezk9qLb" ], "assetId": "5yjyBTmmUbpxnipdv8ZcS9gPn2bEXRo7fThXXruFiYXS", "script": "base64:AQQAAAAKaGVpZ2h0RGlmZgAAAAAAAAAGggQAAAAOcHJpY2VEaWZmQ29uc3QAAAAAAAACisgEAAAAD2V4cGlyYXRpb25Ib3VycwAAAAAAAAAAGAQAAAANbWF4RXhwaXJhdGlvbgkAAGgAAAACCQAAaAAAAAIJAABoAAAAAgUAAAAPZXhwaXJhdGlvbkhvdXJzAAAAAAAAAAA8AAAAAAAAAAA8AAAAAAAAAAPoBAAAAA9leHBpcmF0aW9uRXJyb3IJAAEsAAAAAgkAASwAAAACAgAAABZFeHBpcmF0aW9uIG11c3QgYmUgPD0gCQABpAAAAAEFAAAADW1heEV4cGlyYXRpb24CAAAAAyBtcwQAAAALc3RhcnRIZWlnaHQAAAAAAAAHqT4EAAAABmN5Y2xlcwkAAGkAAAACCQAAZQAAAAIFAAAABmhlaWdodAUAAAALc3RhcnRIZWlnaHQFAAAACmhlaWdodERpZmYEAAAACXByaWNlRGlmZgkAAGgAAAACBQAAAA5wcmljZURpZmZDb25zdAUAAAAGY3ljbGVzBAAAAA1zdGFydEJ1eVByaWN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1hdGNoMAIAAAATVHJhbnNmZXJUcmFuc2FjdGlvbgQAAAABdAUAAAAHJG1hdGNoMAMDCQEAAAAJaXNEZWZpbmVkAAAAAQgFAAAAAXQAAAAKZmVlQXNzZXRJZAYJAABmAAAAAgUAAAALdHJhbnNmZXJGZWUIBQAAAAF0AAAAA2ZlZQkAAAIAAAABCQABLAAAAAIJAAEsAAAAAgIAAAAPRmVlIG11c3QgYmUgPj0gCQABpAAAAAEFAAAAC3RyYW5zZmVyRmVlAgAAAAkgd2F2ZWxldHMGAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAA9CdXJuVHJhbnNhY3Rpb24EAAAAAWIFAAAAByRtYXRjaDADCQAAZgAAAAIFAAAAB2J1cm5GZWUIBQAAAAFiAAAAA2ZlZQkAAAIAAAABCQABLAAAAAIJAAEsAAAAAgIAAAAPRmVlIG11c3QgYmUgPj0gCQABpAAAAAEFAAAAB2J1cm5GZWUCAAAACSB3YXZlbGV0cwYGFzE2gg==", "chainId": 84, "height": 502098, "spentComplexity": 0 } View: original | compacted Prev: 29Q5umtYJvQPmqmVJW8GfQvmTG2jcneuE1Dz7f1iNzNC Next: 2Bb5HKvPti6LRuNVLZCaZSLx9vad7Us8mPJ6Q6q1TZqg Diff:
OldNewDifferences
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)
32- then if (if ((minSellPrice > e.sellOrder.price))
33- then true
34- else isDefined(e.sellOrder.assetPair.priceAsset))
35- then throw(sellPriceError)
36- else if ((minSellAmount > e.sellOrder.amount))
37- then throw(sellAmountError)
32+ then if ((minSellAmount > e.sellOrder.amount))
33+ then throw(sellAmountError)
34+ else if (if ((minSellPrice > e.sellOrder.price))
35+ then true
36+ else isDefined(e.sellOrder.assetPair.priceAsset))
37+ then throw(sellPriceError)
3838 else true
3939 else if (buy)
40- then if (if ((e.buyOrder.price > minBuyPrice))
41- then true
42- else isDefined(e.buyOrder.assetPair.priceAsset))
43- then throw(buyPriceError)
44- else if ((e.buyOrder.amount >= maxBuyAmount))
45- then throw(buyAmountError)
40+ then if ((e.buyOrder.amount >= maxBuyAmount))
41+ then throw(buyAmountError)
42+ else if (if ((e.buyOrder.price > minBuyPrice))
43+ then true
44+ else isDefined(e.buyOrder.assetPair.priceAsset))
45+ then throw(buyPriceError)
4646 else true
4747 else false
4848 }
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 expirationError = (("Expiration must be <= " + toString(maxExpiration)) + " ms")
88 let startHeight = 502078
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
1515 let buyAmountError = ("Buy amount must be < " + toString(maxBuyAmount))
1616 let startSellPrice = 16666900
1717 let minSellPrice = (startSellPrice + priceDiff)
1818 let sellPriceError = (("Sell price must be >= " + toString(minSellPrice)) + " wavelets")
1919 let minSellAmount = 600000000
2020 let sellAmountError = ("Sell amount must be >= " + toString(minSellAmount))
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)
32- then if (if ((minSellPrice > e.sellOrder.price))
33- then true
34- else isDefined(e.sellOrder.assetPair.priceAsset))
35- then throw(sellPriceError)
36- else if ((minSellAmount > e.sellOrder.amount))
37- then throw(sellAmountError)
32+ then if ((minSellAmount > e.sellOrder.amount))
33+ then throw(sellAmountError)
34+ else if (if ((minSellPrice > e.sellOrder.price))
35+ then true
36+ else isDefined(e.sellOrder.assetPair.priceAsset))
37+ then throw(sellPriceError)
3838 else true
3939 else if (buy)
40- then if (if ((e.buyOrder.price > minBuyPrice))
41- then true
42- else isDefined(e.buyOrder.assetPair.priceAsset))
43- then throw(buyPriceError)
44- else if ((e.buyOrder.amount >= maxBuyAmount))
45- then throw(buyAmountError)
40+ then if ((e.buyOrder.amount >= maxBuyAmount))
41+ then throw(buyAmountError)
42+ else if (if ((e.buyOrder.price > minBuyPrice))
43+ then true
44+ else isDefined(e.buyOrder.assetPair.priceAsset))
45+ 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 
26.71 ms