diff --git a/src/headless/helpers.ts b/src/headless/helpers.ts index 6716ccef4..49881d469 100644 --- a/src/headless/helpers.ts +++ b/src/headless/helpers.ts @@ -133,9 +133,9 @@ export async function getDefaultNodeWallet( const myBadge = new ConsoleBadge(); - BridgeIDBFactory.enableTracing = true; + BridgeIDBFactory.enableTracing = false; const myBackend = new MemoryBackend(); - myBackend.enableTracing = true; + myBackend.enableTracing = false; const storagePath = args.persistentStoragePath; if (storagePath) { 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);