|
|
@@ -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)
|
|
|
)
|