-
-
- {totalRewardAsset.toString()} {t('VEGA')}
-
- }
- />
-
- {totalRewards.toString()}{' '}
- {t('qUSD')}
-
- }
- />
-
+
+ {totalRewards.toString()} {t('VEGA')}
+
+ }
+ />
- {t('Vesting VEGA')}
+ {t('Locked VEGA')}
-
- {totalVestingRewardsByRewardAsset.toString()}
-
+ {totalLocked.toString()}
- {t('Vested VEGA')}
-
- {totalVestedRewardsByRewardAsset.toString()}
-
+ {t('Vesting VEGA')}
+ {totalVesting.toString()}
{t('Available to withdraw this epoch')}
@@ -352,13 +348,13 @@ const RewardHistory = ({
});
const columnDefs = useMemo[]>(() => {
- const rewardValueFormatter = ({
+ const rewardValueFormatter: ValueFormatterFunc = ({
data,
value,
- }: {
- data: RewardRow;
- value: number;
}) => {
+ if (!value || !data) {
+ return '-';
+ }
return addDecimalsFormatNumberQuantum(
value,
data.asset.decimals,
@@ -375,7 +371,7 @@ const RewardHistory = ({
value: number;
valueFormatted: string;
}) => {
- if (value <= 0) {
+ if (!value || value <= 0 || !data) {
return -;
}