tx · Eq8R32xgDsvBCgvMLHH1AY8RrMwAaomC5afVvA6DGvKf
3Mv1Nj83z4ZQjraVppPBuXGL9csBM4DRqQx: -1.00000000 Waves
2019.02.20 16:18 [503550] smart asset 3Mv1Nj83z4ZQjraVppPBuXGL9csBM4DRqQx > SELF 0.00000000 WTFG
{
"type": 15,
"id": "Eq8R32xgDsvBCgvMLHH1AY8RrMwAaomC5afVvA6DGvKf",
"fee": 100000000,
"feeAssetId": null,
"timestamp": 1550668749686,
"version": 1,
"sender": "3Mv1Nj83z4ZQjraVppPBuXGL9csBM4DRqQx",
"senderPublicKey": "2hBxjELYxmCKQXARcQYckmzypjNkRLnL4tZSQp6XHhWg",
"proofs": [
"4CSqd1rZqQP8Ro6yRR3edHLHPTCr8XPdmetcRxgxwqKVL6pvt4HvQBHQUjgKua5Ep4aqxjAT5UafGxpGFxwMK4mT"
],
"assetId": "EqNp1hxse9c13P9cqxCxvGagkAAENhJy8P615U5rwUbg",
"script": "base64:AQQAAAAFcHJpY2UAAAAAAAX14QEEAAAACHByaWNlbWluAAAAAAAL68IBBAAAAARQYWlyCQEAAAAJQXNzZXRQYWlyAAAAAgUAAAAEdW5pdAEAAAAgzYx4W9Jed07esV0az1/a+QmnX6Nj+tfM2SX5aJD6CmcEAAAAByRtYXRjaDAFAAAAAnR4AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABNFeGNoYW5nZVRyYW5zYWN0aW9uBAAAAAFlBQAAAAckbWF0Y2gwAwkAAGYAAAACCAgFAAAAAWUAAAAJc2VsbE9yZGVyAAAABXByaWNlBQAAAAVwcmljZQYDCQAAZgAAAAIICAUAAAABZQAAAAhidXlPcmRlcgAAAAVwcmljZQUAAAAIcHJpY2VtaW4GBwMDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAGVNldEFzc2V0U2NyaXB0VHJhbnNhY3Rpb24GCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAF01hc3NUcmFuc2ZlclRyYW5zYWN0aW9uBAAAAARtYXNzBQAAAAckbWF0Y2gwBAAAAAt0cmFuc2FjdGlvbgkAA+gAAAABCQEAAAAHZXh0cmFjdAAAAAEIBQAAAARtYXNzAAAAB2Fzc2V0SWQEAAAAByRtYXRjaDEFAAAAC3RyYW5zYWN0aW9uAwkAAAEAAAACBQAAAAckbWF0Y2gxAgAAABBJc3N1ZVRyYW5zYWN0aW9uBAAAAAdpc3N1ZVR4BQAAAAckbWF0Y2gxCQAAAAAAAAIIBQAAAARtYXNzAAAAD3NlbmRlclB1YmxpY0tleQgFAAAAB2lzc3VlVHgAAAAPc2VuZGVyUHVibGljS2V5CQAAAgAAAAECAAAAEUJhZCBpc3N1ZSB0eCB0eXBlCQAAAgAAAAECAAAAIFlvdSBvbmx5IGNhbiB0cmFuc2ZlciB0aGlzIHRva2VuUA9EvA==",
"chainId": 84,
"height": 503550,
"spentComplexity": 0
}
View: original | compacted
Prev: EgmzbuocLbeZDyk9zHnC4qcy8nQGxMxbYdqvN3cNMWkx
Next: 9aqr2ARxKGMQDsfD7KbPeiGDwTzrGzgPj9zLAwBePvDs
Diff:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 1 #-} |
---|
2 | 2 | | {-# CONTENT_TYPE EXPRESSION #-} |
---|
3 | 3 | | let price = 100000001 |
---|
4 | | - | let pricemin = 0 |
---|
| 4 | + | let pricemin = 200000001 |
---|
5 | 5 | | let Pair = AssetPair(unit, base58'EqNp1hxse9c13P9cqxCxvGagkAAENhJy8P615U5rwUbg') |
---|
6 | 6 | | match tx { |
---|
7 | 7 | | case e: ExchangeTransaction => |
---|
8 | | - | let pair = e.sellOrder.assetPair |
---|
9 | | - | let pairs = e.buyOrder.assetPair |
---|
10 | | - | let tradedForWaves = if (!(isDefined(pair.amountAsset))) |
---|
| 8 | + | if ((e.sellOrder.price > price)) |
---|
11 | 9 | | then true |
---|
12 | | - | else !(isDefined(pair.priceAsset)) |
---|
13 | | - | if (if (if (if (tradedForWaves) |
---|
14 | | - | then (e.sellOrder.price >= price) |
---|
15 | | - | else false) |
---|
16 | | - | then true |
---|
17 | | - | else !(isDefined(pairs.amountAsset))) |
---|
18 | | - | then true |
---|
19 | | - | else !(isDefined(pairs.priceAsset))) |
---|
20 | | - | then (e.buyOrder.price > pricemin) |
---|
21 | | - | else false |
---|
| 10 | + | else if ((e.buyOrder.price > pricemin)) |
---|
| 11 | + | then true |
---|
| 12 | + | else false |
---|
22 | 13 | | case mass: SetAssetScriptTransaction|MassTransferTransaction => |
---|
23 | 14 | | let transaction = transactionById(extract(mass.assetId)) |
---|
24 | 15 | | match transaction { |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 1 #-} |
---|
2 | 2 | | {-# CONTENT_TYPE EXPRESSION #-} |
---|
3 | 3 | | let price = 100000001 |
---|
4 | | - | let pricemin = 0 |
---|
| 4 | + | let pricemin = 200000001 |
---|
5 | 5 | | let Pair = AssetPair(unit, base58'EqNp1hxse9c13P9cqxCxvGagkAAENhJy8P615U5rwUbg') |
---|
6 | 6 | | match tx { |
---|
7 | 7 | | case e: ExchangeTransaction => |
---|
8 | | - | let pair = e.sellOrder.assetPair |
---|
9 | | - | let pairs = e.buyOrder.assetPair |
---|
10 | | - | let tradedForWaves = if (!(isDefined(pair.amountAsset))) |
---|
| 8 | + | if ((e.sellOrder.price > price)) |
---|
11 | 9 | | then true |
---|
12 | | - | else !(isDefined(pair.priceAsset)) |
---|
13 | | - | if (if (if (if (tradedForWaves) |
---|
14 | | - | then (e.sellOrder.price >= price) |
---|
15 | | - | else false) |
---|
16 | | - | then true |
---|
17 | | - | else !(isDefined(pairs.amountAsset))) |
---|
18 | | - | then true |
---|
19 | | - | else !(isDefined(pairs.priceAsset))) |
---|
20 | | - | then (e.buyOrder.price > pricemin) |
---|
21 | | - | else false |
---|
| 10 | + | else if ((e.buyOrder.price > pricemin)) |
---|
| 11 | + | then true |
---|
| 12 | + | else false |
---|
22 | 13 | | case mass: SetAssetScriptTransaction|MassTransferTransaction => |
---|
23 | 14 | | let transaction = transactionById(extract(mass.assetId)) |
---|
24 | 15 | | match transaction { |
---|
25 | 16 | | case issueTx: IssueTransaction => |
---|
26 | 17 | | (mass.senderPublicKey == issueTx.senderPublicKey) |
---|
27 | 18 | | case _ => |
---|
28 | 19 | | throw("Bad issue tx type") |
---|
29 | 20 | | } |
---|
30 | 21 | | case _ => |
---|
31 | 22 | | throw("You only can transfer this token") |
---|
32 | 23 | | } |
---|