From 2c3711b9f575d5577610626546ca0b4635b7075b Mon Sep 17 00:00:00 2001 From: nguyenlejoe Date: Thu, 11 Jan 2024 14:03:52 -0800 Subject: [PATCH] update to pool address --- .../XYKPoolTimeSeriesView/XYKPoolTimeSeriesView.stories.tsx | 2 +- .../XYK/XYKPoolTimeSeriesView/XYKPoolTimeSeriesView.tsx | 4 ++-- .../XYK/XYKPoolDetailView/XYKPoolDetailView.stories.tsx | 2 +- .../Organisms/XYK/XYKPoolDetailView/XYKPoolDetailView.tsx | 6 +++--- src/utils/types/molecules.types.ts | 2 +- src/utils/types/organisms.types.ts | 2 +- 6 files changed, 9 insertions(+), 9 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 cf0aa6ad..947fa000 100644 --- a/src/components/Molecules/XYK/XYKPoolTimeSeriesView/XYKPoolTimeSeriesView.tsx +++ b/src/components/Molecules/XYK/XYKPoolTimeSeriesView/XYKPoolTimeSeriesView.tsx @@ -18,7 +18,7 @@ import { capitalizeFirstLetter } from "@/utils/functions/capitalize"; export const XYKPoolTimeSeriesView: React.FC = ({ chain_name, dex_name, - address, + pool_address, pool_data, }) => { const [maybeResult, setResult] = useState>(None); @@ -62,7 +62,7 @@ export const XYKPoolTimeSeriesView: React.FC = ({ const response = await covalentClient.XykService.getPoolByAddress( chain_name, dex_name, - address + pool_address ); setResult(new Some(response.data.items[0])); })(); diff --git a/src/components/Organisms/XYK/XYKPoolDetailView/XYKPoolDetailView.stories.tsx b/src/components/Organisms/XYK/XYKPoolDetailView/XYKPoolDetailView.stories.tsx index 24fe1f07..f19ba655 100644 --- a/src/components/Organisms/XYK/XYKPoolDetailView/XYKPoolDetailView.stories.tsx +++ b/src/components/Organisms/XYK/XYKPoolDetailView/XYKPoolDetailView.stories.tsx @@ -14,6 +14,6 @@ export const XYKPoolDetail: Story = { args: { chain_name: "eth-mainnet", dex_name: "uniswap_v2", - address: "0x21b8065d10f73ee2e260e5b47d3344d3ced7596e", + pool_address: "0x21b8065d10f73ee2e260e5b47d3344d3ced7596e", }, }; diff --git a/src/components/Organisms/XYK/XYKPoolDetailView/XYKPoolDetailView.tsx b/src/components/Organisms/XYK/XYKPoolDetailView/XYKPoolDetailView.tsx index 44689dba..4ac76980 100644 --- a/src/components/Organisms/XYK/XYKPoolDetailView/XYKPoolDetailView.tsx +++ b/src/components/Organisms/XYK/XYKPoolDetailView/XYKPoolDetailView.tsx @@ -12,7 +12,7 @@ import { prettyToken } from "@/utils/functions/pretty-token"; export const XYKPoolDetailView: React.FC = ({ chain_name, dex_name, - address, + pool_address, }) => { const [maybeResult, setResult] = useState>(None); const [error, setError] = useState({ error: false, error_message: "" }); @@ -26,7 +26,7 @@ export const XYKPoolDetailView: React.FC = ({ response = await covalentClient.XykService.getPoolByAddress( chain_name, dex_name, - address + pool_address ); setResult(new Some(response.data.items[0])); } catch (error) { @@ -217,7 +217,7 @@ export const XYKPoolDetailView: React.FC = ({ })} chain_name={chain_name} dex_name={dex_name} - address={address} + pool_address={pool_address} /> diff --git a/src/utils/types/molecules.types.ts b/src/utils/types/molecules.types.ts index 5c963e15..2a5aa65f 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; pool_data?: PoolWithTimeseries; } diff --git a/src/utils/types/organisms.types.ts b/src/utils/types/organisms.types.ts index 9e731275..bbfbaa9b 100644 --- a/src/utils/types/organisms.types.ts +++ b/src/utils/types/organisms.types.ts @@ -14,7 +14,7 @@ export interface NFTDetailViewProps { export interface XYKPoolDetailViewProps { chain_name: Chain; dex_name: string; - address: string; + pool_address: string; } export interface NFTWalletCollectionViewProps {