From 0800e9f30f12517d44e7923ee25eb603fd95bc08 Mon Sep 17 00:00:00 2001 From: tjs Date: Thu, 11 Aug 2022 17:52:23 -0700 Subject: [PATCH] exclude Serum jup routes due to lg tx size --- components/swap/useJupiter.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/swap/useJupiter.ts b/components/swap/useJupiter.ts index 3a46cef0..90cf37c9 100644 --- a/components/swap/useJupiter.ts +++ b/components/swap/useJupiter.ts @@ -88,7 +88,8 @@ const useJupiter = ({ const routesInfosWithoutRaydium = computedRoutes?.routesInfos.filter( (r) => { for (const mkt of r.marketInfos) { - if (mkt.amm.label === 'Raydium') return false + if (mkt.amm.label === 'Raydium' || mkt.amm.label === 'Serum') + return false } return true