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
router-sdk: "Unexpected pool type in route when constructing trade object" is sometimes being thrown when using @uniswap/smart-order-router on Celo
#77
Closed
kasparkallas opened this issue
Aug 19, 2024
· 1 comment
Part of the problem is the error message not being descriptive enough. It could print out what the wrong pool type is, to give me some idea where the problem could be at. It could also print out the version of the package used.
The text was updated successfully, but these errors were encountered:
kasparkallas
changed the title
"Unexpected pool type in route when constructing trade object" is sometimes being thrown when using @uniswap/smart-order-router on Celo
router-sdk: "Unexpected pool type in route when constructing trade object" is sometimes being thrown when using @uniswap/smart-order-router on Celo
Aug 19, 2024
I seemingly randomly get this error with the smart-order-router SDK on Celo. I'm suspecting a weird type mismatch.
Related issue: Uniswap/smart-order-router#477
Part of the problem is the error message not being descriptive enough. It could print out what the wrong pool type is, to give me some idea where the problem could be at. It could also print out the version of the package used.
Reference to the relevant code:
sdks/sdks/router-sdk/src/entities/trade.ts
Line 133 in b2148e6
Example of tokens that sometimes throw:
Example of usage:
The text was updated successfully, but these errors were encountered: