tx · 9XFMPu9wzW7TqtvFE7doVZgMSsohbreRhnee9hQ8WXFJ

3NCpnvRgxBNESWkZV99WLEHhi65xBmVW8a3:  -1.00000000 Waves

2019.03.07 02:47 [524708] smart asset 3NCpnvRgxBNESWkZV99WLEHhi65xBmVW8a3 > SELF 0.00000000 Mill11

{ "type": 15, "id": "9XFMPu9wzW7TqtvFE7doVZgMSsohbreRhnee9hQ8WXFJ", "fee": 100000000, "feeAssetId": null, "timestamp": 1551916118248, "version": 1, "sender": "3NCpnvRgxBNESWkZV99WLEHhi65xBmVW8a3", "senderPublicKey": "u7VamB229m8EPHqV1YzW7FhbhnLuVzzRvqvqQ8L4fDx", "proofs": [ "5t1GJBkSFs9ejheMEJD3JoxafpK1zruCRn1A3F5kq9Nvez9dqCRpvAckUhdteot1jndrJ43Qu2VunSvPmuKQezqj" ], "assetId": "2vc3BSZhXbvGUtUA1axyVPNDYenXnE5hTdp3hBM1EPrV", "script": "base64:AQQAAAAKaGVpZ2h0RGlmZgAAAAAAAAAAAgQAAAAOcHJpY2VEaWZmQ29uc3QAAAAAAAACisgEAAAAD2V4cGlyYXRpb25Ib3VycwAAAAAAAAAAGAQAAAANbWF4RXhwaXJhdGlvbgkAAGgAAAACCQAAaAAAAAIJAABoAAAAAgUAAAAPZXhwaXJhdGlvbkhvdXJzAAAAAAAAAAA8AAAAAAAAAAA8AAAAAAAAAAPoBAAAAAtzdGFydEhlaWdodAAAAAAAAAgBowQAAAAGY3ljbGVzCQAAaQAAAAIJAABlAAAAAgUAAAAGaGVpZ2h0BQAAAAtzdGFydEhlaWdodAUAAAAKaGVpZ2h0RGlmZgQAAAAJcHJpY2VEaWZmCQAAaAAAAAIFAAAADnByaWNlRGlmZkNvbnN0BQAAAAZjeWNsZXMEAAAADXN0YXJ0QnV5UHJpY2UAAAAAAAAQ9DwEAAAAC21pbkJ1eVByaWNlCQAAZAAAAAIFAAAADXN0YXJ0QnV5UHJpY2UFAAAACXByaWNlRGlmZgQAAAAOc3Rhcn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NlbmRlclB1YmxpY0tleQQAAAADYnV5CQAB9AAAAAMICAUAAAABZQAAAAhidXlPcmRlcgAAAAlib2R5Qnl0ZXMJAAGRAAAAAggIBQAAAAFlAAAACGJ1eU9yZGVyAAAABnByb29mcwAAAAAAAAAAAAgIBQAAAAFlAAAACGJ1eU9yZGVyAAAAD3NlbmRlclB1YmxpY0tleQMDBQAAAARzZWxsBQAAAANidXkHBgMFAAAABHNlbGwDAwkAAGYAAAACBQAAAAxtaW5TZWxsUHJpY2UICAUAAAABZQAAAAlzZWxsT3JkZXIAAAAFcHJpY2UGCQEAAAAJaXNEZWZpbmVkAAAAAQgICAUAAAABZQAAAAlzZWxsT3JkZXIAAAAJYXNzZXRQYWlyAAAACnByaWNlQXNzZXQJAAACAAAAAQUAAAAOc2VsbFByaWNlRXJyb3IGAwUAAAADYnV5AwMJAABmAAAAAggIBQAAAAFlAAAACGJ1eU9yZGVyAAAABXByaWNlBQAAAAttaW5CdXlQcmljZQYJAQAAAAlpc0RlZmluZWQAAAABCAgIBQAAAAFlAAAACGJ1eU9yZGVyAAAACWFzc2V0UGFpcgAAAApwcmljZUFzc2V0CQAAAgAAAAEFAAAADWJ1eVByaWNlRXJyb3IGBwMDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAF01hc3NUcmFuc2ZlclRyYW5zYWN0aW9uBgMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAPQnVyblRyYW5zYWN0aW9uBgkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABNUcmFuc2ZlclRyYW5zYWN0aW9uBgZx4dwm", "chainId": 84, "height": 524708, "spentComplexity": 0 } View: original | compacted Prev: none Next: none Full:
OldNewDifferences
1-# no script
1+{-# STDLIB_VERSION 1 #-}
2+{-# CONTENT_TYPE EXPRESSION #-}
3+let heightDiff = 2
4+let priceDiffConst = 166600
5+let expirationHours = 24
6+let maxExpiration = (((expirationHours * 60) * 60) * 1000)
7+let startHeight = 524707
8+let cycles = ((height - startHeight) / heightDiff)
9+let priceDiff = (priceDiffConst * cycles)
10+let startBuyPrice = 1111100
11+let minBuyPrice = (startBuyPrice + priceDiff)
12+let startSellPrice = 1111110
13+let minSellPrice = (startSellPrice + priceDiff)
14+let expirationError = "Order life must be <= 24 hours"
15+let buyPriceError = (((("Buy price must be <= " + toString(minBuyPrice)) + " wavelets in Cycle # ") + toString(cycles)) + ". Wait next Cycle")
16+let sellPriceError = (((("Sell price must be >= " + toString(minSellPrice)) + " wavelets in Cycle # ") + toString(cycles)) + ". Wait next Cycle")
17+match tx {
18+ case e: ExchangeTransaction =>
19+ if (((e.sellOrder.expiration - e.sellOrder.timestamp) > maxExpiration))
20+ then throw(expirationError)
21+ else {
22+ let sell = sigVerify(e.sellOrder.bodyBytes, e.sellOrder.proofs[0], e.sellOrder.senderPublicKey)
23+ let buy = sigVerify(e.buyOrder.bodyBytes, e.buyOrder.proofs[0], e.buyOrder.senderPublicKey)
24+ if (if (sell)
25+ then buy
26+ else false)
27+ then true
28+ else if (sell)
29+ then if (if ((minSellPrice > e.sellOrder.price))
30+ then true
31+ else isDefined(e.sellOrder.assetPair.priceAsset))
32+ then throw(sellPriceError)
33+ else true
34+ else if (buy)
35+ then if (if ((e.buyOrder.price > minBuyPrice))
36+ then true
37+ else isDefined(e.buyOrder.assetPair.priceAsset))
38+ then throw(buyPriceError)
39+ else true
40+ else false
41+ }
42+ case _: MassTransferTransaction|BurnTransaction|TransferTransaction =>
43+ true
44+ case _ =>
45+ true
46+}

github/deemru/w8io/026f985 
16.39 ms