tx · EhKTUjFDigFi5xnWWYFnmVDcRwqdFsrd4oDchAT4uppy
3N1BFRQ4bJjPmz4WjsK7HurEUKArWfR7L69: -1.00000000 Waves
2019.11.03 08:04 [748261] smart asset 3N1BFRQ4bJjPmz4WjsK7HurEUKArWfR7L69 > SELF 0 SucVo1
{
"type": 15,
"id": "EhKTUjFDigFi5xnWWYFnmVDcRwqdFsrd4oDchAT4uppy",
"fee": 100000000,
"feeAssetId": null,
"timestamp": 1572757501273,
"version": 1,
"sender": "3N1BFRQ4bJjPmz4WjsK7HurEUKArWfR7L69",
"senderPublicKey": "3rNNnUyeyDagJYytTzfrioavHeoRhjEquJrHQGsPDqbr",
"proofs": [
"57LZF2kKtQF2SmP87eZnLrCLG7bmwChVvHL2dmMYDZdT2y7Enu8QLgnYayp6bNBWtwtVyh8rADFkHuDCx6AYvWuN"
],
"assetId": "6135ijx8Nv2EzqQWQ9V13BqFWpovhxxjkSzurcy3eqco",
"script": "base64:AgQAAAAKZXhwaXJhdGlvbgAAAAFpXj9KgAQAAAAFcHJpY2UAAAAAADuaygAEAAAAByRtYXRjaDAFAAAAAnR4AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABNFeGNoYW5nZVRyYW5zYWN0aW9uBAAAAAFlBQAAAAckbWF0Y2gwBAAAAARwYWlyCAgFAAAAAWUAAAAIYnV5T3JkZXIAAAAJYXNzZXRQYWlyBAAAAA50cmFkZWRGb3JXYXZlcwMJAQAAAAEhAAAAAQkBAAAACWlzRGVmaW5lZAAAAAEIBQAAAARwYWlyAAAAC2Ftb3VudEFzc2V0BgkBAAAAASEAAAABCQEAAAAJaXNEZWZpbmVkAAAAAQgFAAAABHBhaXIAAAAKcHJpY2VBc3NldAMFAAAADnRyYWRlZEZvcldhdmVzCQAAAAAAAAIIBQAAAAFlAAAABXByaWNlBQAAAAVwcmljZQcDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAD0J1cm5UcmFuc2FjdGlvbgQAAAABYgUAAAAHJG1hdGNoMAkAAGYAAAACCAUAAAABYgAAAAl0aW1lc3RhbXAFAAAACmV4cGlyYXRpb24DAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABdNYXNzVHJhbnNmZXJUcmFuc2FjdGlvbgYJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAATVHJhbnNmZXJUcmFuc2FjdGlvbgYGeiQ6yg==",
"chainId": 84,
"height": 748261,
"spentComplexity": 0
}
View: original | compacted
Prev: FnWgzdSzZUvsMT4LT5YuLKZJ5yAxHnWQkYGLBr2ut7YF
Next: 9EY4pjCDe1XnekZ8rb7GDLQujhCSt5dTVL6qzqffewDp
Full:
Old | New | | Differences |
---|
1 | | - | {-# STDLIB_VERSION 3 #-} |
---|
| 1 | + | {-# STDLIB_VERSION 2 #-} |
---|
2 | 2 | | {-# CONTENT_TYPE EXPRESSION #-} |
---|
3 | | - | let startHeight = 748239 |
---|
4 | | - | let WAVESId = base58'WAVES' |
---|
5 | | - | let startPrice = 1 |
---|
6 | | - | let interval = (8766 * 60) |
---|
7 | | - | let exp = ((41760 * 60) * 1000) |
---|
| 3 | + | let expiration = 1552064400000 |
---|
| 4 | + | let price = 1000000000 |
---|
8 | 5 | | match tx { |
---|
9 | 6 | | case e: ExchangeTransaction => |
---|
10 | | - | let years = ((height - startHeight) / interval) |
---|
11 | | - | if (if ((e.price >= (startPrice * (1 + years)))) |
---|
12 | | - | then !(isDefined(e.sellOrder.assetPair.priceAsset)) |
---|
13 | | - | else false) |
---|
14 | | - | then (e.amount >= 100000000) |
---|
| 7 | + | let pair = e.buyOrder.assetPair |
---|
| 8 | + | let tradedForWaves = if (!(isDefined(pair.amountAsset))) |
---|
| 9 | + | then true |
---|
| 10 | + | else !(isDefined(pair.priceAsset)) |
---|
| 11 | + | if (tradedForWaves) |
---|
| 12 | + | then (e.price == price) |
---|
15 | 13 | | else false |
---|
| 14 | + | case b: BurnTransaction => |
---|
| 15 | + | (b.timestamp > expiration) |
---|
| 16 | + | case _: MassTransferTransaction|TransferTransaction => |
---|
| 17 | + | true |
---|
16 | 18 | | case _ => |
---|
17 | 19 | | true |
---|
18 | 20 | | } |
---|