@@ -71,13 +71,12 @@ export function swapErrorToUserReadableMessage(error: any): string {
...
@@ -71,13 +71,12 @@ export function swapErrorToUserReadableMessage(error: any): string {
returnt`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.`
returnt`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:
default:
if(reason?.indexOf('undefined is not an object')!==-1){
if(reason?.indexOf('undefined is not an object')!==-1){
logger.error(error,{
logger.warn(
tags:{
'swapErrorToUserReadableMessage',
file:'swapErrorToUserReadableMessage',
'swapErrorToUserReadableMessage',
function:'swapErrorToUserReadableMessage',
'Undefined object error',
},
reason
extra:{reason},
)
})
returnt`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.`
returnt`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.`