From 3c3f2a3e4e952b2abc3b0db903993b45a23290fa Mon Sep 17 00:00:00 2001 From: marshall <99344331+marshall2112@users.noreply.github.com> Date: Thu, 2 Jan 2025 14:49:22 -0500 Subject: [PATCH] wip --- apps/dapp/src/components/Pages/Core/NewUI/HomeInput.tsx | 1 + apps/dapp/src/providers/WalletProvider.tsx | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/apps/dapp/src/components/Pages/Core/NewUI/HomeInput.tsx b/apps/dapp/src/components/Pages/Core/NewUI/HomeInput.tsx index 8931c807f..489a891be 100644 --- a/apps/dapp/src/components/Pages/Core/NewUI/HomeInput.tsx +++ b/apps/dapp/src/components/Pages/Core/NewUI/HomeInput.tsx @@ -58,6 +58,7 @@ const TickerImages: Record = { ETH: ethImg, WETH: wethImg, DAI: daiImg, + USDS: daiImg, // TODO: Replace with USDS image FRAX: fraxImg, USDC: usdcImg, USDT: usdtImg, diff --git a/apps/dapp/src/providers/WalletProvider.tsx b/apps/dapp/src/providers/WalletProvider.tsx index 5b7bdcba4..ac9ccc0c9 100644 --- a/apps/dapp/src/providers/WalletProvider.tsx +++ b/apps/dapp/src/providers/WalletProvider.tsx @@ -37,6 +37,7 @@ const INITIAL_STATE: WalletState = { USDC: ZERO, USDT: ZERO, DAI: ZERO, + USDS: ZERO, ETH: ZERO, WETH: ZERO, TEMPLE: ZERO, @@ -101,6 +102,7 @@ export const WalletProvider = (props: PropsWithChildren) => { USDC: ZERO, USDT: ZERO, DAI: ZERO, + USDS: ZERO, WETH: ZERO, OHM: ZERO, TGLD: ZERO, @@ -139,7 +141,7 @@ export const WalletProvider = (props: PropsWithChildren) => { if (env.contracts.dai) { const daiContract = new ERC20__factory(signer).attach(env.contracts.dai); const daiBalance: BigNumber = await daiContract.balanceOf(walletAddress); - response = { ...response, DAI: daiBalance }; + response = { ...response, DAI: daiBalance, USDS: daiBalance }; } if (env.contracts.weth) {