From f46df4e0ddb11b2d5ce6d12c1e5dce6730ad9c33 Mon Sep 17 00:00:00 2001 From: nguyenlejoe Date: Thu, 11 Jan 2024 14:04:27 -0800 Subject: [PATCH] update to pool_address --- .../XYKPoolTimeSeriesView/XYKPoolTimeSeriesView.stories.tsx | 2 +- .../XYK/XYKPoolTimeSeriesView/XYKPoolTimeSeriesView.tsx | 4 ++-- src/utils/types/molecules.types.ts | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/Molecules/XYK/XYKPoolTimeSeriesView/XYKPoolTimeSeriesView.stories.tsx b/src/components/Molecules/XYK/XYKPoolTimeSeriesView/XYKPoolTimeSeriesView.stories.tsx index a50cd39b..c202a8e7 100644 --- a/src/components/Molecules/XYK/XYKPoolTimeSeriesView/XYKPoolTimeSeriesView.stories.tsx +++ b/src/components/Molecules/XYK/XYKPoolTimeSeriesView/XYKPoolTimeSeriesView.stories.tsx @@ -14,6 +14,6 @@ export const XYKPoolTimeSeries: Story = { args: { chain_name: "eth-mainnet", dex_name: "uniswap_v2", - address: "0x02af166a28393809f55bb5befbcc27ec15908241", + pool_address: "0x02af166a28393809f55bb5befbcc27ec15908241", }, }; diff --git a/src/components/Molecules/XYK/XYKPoolTimeSeriesView/XYKPoolTimeSeriesView.tsx b/src/components/Molecules/XYK/XYKPoolTimeSeriesView/XYKPoolTimeSeriesView.tsx index 3443c7dc..d397bf3a 100644 --- a/src/components/Molecules/XYK/XYKPoolTimeSeriesView/XYKPoolTimeSeriesView.tsx +++ b/src/components/Molecules/XYK/XYKPoolTimeSeriesView/XYKPoolTimeSeriesView.tsx @@ -15,7 +15,7 @@ import { capitalizeFirstLetter } from "@/utils/functions/capitalize"; export const XYKPoolTimeSeriesView: React.FC = ({ chain_name, dex_name, - address, + pool_address, }) => { const [maybeResult, setResult] = useState>(None); const [chartData, setChartData] = useState>(None); @@ -53,7 +53,7 @@ export const XYKPoolTimeSeriesView: React.FC = ({ const response = await covalentClient.XykService.getPoolByAddress( chain_name, dex_name, - address + pool_address ); setColor(rootColor()); setResult(new Some(response.data.items[0])); diff --git a/src/utils/types/molecules.types.ts b/src/utils/types/molecules.types.ts index 3c62a6cc..8c46d0b2 100644 --- a/src/utils/types/molecules.types.ts +++ b/src/utils/types/molecules.types.ts @@ -26,7 +26,7 @@ export interface NFTSalesCountViewProps { export interface XYKPoolTimeSeriesViewProps { chain_name: Chain; dex_name: string; - address: string; + pool_address: string; } export interface NFTVolumeViewProps {