import React from 'react'; import { FormattedMessage, useIntl } from 'react-intl'; import { HashLink as Anchor } from 'react-router-hash-link'; import styled from 'styled-components'; import { Code } from '../../components/Code'; import { Link } from '../../components/Link'; import { PageTemplate } from '../../components/PageTemplate'; import { Heading } from '../../components/Heading'; import { Text } from '../../components/Text'; import { EJECTION_PRICE, MIN_ACTIVATION_BALANCE, MAX_EFFECTIVE_BALANCE, } from '../../utils/envVars'; const FAQStyles = styled.div` section { margin-top: 30px; } a { text-decoration: none; } ul { color: ${p => p.theme.blue.dark}; font-family: 'inherit'; } `; const BlockQuote = styled.div` margin-top: 10px; padding-inline-start: 20px; border-inline-start: 5px solid lightgray; `; const SectionTitle = styled(Heading)` margin-top: 30px; border-bottom: 1px solid lightgray; padding-bottom: 10px; `; const AllCaps = styled.span` text-transform: uppercase; `; export const FAQ = () => { const { formatMessage } = useIntl(); return (
), }} />
), }} />
), }} />
{MIN_ACTIVATION_BALANCE} ETH ), }} />
), MIN_ACTIVATION_BALANCE, MAX_EFFECTIVE_BALANCE: ( {MAX_EFFECTIVE_BALANCE} ), }} />
), }} />
: 0x00 : {MIN_ACTIVATION_BALANCE} ETH :{' '} :{' '}
: 0x01 : {MIN_ACTIVATION_BALANCE} ETH :{' '} :{' '}
: 0x02 : {MAX_EFFECTIVE_BALANCE} ETH :{' '} :{' '}
), }} />
), consensusLayer: ( ), }} description="{executionLayer} is a link labeled 'execution layer'. {consensusLayer} is a link labeled 'consensus layer'" />
), pocGame: ( ), }} />
  • {formatMessage({ defaultMessage: 'slashings' })} ), }} description="{slashings} shows 'slashings' in bold for emphasis" />
), }} />
{formatMessage({ defaultMessage: 'effective balance' })} ), article: ( {formatMessage({ defaultMessage: 'understanding validator effective balance', })} ), }} description="{effectiveBalance} shows 'effective balance' in bold. {article} shows 'excellent post' and links to an article." />
{formatMessage({ defaultMessage: 'impact of effective balance', })} ), }} description="{impact} shows 'impact of effective balance' and links to article on 'Effective Balance'" />
  1. {formatMessage({ defaultMessage: 'This is the expected scenario.', })} ), }} description="{expected} shows 'This is the expected scenario' and is bolded for emphasis" />
  2. {formatMessage({ defaultMessage: 'This scenario is very extreme and unlikely to happen.', })} ), }} description="{strongText} shows 'This scenario is very extreme and unlikely to happen' and is bolded for emphasis" />
{formatMessage({ defaultMessage: 'greater than 50%' })} ), }} description="{greater than 50%} shows 'greater than 50%' and is a link to validator incentives article" />
{formatMessage({ defaultMessage: 'this number increases if other validators are slashed at the same time', })} ), }} description="{strongText} is a warning, bolded for emphasis" />
), type0: 0x00, type1: 0x01, }} />
  • {formatMessage({ defaultMessage: 'withdrawal key', })} ), eip2334: ( EIP2334 ), }} />
  • {' '} {`--eth1_withdrawal_address <`} {`>`}{' '} ), boldWarning: ( {formatMessage({ defaultMessage: 'Please ensure that you have control over the keys to this address.', })} ), }} />
), }} />
EIP2334 ), strongText: ( {formatMessage({ defaultMessage: 'you can always recalculate your signing key from your mnemonic', })} ), }} description="{eip2334} shows 'EIP2334' and links to EIP documentation. {strongText} is important information bolded for emphasis" />
), }} />
Discord ), reddit: ( Reddit ), }} description="{discord} and {reddit} are links to EthStaker forums on Discord and Reddit respectively" />
); };