You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here are Gateway log statements for the request above (I added some logger statements to identify the source of the issue):
2024-11-22 10:53:49 | info | Getting trade info with params: base=WBNB, quote=USDT, amount=0.001, side=SELL, allowedSlippage=undefined, poolId=undefined, chain=mainnet, router=0x13f4EA83D0bd40E75C8222255bc855a974568Dd4
2024-11-22 10:53:49 | info | Fetching pair data on PancakeSwap for 0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c-0x55d398326f99059fF775485246999027B3197955.
2024-11-22 10:53:49 | info | Getting best trade for WBNB-USDT, amount: 1000000000000000, type: 0
2024-11-22 10:53:49 | info | getBestTrade detailed inputs:
Base Token:
- Address: 0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c
- Symbol: WBNB
- Decimals: 18
- ChainId: 56
Quote Token:
- Address: 0x55d398326f99059fF775485246999027B3197955
- Symbol: USDT
- Decimals: 18
- ChainId: 56
Amount: 1000000000000000
Base Token Amount: 0.001
Trade Type: EXACT_INPUT
Max Hops: 4
2024-11-22 10:53:49 | info | Created quote provider
2024-11-22 10:53:49 | info | Found 3 pools for pair
2024-11-22 10:53:49 | info | Requesting best trade from SmartRouter...
2024-11-22 10:53:49 | error | Error in getBestTrade: Error: Cannot find a valid swap route
2024-11-22 10:53:49 | error | Price query failed: Cannot find a valid swap route
It looks like the router identifies 3 pools for the WBNB-USDT pair, but still doesn't return a valid route. The issue may be with the router address, function inputs, or another aspect of this connector.
The text was updated successfully, but these errors were encountered:
There appears to be an issue with the Pancakeswap connector where it doesn't return routes for valid token pairs:
Route:
/amm/price
Params:
Response:
I did some debugging and believe the issue is with
SmartRouter.getBestTrade
function (https://github.com/hummingbot/gateway/blob/main/src/connectors/pancakeswap/pancakeswap.ts#L454C1-L470C4).Here are Gateway log statements for the request above (I added some logger statements to identify the source of the issue):
It looks like the router identifies 3 pools for the WBNB-USDT pair, but still doesn't return a valid route. The issue may be with the router address, function inputs, or another aspect of this connector.
The text was updated successfully, but these errors were encountered: