xiongzhu 2 лет назад
Родитель
Сommit
21bfa6df4d
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      src/task/task.service.ts

+ 2 - 2
src/task/task.service.ts

@@ -89,13 +89,13 @@ export class TaskService {
                         )
                         break
                     case TaskType.swapUsdc:
-                        web3Result = await this.web3Service.swapWithExactInput(
+                        web3Result = await this.web3Service.swapWithExactOutput(
                             accountId,
                             randomAmount(task.params.minAmount, task.params.maxAmount)
                         )
                         break
                     case TaskType.swapEth:
-                        web3Result = await this.web3Service.swapWithExactOutput(
+                        web3Result = await this.web3Service.swapWithExactInput(
                             accountId,
                             randomAmount(task.params.minAmount, task.params.maxAmount)
                         )