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