diff --git a/src/subdomains/core/buy-crypto/routes/swap/swap.service.ts b/src/subdomains/core/buy-crypto/routes/swap/swap.service.ts index ee33e1fea9..08e97714fb 100644 --- a/src/subdomains/core/buy-crypto/routes/swap/swap.service.ts +++ b/src/subdomains/core/buy-crypto/routes/swap/swap.service.ts @@ -163,7 +163,7 @@ export class SwapService { }); } - async createSwapPaymentInfo(userId: number, dto: GetSwapPaymentInfoDto, includeTx = true): Promise { + async createSwapPaymentInfo(userId: number, dto: GetSwapPaymentInfoDto, includeTx = false): Promise { const swap = await Util.retry( () => this.createSwap(userId, dto.sourceAsset.blockchain, dto.targetAsset, true), 2, diff --git a/src/subdomains/core/custody/services/custody-order.service.ts b/src/subdomains/core/custody/services/custody-order.service.ts index c7cdadabc7..5eba45ff65 100644 --- a/src/subdomains/core/custody/services/custody-order.service.ts +++ b/src/subdomains/core/custody/services/custody-order.service.ts @@ -114,6 +114,7 @@ export class CustodyOrderService { const swapPaymentInfo = await this.swapService.createSwapPaymentInfo( jwt.user, GetCustodyOrderDtoMapper.getSwapPaymentInfo(dto, sourceAsset, targetAsset), + false, ); orderDto.swap = await this.swapService.getById(swapPaymentInfo.routeId); @@ -142,6 +143,7 @@ export class CustodyOrderService { const swapPaymentInfo = await this.swapService.createSwapPaymentInfo( targetUser.id, GetCustodyOrderDtoMapper.getSwapPaymentInfo(dto, sourceAsset, targetAsset), + false, ); orderDto.swap = await this.swapService.getById(swapPaymentInfo.routeId); @@ -160,6 +162,7 @@ export class CustodyOrderService { const swapPaymentInfo = await this.swapService.createSwapPaymentInfo( jwt.user, GetCustodyOrderDtoMapper.getSwapPaymentInfo(dto, sourceAsset, targetAsset), + false, ); orderDto.swap = await this.swapService.getById(swapPaymentInfo.routeId);