fix(withdraws): link to the withdrawal limits (#3914)

This commit is contained in:
Art 2023-05-23 18:39:29 +02:00 committed by GitHub
parent babd99088d
commit 589785ce09
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 6 deletions

View File

@ -71,6 +71,7 @@ export const DocsLinks = VEGA_DOCS_URL
LOSS_SOCIALIZATION: `${VEGA_DOCS_URL}/concepts/trading-on-vega/market-protections#loss-socialisation`,
POSITION_RESOLUTION: `${VEGA_DOCS_URL}/concepts/trading-on-vega/market-protections#position-resolution`,
LIQUIDITY: `${VEGA_DOCS_URL}/concepts/liquidity/provision`,
WITHDRAWAL_LIMITS: `${VEGA_DOCS_URL}/concepts/assets/deposits-withdrawals#withdrawal-limits`,
}
: undefined;

View File

@ -34,6 +34,7 @@ import {
useWeb3Disconnect,
} from '@vegaprotocol/web3';
import { AssetBalance } from './asset-balance';
import { DocsLinks } from '@vegaprotocol/environment';
interface FormFields {
asset: string;
@ -83,12 +84,13 @@ const WithdrawDelayNotification = ({
formatNumber(threshold, decimals),
...replacements,
]),
<ExternalLink
className="ml-1"
href="https://docs.vega.xyz/testnet/concepts/deposits-withdrawals#withdrawal-limits"
>
DocsLinks?.WITHDRAWAL_LIMITS ? (
<ExternalLink className="ml-1" href={DocsLinks.WITHDRAWAL_LIMITS}>
{t('Read more')}
</ExternalLink>,
</ExternalLink>
) : (
''
),
]}
/>
);