Commit 41113e6e authored by Tina's avatar Tina Committed by GitHub

fix: Use client side router only for price fetching (#6604)

use client side router only for price fetching
parent 58b25d29
...@@ -126,11 +126,7 @@ export const routingApi = createApi({ ...@@ -126,11 +126,7 @@ export const routingApi = createApi({
) )
}, },
async queryFn(args, _api, _extraOptions, fetch) { async queryFn(args, _api, _extraOptions, fetch) {
if ( if (args.routerPreference === RouterPreference.API || args.routerPreference === RouterPreference.AUTO) {
args.routerPreference === RouterPreference.API ||
args.routerPreference === RouterPreference.AUTO ||
args.routerPreference === INTERNAL_ROUTER_PREFERENCE_PRICE
) {
try { try {
const { tokenInAddress, tokenInChainId, tokenOutAddress, tokenOutChainId, amount, tradeType } = args const { tokenInAddress, tokenInChainId, tokenOutAddress, tokenOutChainId, amount, tradeType } = args
const type = isExactInput(tradeType) ? 'exactIn' : 'exactOut' const type = isExactInput(tradeType) ? 'exactIn' : 'exactOut'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment