From dbdc9c9ee301885fc08a066f7824b7cb7dfcd4fc Mon Sep 17 00:00:00 2001 From: sebipap Date: Tue, 23 Apr 2024 14:36:34 -0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=A9=B9=20debit2credit:=20use=20bridged=20?= =?UTF-8?q?USDC=20by=20default?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/Credit/Borrow.tsx | 6 +++--- components/Credit/index.tsx | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/components/Credit/Borrow.tsx b/components/Credit/Borrow.tsx index 2e7a9033c..ed3cbaec0 100644 --- a/components/Credit/Borrow.tsx +++ b/components/Credit/Borrow.tsx @@ -23,13 +23,13 @@ const Borrow = ({ onDeposit, direct, receiver, depositConfig, onNextStep }: Prop const { setSymbol, setQty, setReceiver, setOperation, symbol, tx } = useOperationContext(); const { route } = useSocketSwap(); - const { marketAccount } = useAccountData('USDC'); + const { marketAccount } = useAccountData('USDC.e'); const { t } = useTranslation(); const { chain } = useWeb3(); useEffect(() => { setOperation('borrowAtMaturity'); - setSymbol('USDC'); + setSymbol('USDC.e'); if (!marketAccount) return; if (direct && receiver) setReceiver(receiver); }, [chain.id, marketAccount, receiver, setQty, setReceiver, setSymbol, direct, setOperation]); @@ -65,7 +65,7 @@ const Borrow = ({ onDeposit, direct, receiver, depositConfig, onNextStep }: Prop message={t( 'This borrowing process will include a token swap from {{from}} to {{to}}; you will find the swap details below.', { - from: symbol === 'USDC' ? 'USDC.e' : symbol, + from: symbol, to: depositConfig.tokenSymbol, }, )} diff --git a/components/Credit/index.tsx b/components/Credit/index.tsx index a21d6f48c..0ce9e1b56 100644 --- a/components/Credit/index.tsx +++ b/components/Credit/index.tsx @@ -301,7 +301,7 @@ const CreditWrapper = () => {