From ef0acf06bfb7820a21c4719dba0d659f600be3c7 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Thu, 2 Apr 2020 20:33:01 +0530 Subject: model reserve history in the exchange, improve reserve handling logic --- src/operations/balance.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/operations/balance.ts') diff --git a/src/operations/balance.ts b/src/operations/balance.ts index 8858e8b43..7c2d0e3fe 100644 --- a/src/operations/balance.ts +++ b/src/operations/balance.ts @@ -106,7 +106,7 @@ export async function getBalancesInsideTransaction( } }); - await tx.iter(Stores.withdrawalSession).forEach((wds) => { + await tx.iter(Stores.withdrawalGroups).forEach((wds) => { let w = wds.totalCoinValue; for (let i = 0; i < wds.planchets.length; i++) { if (wds.withdrawn[i]) { @@ -150,7 +150,7 @@ export async function getBalances( Stores.refreshGroups, Stores.reserves, Stores.purchases, - Stores.withdrawalSession, + Stores.withdrawalGroups, ], async (tx) => { return getBalancesInsideTransaction(ws, tx); -- cgit v1.2.3