tx · FusMAddRfGyDnBCkRtrRDe1dd7spPwPvsc6yQ2iBQgi4

3N6mVEULck7uViUaDo1wi98wch9XzYNXriv:  -1.00000000 Waves

2019.02.19 20:16 [502337] smart asset 3N6mVEULck7uViUaDo1wi98wch9XzYNXriv > SELF 0.00000000 test666

{ "type": 15, "id": "FusMAddRfGyDnBCkRtrRDe1dd7spPwPvsc6yQ2iBQgi4", "fee": 100000000, "feeAssetId": null, "timestamp": 1550596556093, "version": 1, "sender": "3N6mVEULck7uViUaDo1wi98wch9XzYNXriv", "senderPublicKey": "GMCkL2F7fYotQtrpQq5sjNm5cjpR7CSfawr9kMSKLHVs", "proofs": [ "3m5e8U1SEaVAEXg8cVDsQYtwKsPNpAQj91FpiLcb9cPiUmR96PRw8SuXpZHmdBYvKnDerMRwcWkDtesFaeuhTiqJ" ], "assetId": "5yjyBTmmUbpxnipdv8ZcS9gPn2bEXRo7fThXXruFiYXS", "script": "base64:AQQAAAAKaGVpZ2h0RGlmZgAAAAAAAAAEVwQAAAAOcHJpY2VEaWZmQ29uc3QAAAAAAAACisgEAAAAD2V4cGlyYXRpb25Ib3VycwAAAAAAAAAAGAQAAAANbWF4RXhwaXJhdGlvbgkAAGgAAAACCQAAaAAAAAIJAABoAAAAAgUAAAAPZXhwaXJhdGlvbkhvdXJzAAAAAAAAAAA8AAAAAAAAAAA8AAAAAAAAAAPoBAAAAAtzdGFydEhlaWdodAAAAAAAAAeqAwQAAAAGY3ljbGVzCQAAaQAAAAIJAABlAAAAAgUAAAAGaGVpZ2h0BQAAAAtzdGFydEhlaWdodAUAAAAKaGVpZ2h0RGlmZgQAAAAJcHJpY2VEaWZmCQAAaAAAAAIFAAAADnByaWNlRGlmZkNvbnN0BQAAAAZjeWNsZXMEAAAADXN0YXJ0QnV5UHJpY2UAAAAAAAD+T+gEAAAAC21pbkJ1eVByaWNlCQAAZAAAAAIFAAAADXN0YXJ0QnV5UHJpY2UFAAAACXByaWNlRGlmZgQAAAAMbWF4QnV5QW1vd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AAEFAAAADWJ1eVByaWNlRXJyb3IGBwMDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAD0J1cm5UcmFuc2FjdGlvbgYJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAATVHJhbnNmZXJUcmFuc2FjdGlvbgQAAAABdAUAAAAHJG1hdGNoMAYGw3JycA==", "chainId": 84, "height": 502337, "spentComplexity": 0 } View: original | compacted Prev: C6JDiXjxJZFPfyNvzT58eDGdP6sQYRTU3aoHNDJE4QUv Next: none Full:
OldNewDifferences
11 {-# STDLIB_VERSION 1 #-}
22 {-# CONTENT_TYPE EXPRESSION #-}
33 let heightDiff = 1111
44 let priceDiffConst = 166600
55 let expirationHours = 24
66 let maxExpiration = (((expirationHours * 60) * 60) * 1000)
77 let startHeight = 502275
88 let cycles = ((height - startHeight) / heightDiff)
99 let priceDiff = (priceDiffConst * cycles)
1010 let startBuyPrice = 16666600
1111 let minBuyPrice = (startBuyPrice + priceDiff)
1212 let maxBuyAmount = 66600000000
1313 let startSellPrice = 16666900
1414 let minSellPrice = (startSellPrice + priceDiff)
1515 let minSellAmount = 600000000
1616 let expirationError = "Expiration must be <= 24 hours"
1717 let buyAmountError = ("Buy amount must be <= " + toString((maxBuyAmount / 100000000)))
1818 let buyPriceError = (((("Buy price must be <= " + toString(minBuyPrice)) + " wavelets (cycles: ") + toString(cycles)) + ")")
1919 let sellAmountError = ("Sell amount must be >= " + toString((minSellAmount / 100000000)))
2020 let sellPriceError = (((("Sell price must be >= " + toString(minSellPrice)) + " wavelets (cycles: ") + toString(cycles)) + ")")
2121 match tx {
2222 case e: ExchangeTransaction =>
2323 if (((e.sellOrder.expiration - e.sellOrder.timestamp) > maxExpiration))
2424 then throw(expirationError)
2525 else {
2626 let sell = sigVerify(e.sellOrder.bodyBytes, e.sellOrder.proofs[0], e.sellOrder.senderPublicKey)
2727 let buy = sigVerify(e.buyOrder.bodyBytes, e.buyOrder.proofs[0], e.buyOrder.senderPublicKey)
2828 if (sell)
2929 then if ((minSellAmount > e.sellOrder.amount))
3030 then throw(sellAmountError)
3131 else if (if ((minSellPrice > e.sellOrder.price))
3232 then true
3333 else isDefined(e.sellOrder.assetPair.priceAsset))
3434 then throw(sellPriceError)
3535 else true
3636 else if (buy)
3737 then if ((e.buyOrder.amount > maxBuyAmount))
3838 then throw(buyAmountError)
3939 else if (if ((e.buyOrder.price > minBuyPrice))
4040 then true
4141 else isDefined(e.buyOrder.assetPair.priceAsset))
4242 then throw(buyPriceError)
4343 else true
4444 else false
4545 }
4646 case t: BurnTransaction|TransferTransaction =>
4747 true
4848 case _ =>
4949 true
5050 }

github/deemru/w8io/026f985 
19.04 ms