Add loading for listing component and add validation to show withdraw box only when a wallet has atleast one deposit

This commit is contained in:
RcleydsonR
2023-02-16 19:53:26 -03:00
parent c129e4a905
commit c0f388f46e
6 changed files with 102 additions and 44 deletions

View File

@@ -10,7 +10,6 @@ import { NetworkEnum } from "@/model/NetworkEnum";
const getNetworksLiquidity = async (): Promise<void> => {
const etherStore = useEtherStore();
console.log("Loading events");
const goerliProvider = new ethers.providers.JsonRpcProvider(
import.meta.env.VITE_GOERLI_API_URL,
@@ -43,10 +42,8 @@ const getNetworksLiquidity = async (): Promise<void> => {
);
etherStore.setDepositsValidListGoerli(depositListGoerli);
console.log(depositListGoerli);
etherStore.setDepositsValidListMumbai(depositListMumbai);
console.log(depositListMumbai);
};
const getValidDeposits = async (