tx · 8kpr1M9Qqx7ySTtuHEcA6C5f5jGRe3Rcnf1pgu9K1oEA
3MtHweJiyA6ikkkPCn4ssqpi4Nokcrf9hT9: -1.00000000 Waves
2019.03.19 05:24 [542506] smart asset 3MtHweJiyA6ikkkPCn4ssqpi4Nokcrf9hT9 > SELF 0.00000000 2020
{
"type": 15,
"id": "8kpr1M9Qqx7ySTtuHEcA6C5f5jGRe3Rcnf1pgu9K1oEA",
"fee": 100000000,
"feeAssetId": null,
"timestamp": 1552962269539,
"version": 1,
"sender": "3MtHweJiyA6ikkkPCn4ssqpi4Nokcrf9hT9",
"senderPublicKey": "5HwUTPzUP1wy7djMELX2wLNmasSaARD4kw1xpAyeJw1h",
"proofs": [
"4NuACjfeexhtuErzQTUKuDCRRF9AksvvxtjkrVsKFo2bHX32mJcyku9nmXVgPubstxR9XXG1yE9A2QC9bQ4Xrut7"
],
"assetId": "Cj5PHEx7yo2DSCyP3DdVSq9xuPuLMNpQWbTPcDoUBUCn",
"script": "base64:AgQAAAAGaXNzdWVyCQEAAAAHQWRkcmVzcwAAAAEBAAAAGgFUMALd3HQqggV4csLYbBu0QaHaUC3AkGsMBAAAAAdhc3NldElkAQAAACCuN+hG5QXNWmrs7C+qkKjbR9QaS6zpVjI/kDAkUBLC9wQAAAAHJG1hdGNoMAUAAAACdHgDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAE0V4Y2hhbmdlVHJhbnNhY3Rpb24EAAAAAmV4BQAAAAckbWF0Y2gwBAAAAARwYWlyCQEAAAAJQXNzZXRQYWlyAAAAAgUAAAAHYXNzZXRJZAUAAAAEdW5pdAQAAAAEcmF0ZQkBAAAAB2V4dHJhY3QAAAABCQAEGgAAAAIFAAAABmlzc3VlcgIAAAACMTAEAAAACHJhdGVEaWZmCQAAZQAAAAIFAAAABHJhdGUJAABrAAAAAwAAAAAABfXhAAgFAAAAAmV4AAAABXByaWNlCAUAAAACZXgAAAAGYW1vdW50AwMJAAAAAAAAAggIBQAAAAJleAAAAAhidXlPcmRlcgAAAAlhc3NldFBhaXIFAAAABHBhaXIJAABmAAAAAgUAAAAIcmF0ZURpZmYA//////////8HCQAAZgAAAAIAAAAAAAAAAAoFAAAACHJhdGVEaWZmBwZxlaWm",
"chainId": 84,
"height": 542506,
"spentComplexity": 0
}
View: original | compacted
Prev: 8P9d3gwNufwnQtSxMJpUv1n3yDhyLfpoe9LY1aXLdCH1
Next: none
Diff:
Old | New | | Differences |
---|
8 | 8 | | let rate = extract(getInteger(issuer, "10")) |
---|
9 | 9 | | let rateDiff = (rate - fraction(100000000, ex.price, ex.amount)) |
---|
10 | 10 | | if (if ((ex.buyOrder.assetPair == pair)) |
---|
11 | | - | then (rateDiff > -100) |
---|
| 11 | + | then (rateDiff > -1) |
---|
12 | 12 | | else false) |
---|
13 | | - | then (100 > rateDiff) |
---|
| 13 | + | then (10 > rateDiff) |
---|
14 | 14 | | else false |
---|
15 | 15 | | case _ => |
---|
16 | 16 | | true |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 2 #-} |
---|
2 | 2 | | {-# CONTENT_TYPE EXPRESSION #-} |
---|
3 | 3 | | let issuer = Address(base58'3MtHweJiyA6ikkkPCn4ssqpi4Nokcrf9hT9') |
---|
4 | 4 | | let assetId = base58'Cj5PHEx7yo2DSCyP3DdVSq9xuPuLMNpQWbTPcDoUBUCn' |
---|
5 | 5 | | match tx { |
---|
6 | 6 | | case ex: ExchangeTransaction => |
---|
7 | 7 | | let pair = AssetPair(assetId, unit) |
---|
8 | 8 | | let rate = extract(getInteger(issuer, "10")) |
---|
9 | 9 | | let rateDiff = (rate - fraction(100000000, ex.price, ex.amount)) |
---|
10 | 10 | | if (if ((ex.buyOrder.assetPair == pair)) |
---|
11 | | - | then (rateDiff > -100) |
---|
| 11 | + | then (rateDiff > -1) |
---|
12 | 12 | | else false) |
---|
13 | | - | then (100 > rateDiff) |
---|
| 13 | + | then (10 > rateDiff) |
---|
14 | 14 | | else false |
---|
15 | 15 | | case _ => |
---|
16 | 16 | | true |
---|
17 | 17 | | } |
---|