fix(trading): fees accrued tooltip (#5387)
This commit is contained in:
parent
4f7918f64e
commit
15f905046f
@ -37,6 +37,9 @@ export const AgGridThemed = ({
|
|||||||
<div className={wrapperClasses}>
|
<div className={wrapperClasses}>
|
||||||
<AgGridReact
|
<AgGridReact
|
||||||
defaultColDef={defaultColDef}
|
defaultColDef={defaultColDef}
|
||||||
|
overlayLoadingTemplate={t('Loading...')}
|
||||||
|
overlayNoRowsTemplate={t('No data')}
|
||||||
|
suppressDragLeaveHidesColumns
|
||||||
ref={gridRef}
|
ref={gridRef}
|
||||||
{...defaultProps}
|
{...defaultProps}
|
||||||
{...props}
|
{...props}
|
||||||
|
@ -106,9 +106,6 @@ export const LiquidityTable = ({
|
|||||||
|
|
||||||
const feesAccruedTooltip = ({ value, data }: ITooltipParams) => {
|
const feesAccruedTooltip = ({ value, data }: ITooltipParams) => {
|
||||||
if (!value) return '-';
|
if (!value) return '-';
|
||||||
const newValue = new BigNumber(value)
|
|
||||||
.times(Number(stakeToCcyVolume) || 1)
|
|
||||||
.toString();
|
|
||||||
let lessThanFull = false,
|
let lessThanFull = false,
|
||||||
lessThanMinimum = false;
|
lessThanMinimum = false;
|
||||||
if (data.sla) {
|
if (data.sla) {
|
||||||
@ -153,7 +150,7 @@ export const LiquidityTable = ({
|
|||||||
]
|
]
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
return addDecimalsFormatNumber(newValue, assetDecimalPlaces ?? 0);
|
return addDecimalsFormatNumber(value, assetDecimalPlaces ?? 0);
|
||||||
};
|
};
|
||||||
|
|
||||||
const stakeToCcyVolumeQuantumFormatter = ({
|
const stakeToCcyVolumeQuantumFormatter = ({
|
||||||
|
Loading…
Reference in New Issue
Block a user