fix(trading): liquidation price tooltip link (#5050)
This commit is contained in:
parent
2376bfe58f
commit
3d1aa74128
@ -37,6 +37,7 @@ import {
|
|||||||
AccordionChevron,
|
AccordionChevron,
|
||||||
AccordionPanel,
|
AccordionPanel,
|
||||||
Intent,
|
Intent,
|
||||||
|
ExternalLink,
|
||||||
Pill,
|
Pill,
|
||||||
Tooltip,
|
Tooltip,
|
||||||
} from '@vegaprotocol/ui-toolkit';
|
} from '@vegaprotocol/ui-toolkit';
|
||||||
@ -385,7 +386,21 @@ export const DealTicketMarginDetails = ({
|
|||||||
value={liquidationPriceEstimateRange}
|
value={liquidationPriceEstimateRange}
|
||||||
formattedValue={liquidationPriceEstimate}
|
formattedValue={liquidationPriceEstimate}
|
||||||
symbol={quoteName}
|
symbol={quoteName}
|
||||||
labelDescription={LIQUIDATION_PRICE_ESTIMATE_TOOLTIP_TEXT}
|
labelDescription={
|
||||||
|
<>
|
||||||
|
<span>{LIQUIDATION_PRICE_ESTIMATE_TOOLTIP_TEXT}</span>{' '}
|
||||||
|
<span>
|
||||||
|
{t('For full details please see ')}
|
||||||
|
<ExternalLink
|
||||||
|
href={
|
||||||
|
'https://github.com/vegaprotocol/specs/blob/master/non-protocol-specs/0012-NP-LIPE-liquidation-price-estimate.md'
|
||||||
|
}
|
||||||
|
>
|
||||||
|
{t('liquidation price estimate documentation.')}
|
||||||
|
</ExternalLink>
|
||||||
|
</span>
|
||||||
|
</>
|
||||||
|
}
|
||||||
/>
|
/>
|
||||||
{partyId && (
|
{partyId && (
|
||||||
<AccountBreakdownDialog
|
<AccountBreakdownDialog
|
||||||
|
@ -60,7 +60,7 @@ export const EST_FEES_TOOLTIP_TEXT = t(
|
|||||||
);
|
);
|
||||||
|
|
||||||
export const LIQUIDATION_PRICE_ESTIMATE_TOOLTIP_TEXT = t(
|
export const LIQUIDATION_PRICE_ESTIMATE_TOOLTIP_TEXT = t(
|
||||||
'This is an approximation (or a range) for the liquidation price for that particular contract position, assuming nothing else changes, which may affect your margin and collateral balances.'
|
'This is an approximation for the liquidation price for that particular contract position, assuming nothing else changes, which may affect your margin and collateral balances.'
|
||||||
);
|
);
|
||||||
|
|
||||||
export const EST_SLIPPAGE = t(
|
export const EST_SLIPPAGE = t(
|
||||||
|
Loading…
Reference in New Issue
Block a user