don't show wrong balance
This commit is contained in:
parent
4fd092e7e3
commit
82591a9ba9
@ -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) {
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user