fix(trading): fees accrued tooltip (#5387)

This commit is contained in:
m.ray 2023-11-29 19:17:44 +02:00 committed by GitHub
parent 4f7918f64e
commit 15f905046f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -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}

View File

@ -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 = ({