- {date.toLocaleDateString()}{' '}
- {date.toLocaleTimeString()}
+ {date.toLocaleDateString()}
+
+ {date.toLocaleTimeString()}
+
|
{stat.borrow_interest > 0
@@ -261,10 +338,10 @@ const AccountInterest = () => {
>
) : loading ? (
-
-
-
-
+
) : null}
>
diff --git a/components/account_page/AccountOverview.tsx b/components/account_page/AccountOverview.tsx
index be0bc560..089aa684 100644
--- a/components/account_page/AccountOverview.tsx
+++ b/components/account_page/AccountOverview.tsx
@@ -209,7 +209,7 @@ export default function AccountOverview() {
-
+
Balances
{
return (
<>
-
+
setShowMarketsModal(true)}
diff --git a/components/mobile/MobileTableHeader.tsx b/components/mobile/MobileTableHeader.tsx
index 2e30d695..ddeb12dd 100644
--- a/components/mobile/MobileTableHeader.tsx
+++ b/components/mobile/MobileTableHeader.tsx
@@ -1,11 +1,16 @@
type MobileTableHeaderProps = {
- headerTemplate: React.ReactNode
+ colOneHeader: string
+ colTwoHeader: string
}
-const MobileTableHeader = ({ headerTemplate }: MobileTableHeaderProps) => {
+const MobileTableHeader = ({
+ colOneHeader,
+ colTwoHeader,
+}: MobileTableHeaderProps) => {
return (
-
- {headerTemplate}
+
+ {colOneHeader}
+ {colTwoHeader}
)
}
diff --git a/components/mobile/MobileTradePage.tsx b/components/mobile/MobileTradePage.tsx
index 59608901..ecd60650 100644
--- a/components/mobile/MobileTradePage.tsx
+++ b/components/mobile/MobileTradePage.tsx
@@ -104,7 +104,7 @@ const MobileTradePage = () => {
-
+
diff --git a/components/stats_page/StatsAssets.tsx b/components/stats_page/StatsAssets.tsx
index 8577389e..f837e81d 100644
--- a/components/stats_page/StatsAssets.tsx
+++ b/components/stats_page/StatsAssets.tsx
@@ -26,7 +26,7 @@ export default function StatsAssets({ latestStats, stats }) {
-
+
{latestStats.map((stat) => (
-
+
{selectedAsset.split(/-|\//)[0]} {t('perpetual-futures')}
-
+
+
{marketConfigs.map((market) => (
setSelectedAsset(market.name)}
key={market.name as string}
>
- {market.name}
+ {market.name.slice(0, -5)}
))}
diff --git a/components/stats_page/StatsTotals.tsx b/components/stats_page/StatsTotals.tsx
index de255c50..2ca8a333 100644
--- a/components/stats_page/StatsTotals.tsx
+++ b/components/stats_page/StatsTotals.tsx
@@ -345,8 +345,8 @@ export default function StatsTotals({ latestStats, stats }) {
// latestStats.length > 0 ? (
-
+
+
-
-
-
- {t('total-deposits')}
-
- {formatNumberString(stat.totalDeposits, 0)}
+
+
+ {t('total-deposits')}
-
-
- {t('total-borrows')}
-
- {formatNumberString(stat.totalBorrows, 0)}
+ {formatNumberString(stat.totalDeposits, 0)}
+
+
+
+ {t('total-borrows')}
+ {formatNumberString(stat.totalBorrows, 0)}
}
key={stat.name}
index={index}
panelTemplate={
- <>
-
+
+
{t('deposit-rate')}
@@ -389,7 +387,7 @@ export default function StatsTotals({ latestStats, stats }) {
%
-
+
{t('borrow-rate')}
@@ -397,7 +395,7 @@ export default function StatsTotals({ latestStats, stats }) {
{formatNumberString(stat.borrowInterest.toNumber(), 2)}%
-
+
{t('utilization')}
@@ -407,7 +405,7 @@ export default function StatsTotals({ latestStats, stats }) {
)}
%
- >
+
}
/>
))}
@@ -419,8 +417,8 @@ export default function StatsTotals({ latestStats, stats }) {
{stats.length > 1
? latestStats.map((stat, index) => (
-
-
+
+
-
-
-
- 24h
-
- {getAverageStats(stats, 1, stat.name, 'depositIndex')}
-
-
- 7d
- {getAverageStats(stats, 7, stat.name, 'depositIndex')}
-
-
-
- 30d
-
- {getAverageStats(
- stats,
- 30,
- stat.name,
- 'depositIndex'
- )}
-
+
+ 24h
+ {getAverageStats(stats, 1, stat.name, 'depositIndex')}
+
+
+ 7d
+ {getAverageStats(stats, 7, stat.name, 'depositIndex')}
+
+
+ 30d
+ {getAverageStats(stats, 30, stat.name, 'depositIndex')}
@@ -468,8 +455,8 @@ export default function StatsTotals({ latestStats, stats }) {
{stats.length > 1
? latestStats.map((stat, index) => (
-
-
+
+
-
-
- 24h
- {getAverageStats(stats, 1, stat.name, 'borrowIndex')}
-
-
- 7d
- {getAverageStats(stats, 7, stat.name, 'borrowIndex')}
-
-
- 30d
- {getAverageStats(stats, 30, stat.name, 'borrowIndex')}
-
+
+ 24h
+ {getAverageStats(stats, 1, stat.name, 'borrowIndex')}
+
+
+ 7d
+ {getAverageStats(stats, 7, stat.name, 'borrowIndex')}
+
+
+ 30d
+ {getAverageStats(stats, 30, stat.name, 'borrowIndex')}
diff --git a/components/trade_form/AdvancedTradeForm.tsx b/components/trade_form/AdvancedTradeForm.tsx
index d39461e7..25d9652b 100644
--- a/components/trade_form/AdvancedTradeForm.tsx
+++ b/components/trade_form/AdvancedTradeForm.tsx
@@ -738,7 +738,7 @@ export default function AdvancedTradeForm({
unit="%"
values={
isMobile
- ? ['10', '25', '50', '75']
+ ? ['10', '25', '50', '100']
: ['10', '25', '50', '75', '100']
}
/>
@@ -871,9 +871,10 @@ export default function AdvancedTradeForm({
)}
-
- Maker fee: {(makerFee * 100).toFixed(2)}% | Taker fee:{' '}
- {takerFee * 100}%
+
+ Maker fee: {(makerFee * 100).toFixed(2)}%
+ |
+ Taker fee: {takerFee * 100}%
diff --git a/components/trade_form/OrderSideTabs.tsx b/components/trade_form/OrderSideTabs.tsx
index a811c33d..bc6844ff 100644
--- a/components/trade_form/OrderSideTabs.tsx
+++ b/components/trade_form/OrderSideTabs.tsx
@@ -18,22 +18,22 @@ const OrderSideTabs: FunctionComponent = ({
const { t } = useTranslation('common')
const market = useMangoStore((s) => s.selectedMarket.current)
return (
-
+
- |