tx · cmDxbQJ8LmBYRRQevKLKCHjcDtzA5yBLC3LGneZZJKR
3NDEu9dtCM6JCrSBtd2zyKaRbXAsvwfo8Du: -1.00000000 Waves
2019.07.10 18:47 [579781] smart asset 3NDEu9dtCM6JCrSBtd2zyKaRbXAsvwfo8Du > SELF 0.00000000 ttt1
{
"type": 15,
"id": "cmDxbQJ8LmBYRRQevKLKCHjcDtzA5yBLC3LGneZZJKR",
"fee": 100000000,
"feeAssetId": null,
"timestamp": 1562773657791,
"version": 1,
"sender": "3NDEu9dtCM6JCrSBtd2zyKaRbXAsvwfo8Du",
"senderPublicKey": "AD2vbzpR3ZMXiY1ZhBdq4iH1wz5w6tUCHPz1vvNfyCqE",
"proofs": [
"C387GbxXvJ2FMf3pmTwkWVzMFdbsdQgNYzREhvuHyMcry7Ua8EK1rL6NdBpCZbckQmuwRKgxbY2ArfxjyMaykKT"
],
"assetId": "DRkPHDtPGXv66P6qH1zrv1vHMPpRJ5wASuA8K98zEmey",
"script": "base64:AwQAAAALZXJyb3JFeHBpcmUCAAAAJyMjIyMjIyMjIE9yZGVyIHNob3VsZCBleHBpcmUgaW4gb25lIGRheQQAAAAQZXJyb3JJbnZhbGlkUGFpcgIAAAAnIyMjIyMjIyBPbmx5IFdBVkVTLCBVU0QgYW5kIEJUQyBhbGxvd2VkBAAAAAZhc3NldHMJAARMAAAAAgEAAAAguec/qo8QJtuj3bookxh1fq0CogDYmuE6CdbFUTcLG40JAARMAAAAAgEAAAAgs6vtjrjcYSSyYVbetNsiFAS7MHCRF2JJuH+9FCzTMzcJAARMAAAAAgUAAAAEdW5pdAUAAAADbmlsBAAAAAckbWF0Y2gwBQAAAAJ0eAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAATRXhjaGFuZ2VUcmFuc2FjdGlvbgQAAAABbwUAAAAHJG1hdGNoMAQAAAALbWF4RXhwaXJlVHMJAABkAAAAAgkAAGQAAAACCAkBAAAAB2V4dHJhY3QAAAABCQAD7QAAAAEFAAAABmhla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2V0UGFpcgAAAApwcmljZUFzc2V0CQABkQAAAAIFAAAABmFzc2V0cwAAAAAAAAAAAgcJAAACAAAAAQUAAAAQZXJyb3JJbnZhbGlkUGFpcgYGq2E/Cg==",
"chainId": 84,
"height": 579781,
"spentComplexity": 0
}
View: original | compacted
Prev: LXFLd3GePDFE8sv6peRJ6CihJiH87jxQuGjXZDkiidg
Next: none
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 3 #-} |
---|
2 | 2 | | {-# CONTENT_TYPE EXPRESSION #-} |
---|
3 | | - | let error = "######## Order should expire in one day" |
---|
| 3 | + | let errorExpire = "######## Order should expire in one day" |
---|
| 4 | + | let errorInvalidPair = "####### Only WAVES, USD and BTC allowed" |
---|
| 5 | + | let assets = [base58'DWgwcZTMhSvnyYCoWLRUXXSH1RSkzThXLJhww9gwkqdn', base58'D6N2rAqWN6ZCWnCeNFWLGqqjS6nJLeK4m19XiuhdDenr', unit] |
---|
4 | 6 | | match tx { |
---|
5 | 7 | | case o: ExchangeTransaction => |
---|
6 | 8 | | let maxExpireTs = ((extract(blockInfoByHeight(height)).timestamp + (((24 * 60) * 60) * 1000)) + ((5 * 60) * 1000)) |
---|
7 | 9 | | if ((o.buyOrder.expiration > maxExpireTs)) |
---|
8 | | - | then throw(error) |
---|
| 10 | + | then throw(errorExpire) |
---|
9 | 11 | | else if ((o.sellOrder.expiration > maxExpireTs)) |
---|
10 | | - | then throw(error) |
---|
11 | | - | else true |
---|
| 12 | + | then throw(errorExpire) |
---|
| 13 | + | else if (if (if ((o.buyOrder.assetPair.priceAsset != assets[0])) |
---|
| 14 | + | then (o.buyOrder.assetPair.priceAsset != assets[1]) |
---|
| 15 | + | else false) |
---|
| 16 | + | then (o.buyOrder.assetPair.priceAsset != assets[2]) |
---|
| 17 | + | else false) |
---|
| 18 | + | then throw(errorInvalidPair) |
---|
| 19 | + | else if (if (if ((o.sellOrder.assetPair.priceAsset != assets[0])) |
---|
| 20 | + | then (o.sellOrder.assetPair.priceAsset != assets[1]) |
---|
| 21 | + | else false) |
---|
| 22 | + | then (o.sellOrder.assetPair.priceAsset != assets[2]) |
---|
| 23 | + | else false) |
---|
| 24 | + | then throw(errorInvalidPair) |
---|
| 25 | + | else true |
---|
12 | 26 | | case _ => |
---|
13 | 27 | | true |
---|
14 | 28 | | } |
---|