diff --git a/components/swap/SwapHistoryTable.tsx b/components/swap/SwapHistoryTable.tsx index 42218d2b..dbb87c4f 100644 --- a/components/swap/SwapHistoryTable.tsx +++ b/components/swap/SwapHistoryTable.tsx @@ -59,6 +59,7 @@ const SwapHistoryTable = ({ {t('date')} {t('swap')} + {t('value')} {t('borrow')} {t('borrow-fee')} @@ -118,7 +119,7 @@ const SwapHistoryTable = ({

-
+
-

+

{`${trimDecimals(swap_in_amount, inDecimals)}`} - + {inSymbol}

-

+

+ + {t('price')}: + {' '} {formatFixedDecimals(swap_in_price_usd, true)} - | - {formatFixedDecimals( - swap_in_amount * swap_in_price_usd, - true - )}

-
- -
+
-

+

{`${trimDecimals(swap_out_amount, outDecimals)}`} - + {outSymbol}

-

+

+ + {t('price')}: + {' '} {formatFixedDecimals(swap_out_price_usd, true)} - | - {formatFixedDecimals( - swap_out_amount * swap_out_price_usd, - true - )}

+ +

+ {formatFixedDecimals( + swap_out_price_usd * swap_out_amount, + true + )} +

+

{borrowAmount} - + {inSymbol}

@@ -267,8 +270,8 @@ const SwapHistoryTable = ({ return (
-
-
+
+
-

+

{swap_in_amount.toFixed(2)}{' '} - {inSymbol} -

-

- {formatFixedDecimals(swap_in_price_usd, true)} - - | + + {inSymbol} - {formatFixedDecimals( - swap_in_amount * swap_in_price_usd, - true - )} +

+

+ + {t('price')}: + {' '} + {formatFixedDecimals(swap_in_price_usd, true)}

-
- -
-
+ +
-

+

{swap_out_amount.toFixed(2)}{' '} - {outSymbol} -

-

- {formatFixedDecimals(swap_out_price_usd, true)} - - | + + {outSymbol} - {formatFixedDecimals( - swap_out_amount * swap_out_price_usd, - true - )} +

+

+ + {t('price')}: + {' '} + {formatFixedDecimals(swap_out_price_usd, true)}

@@ -361,7 +358,9 @@ const SwapHistoryTable = ({

{t('borrow')}

{borrowAmount}{' '} - {inSymbol} + + {inSymbol} +

@@ -371,7 +370,7 @@ const SwapHistoryTable = ({

${borrowFee}