From 4684ca2abe9d6f2834fd94896c9d00e88b1a1883 Mon Sep 17 00:00:00 2001 From: jaredvu Date: Wed, 15 Jan 2025 10:49:05 -0800 Subject: [PATCH] include parentSubaccount --- src/abacus-ts/selectors/accountActions.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/abacus-ts/selectors/accountActions.ts b/src/abacus-ts/selectors/accountActions.ts index 5351cbd6b..5ea144373 100644 --- a/src/abacus-ts/selectors/accountActions.ts +++ b/src/abacus-ts/selectors/accountActions.ts @@ -27,7 +27,7 @@ export const createSelectParentSubaccountSummaryDeposit = () => return undefined; } - const operations = createUsdcDepositOperations(depositInputs); + const operations = createUsdcDepositOperations(parentSubaccount, depositInputs); const modifiedParentSubaccount = applyOperationsToSubaccount(parentSubaccount, operations); const result = calculateParentSubaccountSummary(modifiedParentSubaccount, markets); return result; @@ -52,7 +52,7 @@ export const createSelectParentSubaccountSummaryWithdrawal = () => return undefined; } - const operations = createUsdcWithdrawalOperations(withdrawalInputs); + const operations = createUsdcWithdrawalOperations(parentSubaccount, withdrawalInputs); const modifiedParentSubaccount = applyOperationsToSubaccount(parentSubaccount, operations); const result = calculateParentSubaccountSummary(modifiedParentSubaccount, markets); return result;