From f1be5fee74b1f0fc9a1503fd7bb8e2e21492ae78 Mon Sep 17 00:00:00 2001 From: Davide Segullo Date: Fri, 21 Jun 2024 19:47:23 +0200 Subject: [PATCH] feat: :sparkles: add parentSubaccount export --- src/hooks/useDydxClient.tsx | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/hooks/useDydxClient.tsx b/src/hooks/useDydxClient.tsx index b5f63d9a9..3b85f0532 100644 --- a/src/hooks/useDydxClient.tsx +++ b/src/hooks/useDydxClient.tsx @@ -172,7 +172,7 @@ const useDydxClientContext = () => { fills = [], totalResults, pageSize, - } = await indexerClient.account.getSubaccountFills( + } = await indexerClient.account.getParentSubaccountNumberFills( address, subaccountNumber, undefined, @@ -195,7 +195,7 @@ const useDydxClientContext = () => { const results = await Promise.all( pages.map((page) => - indexerClient.account.getSubaccountFills( + indexerClient.account.getParentSubaccountNumberFills( address, subaccountNumber, undefined, @@ -226,7 +226,7 @@ const useDydxClientContext = () => { transfers = [], totalResults, pageSize, - } = await indexerClient.account.getSubaccountTransfers( + } = await indexerClient.account.getParentSubaccountNumberTransfers( address, subaccountNumber, 100, @@ -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,