chore: adds liquidity fee percentage link
This commit is contained in:
parent
93f92f13cb
commit
e07aafa630
@ -86,6 +86,7 @@ export const DocsLinks = VEGA_DOCS_URL
|
|||||||
POST_REDUCE_ONLY: `${VEGA_DOCS_URL}/concepts/trading-on-vega/orders#conditional-order-parameters`,
|
POST_REDUCE_ONLY: `${VEGA_DOCS_URL}/concepts/trading-on-vega/orders#conditional-order-parameters`,
|
||||||
QUANTUM: `${VEGA_DOCS_URL}/concepts/assets/asset-framework#quantum`,
|
QUANTUM: `${VEGA_DOCS_URL}/concepts/assets/asset-framework#quantum`,
|
||||||
REFERRALS: `${VEGA_DOCS_URL}/tutorials/proposals/referral-program-proposal`,
|
REFERRALS: `${VEGA_DOCS_URL}/tutorials/proposals/referral-program-proposal`,
|
||||||
|
LIQUIDITY_FEE_PERCENTAGE: `${VEGA_DOCS_URL}/concepts/liquidity/rewards-penalties#determining-the-liquidity-fee-percentage`,
|
||||||
}
|
}
|
||||||
: undefined;
|
: undefined;
|
||||||
|
|
||||||
|
@ -110,6 +110,7 @@
|
|||||||
"Fills": "Fills",
|
"Fills": "Fills",
|
||||||
"Final commission rate": "Final commission rate",
|
"Final commission rate": "Final commission rate",
|
||||||
"Find out more": "Find out more",
|
"Find out more": "Find out more",
|
||||||
|
"Fore more info, visit the documentation": "For more info, visit the documentation",
|
||||||
"Free from the risks of real trading, Fairground is a safe and fun place to try out Vega yourself with virtual assets.": "Free from the risks of real trading, Fairground is a safe and fun place to try out Vega yourself with virtual assets.",
|
"Free from the risks of real trading, Fairground is a safe and fun place to try out Vega yourself with virtual assets.": "Free from the risks of real trading, Fairground is a safe and fun place to try out Vega yourself with virtual assets.",
|
||||||
"From epoch": "From epoch",
|
"From epoch": "From epoch",
|
||||||
"Fully decentralised high performance peer-to-network trading.": "Fully decentralised high performance peer-to-network trading.",
|
"Fully decentralised high performance peer-to-network trading.": "Fully decentralised high performance peer-to-network trading.",
|
||||||
|
@ -56,6 +56,7 @@ import {
|
|||||||
TOKEN_PROPOSAL,
|
TOKEN_PROPOSAL,
|
||||||
useEnvironment,
|
useEnvironment,
|
||||||
useLinks,
|
useLinks,
|
||||||
|
DocsLinks,
|
||||||
} from '@vegaprotocol/environment';
|
} from '@vegaprotocol/environment';
|
||||||
import type { Provider } from '../../oracle-schema';
|
import type { Provider } from '../../oracle-schema';
|
||||||
import { OracleBasicProfile } from '../../components/oracle-basic-profile';
|
import { OracleBasicProfile } from '../../components/oracle-basic-profile';
|
||||||
@ -113,29 +114,40 @@ export const CurrentFeesInfoPanel = ({ market }: MarketInfoProps) => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
export const LiquidityFeesSettings = ({ market }: MarketInfoProps) => {
|
export const LiquidityFeesSettings = ({ market }: MarketInfoProps) => {
|
||||||
|
const t = useT();
|
||||||
return (
|
return (
|
||||||
<MarketInfoTable
|
<>
|
||||||
data={{
|
<MarketInfoTable
|
||||||
feeConstant: market.fees.liquidityFeeSettings?.feeConstant,
|
data={{
|
||||||
method: market.fees.liquidityFeeSettings && (
|
feeConstant: market.fees.liquidityFeeSettings?.feeConstant,
|
||||||
<Tooltip
|
method: market.fees.liquidityFeeSettings && (
|
||||||
description={
|
<Tooltip
|
||||||
LiquidityFeeMethodMappingDescription[
|
description={
|
||||||
market.fees.liquidityFeeSettings?.method
|
LiquidityFeeMethodMappingDescription[
|
||||||
]
|
|
||||||
}
|
|
||||||
>
|
|
||||||
<span>
|
|
||||||
{
|
|
||||||
LiquidityFeeMethodMapping[
|
|
||||||
market.fees.liquidityFeeSettings?.method
|
market.fees.liquidityFeeSettings?.method
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
</span>
|
>
|
||||||
</Tooltip>
|
<span>
|
||||||
),
|
{
|
||||||
}}
|
LiquidityFeeMethodMapping[
|
||||||
/>
|
market.fees.liquidityFeeSettings?.method
|
||||||
|
]
|
||||||
|
}
|
||||||
|
</span>
|
||||||
|
</Tooltip>
|
||||||
|
),
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
<p className="text-xs">
|
||||||
|
<ExternalLink
|
||||||
|
href={DocsLinks?.LIQUIDITY_FEE_PERCENTAGE}
|
||||||
|
className="mt-2"
|
||||||
|
>
|
||||||
|
{t('Fore more info, visit the documentation')}
|
||||||
|
</ExternalLink>
|
||||||
|
</p>
|
||||||
|
</>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user