summaryrefslogtreecommitdiff
path: root/src/operations/balance.ts
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2020-04-02 20:33:01 +0530
committerFlorian Dold <florian.dold@gmail.com>2020-04-02 20:33:01 +0530
commitef0acf06bfb7820a21c4719dba0d659f600be3c7 (patch)
tree216d34722240f682e5ee58632947fa75e9b4fcee /src/operations/balance.ts
parent1728e5011e16f226c6e3675aa196872af39f6c4e (diff)
downloadwallet-core-ef0acf06bfb7820a21c4719dba0d659f600be3c7.tar.gz
wallet-core-ef0acf06bfb7820a21c4719dba0d659f600be3c7.tar.bz2
wallet-core-ef0acf06bfb7820a21c4719dba0d659f600be3c7.zip
model reserve history in the exchange, improve reserve handling logic
Diffstat (limited to 'src/operations/balance.ts')
-rw-r--r--src/operations/balance.ts4
1 files changed, 2 insertions, 2 deletions
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);