import { addDecimalsFormatNumber, getDateTimeFormat, } from '@vegaprotocol/utils'; import { useReferralProgram } from './hooks/use-referral-program'; import { Table } from '../../components/table'; import classNames from 'classnames'; import { BORDER_COLOR, GRADIENT } from './constants'; import { Tag } from '../../components/helpers/tag'; import { getTierColor, getTierGradient } from '../../components/helpers/tiers'; import type { ReactNode } from 'react'; import { ExternalLink, truncateMiddle } from '@vegaprotocol/ui-toolkit'; import { DApp, DocsLinks, TOKEN_PROPOSAL, TOKEN_PROPOSALS, useLinks, } from '@vegaprotocol/environment'; import { useT, ns } from '../../lib/use-t'; import { Trans } from 'react-i18next'; const Loading = ({ variant }: { variant: 'large' | 'inline' }) => (
); const StakingTier = ({ tier, referralRewardMultiplier, minimumStakedTokens, max, }: { tier: number; referralRewardMultiplier: string; minimumStakedTokens: string; max?: number; }) => { const t = useT(); const minimum = addDecimalsFormatNumber(minimumStakedTokens, 18); // TODO: Decide what to do with the multiplier images // eslint-disable-next-line @typescript-eslint/no-unused-vars const multiplierImage = (
{t( 'Members of a referral group can access the increasing commission and discount benefits defined in the program based on their combined running volume.' )}
{t( 'Referrers can access the commission multipliers defined in the program by staking VEGA tokens in the amounts shown.' )}