diff --git a/modules/gql/queries/subgraph/allDelegations.ts b/modules/gql/queries/subgraph/allDelegations.ts index ab04cad64..843618986 100644 --- a/modules/gql/queries/subgraph/allDelegations.ts +++ b/modules/gql/queries/subgraph/allDelegations.ts @@ -7,7 +7,7 @@ import { gql } from 'graphql-request'; export const allDelegations = gql` { - delegations { + delegations(first: 1000) { delegator delegate { id diff --git a/modules/gql/queries/subgraph/delegateHistoryArray.ts b/modules/gql/queries/subgraph/delegateHistoryArray.ts index 87c088484..215ce14ed 100644 --- a/modules/gql/queries/subgraph/delegateHistoryArray.ts +++ b/modules/gql/queries/subgraph/delegateHistoryArray.ts @@ -7,7 +7,7 @@ import { gql } from 'graphql-request'; export const delegateHistoryArray = gql` query delegateHistoryArray($delegates: [String!]!) { - delegates(where: { id_in: $delegates }) { + delegates(first: 1000, where: { id_in: $delegates }) { delegationHistory { amount accumulatedAmount diff --git a/modules/gql/queries/subgraph/delegatorHistory.ts b/modules/gql/queries/subgraph/delegatorHistory.ts index 6db900633..cea74d36c 100644 --- a/modules/gql/queries/subgraph/delegatorHistory.ts +++ b/modules/gql/queries/subgraph/delegatorHistory.ts @@ -8,7 +8,7 @@ import { gql } from 'graphql-request'; export const delegatorHistory = gql` query delegatorHistory($address: String!) { - delegationHistories(where: { delegator: $address }) { + delegationHistories(first: 1000, where: { delegator: $address }) { amount accumulatedAmount delegate { diff --git a/modules/web3/constants/networks.ts b/modules/web3/constants/networks.ts index 291ba8b15..1759fad97 100644 --- a/modules/web3/constants/networks.ts +++ b/modules/web3/constants/networks.ts @@ -17,7 +17,8 @@ import { MAINNET_SPOCK_URL, STAGING_MAINNET_SPOCK_URL, TENDERLY_SPOCK_URL, - TENDERLY_SUBGRAPH_URL + TENDERLY_SUBGRAPH_URL, + MAINNET_SUBGRAPH_URL } from 'modules/gql/gql.constants'; export enum SupportedConnectors { @@ -62,7 +63,7 @@ export const CHAIN_INFO: ChainInfo = { defaultRpc: NodeProviders.ALCHEMY, spockUrl: process.env.NEXT_PUBLIC_VERCEL_ENV === 'development' ? STAGING_MAINNET_SPOCK_URL : MAINNET_SPOCK_URL, - subgraphUrl: TENDERLY_SUBGRAPH_URL, + subgraphUrl: MAINNET_SUBGRAPH_URL, rpcs: { [NodeProviders.INFURA]: `https://mainnet.infura.io/v3/${config.INFURA_KEY}`, [NodeProviders.ALCHEMY]: `https://eth-mainnet.g.alchemy.com/v2/${config.ALCHEMY_KEY}`