Skip to content

Commit

Permalink
Merge pull request #1903 from Intent-X/master
Browse files Browse the repository at this point in the history
chore: IntentX 0.8.3 subgraph migration
  • Loading branch information
dtmkeng committed Sep 13, 2024
2 parents 5fc4c50 + 073974c commit e72a220
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions fees/intent-x/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ import { CHAIN } from "../../helpers/chains";

const endpoint_0_8_0 =
"https://api.studio.thegraph.com/query/62472/perpetuals-analytics_base/version/latest";
const endpoint =
"https://api.goldsky.com/api/public/project_cm0bho0j0ji6001t8e26s0wv8/subgraphs/intentx-base-analytics-082/latest/gn";
const endpoint =
"https://api.goldsky.com/api/public/project_cm0bho0j0ji6001t8e26s0wv8/subgraphs/intentx-base-analytics-083/latest/gn";
const endpoint_blast =
"https://api.goldsky.com/api/public/project_cm0bho0j0ji6001t8e26s0wv8/subgraphs/intentx-blast-analytics-083/latest/gn";
const endpoint_mantle =
"https://subgraph-api.mantle.xyz/subgraphs/name/mantle_intentx-analytics_082";
"https://api.goldsky.com/api/public/project_cm0bho0j0ji6001t8e26s0wv8/subgraphs/intentx-mantle-analytics-083/latest/gn";

const query_0_8_0 = gql`
query stats($from: String!, $to: String!) {
Expand Down Expand Up @@ -132,9 +132,7 @@ const toString = (x: BigNumber) => {
return x.toString();
};

const fetchVolume = async (
{ endTimestamp, startTimestamp }: FetchOptions
) => {
const fetchVolume = async ({ endTimestamp, startTimestamp }: FetchOptions) => {
const response_0_8_0: IGraphResponse = await request(
endpoint_0_8_0,
query_0_8_0,
Expand Down Expand Up @@ -198,9 +196,10 @@ const fetchVolume = async (
};
};

const fetchVolumeBlast = async (
{ endTimestamp, startTimestamp }: FetchOptions
) => {
const fetchVolumeBlast = async ({
endTimestamp,
startTimestamp,
}: FetchOptions) => {
let dailyFees = new BigNumber(0);
let totalFees = new BigNumber(0);

Expand Down Expand Up @@ -251,9 +250,10 @@ const fetchVolumeBlast = async (
};
};

const fetchVolumeMantle = async (
{ endTimestamp, startTimestamp }: FetchOptions
) => {
const fetchVolumeMantle = async ({
endTimestamp,
startTimestamp,
}: FetchOptions) => {
let dailyFees = new BigNumber(0);
let totalFees = new BigNumber(0);

Expand Down

0 comments on commit e72a220

Please sign in to comment.