Skip to content

Commit 42a1474

Browse files
authored
Merge pull request #3044 from DFXswiss/develop
Release: develop -> main
2 parents 0475945 + 5ad8183 commit 42a1474

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/subdomains/core/custody/services/custody-order.service.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ export class CustodyOrderService {
118118
);
119119

120120
orderDto.swap = await this.swapService.getById(swapPaymentInfo.routeId);
121-
orderDto.outputAsset = targetAsset;
121+
orderDto.outputAsset = sourceAsset;
122122
orderDto.outputAmount = swapPaymentInfo.amount;
123123
paymentInfo = CustodyOrderResponseDtoMapper.mapSwapPaymentInfo(swapPaymentInfo);
124124
break;
@@ -147,7 +147,7 @@ export class CustodyOrderService {
147147
);
148148

149149
orderDto.swap = await this.swapService.getById(swapPaymentInfo.routeId);
150-
orderDto.outputAsset = targetAsset;
150+
orderDto.outputAsset = sourceAsset;
151151
orderDto.outputAmount = swapPaymentInfo.amount;
152152
paymentInfo = CustodyOrderResponseDtoMapper.mapSwapPaymentInfo(swapPaymentInfo);
153153
break;

src/subdomains/supporting/bank-tx/bank-tx/services/bank-tx.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ export class BankTxService implements OnModuleInit {
140140
try {
141141
const dates = groupTransactions.map((tx) => (tx.bookingDate ?? tx.created).getTime());
142142
const fromDate = new Date(Math.min(...dates));
143-
const toDate = new Date(Math.max(...dates));
143+
const toDate = Util.daysAfter(1, new Date(Math.max(...dates)));
144144

145145
const yapealTransactions = await this.yapealService.getTransactions(accountIban, fromDate, toDate);
146146

0 commit comments

Comments
 (0)