tx · J3uA1KzpeBqHxyvEZGhy71JtJQwMiVah9qGoPdGoByaX
3Mqa3Toa6jKf2wF8ma5b2XMUPn64p7cgL6F: -1.00000000 Waves
2019.01.29 19:37 [471786] smart asset 3Mqa3Toa6jKf2wF8ma5b2XMUPn64p7cgL6F > SELF 0.00000000 Rise
{
"type": 15,
"id": "J3uA1KzpeBqHxyvEZGhy71JtJQwMiVah9qGoPdGoByaX",
"fee": 100000000,
"feeAssetId": null,
"timestamp": 1548779845830,
"version": 1,
"sender": "3Mqa3Toa6jKf2wF8ma5b2XMUPn64p7cgL6F",
"senderPublicKey": "4k4xRPnrDM243pRAvYhicyD5EJeypAuyLvpFYyWbV5au",
"proofs": [
"4oDaaefUsB8oS6B2rb8VE3JwibvHrRTZebVvfkcEFj3kAv4Awc5DCubDDuVQbLKF2yRBs3KFdd1QxLLSXRwFjZ4m"
],
"assetId": "DCtKJM5HT3ZCoMLekHsKp8quwLA34Hqg3g4UwUbKm9Yt",
"script": "base64:AQQAAAALc3RhcnRIZWlnaHQAAAAAAAAUdSoEAAAACnN0YXJ0UHJpY2UAAAAAAACYloAEAAAAAUMAAAAAAAAAAGQEAAAACGludGVydmFsCQAAaAAAAAIAAAAAAAAAABgAAAAAAAAAADwEAAAAA2V4cAkAAGgAAAACCQAAaAAAAAIAAAAAAAAAAGQAAAAAAAAAADwAAAAAAAAAA+gEAAAAByRtYXRjaDAFAAAAAnR4AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABNFeGNoYW5nZVRyYW5zYWN0aW9uBAAAAAFlBQAAAAckbWF0Y2gwBAAAAARkYXlzCQAAaQAAAAIJAABlAAAAAgUAAAAGaGVpZ2h0BQAAAAtzdGFydEhlaWdodAUAAAAIaW50ZXJ2YWwDAwMJAABnAAAAAggFAAAAAWUAAAAFcHJpY2UJAABoAAAAAgUAAAAKc3RhcnRQcmljZQkAAGQAAAACAAAAAAAAAAABCQAAaQAAAAIJAABoAAAAAgUAAAAEZGF5cwUAAAAEZGF5cwUAAAABQwkBAAAAASEAAAABCQEAAAAJaXNEZWZpbmVkAAAAAQgICAUAAAABZQAAAAlzZWxsT3JkZXIAAAAJYXNzZXRQYWlyAAAACnByaWNlQXNzZXQHCQAAZwAAAAIFAAAAA2V4cAkAAGUAAAACCAgFAAAAAWUAAAAJc2VsbE9yZGVyAAAACmV4cGlyYXRpb24ICAUAAAABZQAAAAlzZWxsT3JkZXIAAAAJdGltZXN0YW1wBwkAAGcAAAACBQAAAANleHAJAABlAAAAAggIBQAAAAFlAAAACGJ1eU9yZGVyAAAACmV4cGlyYXRpb24ICAUAAAABZQAAAAhidXlPcmRlcgAAAAl0aW1lc3RhbXAHAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAA9CdXJuVHJhbnNhY3Rpb24EAAAAAnR4BQAAAAckbWF0Y2gwBgd4hQd1",
"chainId": 84,
"height": 471786,
"spentComplexity": 0
}
View: original | compacted
Prev: none
Next: none
Full:
Old | New | | Differences |
---|
1 | | - | # no script |
---|
| 1 | + | {-# STDLIB_VERSION 1 #-} |
---|
| 2 | + | {-# CONTENT_TYPE EXPRESSION #-} |
---|
| 3 | + | let startHeight = 1340714 |
---|
| 4 | + | let startPrice = 10000000 |
---|
| 5 | + | let C = 100 |
---|
| 6 | + | let interval = (24 * 60) |
---|
| 7 | + | let exp = ((100 * 60) * 1000) |
---|
| 8 | + | match tx { |
---|
| 9 | + | case e: ExchangeTransaction => |
---|
| 10 | + | let days = ((height - startHeight) / interval) |
---|
| 11 | + | if (if (if ((e.price >= (startPrice * (1 + ((days * days) / C))))) |
---|
| 12 | + | then !(isDefined(e.sellOrder.assetPair.priceAsset)) |
---|
| 13 | + | else false) |
---|
| 14 | + | then (exp >= (e.sellOrder.expiration - e.sellOrder.timestamp)) |
---|
| 15 | + | else false) |
---|
| 16 | + | then (exp >= (e.buyOrder.expiration - e.buyOrder.timestamp)) |
---|
| 17 | + | else false |
---|
| 18 | + | case tx: BurnTransaction => |
---|
| 19 | + | true |
---|
| 20 | + | case _ => |
---|
| 21 | + | false |
---|
| 22 | + | } |
---|