Add spinner component to be reusable and add loading on network liquidity

This commit is contained in:
RcleydsonR
2023-02-16 22:04:01 -03:00
parent c0f388f46e
commit dc0c28f685
5 changed files with 77 additions and 21 deletions

View File

@@ -31,6 +31,7 @@ const getNetworksLiquidity = async (): Promise<void> => {
mumbaiProvider
);
etherStore.setLoadingNetworkLiquidity(true);
const depositListGoerli = await getValidDeposits(
getTokenAddress(NetworkEnum.ethereum),
p2pContractGoerli
@@ -42,8 +43,8 @@ const getNetworksLiquidity = async (): Promise<void> => {
);
etherStore.setDepositsValidListGoerli(depositListGoerli);
etherStore.setDepositsValidListMumbai(depositListMumbai);
etherStore.setLoadingNetworkLiquidity(false);
};
const getValidDeposits = async (