Skip to content

Commit

Permalink
update to pool_address
Browse files Browse the repository at this point in the history
  • Loading branch information
nguyenlejoe committed Jan 11, 2024
1 parent d909765 commit f46df4e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ export const XYKPoolTimeSeries: Story = {
args: {
chain_name: "eth-mainnet",
dex_name: "uniswap_v2",
address: "0x02af166a28393809f55bb5befbcc27ec15908241",
pool_address: "0x02af166a28393809f55bb5befbcc27ec15908241",
},
};
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import { capitalizeFirstLetter } from "@/utils/functions/capitalize";
export const XYKPoolTimeSeriesView: React.FC<XYKPoolTimeSeriesViewProps> = ({
chain_name,
dex_name,
address,
pool_address,
}) => {
const [maybeResult, setResult] = useState<Option<any>>(None);
const [chartData, setChartData] = useState<Option<any>>(None);
Expand Down Expand Up @@ -53,7 +53,7 @@ export const XYKPoolTimeSeriesView: React.FC<XYKPoolTimeSeriesViewProps> = ({
const response = await covalentClient.XykService.getPoolByAddress(
chain_name,
dex_name,
address
pool_address
);
setColor(rootColor());
setResult(new Some(response.data.items[0]));
Expand Down
2 changes: 1 addition & 1 deletion src/utils/types/molecules.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export interface NFTSalesCountViewProps {
export interface XYKPoolTimeSeriesViewProps {
chain_name: Chain;
dex_name: string;
address: string;
pool_address: string;
}

export interface NFTVolumeViewProps {
Expand Down

0 comments on commit f46df4e

Please sign in to comment.