From 739decf0e01da0726b9d7767255bc9c206bd6c39 Mon Sep 17 00:00:00 2001 From: Amedrontadora Date: Fri, 10 May 2024 12:26:57 +0800 Subject: [PATCH 1/4] chore: update SyncSwap subgraph url --- .gitignore | 3 ++- adapters/syncswap/src/sdk/config.ts | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index b5485490..ac4a76ca 100644 --- a/.gitignore +++ b/.gitignore @@ -3,4 +3,5 @@ dist/ Ds_Store .Ds_Store package-lock.json -outputData.csv \ No newline at end of file +outputData.csv +.idea \ No newline at end of file diff --git a/adapters/syncswap/src/sdk/config.ts b/adapters/syncswap/src/sdk/config.ts index c3d4c672..176ffaae 100644 --- a/adapters/syncswap/src/sdk/config.ts +++ b/adapters/syncswap/src/sdk/config.ts @@ -1,7 +1,7 @@ import { createPublicClient, http } from "viem"; import { linea } from "viem/chains" -export const V2_SUBGRAPH_URL = "https://gateway-arbitrum.network.thegraph.com/api/ce0ba3625ebbbd3c4b5a2af394dc8e47/subgraphs/id/3xpZFx5YNWzqemwdtRhyaTXVidKNnjY19XAWoHtvR6Lh" +export const V2_SUBGRAPH_URL = "https://gateway-arbitrum.network.thegraph.com/api/06a21853c18afff683a7ff52c764d434/subgraphs/id/3xpZFx5YNWzqemwdtRhyaTXVidKNnjY19XAWoHtvR6Lh" export const client = createPublicClient({ chain: linea, transport: http("https://rpc.linea.build") From 090d113e18a9b5e6d2da26d39491e39529cd6207 Mon Sep 17 00:00:00 2001 From: Amedrontadora Date: Fri, 10 May 2024 12:33:06 +0800 Subject: [PATCH 2/4] revert .gitignore change --- .gitignore | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index ac4a76ca..b5485490 100644 --- a/.gitignore +++ b/.gitignore @@ -3,5 +3,4 @@ dist/ Ds_Store .Ds_Store package-lock.json -outputData.csv -.idea \ No newline at end of file +outputData.csv \ No newline at end of file From ddf021392d857c9356d3d10099e395fde545323f Mon Sep 17 00:00:00 2001 From: Amedrontadora Date: Sun, 12 May 2024 11:47:38 +0800 Subject: [PATCH 3/4] fix: fix empty response causing read liquidityPositions to be undefined --- adapters/syncswap/src/sdk/lib.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/adapters/syncswap/src/sdk/lib.ts b/adapters/syncswap/src/sdk/lib.ts index 56e380e2..356efb60 100644 --- a/adapters/syncswap/src/sdk/lib.ts +++ b/adapters/syncswap/src/sdk/lib.ts @@ -84,7 +84,11 @@ export const getV2UserPositionsAtBlock = async (blockNumber: number): Promise { const { reserve0, reserve1 } = getV2PositionReserves(position) return { From 02f720fb4e8a4d751fbea57675d83fa4194f9bfc Mon Sep 17 00:00:00 2001 From: Jac <39693487+lijac@users.noreply.github.com> Date: Sat, 11 May 2024 23:54:31 -0400 Subject: [PATCH 4/4] fix: Secta - use production subgraph --- adapters/secta/src/sdk/config.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/adapters/secta/src/sdk/config.ts b/adapters/secta/src/sdk/config.ts index 58233af7..a50db2c2 100644 --- a/adapters/secta/src/sdk/config.ts +++ b/adapters/secta/src/sdk/config.ts @@ -14,11 +14,11 @@ export const SUBGRAPH_URLS = { [CHAINS.LINEA]: { [PROTOCOLS.SECTA]: { [AMM_TYPES.SECTAV3]: - "https://api.studio.thegraph.com/query/66239/secta-linea-exchange-v3/version/latest", - // "https://gateway-arbitrum.network.thegraph.com/api/3700f7806f624898da7631bb01f5253f/subgraphs/id/DQz9g5ZRSiprkXXCRwRSTjh6J5gsRMuhr8TymEo1pZe6", + //"https://api.studio.thegraph.com/query/66239/secta-linea-exchange-v3/version/latest", + "https://gateway-arbitrum.network.thegraph.com/api/3700f7806f624898da7631bb01f5253f/subgraphs/id/DQz9g5ZRSiprkXXCRwRSTjh6J5gsRMuhr8TymEo1pZe6", [AMM_TYPES.SECTAV2]: - "https://api.studio.thegraph.com/query/66239/secta-linea-exchange-v2/version/latest", - // "https://gateway-arbitrum.network.thegraph.com/api/3700f7806f624898da7631bb01f5253f/subgraphs/id/4YKqZQ3pH5wZ3seW2ojc1o5HxoJVYQ6UBdunW8ovJCBz", + //"https://api.studio.thegraph.com/query/66239/secta-linea-exchange-v2/version/latest", + "https://gateway-arbitrum.network.thegraph.com/api/3700f7806f624898da7631bb01f5253f/subgraphs/id/4YKqZQ3pH5wZ3seW2ojc1o5HxoJVYQ6UBdunW8ovJCBz", }, }, };