exclude Serum jup routes due to lg tx size

This commit is contained in:
tjs 2022-08-11 17:52:23 -07:00
parent 6630f554cc
commit 0800e9f30f
1 changed files with 2 additions and 1 deletions

View File

@ -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