Skip to content
This repository has been archived by the owner on Apr 25, 2024. It is now read-only.

Commit

Permalink
Linting fix
Browse files Browse the repository at this point in the history
  • Loading branch information
hensha256 committed Feb 6, 2024
1 parent 7e1b627 commit cf29684
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/entities/protocols/uniswap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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])
Expand Down

0 comments on commit cf29684

Please sign in to comment.