Skip to content

Commit

Permalink
fix while ending
Browse files Browse the repository at this point in the history
  • Loading branch information
pavelSyntronic committed Mar 17, 2024
1 parent f8b42bb commit 4ab08fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/Swap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ async function loopAndWaitForProfit(
let prevAmountOut: number = 0;
let priceDownCounter = 5;
//priceDownCounter > 0 &&
while (profitToTakeOrLose < targetProfitPercentage && profitToTakeOrLose > STOP_LOSS_PERCENT) {
while (profitToTakeOrLose < targetProfitPercentage || profitToTakeOrLose > STOP_LOSS_PERCENT) {
if (cancellationToken.cancelled) {
break;
}
Expand Down

0 comments on commit 4ab08fa

Please sign in to comment.