tx · 3UQWMEFqPSCdnW6aQEcnr1XZuVZiiNVz21AXAXETGYr3
3Mp2E6DeL9ypq5p2sKXQwxdrxuBqetS94WU: -1.00000000 Waves
2019.02.24 21:41 [509834] smart asset 3Mp2E6DeL9ypq5p2sKXQwxdrxuBqetS94WU > SELF 0.00000000 AAAAA
{
"type": 15,
"id": "3UQWMEFqPSCdnW6aQEcnr1XZuVZiiNVz21AXAXETGYr3",
"fee": 100000000,
"feeAssetId": null,
"timestamp": 1551033668378,
"version": 1,
"sender": "3Mp2E6DeL9ypq5p2sKXQwxdrxuBqetS94WU",
"senderPublicKey": "HugNn9gBihFZqanUzThuNTsVsx4A5EeCm69D8M6MACM2",
"proofs": [
"4vdEuyeG8GQNED5dD3ZDzUe4oGeiNPPMz9ZzUq4JJ2uACV3gVEVoD5XX4imPq88CUyyGKycwWnsHYGP7mcymcDHy"
],
"assetId": "9NAmSQtDVjci4J9vQULKDxKaAd2P93ad8BKjYfveBK1o",
"script": "base64:AQQAAAALc3RhcnRIZWlnaHQAAAAAAAAHx4YEAAAACnN0YXJ0UHJpY2UAAAAAAAAAJxAEAAAACGludGVydmFsCQAAaAAAAAIAAAAAAAAAABgAAAAAAAAAAAoEAAAAA2V4cAkAAGgAAAACCQAAaAAAAAIAAAAAAAAAAAoAAAAAAAAAADwAAAAAAAAAA+gEAAAAByRtYXRjaDAFAAAAAnR4AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABNFeGNoYW5nZVRyYW5zYWN0aW9uBAAAAAFlBQAAAAckbWF0Y2gwBAAAAARkYXlzCQAAaQAAAAIJAABlAAAAAgUAAAAGaGVpZ2h0BQAAAAtzdGFydEhlaWdodAUAAAAIaW50ZXJ2YWwDAwMJAABnAAAAAggFAAAAAWUAAAAFcHJpY2UJAABoAAAAAgUAAAAKc3RhcnRQcmljZQkAAGQAAAACAAAAAAAAAAABBQAAAARkYXlzCQEAAAABIQAAAAEJAQAAAAlpc0RlZmluZWQAAAABCAgIBQAAAAFlAAAACXNlbGxPcmRlcgAAAAlhc3NldFBhaXIAAAAKcHJpY2VBc3NldAQAAAAIbWluUHJpY2UJAABoAAAAAgUAAAAKc3RhcnRQcmljZQkAAGQAAAACAAAAAAAAAAABBQAAAARkYXlzCQAAAgAAAAEJAAEsAAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACAgAAACcgCiA+Pj4gQ3VycmVudCBwdXJjaGFzZSAvIHNhbGUgcHJpY2UgPSAJAAGkAAAAAQUAAAAIbWluUHJpY2UCAAAACSBzYXRvc2hpLgIAAAA/IAogPj4+INCi0LXQutGD0YnQsNGPINGG0LXQvdCwINC/0L7QutGD0L/QutC4L9C/0YDQvtC00LDQttC4ID0gCQABpAAAAAEFAAAACG1pblByaWNlAgAAAA4g0YHQsNGC0L7RiNC4LgkAAGcAAAACBQAAAANleHAJAABlAAAAAggIBQAAAAFlAAAACXNlbGxPcmRlcgAAAApleHBpcmF0aW9uCAgFAAAAAWUAAAAJc2VsbE9yZGVyAAAACXRpbWVzdGFtcAcJAABnAAAAAgUAAAADZXhwCQAAZQAAAAIICAUAAAABZQAAAAhidXlPcmRlcgAAAApleHBpcmF0aW9uCAgFAAAAAWUAAAAIYnV5T3JkZXIAAAAJdGltZXN0YW1wBgMDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAF01hc3NUcmFuc2ZlclRyYW5zYWN0aW9uBgMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAATVHJhbnNmZXJUcmFuc2FjdGlvbgYJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAPQnVyblRyYW5zYWN0aW9uBAAAAAJ0eAUAAAAHJG1hdGNoMAYG+5LU5w==",
"chainId": 84,
"height": 509834,
"spentComplexity": 0
}
View: original | compacted
Prev: none
Next: Ct3XyY3dET7PdquXzuzHqkq4r1uHj6FoweUk7KjW8K9s
Full:
Old | New | | Differences |
---|
1 | | - | # no script |
---|
| 1 | + | {-# STDLIB_VERSION 1 #-} |
---|
| 2 | + | {-# CONTENT_TYPE EXPRESSION #-} |
---|
| 3 | + | let startHeight = 509830 |
---|
| 4 | + | let startPrice = 10000 |
---|
| 5 | + | let interval = (24 * 10) |
---|
| 6 | + | let exp = ((10 * 60) * 1000) |
---|
| 7 | + | match tx { |
---|
| 8 | + | case e: ExchangeTransaction => |
---|
| 9 | + | let days = ((height - startHeight) / interval) |
---|
| 10 | + | if (if (if ((e.price >= (startPrice * (1 + days)))) |
---|
| 11 | + | then !(isDefined(e.sellOrder.assetPair.priceAsset)) |
---|
| 12 | + | else { |
---|
| 13 | + | let minPrice = (startPrice * (1 + days)) |
---|
| 14 | + | throw((((((" |
---|
| 15 | + | >>> Current purchase / sale price = " + toString(minPrice)) + " satoshi.") + " |
---|
| 16 | + | >>> Текущая цена покупки/продажи = ") + toString(minPrice)) + " сатоши.")) |
---|
| 17 | + | }) |
---|
| 18 | + | then (exp >= (e.sellOrder.expiration - e.sellOrder.timestamp)) |
---|
| 19 | + | else false) |
---|
| 20 | + | then (exp >= (e.buyOrder.expiration - e.buyOrder.timestamp)) |
---|
| 21 | + | else true |
---|
| 22 | + | case tx: MassTransferTransaction|TransferTransaction|BurnTransaction => |
---|
| 23 | + | true |
---|
| 24 | + | case _ => |
---|
| 25 | + | true |
---|
| 26 | + | } |
---|