From 8de285a2ee79bca89f745fe3d7c56822dea0e1f9 Mon Sep 17 00:00:00 2001 From: TAMARA LIPOWSKI Date: Fri, 19 Sep 2025 20:07:45 -0400 Subject: [PATCH] feat: PancakeV3 test MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - There are only two post-cancun PancakeV3 pools. - One was ORDER-WETH which I guess had a liquidity issue, it failed with `StateDecodingFailure pool="0xb2dc4d7627501338b578985c214208eb32283086" error=Missing attributes tick_liquidities` - The second one is this USDT-USDf pool used for this test, though we fail to detect the balance slot of USDT: `WrongSlotError(“Slot override didn’t change balance.“)` - For this reason, we skip execution. - Also includes stop_block fix (better explained in Uniswap V3 test PR) --- .../integration_test.tycho.yaml | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 substreams/ethereum-pancakeswap-v3/integration_test.tycho.yaml diff --git a/substreams/ethereum-pancakeswap-v3/integration_test.tycho.yaml b/substreams/ethereum-pancakeswap-v3/integration_test.tycho.yaml new file mode 100644 index 0000000..b3e1ae5 --- /dev/null +++ b/substreams/ethereum-pancakeswap-v3/integration_test.tycho.yaml @@ -0,0 +1,21 @@ +substreams_yaml_path: ./ethereum-pancakeswap-v3.yaml +protocol_system: "pancakeswap_v3" +protocol_type_names: + - "pancakeswap_v3_pool" +module_name: "map_protocol_changes" +skip_balance_check: false +initialized_accounts: +tests: + - name: test_usdt_usdf_pool + start_block: 22187893 + stop_block: 22187895 + expected_components: + - id: "0x0d9ea0d5e3f400b1df8f695be04292308c041e77" + tokens: + - "0xfa2b947eec368f42195f24f36d2af29f7c24cec2" # USDf + - "0xdac17f958d2ee523a2206206994597c13d831ec7" # USDT + static_attributes: + fee: "0x64" + creation_tx: "0x87a9c643b0836ee7e7d7863d4f4d97310d14c438cb49bc8771c3d7a9d5a2749f" + skip_simulation: false + skip_execution: true