exclude Serum jup routes due to lg tx size
This commit is contained in:
parent
6630f554cc
commit
0800e9f30f
|
@ -88,7 +88,8 @@ const useJupiter = ({
|
||||||
const routesInfosWithoutRaydium = computedRoutes?.routesInfos.filter(
|
const routesInfosWithoutRaydium = computedRoutes?.routesInfos.filter(
|
||||||
(r) => {
|
(r) => {
|
||||||
for (const mkt of r.marketInfos) {
|
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
|
return true
|
||||||
|
|
Loading…
Reference in New Issue