Skip to content

Commit

Permalink
include parentSubaccount
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredvu committed Jan 15, 2025
1 parent b945c87 commit 4684ca2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/abacus-ts/selectors/accountActions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand Down

0 comments on commit 4684ca2

Please sign in to comment.