diff --git a/src/entities/protocols/uniswap.ts b/src/entities/protocols/uniswap.ts index 633988e3..d1b6b378 100644 --- a/src/entities/protocols/uniswap.ts +++ b/src/entities/protocols/uniswap.ts @@ -146,7 +146,10 @@ export class UniswapTrade implements Command { } } - if (inputIsNative && (this.trade.tradeType === TradeType.EXACT_OUTPUT || riskOfPartialFill(this.trade)) || this.options.safeMode) { + if ( + (inputIsNative && (this.trade.tradeType === TradeType.EXACT_OUTPUT || riskOfPartialFill(this.trade))) || + this.options.safeMode + ) { // for exactOutput swaps that take native currency as input // we need to send back the change to the user planner.addCommand(CommandType.UNWRAP_WETH, [this.options.recipient, 0])