2023-11-15 21:46:19 +00:00
|
|
|
import groupBy from 'lodash/groupBy';
|
2023-12-06 04:05:45 +00:00
|
|
|
import uniq from 'lodash/uniq';
|
2023-11-15 21:46:19 +00:00
|
|
|
import type { Account } from '@vegaprotocol/accounts';
|
|
|
|
import { useAccounts } from '@vegaprotocol/accounts';
|
|
|
|
import {
|
|
|
|
NetworkParams,
|
|
|
|
useNetworkParams,
|
|
|
|
} from '@vegaprotocol/network-parameters';
|
|
|
|
import { AccountType } from '@vegaprotocol/types';
|
|
|
|
import { useVegaWallet } from '@vegaprotocol/wallet';
|
|
|
|
import BigNumber from 'bignumber.js';
|
|
|
|
import {
|
|
|
|
Card,
|
|
|
|
CardStat,
|
|
|
|
CardTable,
|
|
|
|
CardTableTD,
|
|
|
|
CardTableTH,
|
|
|
|
} from '../card/card';
|
|
|
|
import {
|
|
|
|
type RewardsPageQuery,
|
|
|
|
useRewardsPageQuery,
|
|
|
|
useRewardsEpochQuery,
|
|
|
|
} from './__generated__/Rewards';
|
|
|
|
import {
|
|
|
|
TradingButton,
|
|
|
|
VegaIcon,
|
|
|
|
VegaIconNames,
|
|
|
|
} from '@vegaprotocol/ui-toolkit';
|
|
|
|
import { formatPercentage } from '../fees-container/utils';
|
|
|
|
import { addDecimalsFormatNumberQuantum } from '@vegaprotocol/utils';
|
|
|
|
import { ViewType, useSidebar } from '../sidebar';
|
|
|
|
import { useGetCurrentRouteId } from '../../lib/hooks/use-get-current-route-id';
|
|
|
|
import { RewardsHistoryContainer } from './rewards-history';
|
2023-11-21 11:08:33 +00:00
|
|
|
import { useT } from '../../lib/use-t';
|
2023-12-06 04:05:45 +00:00
|
|
|
import { useAssetsMapProvider } from '@vegaprotocol/assets';
|
|
|
|
|
|
|
|
const ASSETS_WITH_INCORRECT_VESTING_REWARD_DATA = [
|
|
|
|
'bf1e88d19db4b3ca0d1d5bdb73718a01686b18cf731ca26adedf3c8b83802bba', // USDT mainnet
|
|
|
|
'8ba0b10971f0c4747746cd01ff05a53ae75ca91eba1d4d050b527910c983e27e', // USDT testnet
|
|
|
|
];
|
2023-11-15 21:46:19 +00:00
|
|
|
|
|
|
|
export const RewardsContainer = () => {
|
2023-11-21 11:08:33 +00:00
|
|
|
const t = useT();
|
2023-11-15 21:46:19 +00:00
|
|
|
const { pubKey } = useVegaWallet();
|
|
|
|
const { params, loading: paramsLoading } = useNetworkParams([
|
|
|
|
NetworkParams.reward_asset,
|
|
|
|
NetworkParams.rewards_activityStreak_benefitTiers,
|
|
|
|
NetworkParams.rewards_vesting_baseRate,
|
|
|
|
]);
|
2023-12-06 04:05:45 +00:00
|
|
|
|
2023-11-15 21:46:19 +00:00
|
|
|
const { data: accounts, loading: accountsLoading } = useAccounts(pubKey);
|
|
|
|
|
2023-12-06 04:05:45 +00:00
|
|
|
const { data: assetMap } = useAssetsMapProvider();
|
|
|
|
|
2023-11-15 21:46:19 +00:00
|
|
|
const { data: epochData } = useRewardsEpochQuery();
|
|
|
|
|
|
|
|
// No need to specify the fromEpoch as it will by default give you the last
|
2023-12-06 04:05:45 +00:00
|
|
|
// Note activityStreak in query will fail
|
2023-11-15 21:46:19 +00:00
|
|
|
const { data: rewardsData, loading: rewardsLoading } = useRewardsPageQuery({
|
|
|
|
variables: {
|
|
|
|
partyId: pubKey || '',
|
|
|
|
},
|
2023-12-06 04:05:45 +00:00
|
|
|
// Inclusion of activity streak in query currently fails
|
|
|
|
errorPolicy: 'ignore',
|
2023-12-21 13:41:37 +00:00
|
|
|
// polling here so that as rewards are are moved to ACCOUNT_TYPE_VESTED_REWARDS the vesting stats information stays
|
|
|
|
// almost up to sync with accounts updating from subscriptions. There is a chance the data could be out
|
|
|
|
// of sync for 10s if you happen to be on the page at the end of an epoch
|
|
|
|
pollInterval: 10000,
|
2023-11-15 21:46:19 +00:00
|
|
|
});
|
|
|
|
|
2023-12-06 04:05:45 +00:00
|
|
|
if (!epochData?.epoch || !assetMap) return null;
|
2023-11-15 21:46:19 +00:00
|
|
|
|
|
|
|
const loading = paramsLoading || accountsLoading || rewardsLoading;
|
|
|
|
|
|
|
|
const rewardAccounts = accounts
|
2023-12-06 04:05:45 +00:00
|
|
|
? accounts
|
|
|
|
.filter((a) =>
|
|
|
|
[
|
|
|
|
AccountType.ACCOUNT_TYPE_VESTED_REWARDS,
|
|
|
|
AccountType.ACCOUNT_TYPE_VESTING_REWARDS,
|
|
|
|
].includes(a.type)
|
|
|
|
)
|
|
|
|
.filter((a) => new BigNumber(a.balance).isGreaterThan(0))
|
|
|
|
: [];
|
|
|
|
|
|
|
|
const rewardAccountsAssetMap = groupBy(rewardAccounts, 'asset.id');
|
|
|
|
|
|
|
|
const lockedBalances = rewardsData?.party?.vestingBalancesSummary
|
|
|
|
.lockedBalances
|
|
|
|
? rewardsData.party.vestingBalancesSummary.lockedBalances.filter((b) =>
|
|
|
|
new BigNumber(b.balance).isGreaterThan(0)
|
2023-11-15 21:46:19 +00:00
|
|
|
)
|
|
|
|
: [];
|
2023-12-06 04:05:45 +00:00
|
|
|
const lockedAssetMap = groupBy(lockedBalances, 'asset.id');
|
2023-11-15 21:46:19 +00:00
|
|
|
|
2023-12-06 04:05:45 +00:00
|
|
|
const vestingBalances = rewardsData?.party?.vestingBalancesSummary
|
|
|
|
.vestingBalances
|
|
|
|
? rewardsData.party.vestingBalancesSummary.vestingBalances.filter((b) =>
|
|
|
|
new BigNumber(b.balance).isGreaterThan(0)
|
|
|
|
)
|
|
|
|
: [];
|
|
|
|
const vestingAssetMap = groupBy(vestingBalances, 'asset.id');
|
|
|
|
|
|
|
|
// each asset reward pot is made up of:
|
|
|
|
// available to withdraw - ACCOUNT_TYPE_VESTED_REWARDS
|
|
|
|
// vesting - vestingBalancesSummary.vestingBalances
|
|
|
|
// locked - vestingBalancesSummary.lockedBalances
|
|
|
|
//
|
|
|
|
// there can be entires for the same asset in each list so we need a uniq list of assets
|
|
|
|
const assets = uniq([
|
|
|
|
...Object.keys(rewardAccountsAssetMap),
|
|
|
|
...Object.keys(lockedAssetMap),
|
|
|
|
...Object.keys(vestingAssetMap),
|
|
|
|
]);
|
2023-11-15 21:46:19 +00:00
|
|
|
|
|
|
|
return (
|
2023-12-05 10:19:42 +00:00
|
|
|
<div className="grid auto-rows-min grid-cols-6 gap-3">
|
2023-11-15 21:46:19 +00:00
|
|
|
{/* Always show reward information for vega */}
|
|
|
|
<Card
|
|
|
|
key={params.reward_asset}
|
|
|
|
title={t('Vega Reward pot')}
|
|
|
|
className="lg:col-span-3 xl:col-span-2"
|
|
|
|
loading={loading}
|
|
|
|
highlight={true}
|
|
|
|
>
|
|
|
|
<RewardPot
|
|
|
|
pubKey={pubKey}
|
|
|
|
accounts={accounts}
|
|
|
|
assetId={params.reward_asset}
|
|
|
|
vestingBalancesSummary={rewardsData?.party?.vestingBalancesSummary}
|
|
|
|
/>
|
|
|
|
</Card>
|
|
|
|
<Card
|
|
|
|
title={t('Vesting')}
|
|
|
|
className="lg:col-span-3 xl:col-span-2"
|
|
|
|
loading={loading}
|
|
|
|
>
|
|
|
|
<Vesting
|
|
|
|
pubKey={pubKey}
|
|
|
|
baseRate={params.rewards_vesting_baseRate}
|
|
|
|
multiplier={
|
|
|
|
rewardsData?.party?.activityStreak?.rewardVestingMultiplier
|
|
|
|
}
|
|
|
|
/>
|
|
|
|
</Card>
|
|
|
|
<Card
|
|
|
|
title={t('Rewards multipliers')}
|
|
|
|
className="lg:col-span-3 xl:col-span-2"
|
|
|
|
loading={loading}
|
|
|
|
highlight={true}
|
|
|
|
>
|
|
|
|
<Multipliers
|
|
|
|
pubKey={pubKey}
|
|
|
|
hoarderMultiplier={
|
|
|
|
rewardsData?.party?.vestingStats?.rewardBonusMultiplier
|
|
|
|
}
|
|
|
|
streakMultiplier={
|
|
|
|
rewardsData?.party?.activityStreak?.rewardDistributionMultiplier
|
|
|
|
}
|
|
|
|
/>
|
|
|
|
</Card>
|
|
|
|
|
|
|
|
{/* Show all other reward pots, most of the time users will not have other rewards */}
|
2023-12-06 04:05:45 +00:00
|
|
|
{assets
|
|
|
|
.filter((assetId) => assetId !== params.reward_asset)
|
|
|
|
.map((assetId) => {
|
|
|
|
const asset = assetMap ? assetMap[assetId] : null;
|
|
|
|
|
|
|
|
if (!asset) return null;
|
|
|
|
|
|
|
|
// Following code is for mitigating an issue due to a core bug where locked and vesting
|
|
|
|
// balances were incorrectly increased for infrastructure rewards for USDT on mainnet
|
|
|
|
//
|
|
|
|
// We don't want to incorrectly show the wring locked/vesting values, but we DO want to
|
|
|
|
// show the user that they have rewards available to withdraw
|
|
|
|
if (ASSETS_WITH_INCORRECT_VESTING_REWARD_DATA.includes(asset.id)) {
|
|
|
|
const accountsForAsset = rewardAccountsAssetMap[asset.id];
|
|
|
|
const vestedAccount = accountsForAsset?.find(
|
|
|
|
(a) => a.type === AccountType.ACCOUNT_TYPE_VESTED_REWARDS
|
|
|
|
);
|
|
|
|
|
|
|
|
// No vested rewards available to withdraw, so skip over USDT
|
|
|
|
if (!vestedAccount || Number(vestedAccount.balance) <= 0) {
|
|
|
|
return null;
|
|
|
|
}
|
|
|
|
|
|
|
|
return (
|
|
|
|
<Card
|
|
|
|
key={assetId}
|
|
|
|
title={t('{{assetSymbol}} Reward pot', {
|
|
|
|
assetSymbol: asset.symbol,
|
|
|
|
})}
|
|
|
|
className="lg:col-span-3 xl:col-span-2"
|
|
|
|
loading={loading}
|
|
|
|
>
|
|
|
|
<RewardPot
|
|
|
|
pubKey={pubKey}
|
|
|
|
accounts={accounts}
|
|
|
|
assetId={assetId}
|
|
|
|
// Ensure that these values are shown as 0
|
|
|
|
vestingBalancesSummary={{
|
|
|
|
lockedBalances: [],
|
|
|
|
vestingBalances: [],
|
|
|
|
}}
|
|
|
|
/>
|
|
|
|
</Card>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
return (
|
|
|
|
<Card
|
|
|
|
key={assetId}
|
|
|
|
title={t('{{assetSymbol}} Reward pot', {
|
|
|
|
assetSymbol: asset.symbol,
|
|
|
|
})}
|
|
|
|
className="lg:col-span-3 xl:col-span-2"
|
|
|
|
loading={loading}
|
|
|
|
>
|
|
|
|
<RewardPot
|
|
|
|
pubKey={pubKey}
|
|
|
|
accounts={accounts}
|
|
|
|
assetId={assetId}
|
|
|
|
vestingBalancesSummary={
|
|
|
|
rewardsData?.party?.vestingBalancesSummary
|
|
|
|
}
|
|
|
|
/>
|
|
|
|
</Card>
|
|
|
|
);
|
|
|
|
})}
|
2023-11-15 21:46:19 +00:00
|
|
|
<Card
|
|
|
|
title={t('Rewards history')}
|
|
|
|
className="lg:col-span-full"
|
|
|
|
loading={rewardsLoading}
|
|
|
|
>
|
|
|
|
<RewardsHistoryContainer
|
|
|
|
epoch={Number(epochData?.epoch.id)}
|
|
|
|
pubKey={pubKey}
|
2023-12-06 04:05:45 +00:00
|
|
|
assets={assetMap}
|
2023-11-15 21:46:19 +00:00
|
|
|
/>
|
|
|
|
</Card>
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
};
|
|
|
|
|
|
|
|
type VestingBalances = NonNullable<
|
|
|
|
RewardsPageQuery['party']
|
|
|
|
>['vestingBalancesSummary'];
|
|
|
|
|
|
|
|
export type RewardPotProps = {
|
|
|
|
pubKey: string | null;
|
|
|
|
accounts: Account[] | null;
|
|
|
|
assetId: string; // VEGA
|
|
|
|
vestingBalancesSummary: VestingBalances | undefined;
|
|
|
|
};
|
|
|
|
|
|
|
|
export const RewardPot = ({
|
|
|
|
pubKey,
|
|
|
|
accounts,
|
|
|
|
assetId,
|
|
|
|
vestingBalancesSummary,
|
|
|
|
}: RewardPotProps) => {
|
2023-11-21 11:08:33 +00:00
|
|
|
const t = useT();
|
2023-11-15 21:46:19 +00:00
|
|
|
// TODO: Opening the sidebar for the first time works, but then clicking on redeem
|
|
|
|
// for a different asset does not update the form
|
|
|
|
const currentRouteId = useGetCurrentRouteId();
|
|
|
|
const setViews = useSidebar((store) => store.setViews);
|
|
|
|
|
|
|
|
// All vested rewards accounts
|
|
|
|
const availableRewardAssetAccounts = accounts
|
|
|
|
? accounts.filter((a) => {
|
|
|
|
return (
|
|
|
|
a.asset.id === assetId &&
|
|
|
|
a.type === AccountType.ACCOUNT_TYPE_VESTED_REWARDS
|
|
|
|
);
|
|
|
|
})
|
|
|
|
: [];
|
|
|
|
|
|
|
|
// Sum of all vested reward account balances
|
|
|
|
const totalVestedRewardsByRewardAsset = BigNumber.sum.apply(
|
|
|
|
null,
|
|
|
|
availableRewardAssetAccounts.length
|
|
|
|
? availableRewardAssetAccounts.map((a) => a.balance)
|
|
|
|
: [0]
|
|
|
|
);
|
|
|
|
|
|
|
|
const lockedEntries = vestingBalancesSummary?.lockedBalances?.filter(
|
|
|
|
(b) => b.asset.id === assetId
|
|
|
|
);
|
|
|
|
const lockedBalances = lockedEntries?.length
|
|
|
|
? lockedEntries.map((e) => e.balance)
|
|
|
|
: [0];
|
|
|
|
const totalLocked = BigNumber.sum.apply(null, lockedBalances);
|
|
|
|
|
|
|
|
const vestingEntries = vestingBalancesSummary?.vestingBalances?.filter(
|
|
|
|
(b) => b.asset.id === assetId
|
|
|
|
);
|
|
|
|
const vestingBalances = vestingEntries?.length
|
|
|
|
? vestingEntries.map((e) => e.balance)
|
|
|
|
: [0];
|
|
|
|
const totalVesting = BigNumber.sum.apply(null, vestingBalances);
|
|
|
|
|
2023-12-21 13:41:37 +00:00
|
|
|
const totalRewards = totalLocked
|
|
|
|
.plus(totalVesting)
|
|
|
|
.plus(totalVestedRewardsByRewardAsset);
|
2023-11-15 21:46:19 +00:00
|
|
|
|
|
|
|
let rewardAsset = undefined;
|
|
|
|
|
|
|
|
if (availableRewardAssetAccounts.length) {
|
|
|
|
rewardAsset = availableRewardAssetAccounts[0].asset;
|
|
|
|
} else if (lockedEntries?.length) {
|
|
|
|
rewardAsset = lockedEntries[0].asset;
|
|
|
|
} else if (vestingEntries?.length) {
|
|
|
|
rewardAsset = vestingEntries[0].asset;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (!pubKey) {
|
|
|
|
return (
|
|
|
|
<div className="pt-4">
|
|
|
|
<p className="text-muted text-sm">{t('Not connected')}</p>
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
return (
|
|
|
|
<div className="pt-4">
|
|
|
|
{rewardAsset ? (
|
|
|
|
<>
|
|
|
|
<CardStat
|
|
|
|
value={`${addDecimalsFormatNumberQuantum(
|
|
|
|
totalRewards.toString(),
|
|
|
|
rewardAsset.decimals,
|
|
|
|
rewardAsset.quantum
|
|
|
|
)} ${rewardAsset.symbol}`}
|
|
|
|
testId="total-rewards"
|
|
|
|
/>
|
|
|
|
<div className="flex flex-col gap-4">
|
|
|
|
<CardTable>
|
|
|
|
<tr>
|
|
|
|
<CardTableTH className="flex items-center gap-1">
|
2023-11-21 11:08:33 +00:00
|
|
|
{t('Locked {{assetSymbol}}', {
|
|
|
|
assetSymbol: rewardAsset.symbol,
|
|
|
|
})}
|
2023-11-15 21:46:19 +00:00
|
|
|
<VegaIcon name={VegaIconNames.LOCK} size={12} />
|
|
|
|
</CardTableTH>
|
|
|
|
<CardTableTD>
|
|
|
|
{addDecimalsFormatNumberQuantum(
|
|
|
|
totalLocked.toString(),
|
|
|
|
rewardAsset.decimals,
|
|
|
|
rewardAsset.quantum
|
|
|
|
)}
|
|
|
|
</CardTableTD>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
2023-11-21 11:08:33 +00:00
|
|
|
<CardTableTH>
|
|
|
|
{t('Vesting {{assetSymbol}}', {
|
|
|
|
assetSymbol: rewardAsset.symbol,
|
|
|
|
})}
|
|
|
|
</CardTableTH>
|
2023-11-15 21:46:19 +00:00
|
|
|
<CardTableTD>
|
|
|
|
{addDecimalsFormatNumberQuantum(
|
|
|
|
totalVesting.toString(),
|
|
|
|
rewardAsset.decimals,
|
|
|
|
rewardAsset.quantum
|
|
|
|
)}
|
|
|
|
</CardTableTD>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<CardTableTH>
|
|
|
|
{t('Available to withdraw this epoch')}
|
|
|
|
</CardTableTH>
|
|
|
|
<CardTableTD>
|
|
|
|
{addDecimalsFormatNumberQuantum(
|
|
|
|
totalVestedRewardsByRewardAsset.toString(),
|
|
|
|
rewardAsset.decimals,
|
|
|
|
rewardAsset.quantum
|
|
|
|
)}
|
|
|
|
</CardTableTD>
|
|
|
|
</tr>
|
|
|
|
</CardTable>
|
|
|
|
{totalVestedRewardsByRewardAsset.isGreaterThan(0) && (
|
|
|
|
<div>
|
|
|
|
<TradingButton
|
|
|
|
onClick={() =>
|
|
|
|
setViews(
|
|
|
|
{ type: ViewType.Transfer, assetId },
|
|
|
|
currentRouteId
|
|
|
|
)
|
|
|
|
}
|
|
|
|
size="small"
|
|
|
|
>
|
|
|
|
{t('Redeem rewards')}
|
|
|
|
</TradingButton>
|
|
|
|
</div>
|
|
|
|
)}
|
|
|
|
</div>
|
|
|
|
</>
|
|
|
|
) : (
|
|
|
|
<p className="text-muted text-sm">{t('No rewards')}</p>
|
|
|
|
)}
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
};
|
|
|
|
|
|
|
|
export const Vesting = ({
|
|
|
|
pubKey,
|
|
|
|
baseRate,
|
2023-12-06 04:05:45 +00:00
|
|
|
multiplier,
|
2023-11-15 21:46:19 +00:00
|
|
|
}: {
|
|
|
|
pubKey: string | null;
|
|
|
|
baseRate: string;
|
|
|
|
multiplier?: string;
|
|
|
|
}) => {
|
2023-11-21 11:08:33 +00:00
|
|
|
const t = useT();
|
2023-12-06 04:05:45 +00:00
|
|
|
const rate = new BigNumber(baseRate).times(multiplier || 1);
|
2023-11-15 21:46:19 +00:00
|
|
|
const rateFormatted = formatPercentage(Number(rate));
|
|
|
|
const baseRateFormatted = formatPercentage(Number(baseRate));
|
|
|
|
|
|
|
|
return (
|
|
|
|
<div className="pt-4">
|
|
|
|
<CardStat value={rateFormatted + '%'} testId="vesting-rate" />
|
|
|
|
<CardTable>
|
|
|
|
<tr>
|
|
|
|
<CardTableTH>{t('Base rate')}</CardTableTH>
|
|
|
|
<CardTableTD>{baseRateFormatted}%</CardTableTD>
|
|
|
|
</tr>
|
|
|
|
{pubKey && (
|
|
|
|
<tr>
|
|
|
|
<CardTableTH>{t('Vesting multiplier')}</CardTableTH>
|
2023-12-06 04:05:45 +00:00
|
|
|
<CardTableTD>{multiplier ? `${multiplier}x` : '-'}</CardTableTD>
|
2023-11-15 21:46:19 +00:00
|
|
|
</tr>
|
|
|
|
)}
|
|
|
|
</CardTable>
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
};
|
|
|
|
|
|
|
|
export const Multipliers = ({
|
|
|
|
pubKey,
|
2023-12-06 04:05:45 +00:00
|
|
|
streakMultiplier,
|
|
|
|
hoarderMultiplier,
|
2023-11-15 21:46:19 +00:00
|
|
|
}: {
|
|
|
|
pubKey: string | null;
|
|
|
|
streakMultiplier?: string;
|
|
|
|
hoarderMultiplier?: string;
|
|
|
|
}) => {
|
2023-11-21 11:08:33 +00:00
|
|
|
const t = useT();
|
2023-12-06 04:05:45 +00:00
|
|
|
const combinedMultiplier = new BigNumber(streakMultiplier || 1).times(
|
|
|
|
hoarderMultiplier || 1
|
2023-11-15 21:46:19 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
if (!pubKey) {
|
|
|
|
return (
|
|
|
|
<div className="pt-4">
|
|
|
|
<p className="text-muted text-sm">{t('Not connected')}</p>
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
return (
|
|
|
|
<div className="pt-4">
|
|
|
|
<CardStat
|
|
|
|
value={combinedMultiplier.toString() + 'x'}
|
|
|
|
testId="combined-multipliers"
|
|
|
|
highlight={true}
|
|
|
|
/>
|
|
|
|
<CardTable>
|
|
|
|
<tr>
|
|
|
|
<CardTableTH>{t('Streak reward multiplier')}</CardTableTH>
|
2023-12-06 04:05:45 +00:00
|
|
|
<CardTableTD>
|
|
|
|
{streakMultiplier ? `${streakMultiplier}x` : '-'}
|
|
|
|
</CardTableTD>
|
2023-11-15 21:46:19 +00:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<CardTableTH>{t('Hoarder reward multiplier')}</CardTableTH>
|
2023-12-06 04:05:45 +00:00
|
|
|
<CardTableTD>
|
|
|
|
{hoarderMultiplier ? `${hoarderMultiplier}x` : '-'}
|
|
|
|
</CardTableTD>
|
2023-11-15 21:46:19 +00:00
|
|
|
</tr>
|
|
|
|
</CardTable>
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
};
|