xiongzhu 2 年之前
父節點
當前提交
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)
                         )