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