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

Commit

Permalink
rename function
Browse files Browse the repository at this point in the history
  • Loading branch information
hensha256 committed Feb 8, 2024
1 parent 0053133 commit 56b3b8b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/entities/protocols/uniswap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,11 +155,11 @@ export class UniswapTrade implements Command {
planner.addCommand(CommandType.UNWRAP_WETH, [this.options.recipient, 0])
}

if (this.options.tokensToSweep) addIntermediateSweeps(planner, this.options.recipient, this.options.tokensToSweep)
if (this.options.tokensToSweep) addExtraTokenSweeps(planner, this.options.recipient, this.options.tokensToSweep)
}
}

function addIntermediateSweeps(planner: RoutePlanner, recipient: string, tokensToSweep: string[]) {
function addExtraTokenSweeps(planner: RoutePlanner, recipient: string, tokensToSweep: string[]) {
for (const token of tokensToSweep) {
planner.addCommand(CommandType.SWEEP, [token, recipient, 0])
}
Expand Down

0 comments on commit 56b3b8b

Please sign in to comment.