tx · 7r9iMjhTsqHgbQD1YqK7BEcGtQDeFF7NhcpNav7dfuSe

3NCpnvRgxBNESWkZV99WLEHhi65xBmVW8a3:  -1.00000000 Waves

2019.02.21 19:44 [505270] smart asset 3NCpnvRgxBNESWkZV99WLEHhi65xBmVW8a3 > SELF 0.00000000 Test777

{ "type": 15, "id": "7r9iMjhTsqHgbQD1YqK7BEcGtQDeFF7NhcpNav7dfuSe", "fee": 100000000, "feeAssetId": null, "timestamp": 1550767536655, "version": 1, "sender": "3NCpnvRgxBNESWkZV99WLEHhi65xBmVW8a3", "senderPublicKey": "u7VamB229m8EPHqV1YzW7FhbhnLuVzzRvqvqQ8L4fDx", "proofs": [ "2wvU1JJAHZcn9wFpQhHS3Gy9yxVPF5jjvHh26H3R1x6pu1YQy3hSX5t41pgVAt6UrhXQEBDhno85EFBTnJLbV3U6" ], "assetId": "HQ2T9SeUVksvQd1QoRwmr5SWVUWmHNdQ7sbTQet3gE6f", "script": "base64:AQQAAAAEYWRkcgkBAAAAB0FkZHJlc3MAAAABAQAAABoBVzZQl9krmO1LY45yVANtQViQFN9NTtn6NAQAAAAHJG1hdGNoMAUAAAACdHgDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAE0V4Y2hhbmdlVHJhbnNhY3Rpb24EAAAAAWUFAAAAByRtYXRjaDAEAAAACXdpdGhXYXZlcwMJAQAAAAEhAAAAAQkBAAAACWlzRGVmaW5lZAAAAAEICAgFAAAAAWUAAAAJc2VsbE9yZGVyAAAACWFzc2V0UGFpcgAAAApwcmljZUFzc2V0BgkBAAAAASEAAAABCQEAAAAJaXNEZWZpbmVkAAAAAQgICAUAAAABZQAAAAlzZWxsT3JkZXIAAAAJYXNzZXRQYWlyAAAAC2Ftb3VudEFzc2V0AwkAAAAAAAACBQAAAAl3aXRoV2F2ZXMHBAAAAA1wcmljZUFzc2V0S2V5CQABLAAAAAIJAAEsAAAAAgIAAAAIc3RhdHVzXzwJAAJYAAAAAQkBAAAAB2V4dHJhY3QAAAABCAgIBQAAAAFlAAAACXNlbGxPcmRlcgAAAAlhc3NldFBhaXIAAAAKcHJpY2VBc3NldAIAAAABPgQAAAAScHJpY2VBc3NldEluT3JhY2xlCQAAAAAAAAIJAAQaAAAAAgUAAAAEYWRkcgUAAAANcHJpY2VBc3NldEtleQAAAAAAAAAAAgQAAAAOYW1vdW50QXNzZXRLZXkJAAEsAAAAAgkAASwAAAACAgAAAAhzdGF0dXNfPAkAAlgAAAABCQEAAAAHZXh0cmFjdAAAAAEICAgFAAAAAWUAAAAJc2VsbE9yZGVyAAAACWFzc2V0UGFpcgAAAAthbW91bnRBc3NldAIAAAABPgQAAAATYW1vdW50QXNzZXRJbk9yYWNsZQkAAAAAAAACCQAEGgAAAAIFAAAABGFkZHIFAAAADXByaWNlQXNzZXRLZXkAAAAAAAAAAAIDBQAAABJwcmljZUFzc2V0SW5PcmFjbGUGBQAAABNhbW91bnRBc3NldEluT3JhY2xlBgaknu6R", "chainId": 84, "height": 505270, "spentComplexity": 0 } View: original | compacted Prev: none Next: A4AjSC6p6ieXVGyEhF3LBpDaYmnZfALiEc3URGjZVKkT Full:
OldNewDifferences
1-# no script
1+{-# STDLIB_VERSION 1 #-}
2+{-# CONTENT_TYPE EXPRESSION #-}
3+let addr = Address(base58'3P6t5mKGwVDkyjFhtUqw4NnecyC3DRpLfkw')
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+}

github/deemru/w8io/3ef1775 
31.42 ms