Skip to content

Commit

Permalink
feat: ✨ add parentSubaccount export
Browse files Browse the repository at this point in the history
  • Loading branch information
DavideSegullo committed Jun 28, 2024
1 parent acd86a5 commit f1be5fe
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/hooks/useDydxClient.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ const useDydxClientContext = () => {
fills = [],
totalResults,
pageSize,
} = await indexerClient.account.getSubaccountFills(
} = await indexerClient.account.getParentSubaccountNumberFills(
address,
subaccountNumber,
undefined,
Expand All @@ -195,7 +195,7 @@ const useDydxClientContext = () => {

const results = await Promise.all(
pages.map((page) =>
indexerClient.account.getSubaccountFills(
indexerClient.account.getParentSubaccountNumberFills(
address,
subaccountNumber,
undefined,
Expand Down Expand Up @@ -226,7 +226,7 @@ const useDydxClientContext = () => {
transfers = [],
totalResults,
pageSize,
} = await indexerClient.account.getSubaccountTransfers(
} = await indexerClient.account.getParentSubaccountNumberTransfers(
address,
subaccountNumber,
100,
Expand All @@ -247,11 +247,9 @@ const useDydxClientContext = () => {

const results = await Promise.all(
pages.map((page) =>
indexerClient.account.getSubaccountFills(
indexerClient.account.getParentSubaccountNumberTransfers(
address,
subaccountNumber,
undefined,
undefined,
100,
undefined,
undefined,
Expand Down

0 comments on commit f1be5fe

Please sign in to comment.