router-sdk: "Unexpected pool type in route when constructing trade object" is sometimes being thrown when using `@uniswap/smart-order-router` on Celo #77
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.
I seemingly randomly get this error with the smart-order-router SDK on Celo. I'm suspecting a weird type mismatch.
Related issue: https://github.com/Uniswap/smart-order-router/issues/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: https://github.com/Uniswap/sdks/blob/b2148e66482d72d0948895ad90b7dbd481616000/sdks/router-sdk/src/entities/trade.ts#L133
Example of tokens that sometimes throw:
Example of usage: