tx · 3Jy7cT9KhghKsU8onHbbf8FvKXBAAEybQ6dejH9v5JuB

3MsxAJrS5TnsHQMaFdAzfKsq3bcEZVDs1sc:  -1.00000000 Waves

2019.03.24 22:00 [550806] smart asset 3MsxAJrS5TnsHQMaFdAzfKsq3bcEZVDs1sc > SELF 0.00000000 QQQQ

{ "type": 15, "id": "3Jy7cT9KhghKsU8onHbbf8FvKXBAAEybQ6dejH9v5JuB", "fee": 100000000, "feeAssetId": null, "timestamp": 1553454094258, "version": 1, "sender": "3MsxAJrS5TnsHQMaFdAzfKsq3bcEZVDs1sc", "senderPublicKey": "WHFZL2seDzc4cgHEy5jT7LStt5xpqztVfB58Vxhhi8T", "proofs": [ "52PUYTGnj8UYWh4urDeE8C4YK1x4R6dYTz6y8GiHbfcM3hzZCWpig8dGWnJBzri7E3HTVKPE7vv8VJGEyP5eZXeT" ], "assetId": "FNmdUgxs9XY5Kx2EZ6APsF6SWveEGno1yCGJFHJXxCac", "script": "base64:AgQAAAAGc3lzdGVtAgAAACtXSEZaTDJzZUR6YzRjZ0hFeTVqVDdMU3R0NXhwcXp0VmZCNThWeGhoaThUBAAAAApzdGFydFByaWNlAAAAAAAAD0JABAAAAApkZWx0YVByaWNlAAAAAAAAACcQBAAAAAtzdGFydEhlaWdodAAAAAAAAAhneQQAAAALZGVsdGFIZWlnaHQAAAAAAAAAAGQEAAAACXRpbWVPcmRlcgkAAGgAAAACCQAAaAAAAAIAAAAAAAAAADwAAAAAAAAAADwAAAAAAAAAA+gEAAAAByRtYXRjaDAFAAAAAnR4AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABNUcmFuc2ZlclRyYW5zYWN0aW9uBAAAAAFlBQAAAAckbWF0Y2gwAwkAAAAAAAACCQACWAAAAAEIBQAAAAFlAAAAD3NlbmRlclB1YmxpY0tleQUAAAAGc3lzdGVtBgcDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAElJlaXNzdWVUcmFuc2FjdGlvbgQAAAABZQUAAAAHJG1hd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pYml0ZWQgYnkgY29udHJhY3QuAksveQ==", "chainId": 84, "height": 550806, "spentComplexity": 0 } View: original | compacted Prev: FzTt3PokRgsuTyeDBCosv2Ur9Ydpk4mz1P149QL3ScHc Next: 3726J9MNJtJePnErvoE2PGLf4icQ8g35rzSg1GEDDGQ7 Diff:
OldNewDifferences
3737 then false
3838 else true
3939 else {
40- let ia = (startPrice / 1)
41- let ib = toString((startPrice - (ia * 1)))
42- throw((((("Minimum order price is " + toString(ia)) + ".") + take(ib, 2)) + " Waves."))
40+ let ia = (startPrice / 1000000)
41+ let ib = toString((startPrice - (ia * 1000000)))
42+ throw((((("Minimum order price is " + toString(ia)) + ".") + take(ib, 8)) + " Waves."))
4343 }
4444 else if ((orderPrice >= minimumPrice))
4545 then if (isDefined(e.sellOrder.assetPair.priceAsset))
4848 then true
4949 else throw("Maximum order time 1 hour.")
5050 else {
51- let ia = (minimumPrice / 1)
52- let ib = toString((minimumPrice - (ia * 1)))
53- throw((((("Minimum order price is " + toString(ia)) + ".") + take(ib, 2)) + " Waves."))
51+ let ia = (minimumPrice / 1000000)
52+ let ib = toString((minimumPrice - (ia * 1000000)))
53+ throw((((("Minimum order price is " + toString(ia)) + ".") + take(ib, 8)) + " Waves."))
5454 }
5555 case _ =>
5656 throw("Prohibited by contract.")
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 2 #-}
22 {-# CONTENT_TYPE EXPRESSION #-}
33 let system = "WHFZL2seDzc4cgHEy5jT7LStt5xpqztVfB58Vxhhi8T"
44 let startPrice = 1000000
55 let deltaPrice = 10000
66 let startHeight = 550777
77 let deltaHeight = 100
88 let timeOrder = ((60 * 60) * 1000)
99 match tx {
1010 case e: TransferTransaction =>
1111 if ((toBase58String(e.senderPublicKey) == system))
1212 then true
1313 else false
1414 case e: ReissueTransaction =>
1515 if ((toBase58String(e.senderPublicKey) == system))
1616 then true
1717 else false
1818 case e: BurnTransaction =>
1919 if ((toBase58String(e.senderPublicKey) == system))
2020 then true
2121 else false
2222 case e: MassTransferTransaction =>
2323 if ((toBase58String(e.senderPublicKey) == system))
2424 then true
2525 else false
2626 case e: SetAssetScriptTransaction =>
2727 if ((toBase58String(e.senderPublicKey) == system))
2828 then true
2929 else false
3030 case e: ExchangeTransaction =>
3131 let minimumPrice = (startPrice + (((height - startHeight) / deltaHeight) * deltaPrice))
3232 let orderPrice = e.price
3333 let buy = sigVerify(e.buyOrder.bodyBytes, e.buyOrder.proofs[0], e.buyOrder.senderPublicKey)
3434 if (buy)
3535 then if ((orderPrice >= startPrice))
3636 then if (isDefined(e.buyOrder.assetPair.priceAsset))
3737 then false
3838 else true
3939 else {
40- let ia = (startPrice / 1)
41- let ib = toString((startPrice - (ia * 1)))
42- throw((((("Minimum order price is " + toString(ia)) + ".") + take(ib, 2)) + " Waves."))
40+ let ia = (startPrice / 1000000)
41+ let ib = toString((startPrice - (ia * 1000000)))
42+ throw((((("Minimum order price is " + toString(ia)) + ".") + take(ib, 8)) + " Waves."))
4343 }
4444 else if ((orderPrice >= minimumPrice))
4545 then if (isDefined(e.sellOrder.assetPair.priceAsset))
4646 then false
4747 else if ((timeOrder >= (e.sellOrder.expiration - e.sellOrder.timestamp)))
4848 then true
4949 else throw("Maximum order time 1 hour.")
5050 else {
51- let ia = (minimumPrice / 1)
52- let ib = toString((minimumPrice - (ia * 1)))
53- throw((((("Minimum order price is " + toString(ia)) + ".") + take(ib, 2)) + " Waves."))
51+ let ia = (minimumPrice / 1000000)
52+ let ib = toString((minimumPrice - (ia * 1000000)))
53+ throw((((("Minimum order price is " + toString(ia)) + ".") + take(ib, 8)) + " Waves."))
5454 }
5555 case _ =>
5656 throw("Prohibited by contract.")
5757 }

github/deemru/w8io/026f985 
28.61 ms