tx · 2KisTETrPTi68cW6vqb6JGrpxTGYcZ56iSoinuVKGoeL
3NC6z8qVwvnUtjkCPjWkChi9pWqcR2DpDa3: -1.00000000 Waves
2019.03.20 11:26 [544356] smart asset 3NC6z8qVwvnUtjkCPjWkChi9pWqcR2DpDa3 > SELF 0.00000000 98token
{
"type": 15,
"id": "2KisTETrPTi68cW6vqb6JGrpxTGYcZ56iSoinuVKGoeL",
"fee": 100000000,
"feeAssetId": null,
"timestamp": 1553070457910,
"version": 1,
"sender": "3NC6z8qVwvnUtjkCPjWkChi9pWqcR2DpDa3",
"senderPublicKey": "6hRFV3c39EhCuHoNozcqU17q3PuMT48rjq6B4nYwNP3W",
"proofs": [
"2TsPXoNg1NhyD2ik9ur78rWEUSpY2iRQxurEb86v4kAcWbuoxcJHr4rDX3QuQsmrQF4Ek7FdWY3dR8cv9NJ3mDXh"
],
"assetId": "4UfTfQQZDtFbW89oqBSXHt9gt4KCA9SC8roSbzjFGh7T",
"script": "base64:AgQAAAAGaXNzdWVyCQEAAAAHQWRkcmVzcwAAAAEBAAAAGgFU82Kio9qxzJwolMCf2VgGRgcAN/mQjvhkBAAAAAdhc3NldElkAQAAACAzqTqorhTfO4QOcZZ+pD0JN/6dFzoRLtBZi0EAkZ4UzgQAAAAHJG1hdGNoMAUAAAACdHgDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAE0V4Y2hhbmdlVHJhbnNhY3Rpb24EAAAAAmV4BQAAAAckbWF0Y2gwBAAAAARwYWlyCQEAAAAJQXNzZXRQYWlyAAAAAgUAAAAHYXNzZXRJZAUAAAAEdW5pdAkAAAAAAAACCAgFAAAAAmV4AAAACGJ1eU9yZGVyAAAACWFzc2V0UGFpcgUAAAAEcGFpcga0BY/H",
"chainId": 84,
"height": 544356,
"spentComplexity": 0
}
View: original | compacted
Prev: DH96jTBhNApgHnboZAQZytwXJqvvhJcbVbyTpeCRhSwr
Next: 4neNvsLfr94H6uwJuqc6Vz2QNt4YsjmooVVc5xLafFyZ
Diff:
Old | New | | Differences |
---|
5 | 5 | | match tx { |
---|
6 | 6 | | case ex: ExchangeTransaction => |
---|
7 | 7 | | let pair = AssetPair(assetId, unit) |
---|
8 | | - | let rate = extract(getInteger(issuer, "exchangeRate")) |
---|
9 | | - | let rateDiff = (rate - fraction(100000000, ex.price, ex.amount)) |
---|
10 | | - | if (if ((ex.buyOrder.assetPair == pair)) |
---|
11 | | - | then (rateDiff > -100) |
---|
12 | | - | else false) |
---|
13 | | - | then (100 > rateDiff) |
---|
14 | | - | else false |
---|
| 8 | + | (ex.buyOrder.assetPair == pair) |
---|
15 | 9 | | case _ => |
---|
16 | 10 | | true |
---|
17 | 11 | | } |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 2 #-} |
---|
2 | 2 | | {-# CONTENT_TYPE EXPRESSION #-} |
---|
3 | 3 | | let issuer = Address(base58'3NC6z8qVwvnUtjkCPjWkChi9pWqcR2DpDa3') |
---|
4 | 4 | | let assetId = base58'4UfTfQQZDtFbW89oqBSXHt9gt4KCA9SC8roSbzjFGh7T' |
---|
5 | 5 | | match tx { |
---|
6 | 6 | | case ex: ExchangeTransaction => |
---|
7 | 7 | | let pair = AssetPair(assetId, unit) |
---|
8 | | - | let rate = extract(getInteger(issuer, "exchangeRate")) |
---|
9 | | - | let rateDiff = (rate - fraction(100000000, ex.price, ex.amount)) |
---|
10 | | - | if (if ((ex.buyOrder.assetPair == pair)) |
---|
11 | | - | then (rateDiff > -100) |
---|
12 | | - | else false) |
---|
13 | | - | then (100 > rateDiff) |
---|
14 | | - | else false |
---|
| 8 | + | (ex.buyOrder.assetPair == pair) |
---|
15 | 9 | | case _ => |
---|
16 | 10 | | true |
---|
17 | 11 | | } |
---|