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