Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions bal_tools/subgraph.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,15 +97,15 @@ def get_subgraph_url(self, subgraph="core") -> str:
- https url of the subgraph
"""
# before anything else, try to get the url from the latest backend config
if subgraph == "aura":
return AURA_SUBGRAPHS_BY_CHAIN.get(self.chain, None)
url = self.get_subgraph_url_from_backend_config(subgraph)
if url:
return url
if subgraph == "apiv3":
if self.chain == "sepolia":
return "https://test-api-v3.balancer.fi"
return "https://api-v3.balancer.fi"
if subgraph == "aura":
return AURA_SUBGRAPHS_BY_CHAIN.get(self.chain, None)
if subgraph == "vault-v3":
return self.get_subgraph_url_vault_v3(self.chain)
if subgraph == "pools-v3":
Expand Down