diff --git a/dexs/thena-v3/index.ts b/dexs/thena-v3/index.ts index f0c1ac2cbc..e4512d2271 100644 --- a/dexs/thena-v3/index.ts +++ b/dexs/thena-v3/index.ts @@ -2,10 +2,10 @@ import { CHAIN } from "../../helpers/chains"; import { univ2Adapter } from "../../helpers/getUniSubgraphVolume"; const adapters = univ2Adapter({ - [CHAIN.BSC]: "https://api.thegraph.com/subgraphs/name/iliaazhel/thena-info" + [CHAIN.BSC]: "https://api.thegraph.com/subgraphs/name/thenaursa/thena-fusion" }, { factoriesName: "factories", - dayData: "algebraDayData", + dayData: "fusionDayData", dailyVolume: "volumeUSD", totalVolume: "totalVolumeUSD", }); diff --git a/fees/thena-v3.ts b/fees/thena-v3.ts index cc0174be93..7c0224307e 100644 --- a/fees/thena-v3.ts +++ b/fees/thena-v3.ts @@ -16,7 +16,7 @@ type IURL = { } const endpoints: IURL = { - [CHAIN.BSC]: "https://api.thegraph.com/subgraphs/name/iliaazhel/thena-info" + [CHAIN.BSC]: "https://api.thegraph.com/subgraphs/name/thenaursa/thena-fusion" } const fetch = (chain: Chain) => { @@ -26,14 +26,14 @@ const fetch = (chain: Chain) => { const graphQuery = gql ` { - algebraDayData(id: ${dateId}) { + fusionDayData(id: ${dateId}) { id feesUSD } } `; - const graphRes: IPoolData = (await request(endpoints[chain], graphQuery)).algebraDayData; + const graphRes: IPoolData = (await request(endpoints[chain], graphQuery)).fusionDayData; const dailyFeeUSD = graphRes; const dailyFee = dailyFeeUSD?.feesUSD ? new BigNumber(dailyFeeUSD.feesUSD) : undefined if (dailyFee === undefined) return { timestamp }