chore: adds liquidity fee percentage link

This commit is contained in:
Madalina Raicu 2024-02-09 14:08:21 +00:00
parent 93f92f13cb
commit e07aafa630
No known key found for this signature in database
GPG Key ID: 688B7B31149C1DCD
3 changed files with 33 additions and 19 deletions

View File

@ -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;

View File

@ -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.",

View File

@ -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,7 +114,9 @@ export const CurrentFeesInfoPanel = ({ market }: MarketInfoProps) => {
}; };
export const LiquidityFeesSettings = ({ market }: MarketInfoProps) => { export const LiquidityFeesSettings = ({ market }: MarketInfoProps) => {
const t = useT();
return ( return (
<>
<MarketInfoTable <MarketInfoTable
data={{ data={{
feeConstant: market.fees.liquidityFeeSettings?.feeConstant, feeConstant: market.fees.liquidityFeeSettings?.feeConstant,
@ -136,6 +139,15 @@ export const LiquidityFeesSettings = ({ market }: MarketInfoProps) => {
), ),
}} }}
/> />
<p className="text-xs">
<ExternalLink
href={DocsLinks?.LIQUIDITY_FEE_PERCENTAGE}
className="mt-2"
>
{t('Fore more info, visit the documentation')}
</ExternalLink>
</p>
</>
); );
}; };