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 16d5244 commit 2c3711b
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 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 @@ -18,7 +18,7 @@ import { capitalizeFirstLetter } from "@/utils/functions/capitalize";
export const XYKPoolTimeSeriesView: React.FC<XYKPoolTimeSeriesViewProps> = ({
chain_name,
dex_name,
address,
pool_address,
pool_data,
}) => {
const [maybeResult, setResult] = useState<Option<PoolWithTimeseries>>(None);
Expand Down Expand Up @@ -62,7 +62,7 @@ export const XYKPoolTimeSeriesView: React.FC<XYKPoolTimeSeriesViewProps> = ({
const response = await covalentClient.XykService.getPoolByAddress(
chain_name,
dex_name,
address
pool_address
);
setResult(new Some(response.data.items[0]));
})();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ export const XYKPoolDetail: Story = {
args: {
chain_name: "eth-mainnet",
dex_name: "uniswap_v2",
address: "0x21b8065d10f73ee2e260e5b47d3344d3ced7596e",
pool_address: "0x21b8065d10f73ee2e260e5b47d3344d3ced7596e",
},
};
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { prettyToken } from "@/utils/functions/pretty-token";
export const XYKPoolDetailView: React.FC<XYKPoolDetailViewProps> = ({
chain_name,
dex_name,
address,
pool_address,
}) => {
const [maybeResult, setResult] = useState<Option<any>>(None);
const [error, setError] = useState({ error: false, error_message: "" });
Expand All @@ -26,7 +26,7 @@ export const XYKPoolDetailView: React.FC<XYKPoolDetailViewProps> = ({
response = await covalentClient.XykService.getPoolByAddress(
chain_name,
dex_name,
address
pool_address
);
setResult(new Some(response.data.items[0]));
} catch (error) {
Expand Down Expand Up @@ -217,7 +217,7 @@ export const XYKPoolDetailView: React.FC<XYKPoolDetailViewProps> = ({
})}
chain_name={chain_name}
dex_name={dex_name}
address={address}
pool_address={pool_address}
/>
</div>
</div>
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;
pool_data?: PoolWithTimeseries;
}

Expand Down
2 changes: 1 addition & 1 deletion src/utils/types/organisms.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export interface NFTDetailViewProps {
export interface XYKPoolDetailViewProps {
chain_name: Chain;
dex_name: string;
address: string;
pool_address: string;
}

export interface NFTWalletCollectionViewProps {
Expand Down

0 comments on commit 2c3711b

Please sign in to comment.