tx · 2LMezEpEPi41nyPh2rdzVScqWvg583K2mt8y8iHNUCcs

3P86UdUyY2d4n15xHFMqVuuVsaxj7mNmtBh:  -1.00000000 Waves

2019.04.25 22:02 [1498712] smart asset 3P86UdUyY2d4n15xHFMqVuuVsaxj7mNmtBh > SELF 0.0000000 Grow+ spam

{ "type": 15, "id": "2LMezEpEPi41nyPh2rdzVScqWvg583K2mt8y8iHNUCcs", "fee": 100000000, "feeAssetId": null, "timestamp": 1556218971109, "version": 1, "sender": "3P86UdUyY2d4n15xHFMqVuuVsaxj7mNmtBh", "senderPublicKey": "3Zogxgq7Gcw82HVnxBopx7qhWMjJYt55t98XC1hDSMR5", "proofs": [ "JmHnm9jrgEBTk2FLivB5tCZ4kdBAcEd9whcJEuG751izbhZZzT7T4U98gKKFa5ugxdXBFaaQBCwcGAqv7PR6bSG" ], "assetId": "2KTsNSLKXkFfHwfeKHBRoKB8af2xetTz37LF7pRAr7fr", "script": "base64:AgQAAAAKaGVpZ2h0RGlmZgAAAAAAAAAf4gQAAAAOcHJpY2VEaWZmQ29uc3QAAAAAAAACisgEAAAAD2V4cGlyYXRpb25Ib3VycwAAAAAAAAAAqAQAAAANbWF4RXhwaXJhdGlvbgkAAGgAAAACCQAAaAAAAAIJAABoAAAAAgUAAAAPZXhwaXJhdGlvbkhvdXJzAAAAAAAAAAA8AAAAAAAAAAA8AAAAAAAAAAPoBAAAAAtzdGFydEhlaWdodAAAAAAAABV3OQQAAAAGY3ljbGVzCQAAaQAAAAIJAABlAAAAAgUAAAAGaGVpZ2h0BQAAAAtzdGFydEhlaWdodAUAAAAKaGVpZ2h0RGlmZgQAAAAJcHJpY2VEaWZmCQAAaAAAAAIFAAAADnByaWNlRGlmZkNvbnN0BQAAAAZjeWNsZXMEAAAADXN0YXJ0QnV5UHJpY2UAAAAAAAAQ9EYEAAAAC21pbkJ1eVByaWNlCQAAZAAAAAIFAAAADXN0YXJ0QnV5UHJpY2UFAAAACXByaWNlRGlmZgQAAAAMbWF4Q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UAAAALbWluQnV5UHJpY2UGCQEAAAAJaXNEZWZpbmVkAAAAAQgICAUAAAABZQAAAAhidXlPcmRlcgAAAAlhc3NldFBhaXIAAAAKcHJpY2VBc3NldAkAAAIAAAABBQAAAA1idXlQcmljZUVycm9yBgcDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAE1RyYW5zZmVyVHJhbnNhY3Rpb24EAAAAAXQFAAAAByRtYXRjaDAJAAAAAAAAAggFAAAAAXQAAAAKZmVlQXNzZXRJZAEAAAAggmlTdV+GzsCUKRAo6M+ERL8eL/rZ65e0QVhuJc1uIlYGuLSjyw==", "chainId": 87, "height": 1498712, "spentComplexity": 0 } View: original | compacted Prev: 6yfejRNiZfoemdRkH2oSM6mUq559MWieaGBAQqKzwMav Next: none Full:
OldNewDifferences
11 {-# STDLIB_VERSION 2 #-}
22 {-# CONTENT_TYPE EXPRESSION #-}
33 let heightDiff = 8162
44 let priceDiffConst = 166600
55 let expirationHours = 168
66 let maxExpiration = (((expirationHours * 60) * 60) * 1000)
77 let startHeight = 1406777
88 let cycles = ((height - startHeight) / heightDiff)
99 let priceDiff = (priceDiffConst * cycles)
1010 let startBuyPrice = 1111110
1111 let minBuyPrice = (startBuyPrice + priceDiff)
1212 let maxBuyAmount = 77700000000
1313 let startSellPrice = 1111110
1414 let minSellPrice = (startSellPrice + priceDiff)
1515 let minSellAmount = 70000000
1616 let expirationError = "Order life must be <= 1 Week"
1717 let buyAmountError = ("Buy amount must be <= " + toString((maxBuyAmount / 100000000)))
1818 let buyPriceError = (((("Buy price must be <= " + toString(minBuyPrice)) + " wavelets in Cycle # ") + toString(cycles)) + ". Wait next Cycle")
1919 let sellAmountError = ("Sell amount must be >= " + toString((minSellAmount / 100000000)))
2020 let sellPriceError = (((("Sell price must be >= " + toString(minSellPrice)) + " wavelets in Cycle # ") + toString(cycles)) + ". Wait next Cycle")
2121 let WavesId = base58'WAVES'
2222 match tx {
2323 case e: ExchangeTransaction =>
2424 if (((e.sellOrder.expiration - e.sellOrder.timestamp) > maxExpiration))
2525 then throw(expirationError)
2626 else {
2727 let sell = sigVerify(e.sellOrder.bodyBytes, e.sellOrder.proofs[0], e.sellOrder.senderPublicKey)
2828 let buy = sigVerify(e.buyOrder.bodyBytes, e.buyOrder.proofs[0], e.buyOrder.senderPublicKey)
2929 if (if (sell)
3030 then buy
3131 else false)
3232 then true
3333 else if (sell)
3434 then if ((minSellAmount > e.sellOrder.amount))
3535 then throw(sellAmountError)
3636 else if (if ((minSellPrice > e.sellOrder.price))
3737 then true
3838 else isDefined(e.sellOrder.assetPair.priceAsset))
3939 then throw(sellPriceError)
4040 else true
4141 else if (buy)
4242 then if ((e.buyOrder.amount > maxBuyAmount))
4343 then throw(buyAmountError)
4444 else if (if ((e.buyOrder.price > minBuyPrice))
4545 then true
4646 else isDefined(e.buyOrder.assetPair.priceAsset))
4747 then throw(buyPriceError)
4848 else true
4949 else false
5050 }
5151 case t: TransferTransaction =>
5252 (t.feeAssetId == base58'9n59nsKt1f49Bp6VMjDrXjecHmtcfdQH6my3z3cDD949')
5353 case _ =>
5454 true
5555 }

github/deemru/w8io/3ef1775 
70.51 ms