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