@@ -166,7 +166,13 @@ export function swapErrorToUserReadableMessage(error: any): string {
case'TF':
return'The output token cannot be transferred. There may be an issue with the output token. Note fee on transfer and rebase tokens are incompatible with Uniswap V3.'
default:
return`Unknown error${reason?`: "${reason}"`:''}. Please join the Discord to get help.`
if(reason?.indexOf('undefined is not an object')!==-1){
console.error(error,reason)
return'An error occurred when trying to execute this swap. You may need to increase your slippage tolerance. If that does not work, there may be an incompatibility with the token you are trading. Note fee on transfer and rebase tokens are incompatible with Uniswap V3.'
}
return`Unknown error${
reason?`: "${reason}"`:''
}. Try increasing your slippage tolerance. Note fee on transfer and rebase tokens are incompatible with Uniswap V3.`