From b7a6a5086d1cf5120b53f37a44c61798d82c78d2 Mon Sep 17 00:00:00 2001 From: Tyler Shipe Date: Thu, 19 Aug 2021 13:49:44 -0400 Subject: [PATCH] use latest client --- stores/useMangoStore.tsx | 8 ++++---- yarn.lock | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/stores/useMangoStore.tsx b/stores/useMangoStore.tsx index 0a71bae0..b745de72 100644 --- a/stores/useMangoStore.tsx +++ b/stores/useMangoStore.tsx @@ -30,9 +30,9 @@ import { LAST_ACCOUNT_KEY } from '../components/AccountsModal' export const ENDPOINTS: EndpointInfo[] = [ { - name: 'mainnet-beta', - url: 'https://mango.rpcpool.com/', - websocket: 'https://mango.rpcpool.com/', + name: 'mainnet', + url: process.env.NEXT_PUBLIC_ENDPOINT, + websocket: process.env.NEXT_PUBLIC_ENDPOINT, custom: false, }, { @@ -45,7 +45,7 @@ export const ENDPOINTS: EndpointInfo[] = [ }, ] -type ClusterType = 'mainnet-beta' | 'devnet' +type ClusterType = 'mainnet' | 'devnet' const CLUSTER = (process.env.NEXT_PUBLIC_CLUSTER as ClusterType) || 'devnet' const ENDPOINT = ENDPOINTS.find((e) => e.name === CLUSTER) diff --git a/yarn.lock b/yarn.lock index d4dbf1f0..41884d86 100644 --- a/yarn.lock +++ b/yarn.lock @@ -995,7 +995,7 @@ "@blockworks-foundation/mango-client@git+https://github.com/blockworks-foundation/mango-client-v3.git": version "3.0.4" - resolved "git+https://github.com/blockworks-foundation/mango-client-v3.git#780e8d5b209fd484fc965cd9a2725de39e12c948" + resolved "git+https://github.com/blockworks-foundation/mango-client-v3.git#e9289af247337bed35fbd3a0b3c91c065e14f155" dependencies: "@project-serum/serum" "0.13.55" "@project-serum/sol-wallet-adapter" "^0.2.0"