filter eurc market to fix crash

This commit is contained in:
saml33 2023-12-13 12:33:56 +11:00
parent f4627de0eb
commit 07d214b67c
2 changed files with 5 additions and 3 deletions

View File

@ -53,9 +53,9 @@ import PlausibleProvider from 'next-plausible'
// init react-query
const queryClient = new QueryClient()
const metaTitle = 'Mango Markets Safer. Smarter. Faster.'
const metaTitle = 'Mango Markets | High-Performance Crypto Exchange'
const metaDescription =
'A magical new way to interact with DeFi. Groundbreaking safety features designed to keep your funds secure. The easiest way to margin trade any token pair. All powered by flashloans.'
'Margin trade your favorite crypto assets on-chain. Groundbreaking risk management to keep your funds safe. A powerful DEX, powered by Solana.'
// Do not add hooks to this component, that will cause unnecessary rerenders
// Top level state hydrating/updating should go in MangoProvider

View File

@ -602,7 +602,9 @@ const mangoStore = create<MangoStore>()(
set((state) => {
state.group = group
state.groupLoaded = true
state.serumMarkets = serumMarkets
state.serumMarkets = serumMarkets.filter(
(mkt) => mkt.baseTokenIndex !== 777,
)
state.perpMarkets = perpMarkets
state.selectedMarket.current = selectedMarket
if (!state.swap.inputBank && !state.swap.outputBank) {