tx · 8FLznhVPGLcngHVNCiAsZudKXat3rzPMUZ6HYGKDjCsi

3N49T9MHfWsZJp62WPv37cg2ToyDrvMzLww:  -1.00000000 Waves

2023.01.30 22:37 [2428118] smart asset 3N49T9MHfWsZJp62WPv37cg2ToyDrvMzLww > SELF 0.000000 MainAsset

{ "type": 15, "id": "8FLznhVPGLcngHVNCiAsZudKXat3rzPMUZ6HYGKDjCsi", "fee": 100000000, "feeAssetId": null, "timestamp": 1675107417201, "version": 2, "chainId": 84, "sender": "3N49T9MHfWsZJp62WPv37cg2ToyDrvMzLww", "senderPublicKey": "CJFqGECQ9QCcwYnw3kJCYZp35bzxjVo2akYs1B1C7gbS", "proofs": [ "2d7epjn5Nua8rHWhWDvn7YScxtk3QyDPMcqLZUmMDjScFu5uAVsZSgfuY4EJDxWZ4PXiGDW2q1crKFdFSs9P9BE8" ], "assetId": "G6GLtJ1wmZhE9uAeRABo4a66kwWFDgx3rcjsG3tFkG3C", "script": "base64:BQQAAAAGb3JhY2xlCQEAAAAHQWRkcmVzcwAAAAEBAAAAGgFU9xIy1Xhizmi8e7bCFGtkUZHvGPwzLF4uBAAAAAckbWF0Y2gwBQAAAAJ0eAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAATVHJhbnNmZXJUcmFuc2FjdGlvbgQAAAABdAUAAAAHJG1hdGNoMAYDAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABdJbnZva2VTY3JpcHRUcmFuc2FjdGlvbgYJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAXTWFzc1RyYW5zZmVyVHJhbnNhY3Rpb24EAAAAAXQFAAAAByRtYXRjaDAHAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABNFeGNoYW5nZVRyYW5zYWN0aW9uBAAAAAFlBQAAAAckbWF0Y2gwBAAAAAxjb3JyZWN0UHJpY2UJAAAAAAAAAggFAAAAAWUAAAAFcHJpY2UJAQAAABFAZXh0ck5hdGl2ZSgxMDUwKQAAAAIFAAAABm9yYWNsZQIAAAAsRzZHTHRKMXdtWmhFOXVBZVJBQm80YTY2a3dXRkRneDNyY2pzRzN0RmtHM0MEAAAAEWNvcnJlY3RQcmljZUFzc2V0CQEAAAABIQAAAAEJAQAAAAlpc0RlZmluZWQAAAABCAgIBQAAAAFlAAAACXNlbGxPcmRlcgAAAAlhc3NldFBhaXIAAAAKcHJpY2VBc3NldAMFAAAADGNvcnJlY3RQcmljZQUAAAARY29ycmVjdFByaWNlQXNzZXQHBkRwXbo=", "height": 2428118, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 64PKLw2VLirLFCJrcB6tTqexZsomP19UhHwx2QmVfVGY Next: BVpa7XF4nCwj5nv4NWu8QJedmGAuow9PQC2jsH84Vzx4 Diff:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# CONTENT_TYPE EXPRESSION #-}
33 let oracle = Address(base58'3NCSUUm7nAFGsH6GPxDLxiQFgB1bvtn5BYq')
4-let assetId = toBase58String(base58'G6GLtJ1wmZhE9uAeRABo4a66kwWFDgx3rcjsG3tFkG3C')
54 match tx {
65 case t: TransferTransaction =>
76 true
87 case t: InvokeScriptTransaction|MassTransferTransaction =>
98 false
109 case e: ExchangeTransaction =>
11- let correctPrice = (e.price == getIntegerValue(oracle, assetId))
10+ let correctPrice = (e.price == getIntegerValue(oracle, "G6GLtJ1wmZhE9uAeRABo4a66kwWFDgx3rcjsG3tFkG3C"))
1211 let correctPriceAsset = !(isDefined(e.sellOrder.assetPair.priceAsset))
1312 if (correctPrice)
1413 then correctPriceAsset
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# CONTENT_TYPE EXPRESSION #-}
33 let oracle = Address(base58'3NCSUUm7nAFGsH6GPxDLxiQFgB1bvtn5BYq')
4-let assetId = toBase58String(base58'G6GLtJ1wmZhE9uAeRABo4a66kwWFDgx3rcjsG3tFkG3C')
54 match tx {
65 case t: TransferTransaction =>
76 true
87 case t: InvokeScriptTransaction|MassTransferTransaction =>
98 false
109 case e: ExchangeTransaction =>
11- let correctPrice = (e.price == getIntegerValue(oracle, assetId))
10+ let correctPrice = (e.price == getIntegerValue(oracle, "G6GLtJ1wmZhE9uAeRABo4a66kwWFDgx3rcjsG3tFkG3C"))
1211 let correctPriceAsset = !(isDefined(e.sellOrder.assetPair.priceAsset))
1312 if (correctPrice)
1413 then correctPriceAsset
1514 else false
1615 case _ =>
1716 true
1817 }

github/deemru/w8io/169f3d6 
27.84 ms