tx · 54PWbLgjbrGY1DMhjphqvL9oRcFyjwS92Ng1jrnN2gNw
3MtHweJiyA6ikkkPCn4ssqpi4Nokcrf9hT9: -1.00000000 Waves
2019.03.18 05:52 [541107] smart asset 3MtHweJiyA6ikkkPCn4ssqpi4Nokcrf9hT9 > SELF 0.00000000 2020
{
"type": 15,
"id": "54PWbLgjbrGY1DMhjphqvL9oRcFyjwS92Ng1jrnN2gNw",
"fee": 100000000,
"feeAssetId": null,
"timestamp": 1552877575041,
"version": 1,
"sender": "3MtHweJiyA6ikkkPCn4ssqpi4Nokcrf9hT9",
"senderPublicKey": "5HwUTPzUP1wy7djMELX2wLNmasSaARD4kw1xpAyeJw1h",
"proofs": [
"2Lx18QEataX7Xnc1pasfuDhoJV1hmN15prxFKWkJFTVSmsG95mSQsKFqr67XdiBEBu79MW9trJT1Z954rBt4mRpH"
],
"assetId": "Cj5PHEx7yo2DSCyP3DdVSq9xuPuLMNpQWbTPcDoUBUCn",
"script": "base64:AgQAAAAEYWRkcgkBAAAAB0FkZHJlc3MAAAABAQAAABoBVDAC3dx0KoIFeHLC2GwbtEGh2lAtwJBrDAQAAAAHJG1hdGNoMAUAAAACdHgDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAE0V4Y2hhbmdlVHJhbnNhY3Rpb24EAAAAAWUFAAAAByRtYXRjaDAEAAAACXdpdGhXYXZlcwMJAQAAAAEhAAAAAQkBAAAACWlzRGVmaW5lZAAAAAEICAgFAAAAAWUAAAAJc2VsbE9yZGVyAAAACWFzc2V0UGFpcgAAAApwcmljZUFzc2V0BgkBAAAAASEAAAABCQEAAAAJaXNEZWZpbmVkAAAAAQgICAUAAAABZQAAAAlzZWxsT3JkZXIAAAAJYXNzZXRQYWlyAAAAC2Ftb3VudEFzc2V0AwkAAAAAAAACBQAAAAl3aXRoV2F2ZXMHBAAAAA1wcmljZUFzc2V0S2V5CQABLAAAAAIJAAEsAAAAAgIAAAAIc3RhdHVzXzwJAAJYAAAAAQkBAAAAB2V4dHJhY3QAAAABCAgIBQAAAAFlAAAACXNlbGxPcmRlcgAAAAlhc3NldFBhaXIAAAAKcHJpY2VBc3NldAIAAAABPgQAAAAScHJpY2VBc3NldEluT3JhY2xlCQAAAAAAAAIJAAQaAAAAAgUAAAAEYWRkcgUAAAANcHJpY2VBc3NldEtleQAAAAAAAAAAAgQAAAAOYW1vdW50QXNzZXRLZXkJAAEsAAAAAgkAASwAAAACAgAAAAhzdGF0dXNfPAkAAlgAAAABCQEAAAAHZXh0cmFjdAAAAAEICAgFAAAAAWUAAAAJc2VsbE9yZGVyAAAACWFzc2V0UGFpcgAAAAthbW91bnRBc3NldAIAAAABPgQAAAATYW1vdW50QXNzZXRJbk9yYWNsZQkAAAAAAAACCQAEGgAAAAIFAAAABGFkZHIFAAAADXByaWNlQXNzZXRLZXkAAAAAAAAAAAIDBQAAABJwcmljZUFzc2V0SW5PcmFjbGUGBQAAABNhbW91bnRBc3NldEluT3JhY2xlBgZBZyBP",
"chainId": 84,
"height": 541107,
"spentComplexity": 0
}
View: original | compacted
Prev: none
Next: 8P9d3gwNufwnQtSxMJpUv1n3yDhyLfpoe9LY1aXLdCH1
Full:
Old | New | | Differences |
---|
1 | | - | # no script |
---|
| 1 | + | {-# STDLIB_VERSION 2 #-} |
---|
| 2 | + | {-# CONTENT_TYPE EXPRESSION #-} |
---|
| 3 | + | let addr = Address(base58'3MtHweJiyA6ikkkPCn4ssqpi4Nokcrf9hT9') |
---|
| 4 | + | match tx { |
---|
| 5 | + | case e: ExchangeTransaction => |
---|
| 6 | + | let withWaves = if (!(isDefined(e.sellOrder.assetPair.priceAsset))) |
---|
| 7 | + | then true |
---|
| 8 | + | else !(isDefined(e.sellOrder.assetPair.amountAsset)) |
---|
| 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 |
---|
| 20 | + | case _ => |
---|
| 21 | + | true |
---|
| 22 | + | } |
---|