From b485a0445aefed54d4cac53d5dcf135042428350 Mon Sep 17 00:00:00 2001 From: Tritium Date: Mon, 11 Sep 2023 15:50:06 +0200 Subject: [PATCH] fix avax chain naming issues. --- action-scripts/brownie/scripts/report_gauges.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/action-scripts/brownie/scripts/report_gauges.py b/action-scripts/brownie/scripts/report_gauges.py index 2852fab6f..a71407bf4 100644 --- a/action-scripts/brownie/scripts/report_gauges.py +++ b/action-scripts/brownie/scripts/report_gauges.py @@ -39,6 +39,7 @@ "Optimism": "optimism-main", "Gnosis": "gnosis-main", "PolygonZkEvm": "zkevm-main", + "Avalanche": "avax-main", "EthereumSingleRecipientGauge": CHAIN_MAINNET } @@ -48,7 +49,8 @@ "getArbitrumBridge": "arbitrum", "getGnosisBridge": "gnosis-main", "getOptimismBridge": "optimism-main", - "getPolygonZkEVMBridge": "zkevm-main" + "getPolygonZkEVMBridge": "zkevm-main", + "getAvalancheBridge": "avax-main" } today = datetime.today().strftime('%Y-%m-%d') @@ -63,8 +65,11 @@ def _extract_pool( """ # Process sidechain gauges if chain != CHAIN_MAINNET: + if chain == "avalanche": + chain = "avax-main" recipient = gauge.getRecipient() network.disconnect() + print(chain) network.connect(chain) print(f"Recipient: {recipient}") sidechain_recipient = Contract(recipient)