diff --git a/components/AccountStats.tsx b/components/AccountStats.tsx index 80c577b..69637c1 100644 --- a/components/AccountStats.tsx +++ b/components/AccountStats.tsx @@ -1,48 +1,47 @@ -import useMangoGroup from 'hooks/useMangoGroup' -import { useMemo } from 'react' -import FormatNumericValue from './shared/FormatNumericValue' -import useMangoAccount from 'hooks/useMangoAccount' +// import useMangoGroup from 'hooks/useMangoGroup' +// import { useMemo } from 'react' +// import FormatNumericValue from './shared/FormatNumericValue' +// import useMangoAccount from 'hooks/useMangoAccount' const AccountStats = ({ token }: { token: string }) => { - const { mangoAccount } = useMangoAccount() - const { group } = useMangoGroup() + // const { mangoAccount } = useMangoAccount() + // const { group } = useMangoGroup() - const bank = useMemo(() => { - if (!group) return undefined - return group.banksMapByName.get(token)?.[0] - }, [group, token]) + // const bank = useMemo(() => { + // if (!group) return undefined + // return group.banksMapByName.get(token)?.[0] + // }, [group, token]) - const position = bank ? mangoAccount?.getTokenBalanceUi(bank) || 0.0 : 0.0 + // const position = bank ? mangoAccount?.getTokenBalanceUi(bank) || 0.0 : 0.0 return ( -
Est. APR
+ 14.89%Max Leverage
+ 3xCapacity Remaining
+ 100,000 SOLTotal Staked
+ {`100,000 ${token}`} +{leverage}x
+{t('deposit-amount')}
SOL borrowed
+SOL Borrowed
{solBank ? ( -{selectedToken} Leveraged APR
- +{selectedToken} Deposit Rate
- +SOL Borrow Rate
- +