From 84c37b2ed90bb456cabad72fdb90534a0e856eea Mon Sep 17 00:00:00 2001 From: esteblock Date: Sun, 24 Aug 2025 11:27:56 -0300 Subject: [PATCH] The API only accepts small letters in protocols --- src/functions/generateRoute.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/functions/generateRoute.ts b/src/functions/generateRoute.ts index ee82018e..a4e4501e 100644 --- a/src/functions/generateRoute.ts +++ b/src/functions/generateRoute.ts @@ -182,7 +182,7 @@ export const useSoroswapApi = () => { protocols: getProtocols, parts: 10, slippageTolerance: Math.floor(Number(allowedSlippage) * 100).toString(), - assetList: ['SOROSWAP'], + assetList: ['soroswap'], maxHops: maxHops, }; @@ -261,10 +261,10 @@ export const useSoroswapApi = () => { assetOut: tradeType === TradeType.EXACT_INPUT ? quoteAsset.contract : amountAsset.currency.contract, amount: amount, tradeType: tradeType, - protocols: ["SOROSWAP"], + protocols: ["soroswap"], parts: 10, slippageTolerance: Math.floor(Number(allowedSlippage) * 100).toString(), - assetList: ['SOROSWAP'], + assetList: ['soroswap'], maxHops: maxHops, };