diff options
Diffstat (limited to 'src/wallet.ts')
-rw-r--r-- | src/wallet.ts | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/wallet.ts b/src/wallet.ts index 1d231f2df..14ab45444 100644 --- a/src/wallet.ts +++ b/src/wallet.ts @@ -2230,10 +2230,13 @@ export class Wallet { if (!r.timestamp_confirmed) { return balance; } + let amount = Amounts.getZero(r.requested_amount.currency); + /* let amount = r.current_amount; if (!amount) { amount = r.requested_amount; } + */ amount = Amounts.add(amount, r.precoin_amount).amount; if (Amounts.cmp(smallestWithdraw[r.exchange_base_url], amount) < 0) { addTo(balance, "pendingIncoming", amount, r.exchange_base_url); |