tx · 72x76ibkZpjP4xwQa55ESLKcLhgZ5Bq2cUdWMej1Xcgb
3MtHweJiyA6ikkkPCn4ssqpi4Nokcrf9hT9: -1.00000000 Waves
2019.03.18 05:18 [541072] smart asset 3MtHweJiyA6ikkkPCn4ssqpi4Nokcrf9hT9 > SELF 0.00000000 serrote
{
"type": 15,
"id": "72x76ibkZpjP4xwQa55ESLKcLhgZ5Bq2cUdWMej1Xcgb",
"fee": 100000000,
"feeAssetId": null,
"timestamp": 1552875529697,
"version": 1,
"sender": "3MtHweJiyA6ikkkPCn4ssqpi4Nokcrf9hT9",
"senderPublicKey": "5HwUTPzUP1wy7djMELX2wLNmasSaARD4kw1xpAyeJw1h",
"proofs": [
"5LGzhttmeMymTX5kpQozdhrNADJTQ2Nypcf5H15kDiGLsPK5wfjLD28uM83m3SM886CcH1WNyxdqR2aXs7BVAK7z"
],
"assetId": "CpMnMP75j2vyK5cGaiVsLTgFTfxgFcFLMnVUshzzeHrA",
"script": "base64:AgQAAAAFcHJpY2UAAAAAAAAAAAEEAAAABmFtb3VudAAAAAAAAAAABQQAAAAHJG1hdGNoMAUAAAACdHgDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAE0V4Y2hhbmdlVHJhbnNhY3Rpb24EAAAAAWEFAAAAByRtYXRjaDAEAAAABHBhaXIICAUAAAABYQAAAAhidXlPcmRlcgAAAAlhc3NldFBhaXIEAAAADnRyYWRlZEZvcldhdmVzAwkBAAAAASEAAAABCQEAAAAJaXNEZWZpbmVkAAAAAQgFAAAABHBhaXIAAAALYW1vdW50QXNzZXQGCQEAAAABIQAAAAEJAQAAAAlpc0RlZmluZWQAAAABCAUAAAAEcGFpcgAAAApwcmljZUFzc2V0AwUAAAAOdHJhZGVkRm9yV2F2ZXMJAAAAAAAAAggFAAAAAWEAAAAFcHJpY2UFAAAABXByaWNlBwMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAATRXhjaGFuZ2VUcmFuc2FjdGlvbgQAAAABYgUAAAAHJG1hdGNoMAkAAAAAAAACCAUAAAABYgAAAAZhbW91bnQFAAAABmFtb3VudAYbTgYF",
"chainId": 84,
"height": 541072,
"spentComplexity": 0
}
View: original | compacted
Prev: CN6AFL58wQDWxUE57yhakF2vFnLUdJpjkjee23hzGNfH
Next: AGpWNL9dRaUxpJQhU469BSMxSVNKpABhkFJFrR7zKmLk
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 2 #-} |
---|
2 | 2 | | {-# CONTENT_TYPE EXPRESSION #-} |
---|
3 | | - | let price = 10000000 |
---|
| 3 | + | let price = 1 |
---|
| 4 | + | let amount = 5 |
---|
4 | 5 | | match tx { |
---|
5 | | - | case e: ExchangeTransaction => |
---|
6 | | - | let pair = e.sellOrder.assetPair |
---|
| 6 | + | case a: ExchangeTransaction => |
---|
| 7 | + | let pair = a.buyOrder.assetPair |
---|
7 | 8 | | let tradedForWaves = if (!(isDefined(pair.amountAsset))) |
---|
8 | 9 | | then true |
---|
9 | 10 | | else !(isDefined(pair.priceAsset)) |
---|
10 | 11 | | if (tradedForWaves) |
---|
11 | | - | then (e.amount == price) |
---|
| 12 | + | then (a.price == price) |
---|
12 | 13 | | else false |
---|
| 14 | + | case b: ExchangeTransaction => |
---|
| 15 | + | (b.amount == amount) |
---|
13 | 16 | | case _ => |
---|
14 | 17 | | true |
---|
15 | 18 | | } |
---|