show withdrawal transaction continuously
This commit is contained in:
parent
87f9e7b1e3
commit
59178331a4
@ -166,25 +166,19 @@ export async function getTransactions(
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (transactionsRequest?.search)
|
transactions.push({
|
||||||
if (wsr.rawWithdrawalAmount.currency)
|
type: TransactionType.Withdrawal,
|
||||||
if (wsr.timestampFinish) {
|
amountEffective: Amounts.stringify(wsr.denomsSel.totalCoinValue),
|
||||||
transactions.push({
|
amountRaw: Amounts.stringify(wsr.denomsSel.totalWithdrawCost),
|
||||||
type: TransactionType.Withdrawal,
|
confirmed: true,
|
||||||
amountEffective: Amounts.stringify(
|
exchangeBaseUrl: wsr.exchangeBaseUrl,
|
||||||
wsr.denomsSel.totalCoinValue,
|
pending: !wsr.timestampFinish,
|
||||||
),
|
timestamp: wsr.timestampStart,
|
||||||
amountRaw: Amounts.stringify(wsr.denomsSel.totalWithdrawCost),
|
transactionId: makeEventId(
|
||||||
confirmed: true,
|
TransactionType.Withdrawal,
|
||||||
exchangeBaseUrl: wsr.exchangeBaseUrl,
|
wsr.withdrawalGroupId,
|
||||||
pending: !wsr.timestampFinish,
|
),
|
||||||
timestamp: wsr.timestampStart,
|
});
|
||||||
transactionId: makeEventId(
|
|
||||||
TransactionType.Withdrawal,
|
|
||||||
wsr.withdrawalGroupId,
|
|
||||||
),
|
|
||||||
});
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
|
|
||||||
tx.iter(Stores.reserves).forEach((r) => {
|
tx.iter(Stores.reserves).forEach((r) => {
|
||||||
@ -194,8 +188,13 @@ export async function getTransactions(
|
|||||||
if (shouldSkipSearch(transactionsRequest, [])) {
|
if (shouldSkipSearch(transactionsRequest, [])) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (r.reserveStatus !== ReserveRecordStatus.WAIT_CONFIRM_BANK) {
|
switch (r.reserveStatus) {
|
||||||
return;
|
case ReserveRecordStatus.WAIT_CONFIRM_BANK:
|
||||||
|
break;
|
||||||
|
case ReserveRecordStatus.WITHDRAWING:
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
if (!r.bankInfo) {
|
if (!r.bankInfo) {
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user