tx · 5Z7TGYQiPcyXpdNW9vtJKQBhizHPRC5sMQiC1eekHUd7
3MwZW2qaipEauHPa4kVKtXcciYPtKGYL1Hm: -1.00000000 Waves
2019.01.30 11:23 [472744] smart asset 3MwZW2qaipEauHPa4kVKtXcciYPtKGYL1Hm > SELF 0.00000000 OracleCoin
{
"type": 15,
"id": "5Z7TGYQiPcyXpdNW9vtJKQBhizHPRC5sMQiC1eekHUd7",
"fee": 100000000,
"feeAssetId": null,
"timestamp": 1548836660822,
"version": 1,
"sender": "3MwZW2qaipEauHPa4kVKtXcciYPtKGYL1Hm",
"senderPublicKey": "PYLg2tgZFWvcDNA9xnroZWxSwjNbc1TM6Bik8Mq2qjw",
"proofs": [
"2JWUrphUKoYUUcZ4ZPD1Hnmf2MhthsKa2oD9A4jnKviLPz9B4ufpRSxwnNoMTLK9aDmAgQwEEg3eMKpxNemvJuge"
],
"assetId": "Bq6g8sSzGHES35EjTki3cXSKoaZ2P5BRcBC22fUtxF3o",
"script": "base64:AQQAAAAEYWRkcgkBAAAAB0FkZHJlc3MAAAABAQAAABoBVK4aUf/QxlY6SdRtxnAvXdTBrxtg8alX6QQAAAAHJG1hdGNoMAUAAAACdHgDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAE0V4Y2hhbmdlVHJhbnNhY3Rpb24EAAAAAWUFAAAAByRtYXRjaDAEAAAADXByaWNlQXNzZXRLZXkJAAEsAAAAAgkAASwAAAACAgAAAAhzdGF0dXNfPAkAAlgAAAABCQEAAAAHZXh0cmFjdAAAAAEICAgFAAAAAWUAAAAJc2VsbE9yZGVyAAAACWFzc2V0UGFpcgAAAApwcmljZUFzc2V0AgAAAAE+BAAAABJwcmljZUFzc2V0SW5PcmFjbGUJAAAAAAAAAgkABBoAAAACBQAAAARhZGRyBQAAAA1wcmljZUFzc2V0S2V5AAAAAAAAAAACBAAAAA5hbW91bnRBc3NldEtleQkAASwAAAACCQABLAAAAAICAAAACHN0YXR1c188CQACWAAAAAEJAQAAAAdleHRyYWN0AAAAAQgICAUAAAABZQAAAAlzZWxsT3JkZXIAAAAJYXNzZXRQYWlyAAAAC2Ftb3VudEFzc2V0AgAAAAE+BAAAABNhbW91bnRBc3NldEluT3JhY2xlCQAAAAAAAAIJAAQaAAAAAgUAAAAEYWRkcgUAAAANcHJpY2VBc3NldEtleQAAAAAAAAAAAgQAAAAJd2l0aFdhdmVzAwkBAAAAASEAAAABCQEAAAAJaXNEZWZpbmVkAAAAAQgICAUAAAABZQAAAAlzZWxsT3JkZXIAAAAJYXNzZXRQYWlyAAAACnByaWNlQXNzZXQGCQEAAAABIQAAAAEJAQAAAAlpc0RlZmluZWQAAAABCAgIBQAAAAFlAAAACXNlbGxPcmRlcgAAAAlhc3NldFBhaXIAAAALYW1vdW50QXNzZXQDAwUAAAAScHJpY2VBc3NldEluT3JhY2xlBgUAAAATYW1vdW50QXNzZXRJbk9yYWNsZQYFAAAACXdpdGhXYXZlcwZ0Smkq",
"chainId": 84,
"height": 472744,
"spentComplexity": 0
}
View: original | compacted
Prev: APNjv8r9xysozwwBtyYAaW9Uby88uFoDBHY29Bkh881U
Next: 2SjTdrgJ4pDAzexSVSN5AMAT8UGPRDRkv4eGKg6PBsLS
Diff:
Old | New | | Differences |
---|
7 | 7 | | let priceAssetInOracle = (getInteger(addr, priceAssetKey) == 2) |
---|
8 | 8 | | let amountAssetKey = (("status_<" + toBase58String(extract(e.sellOrder.assetPair.amountAsset))) + ">") |
---|
9 | 9 | | let amountAssetInOracle = (getInteger(addr, priceAssetKey) == 2) |
---|
10 | | - | if (priceAssetInOracle) |
---|
| 10 | + | let withWaves = if (!(isDefined(e.sellOrder.assetPair.priceAsset))) |
---|
11 | 11 | | then true |
---|
12 | | - | else amountAssetInOracle |
---|
| 12 | + | else !(isDefined(e.sellOrder.assetPair.amountAsset)) |
---|
| 13 | + | if (if (priceAssetInOracle) |
---|
| 14 | + | then true |
---|
| 15 | + | else amountAssetInOracle) |
---|
| 16 | + | then true |
---|
| 17 | + | else withWaves |
---|
13 | 18 | | case _ => |
---|
14 | 19 | | true |
---|
15 | 20 | | } |
---|
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 | 6 | | let priceAssetKey = (("status_<" + toBase58String(extract(e.sellOrder.assetPair.priceAsset))) + ">") |
---|
7 | 7 | | let priceAssetInOracle = (getInteger(addr, priceAssetKey) == 2) |
---|
8 | 8 | | let amountAssetKey = (("status_<" + toBase58String(extract(e.sellOrder.assetPair.amountAsset))) + ">") |
---|
9 | 9 | | let amountAssetInOracle = (getInteger(addr, priceAssetKey) == 2) |
---|
10 | | - | if (priceAssetInOracle) |
---|
| 10 | + | let withWaves = if (!(isDefined(e.sellOrder.assetPair.priceAsset))) |
---|
11 | 11 | | then true |
---|
12 | | - | else amountAssetInOracle |
---|
| 12 | + | else !(isDefined(e.sellOrder.assetPair.amountAsset)) |
---|
| 13 | + | if (if (priceAssetInOracle) |
---|
| 14 | + | then true |
---|
| 15 | + | else amountAssetInOracle) |
---|
| 16 | + | then true |
---|
| 17 | + | else withWaves |
---|
13 | 18 | | case _ => |
---|
14 | 19 | | true |
---|
15 | 20 | | } |
---|