Skip to content

Commit 270030f

Browse files
committed
updated the Balancer v2 implementation to the new subgraph endpoints
1 parent a15ccda commit 270030f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

web3.eth.balancer.v2.pas

+5-5
Original file line numberDiff line numberDiff line change
@@ -449,17 +449,17 @@ procedure getPoolId(const chain: TChain; const asset0, asset1: TAddress; const c
449449
const SUBGRAPH = (function(chain: TChain): IResult<string>
450450
begin
451451
if chain = Ethereum then
452-
Result := TResult<string>.Ok('https://api.thegraph.com/subgraphs/name/balancer-labs/balancer-v2')
452+
Result := TResult<string>.Ok('https://api.studio.thegraph.com/query/75376/balancer-v2/version/latest')
453453
else if chain = Sepolia then
454454
Result := TResult<string>.Ok('https://api.studio.thegraph.com/query/24660/balancer-sepolia-v2/version/latest')
455455
else if chain = Polygon then
456-
Result := TResult<string>.Ok('https://api.thegraph.com/subgraphs/name/balancer-labs/balancer-polygon-v2')
456+
Result := TResult<string>.Ok('https://api.studio.thegraph.com/query/75376/balancer-polygon-v2/version/latest')
457457
else if chain = Arbitrum then
458-
Result := TResult<string>.Ok('https://api.thegraph.com/subgraphs/name/balancer-labs/balancer-arbitrum-v2')
458+
Result := TResult<string>.Ok('https://api.studio.thegraph.com/query/75376/balancer-arbitrum-v2/version/latest')
459459
else if chain = Optimism then
460-
Result := TResult<string>.Ok('https://api.thegraph.com/subgraphs/name/balancer-labs/balancer-optimism-v2')
460+
Result := TResult<string>.Ok('https://api.studio.thegraph.com/query/75376/balancer-optimism-v2/version/latest')
461461
else if chain = Gnosis then
462-
Result := TResult<string>.Ok('https://api.thegraph.com/subgraphs/name/balancer-labs/balancer-gnosis-chain-v2')
462+
Result := TResult<string>.Ok('https://api.studio.thegraph.com/query/75376/balancer-gnosis-chain-v2/version/latest')
463463
else if chain = Base then
464464
Result := TResult<string>.Ok('https://api.studio.thegraph.com/query/24660/balancer-base-v2/version/latest')
465465
else

0 commit comments

Comments
 (0)