xiongzhu 2 years ago
parent
commit
21bfa6df4d
1 changed files with 2 additions and 2 deletions
  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)
                         )