Skip to content

Commit

Permalink
Merge pull request #1662 from Intent-X/master
Browse files Browse the repository at this point in the history
intentx: Updated subgraph endpoint
  • Loading branch information
dtmkeng committed Jul 11, 2024
2 parents f5e0ec7 + 844cec9 commit a09af4e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions dexs/intent-x/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import { getUniqStartOfTodayTimestamp } from "../../helpers/getUniSubgraphVolume
const ONE_DAY_IN_SECONDS = 60 * 60 * 24;

const endpoint_0_8_0 =
"https://api.thegraph.com/subgraphs/name/intent-x/perpetuals-analytics_base";
"https://api.studio.thegraph.com/query/62472/perpetuals-analytics_base/version/latest";
const endpoint =
"https://api.studio.thegraph.com/query/62472/intentx-analytics_082/version/latest";
"https://api.0xgraph.xyz/subgraphs/name/intentx-base-analytcs-082";
const endpoint_blast =
"https://api.studio.thegraph.com/query/62472/intentx-analytics_082_blast/version/latest";
const endpoint_mantle =
Expand Down Expand Up @@ -201,8 +201,8 @@ const fetchVolumeBlast = async (
totalVolume = totalVolume.plus(new BigNumber(data.tradeVolume));
});

dailyVolume = dailyVolume.dividedBy(new BigNumber(1e18));
totalVolume = totalVolume.dividedBy(new BigNumber(1e18));
dailyVolume = dailyVolume.dividedBy(new BigNumber(1e18)).multipliedBy(2);
totalVolume = totalVolume.dividedBy(new BigNumber(1e18)).multipliedBy(2);

const _dailyVolume = toString(dailyVolume);
const _totalVolume = toString(totalVolume);
Expand Down
4 changes: 2 additions & 2 deletions fees/intent-x/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import { FetchOptions, SimpleAdapter } from "../../adapters/types";
import { CHAIN } from "../../helpers/chains";

const endpoint_0_8_0 =
"https://api.thegraph.com/subgraphs/name/intent-x/perpetuals-analytics_base";
"https://api.studio.thegraph.com/query/62472/perpetuals-analytics_base/version/latest";
const endpoint =
"https://api.studio.thegraph.com/query/62472/intentx-analytics_082/version/latest";
"https://api.0xgraph.xyz/subgraphs/name/intentx-base-analytcs-082";
const endpoint_blast =
"https://api.studio.thegraph.com/query/62472/intentx-analytics_082_blast/version/latest";
const endpoint_mantle =
Expand Down

0 comments on commit a09af4e

Please sign in to comment.