Skip to content

Commit

Permalink
fix avax chain naming issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
Tritium committed Sep 11, 2023
1 parent ab8cac1 commit b485a04
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion action-scripts/brownie/scripts/report_gauges.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
"Optimism": "optimism-main",
"Gnosis": "gnosis-main",
"PolygonZkEvm": "zkevm-main",
"Avalanche": "avax-main",
"EthereumSingleRecipientGauge": CHAIN_MAINNET
}

Expand All @@ -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')
Expand All @@ -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)
Expand Down

0 comments on commit b485a04

Please sign in to comment.