diff --git a/components/TokenList.tsx b/components/TokenList.tsx
index 602a9885..d756940d 100644
--- a/components/TokenList.tsx
+++ b/components/TokenList.tsx
@@ -13,11 +13,6 @@ import { useRouter } from 'next/router'
import { Fragment, useCallback, useEffect, useMemo, useState } from 'react'
import { useViewport } from '../hooks/useViewport'
import mangoStore from '@store/mangoStore'
-import {
- floorToDecimal,
- formatDecimal,
- formatFixedDecimals,
-} from '../utils/numbers'
import { breakpoints } from '../utils/theme'
import Switch from './forms/Switch'
import { IconButton, LinkButton } from './shared/Button'
@@ -188,55 +183,28 @@ const TokenList = () => {
- {tokenBalance ? (
-
- ) : (
-
- )}
+
|
- {inOrders ? (
-
- ) : (
-
- )}
+
|
- {unsettled ? (
-
- ) : (
-
- )}
+
|
@@ -329,15 +297,10 @@ const MobileTokenListItem = ({ bank }: { bank: Bank }) => {
const interestValue = hasInterestEarned
? hasInterestEarned.borrow_interest_usd * -1 +
hasInterestEarned.deposit_interest_usd
- : 0.0
-
- const tokenBalance = mangoAccount
- ? floorToDecimal(
- mangoAccount.getTokenBalanceUi(bank),
- bank.mintDecimals
- ).toNumber()
: 0
+ const tokenBalance = mangoAccount ? mangoAccount.getTokenBalanceUi(bank) : 0
+
const inOrders = spotBalances[bank.mint.toString()]?.inOrders || 0
const unsettled = spotBalances[bank.mint.toString()]?.unsettled || 0
@@ -363,9 +326,10 @@ const MobileTokenListItem = ({ bank }: { bank: Bank }) => {
{t('balance')}:
- {tokenBalance
- ? formatDecimal(tokenBalance, bank.mintDecimals)
- : '0'}
+
@@ -398,41 +362,45 @@ const MobileTokenListItem = ({ bank }: { bank: Bank }) => {
{t('interest-earned-paid')}
{t('rates')}
- {formatDecimal(bank.getDepositRate().toNumber(), 2)}%
+
+ %
|
- {formatDecimal(bank.getBorrowRate().toNumber(), 2)}%
+
+ %
|