tx · 2SjTdrgJ4pDAzexSVSN5AMAT8UGPRDRkv4eGKg6PBsLS
3MwZW2qaipEauHPa4kVKtXcciYPtKGYL1Hm: -1.00000000 Waves
2019.01.30 11:27 [472747] smart asset 3MwZW2qaipEauHPa4kVKtXcciYPtKGYL1Hm > SELF 0.00000000 OracleCoin
{
"type": 15,
"id": "2SjTdrgJ4pDAzexSVSN5AMAT8UGPRDRkv4eGKg6PBsLS",
"fee": 100000000,
"feeAssetId": null,
"timestamp": 1548836826617,
"version": 1,
"sender": "3MwZW2qaipEauHPa4kVKtXcciYPtKGYL1Hm",
"senderPublicKey": "PYLg2tgZFWvcDNA9xnroZWxSwjNbc1TM6Bik8Mq2qjw",
"proofs": [
"2ZbRqZD9qUFzugKeD4ferWZ6JVjPAMgkX2oFcfeP3DaMNq75AwThoR7rG3ViZ7Y4TkYuTbKnFYLshyFVsZGZzkrN"
],
"assetId": "Bq6g8sSzGHES35EjTki3cXSKoaZ2P5BRcBC22fUtxF3o",
"script": "base64:AQQAAAAEYWRkcgkBAAAAB0FkZHJlc3MAAAABAQAAABoBVK4aUf/QxlY6SdRtxnAvXdTBrxtg8alX6QQAAAAHJG1hdGNoMAUAAAACdHgDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAE0V4Y2hhbmdlVHJhbnNhY3Rpb24EAAAAAWUFAAAAByRtYXRjaDAEAAAACXdpdGhXYXZlcwMJAQAAAAEhAAAAAQkBAAAACWlzRGVmaW5lZAAAAAEICAgFAAAAAWUAAAAJc2VsbE9yZGVyAAAACWFzc2V0UGFpcgAAAApwcmljZUFzc2V0BgkBAAAAASEAAAABCQEAAAAJaXNEZWZpbmVkAAAAAQgICAUAAAABZQAAAAlzZWxsT3JkZXIAAAAJYXNzZXRQYWlyAAAAC2Ftb3VudEFzc2V0AwkAAAAAAAACBQAAAAl3aXRoV2F2ZXMHBAAAAA1wcmljZUFzc2V0S2V5CQABLAAAAAIJAAEsAAAAAgIAAAAIc3RhdHVzXzwJAAJYAAAAAQkBAAAAB2V4dHJhY3QAAAABCAgIBQAAAAFlAAAACXNlbGxPcmRlcgAAAAlhc3NldFBhaXIAAAAKcHJpY2VBc3NldAIAAAABPgQAAAAScHJpY2VBc3NldEluT3JhY2xlCQAAAAAAAAIJAAQaAAAAAgUAAAAEYWRkcgUAAAANcHJpY2VBc3NldEtleQAAAAAAAAAAAgQAAAAOYW1vdW50QXNzZXRLZXkJAAEsAAAAAgkAASwAAAACAgAAAAhzdGF0dXNfPAkAAlgAAAABCQEAAAAHZXh0cmFjdAAAAAEICAgFAAAAAWUAAAAJc2VsbE9yZGVyAAAACWFzc2V0UGFpcgAAAAthbW91bnRBc3NldAIAAAABPgQAAAATYW1vdW50QXNzZXRJbk9yYWNsZQkAAAAAAAACCQAEGgAAAAIFAAAABGFkZHIFAAAADXByaWNlQXNzZXRLZXkAAAAAAAAAAAIDBQAAABJwcmljZUFzc2V0SW5PcmFjbGUGBQAAABNhbW91bnRBc3NldEluT3JhY2xlBgbX427/",
"chainId": 84,
"height": 472747,
"spentComplexity": 0
}
View: original | compacted
Prev: 5Z7TGYQiPcyXpdNW9vtJKQBhizHPRC5sMQiC1eekHUd7
Next: none
Diff:
Old | New | | Differences |
---|
3 | 3 | | let addr = Address(base58'3N5net4nzSeeqxPfGZrvVvnGavsinipQHbE') |
---|
4 | 4 | | match tx { |
---|
5 | 5 | | case e: ExchangeTransaction => |
---|
6 | | - | let priceAssetKey = (("status_<" + toBase58String(extract(e.sellOrder.assetPair.priceAsset))) + ">") |
---|
7 | | - | let priceAssetInOracle = (getInteger(addr, priceAssetKey) == 2) |
---|
8 | | - | let amountAssetKey = (("status_<" + toBase58String(extract(e.sellOrder.assetPair.amountAsset))) + ">") |
---|
9 | | - | let amountAssetInOracle = (getInteger(addr, priceAssetKey) == 2) |
---|
10 | 6 | | let withWaves = if (!(isDefined(e.sellOrder.assetPair.priceAsset))) |
---|
11 | 7 | | then true |
---|
12 | 8 | | else !(isDefined(e.sellOrder.assetPair.amountAsset)) |
---|
13 | | - | if (if (priceAssetInOracle) |
---|
14 | | - | then true |
---|
15 | | - | else amountAssetInOracle) |
---|
16 | | - | then true |
---|
17 | | - | else withWaves |
---|
| 9 | + | if ((withWaves == false)) |
---|
| 10 | + | then { |
---|
| 11 | + | let priceAssetKey = (("status_<" + toBase58String(extract(e.sellOrder.assetPair.priceAsset))) + ">") |
---|
| 12 | + | let priceAssetInOracle = (getInteger(addr, priceAssetKey) == 2) |
---|
| 13 | + | let amountAssetKey = (("status_<" + toBase58String(extract(e.sellOrder.assetPair.amountAsset))) + ">") |
---|
| 14 | + | let amountAssetInOracle = (getInteger(addr, priceAssetKey) == 2) |
---|
| 15 | + | if (priceAssetInOracle) |
---|
| 16 | + | then true |
---|
| 17 | + | else amountAssetInOracle |
---|
| 18 | + | } |
---|
| 19 | + | else true |
---|
18 | 20 | | case _ => |
---|
19 | 21 | | true |
---|
20 | 22 | | } |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 1 #-} |
---|
2 | 2 | | {-# CONTENT_TYPE EXPRESSION #-} |
---|
3 | 3 | | let addr = Address(base58'3N5net4nzSeeqxPfGZrvVvnGavsinipQHbE') |
---|
4 | 4 | | match tx { |
---|
5 | 5 | | case e: ExchangeTransaction => |
---|
6 | | - | let priceAssetKey = (("status_<" + toBase58String(extract(e.sellOrder.assetPair.priceAsset))) + ">") |
---|
7 | | - | let priceAssetInOracle = (getInteger(addr, priceAssetKey) == 2) |
---|
8 | | - | let amountAssetKey = (("status_<" + toBase58String(extract(e.sellOrder.assetPair.amountAsset))) + ">") |
---|
9 | | - | let amountAssetInOracle = (getInteger(addr, priceAssetKey) == 2) |
---|
10 | 6 | | let withWaves = if (!(isDefined(e.sellOrder.assetPair.priceAsset))) |
---|
11 | 7 | | then true |
---|
12 | 8 | | else !(isDefined(e.sellOrder.assetPair.amountAsset)) |
---|
13 | | - | if (if (priceAssetInOracle) |
---|
14 | | - | then true |
---|
15 | | - | else amountAssetInOracle) |
---|
16 | | - | then true |
---|
17 | | - | else withWaves |
---|
| 9 | + | if ((withWaves == false)) |
---|
| 10 | + | then { |
---|
| 11 | + | let priceAssetKey = (("status_<" + toBase58String(extract(e.sellOrder.assetPair.priceAsset))) + ">") |
---|
| 12 | + | let priceAssetInOracle = (getInteger(addr, priceAssetKey) == 2) |
---|
| 13 | + | let amountAssetKey = (("status_<" + toBase58String(extract(e.sellOrder.assetPair.amountAsset))) + ">") |
---|
| 14 | + | let amountAssetInOracle = (getInteger(addr, priceAssetKey) == 2) |
---|
| 15 | + | if (priceAssetInOracle) |
---|
| 16 | + | then true |
---|
| 17 | + | else amountAssetInOracle |
---|
| 18 | + | } |
---|
| 19 | + | else true |
---|
18 | 20 | | case _ => |
---|
19 | 21 | | true |
---|
20 | 22 | | } |
---|