tx · 2KQLpP8gJo9Pik5BBCv9cH96zShEBH1aAurVfqxs984i
3N2stb8dpnTUQtoqFpftho7WSbe82Pi3PLr: -1.00000000 Waves
2019.03.22 04:34 [546825] smart asset 3N2stb8dpnTUQtoqFpftho7WSbe82Pi3PLr > SELF 0.00000000 Token99
{
"type": 15,
"id": "2KQLpP8gJo9Pik5BBCv9cH96zShEBH1aAurVfqxs984i",
"fee": 100000000,
"feeAssetId": null,
"timestamp": 1553218460836,
"version": 1,
"sender": "3N2stb8dpnTUQtoqFpftho7WSbe82Pi3PLr",
"senderPublicKey": "CKxmpRLZ11nQztgSz1WnV2yUyUhWt6TWX5qXYq25f4ML",
"proofs": [
"x3PEHyiVk9k1FkeoY4noWZFCSwem8APbbBMm8qGZJURKkHhGp9AUJamJWeJJacWYqeKbieWLj463STdowX4YVFY"
],
"assetId": "D1FRHu524r7w4PiFXhSo59mVJjnRMjjNYyPKVfmA5vPq",
"script": "base64:AgQAAAAGaXNzdWVyCQEAAAAHQWRkcmVzcwAAAAEBAAAAGgFUji93NZq5foN3bWLxP+tVCE+23GCtLuH3BAAAAAdhc3NldElkAQAAACDZs/2DmwMZpmNCd6OESkpw/mO3CupHje/KPl9BC41zrQQAAAAHJG1hdGNoMAUAAAACdHgDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAABU9yZGVyBAAAAAJvcgUAAAAHJG1hdGNoMAcGepqV6Q==",
"chainId": 84,
"height": 546825,
"spentComplexity": 0
}
View: original | compacted
Prev: DBxvCWw8cUDd3odXvuCYca1pTf1Lz25nPK5gBCU537hF
Next: GNamM9gc3KAd98HwdmNAJeV8eKDyKjXJS6Ta6F7K9fpq
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 2 #-} |
---|
2 | 2 | | {-# CONTENT_TYPE EXPRESSION #-} |
---|
3 | 3 | | let issuer = Address(base58'3N2stb8dpnTUQtoqFpftho7WSbe82Pi3PLr') |
---|
4 | | - | let assetId = base58'D1FRHu524r7w4PiFXhSo59mVJjnRMjjNYyPKVfmA5vPq' |
---|
| 4 | + | let assetId = base58'FepeyYMNtJWjd3fNugdK5iLKAYDcUxSUnDNBEawgpuEc' |
---|
5 | 5 | | match tx { |
---|
6 | | - | case ex: ExchangeTransaction => |
---|
7 | | - | let pair = AssetPair(assetId, unit) |
---|
8 | | - | let price = extract(getInteger(issuer, "price")) |
---|
9 | | - | if ((ex.buyOrder.orderType == Buy)) |
---|
10 | | - | then if ((ex.buyOrder.assetPair == pair)) |
---|
11 | | - | then (ex.price >= price) |
---|
12 | | - | else false |
---|
13 | | - | else true |
---|
| 6 | + | case or: Order => |
---|
| 7 | + | false |
---|
14 | 8 | | case _ => |
---|
15 | 9 | | true |
---|
16 | 10 | | } |
---|