UniswapLP Polygon mainnet - 'Token not supported' error
Original issue: https://github.com/hummingbot/hummingbot/issues/6099
-- Whatever I do on Polygon, I always get "Token not supported"
Steps to reproduce:
Created clean docker instance Created gateway with 'gateway create' Set up uniswap and uniswapLP with appropriate information and keys Created strategy with uni_v3_lp on pair WMATIC-USDC "start" Release: latest / 1.12.0
log snippet:
... 2023-02-20 01:23:45 | error | Token not supported: WMATIC | Error: Token not supported: WMATIC at getFullTokenFromSymbol (/usr/src/app/dist/src/connectors/uniswap/uniswap.controllers.js:303:15) at /usr/src/app/dist/src/connectors/uniswap/uniswap.controllers.js:278:24 at Generator.next () at /usr/src/app/dist/src/connectors/uniswap/uniswap.controllers.js:8:71 at new Promise () at __awaiter (/usr/src/app/dist/src/connectors/uniswap/uniswap.controllers.js:4:12) at poolPrice (/usr/src/app/dist/src/connectors/uniswap/uniswap.controllers.js:276:12) at /usr/src/app/dist/src/amm/amm.controllers.js:79:52 at Generator.next () at fulfilled (/usr/src/app/dist/src/amm/amm.controllers.js:5:58) at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
While gateway create is now deprecated, the error message above seems to indicate that Hummingbot could not resolve the WMATIC symbol.
I confirmed that Gateway can resolve the WMATIC symbol via Postman:
.
I'll check if this works in Hummingbot later.
Latest development 1.14.0 Issue reproduced

Noticed that on uniswap WMATIC token will be placed as MATIC-USDC

Also noticed that bot mentioned WETH-USDC as the non-active market for uniswapLP-polygon-mainnet
However this market exists on the exchange

Same issue (Token not supported) testing other pairs (UNI-USDC)

p.s. for the note: was able to trade UNI-USDC using amm_arb strategy
@nikspz Can you still reproduce this issue?
Yes, reproduced on dev-1.17.0
logs_unilppolygondev117.log
UniswapLP polygon mainnet WBTC-USDC - Token not supported error
logs_uniswlpwmaticusdc.log
UniswapLP polygon mainnet WMATIC-USDC - Token not supported error
Got trades on
WMATIC-USDC using amm_arb before testing uniswapLP
I think UniswapLP does not support Polygon yet. I was looking at the code, and it seems that UniswapLP is not handling the 'Polygon' chain.
https://github.com/hummingbot/gateway/blob/main/src/connectors/uniswap/uniswap.lp.helper.ts#L38
You can notice that in uniswap.ts, it is being checked if it's Ethereum; otherwise, it will be Polygon.
https://github.com/hummingbot/gateway/blob/main/src/connectors/uniswap/uniswap.ts#L61
I'm trying to fix this, but I think I'll spend some time testing to make sure everything is running smoothly.