Skip to content

Commit

Permalink
thena fusion restore
Browse files Browse the repository at this point in the history
  • Loading branch information
thenaursa committed Mar 8, 2024
1 parent 8d278c3 commit c45618c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions dexs/thena-v3/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
});
Expand Down
6 changes: 3 additions & 3 deletions fees/thena-v3.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand All @@ -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 }
Expand Down

0 comments on commit c45618c

Please sign in to comment.