Skip to content

Commit

Permalink
Update Subgraph Endpoints (#1039)
Browse files Browse the repository at this point in the history
* update endpoints

* update futures endpoints

Co-authored-by: platschi <[email protected]>
  • Loading branch information
troyb.eth and platschi authored Jun 28, 2022
1 parent 5f564c9 commit 51dccf0
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
4 changes: 2 additions & 2 deletions queries/futures/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ import { gql } from 'graphql-request';
import { utils as ethersUtils } from 'ethers';

export const FUTURES_ENDPOINT_MAINNET =
'https://api.thegraph.com/subgraphs/name/kwenta/optimism-main';
'https://api.thegraph.com/subgraphs/name/kwenta/optimism-futures';

export const FUTURES_ENDPOINT_TESTNET =
'https://api.thegraph.com/subgraphs/name/kwenta/optimism-kovan-main';
'https://api.thegraph.com/subgraphs/name/kwenta/optimism-kovan-futures';

export const DAY_PERIOD = 24;

Expand Down
4 changes: 2 additions & 2 deletions queries/rates/constants.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
export const RATES_ENDPOINT_MAINNET =
'https://api.thegraph.com/subgraphs/name/kwenta/optimism-latest-rates';
'https://api.thegraph.com/subgraphs/name/kwenta/optimism-main';

export const RATES_ENDPOINT_TESTNET =
'https://api.thegraph.com/subgraphs/name/kwenta/optimism-kovan-latest-rates';
'https://api.thegraph.com/subgraphs/name/kwenta/optimism-kovan-main';

export const DAY_PERIOD = 24 * 3600;

Expand Down
7 changes: 3 additions & 4 deletions queries/synths/constants.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
export const SYNTHS_ENDPOINT_OPTIMISM_MAIN =
'https://api.thegraph.com/subgraphs/name/synthetixio-team/optimism-main';
'https://api.thegraph.com/subgraphs/name/kwenta/optimism-main';

export const SYNTHS_ENDPOINT_OPTIMISM_KOVAN =
'https://api.thegraph.com/subgraphs/name/synthetixio-team/optimism-kovan-main';
'https://api.thegraph.com/subgraphs/name/kwenta/optimism-kovan-main';

export const SYNTHS_ENDPOINT_MAIN =
'https://api.thegraph.com/subgraphs/name/synthetixio-team/mainnet-main';
export const SYNTHS_ENDPOINT_MAIN = 'https://api.thegraph.com/subgraphs/name/kwenta/mainnet-main';

0 comments on commit 51dccf0

Please sign in to comment.