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