tx · HF52LdFWfR55LCWAS5DfuQmoGjUnc44SKprEx2fcrtNM
3N9fzexZxi7HrPcfizpvpFcaAnvpyuuMKPg: -1.00400000 Waves
2019.08.04 18:22 [616313] smart asset 3N9fzexZxi7HrPcfizpvpFcaAnvpyuuMKPg > SELF 0.00000000 OZOTOP
{
"type": 15,
"id": "HF52LdFWfR55LCWAS5DfuQmoGjUnc44SKprEx2fcrtNM",
"fee": 100400000,
"feeAssetId": null,
"timestamp": 1564932255572,
"version": 1,
"sender": "3N9fzexZxi7HrPcfizpvpFcaAnvpyuuMKPg",
"senderPublicKey": "BJB5QS4iQna1z8idKb5QQ5cACUmNgxzHc81Y7AW6ZZY7",
"proofs": [
"2G1eEzYaRiYs9outvxVGskvvvCFNFbpq6qb53amPN9L3768X4L9XEF8wExWiVQasyUsgLePPXN2J2HwzNqpuzjxa"
],
"assetId": "7oBrNTupD7DbgdpcmmbgPnFwPThRTBW88MCJvushcSRc",
"script": "base64:AwQAAAAOY29tcGFueUFkZGVyc3MJAQAAAAdBZGRyZXNzAAAAAQEAAAAaAVTYuGsQ23svLn7f1jEHvOAXUrYrcXeFFwsEAAAAByRtYXRjaDAFAAAAAnR4AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABNFeGNoYW5nZVRyYW5zYWN0aW9uBAAAAARleFR4BQAAAAckbWF0Y2gwBAAAAAtwcmVzZWxsVGltZQkAAGYAAAACCQEAAAAHZXh0cmFjdAAAAAEJAAQaAAAAAgUAAAAOY29tcGFueUFkZGVyc3MCAAAADmVuZFByZXNlbGxUaW1lCAUAAAAEZXhUeAAAAAl0aW1lc3RhbXAEAAAAFHNlbmRlck9yZGVyTm90SXNzdWVyAwkBAAAAAiE9AAAAAggIBQAAAARleFR4AAAACXNlbGxPcmRlcgAAAAZzZW5kZXIFAAAADmNvbXBhbnlBZGRlcnNzCQAAAAAAAAIICAUAAAAEZXhUeAAAAAlzZWxsT3JkZXIAAAAGc2VuZGVyCAgFAAAABGV4VHgAAAAIYnV5T3JkZXIAAAAGc2VuZGVyBwQAAAAPaXNUaW1lU2VsbE9sZGVyCQAAZgAAAAIICAUAAAAEZXhUeAAAAAhidXlPcmRlcgAAAAl0aW1lc3RhbXAICAUAAAAEZXhUeAAAAAlzZWxsT3JkZXIAAAAJdGltZXN0YW1wAwMDBQAAABRzZW5kZXJPcmRlck5vdElzc3VlcgUAAAAPaXNUaW1lU2VsbE9sZGVyBwUAAAALcHJlc2VsbFRpbWUHBgYDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAE1RyYW5zZmVyVHJhbnNhY3Rpb24EAAAAAXQFAAAAByRtYXRjaDADCQAAZgAAAAIJAQAAAAdleHRyYWN0AAAAAQkABBoAAAACBQAAAA5jb21wYW55QWRkZXJzcwIAAAAOZW5kUHJlc2VsbFRpbWUIBQAAAAF0AAAACXRpbWVzdGFtcAMJAAAAAAAAAggFAAAAAXQAAAAGc2VuZGVyBQAAAA5jb21wYW55QWRkZXJzcwYJAAAAAAAAAggFAAAAAXQAAAAJcmVjaXBpZW50BQAAAA5jb21wYW55QWRkZXJzcwYDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAGVNldEFzc2V0U2NyaXB0VHJhbnNhY3Rpb24EAAAAAnNjBQAAAAckbWF0Y2gwCQAAAAAAAAIIBQAAAAJzYwAAAAZzZW5kZXIFAAAADmNvbXBhbnlBZGRlcnNzB1Jugfk=",
"chainId": 84,
"height": 616313,
"spentComplexity": 0
}
View: original | compacted
Prev: DkM9mw6rpJCTDc1rtV9HKCejEdYAgpQoXmsVpJq2gyFs
Next: JmbM4ashFd6u9hBU1DnRMUBM81BZb3Sk9RW5siHMFSY
Diff:
Old | New | | Differences |
---|
7 | 7 | | let senderOrderNotIssuer = if ((exTx.sellOrder.sender != companyAdderss)) |
---|
8 | 8 | | then (exTx.sellOrder.sender == exTx.buyOrder.sender) |
---|
9 | 9 | | else false |
---|
10 | | - | let isAmountBuy = (exTx.buyOrder.amount > 0) |
---|
| 10 | + | let isTimeSellOlder = (exTx.buyOrder.timestamp > exTx.sellOrder.timestamp) |
---|
11 | 11 | | if (if (if (senderOrderNotIssuer) |
---|
12 | | - | then isAmountBuy |
---|
| 12 | + | then isTimeSellOlder |
---|
13 | 13 | | else false) |
---|
14 | 14 | | then presellTime |
---|
15 | 15 | | else false) |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 3 #-} |
---|
2 | 2 | | {-# CONTENT_TYPE EXPRESSION #-} |
---|
3 | 3 | | let companyAdderss = Address(base58'3N9fzexZxi7HrPcfizpvpFcaAnvpyuuMKPg') |
---|
4 | 4 | | match tx { |
---|
5 | 5 | | case exTx: ExchangeTransaction => |
---|
6 | 6 | | let presellTime = (extract(getInteger(companyAdderss, "endPresellTime")) > exTx.timestamp) |
---|
7 | 7 | | let senderOrderNotIssuer = if ((exTx.sellOrder.sender != companyAdderss)) |
---|
8 | 8 | | then (exTx.sellOrder.sender == exTx.buyOrder.sender) |
---|
9 | 9 | | else false |
---|
10 | | - | let isAmountBuy = (exTx.buyOrder.amount > 0) |
---|
| 10 | + | let isTimeSellOlder = (exTx.buyOrder.timestamp > exTx.sellOrder.timestamp) |
---|
11 | 11 | | if (if (if (senderOrderNotIssuer) |
---|
12 | | - | then isAmountBuy |
---|
| 12 | + | then isTimeSellOlder |
---|
13 | 13 | | else false) |
---|
14 | 14 | | then presellTime |
---|
15 | 15 | | else false) |
---|
16 | 16 | | then true |
---|
17 | 17 | | else true |
---|
18 | 18 | | case t: TransferTransaction => |
---|
19 | 19 | | if ((extract(getInteger(companyAdderss, "endPresellTime")) > t.timestamp)) |
---|
20 | 20 | | then if ((t.sender == companyAdderss)) |
---|
21 | 21 | | then true |
---|
22 | 22 | | else (t.recipient == companyAdderss) |
---|
23 | 23 | | else true |
---|
24 | 24 | | case sc: SetAssetScriptTransaction => |
---|
25 | 25 | | (sc.sender == companyAdderss) |
---|
26 | 26 | | case _ => |
---|
27 | 27 | | false |
---|
28 | 28 | | } |
---|