tx · Dq816XqwURsMDeYSnnszcnyvioMNsWaAp1kTSxL9ziXX

3MsxAJrS5TnsHQMaFdAzfKsq3bcEZVDs1sc:  -1.00000000 Waves

2019.03.24 21:07 [550756] smart asset 3MsxAJrS5TnsHQMaFdAzfKsq3bcEZVDs1sc > SELF 0.00000000 QQQQ

{ "type": 15, "id": "Dq816XqwURsMDeYSnnszcnyvioMNsWaAp1kTSxL9ziXX", "fee": 100000000, "feeAssetId": null, "timestamp": 1553450920553, "version": 1, "sender": "3MsxAJrS5TnsHQMaFdAzfKsq3bcEZVDs1sc", "senderPublicKey": "WHFZL2seDzc4cgHEy5jT7LStt5xpqztVfB58Vxhhi8T", "proofs": [ "58E2nkeTboW2PpFfvvtRgpxC3d4K49814Nbut88UHVo3QtQSHYLyC3v4nf6Dd1R31fadG2mkidg7zmX54LRGRbwS" ], "assetId": "FNmdUgxs9XY5Kx2EZ6APsF6SWveEGno1yCGJFHJXxCac", "script": "base64:AgQAAAAGc3lzdGVtAgAAACtXSEZaTDJzZUR6YzRjZ0hFeTVqVDdMU3R0NXhwcXp0VmZCNThWeGhoaThUBAAAAApzdGFydFByaWNlAAAAAAAAD0JABAAAAApkZWx0YVByaWNlAAAAAAAAACcQBAAAAAtzdGFydEhlaWdodAAAAAAAAAhnYAQAAAALZGVsdGFIZWlnaHQAAAAAAAAAAAoEAAAACXRpbWVPcmRlcgkAAGgAAAACCQAAaAAAAAIAAAAAAAAAADwAAAAAAAAAADwAAAAAAAAAA+gEAAAAByRtYXRjaDAFAAAAAnR4AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABNUcmFuc2ZlclRyYW5zYWN0aW9uBAAAAAFlBQAAAAckbWF0Y2gwAwkAAAAAAAACCQACWAAAAAEIBQAAAAFlAAAAD3NlbmRlclB1YmxpY0tleQUAAAAGc3lzdGVtBgcDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAElJlaXNzdWVUcmFuc2FjdGlvbgQAAAABZQUAAAAHJG1hdGNoMAMJAA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Y29udHJhY3QuaKDcNQ==", "chainId": 84, "height": 550756, "spentComplexity": 0 } View: original | compacted Prev: none Next: ASAFu4CH3NezYWCqPLFycK3BPRDtuwiGbc9aA2eAegUW Full:
OldNewDifferences
1-# no script
1+{-# STDLIB_VERSION 2 #-}
2+{-# CONTENT_TYPE EXPRESSION #-}
3+let system = "WHFZL2seDzc4cgHEy5jT7LStt5xpqztVfB58Vxhhi8T"
4+let startPrice = 1000000
5+let deltaPrice = 10000
6+let startHeight = 550752
7+let deltaHeight = 10
8+let timeOrder = ((60 * 60) * 1000)
9+match tx {
10+ case e: TransferTransaction =>
11+ if ((toBase58String(e.senderPublicKey) == system))
12+ then true
13+ else false
14+ case e: ReissueTransaction =>
15+ if ((toBase58String(e.senderPublicKey) == system))
16+ then true
17+ else false
18+ case e: BurnTransaction =>
19+ if ((toBase58String(e.senderPublicKey) == system))
20+ then true
21+ else false
22+ case e: MassTransferTransaction =>
23+ if ((toBase58String(e.senderPublicKey) == system))
24+ then true
25+ else false
26+ case e: SetAssetScriptTransaction =>
27+ if ((toBase58String(e.senderPublicKey) == system))
28+ then true
29+ else false
30+ case e: ExchangeTransaction =>
31+ let minimumPrice = (startPrice + (((height - startHeight) / deltaHeight) * deltaPrice))
32+ let orderPrice = e.price
33+ let buy = sigVerify(e.buyOrder.bodyBytes, e.buyOrder.proofs[0], e.buyOrder.senderPublicKey)
34+ if (buy)
35+ then if ((orderPrice >= startPrice))
36+ then if (isDefined(e.buyOrder.assetPair.priceAsset))
37+ then false
38+ else true
39+ else {
40+ let ia = (startPrice / 100000000)
41+ let ib = toString((startPrice - (ia * 100000000)))
42+ throw((((("Minimum order price is " + toString(ia)) + ".") + take(ib, 2)) + " Waves."))
43+ }
44+ else if ((orderPrice >= minimumPrice))
45+ then if (isDefined(e.sellOrder.assetPair.priceAsset))
46+ then false
47+ else if ((timeOrder >= (e.sellOrder.expiration - e.sellOrder.timestamp)))
48+ then true
49+ else throw("Maximum order time 1 hour.")
50+ else {
51+ let ia = (minimumPrice / 100000000)
52+ let ib = toString((minimumPrice - (ia * 100000000)))
53+ throw((((("Minimum order price is " + toString(ia)) + ".") + take(ib, 2)) + " Waves."))
54+ }
55+ case _ =>
56+ throw("Prohibited by contract.")
57+}

github/deemru/w8io/169f3d6 
19.24 ms