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