add missing tooltips

This commit is contained in:
saml33 2023-05-24 21:09:14 +10:00
parent 6c0474dbc9
commit 25d2a68c8d
6 changed files with 54 additions and 36 deletions

View File

@ -49,7 +49,7 @@ const PerpMarketParams = ({ market }: { market: PerpMarket }) => {
<p className="font-mono text-th-fgd-2">{tickSize}</p>
</div>
<div className="flex justify-between border-t border-th-bkg-3 py-4">
<Tooltip content={t('token:tooltip-init-asset-liability-weight')}>
<Tooltip content={t('stats:tooltip-init-asset-liability-weight')}>
<p className="tooltip-underline">
{t('token:init-asset-liability-weight')}
</p>
@ -65,7 +65,7 @@ const PerpMarketParams = ({ market }: { market: PerpMarket }) => {
</div>
</div>
<div className="flex justify-between border-t border-th-bkg-3 py-4">
<Tooltip content={t('token:tooltip-maint-asset-liability-weight')}>
<Tooltip content={t('stats:tooltip-maint-asset-liability-weight')}>
<p className="tooltip-underline">
{t('token:maint-asset-liability-weight')}
</p>
@ -81,17 +81,7 @@ const PerpMarketParams = ({ market }: { market: PerpMarket }) => {
</div>
</div>
<div className="flex justify-between border-t border-th-bkg-3 py-4">
<Tooltip content={t('stats:tooltip-init-leverage')}>
<p className="tooltip-underline">{t('trade:init-leverage')}</p>
</Tooltip>
<p className="font-mono text-th-fgd-2">
{(1 / (initBaseLiabWeight.toNumber() - 1)).toFixed(2)}x
</p>
</div>
<div className="flex justify-between border-t border-th-bkg-3 py-4">
<Tooltip content={t('stats:tooltip-max-leverage')}>
<p className="tooltip-underline">{t('trade:max-leverage')}</p>
</Tooltip>
<p>{t('trade:max-leverage')}</p>
<p className="font-mono text-th-fgd-2">
{(1 / (maintBaseLiabWeight.toNumber() - 1)).toFixed(2)}x
</p>
@ -199,21 +189,15 @@ const PerpMarketParams = ({ market }: { market: PerpMarket }) => {
<span className="font-body text-th-fgd-4">Slots</span>
</p>
</div>
<div className="flex justify-between border-t border-th-bkg-3 py-4">
<Tooltip content={t('stats:tooltip-settle-pnl-limit-period')}>
<p className="tooltip-underline">
{t('stats:settle-pnl-limit-period')}
</p>
</Tooltip>
<p className="font-mono text-th-fgd-2">
{settlePnlLimitWindowSizeTs.toNumber() / 3600}h
</p>
</div>
<div className="flex justify-between border-t border-th-bkg-3 py-4">
<Tooltip content={t('stats:tooltip-settle-pnl-factor')}>
<p className="tooltip-underline">{t('stats:settle-pnl-factor')}</p>
</Tooltip>
<p className="font-mono text-th-fgd-2">{settlePnlLimitFactor}</p>
<p className="font-mono text-th-fgd-2">
{settlePnlLimitFactor}x{' '}
<span className="font-body text-th-fgd-4">per</span>{' '}
{settlePnlLimitWindowSizeTs.toNumber() / 3600}h
</p>
</div>
</div>
</div>

View File

@ -3,12 +3,10 @@
"perp-details": "{{market}} Stats",
"pnl-liquidation-fee": "Positive PnL Liquidation Fee",
"settle-pnl-factor": "Settle PnL Factor",
"settle-pnl-limit-period": "Settle PnL Limit Period",
"tooltip-base-liquidation-fee": "",
"tooltip-funding-limits": "The minimum and maximum funding rates.",
"tooltip-init-leverage": "",
"tooltip-max-leverage": "",
"tooltip-pnl-liquidation-fee": "",
"tooltip-settle-pnl-factor": "",
"tooltip-settle-pnl-limit-period": ""
"tooltip-base-liquidation-fee": "The liqee pays this liquidation fee when a liquidator has to take over a perp base position.",
"tooltip-funding-limits": "The minimum and maximum funding rates (in percent per day).",
"tooltip-init-asset-liability-weight": "The contribution a perp position has to your initial account health. Asset weight is applied to long positions and liability weight is applied to shorts. Initial health controls your ability to withdraw and open new positions and is shown as an account's free collateral.",
"tooltip-maint-asset-liability-weight": "The contribution a perp position has to your maintenance account health. Asset weight is applied to long positions and liability weight is applied to shorts. Maintenance health is what's displayed on your account page. If this value reaches zero your account will be liquidated.",
"tooltip-pnl-liquidation-fee": "The liqee pays this liquidation fee when a liquidator has to take over positive unsettled perp pnl.",
"tooltip-settle-pnl-factor": "As an exploit mitigation, settlement of unrealized pnl is limited to this multiple of perp notional value in each time period."
}

View File

@ -1,3 +1,12 @@
{
"perp-details": "{{market}} Stats"
"base-liquidation-fee": "Base Liquidation Fee",
"perp-details": "{{market}} Stats",
"pnl-liquidation-fee": "Positive PnL Liquidation Fee",
"settle-pnl-factor": "Settle PnL Factor",
"tooltip-base-liquidation-fee": "The liqee pays this liquidation fee when a liquidator has to take over a perp base position.",
"tooltip-funding-limits": "The minimum and maximum funding rates (in percent per day).",
"tooltip-init-asset-liability-weight": "The contribution a perp position has to your initial account health. Asset weight is applied to long positions and liability weight is applied to shorts. Initial health controls your ability to withdraw and open new positions and is shown as an account's free collateral.",
"tooltip-maint-asset-liability-weight": "The contribution a perp position has to your maintenance account health. Asset weight is applied to long positions and liability weight is applied to shorts. Maintenance health is what's displayed on your account page. If this value reaches zero your account will be liquidated.",
"tooltip-pnl-liquidation-fee": "The liqee pays this liquidation fee when a liquidator has to take over positive unsettled perp pnl.",
"tooltip-settle-pnl-factor": "As an exploit mitigation, settlement of unrealized pnl is limited to this multiple of perp notional value in each time period."
}

View File

@ -1,3 +1,12 @@
{
"perp-details": "{{market}} Stats"
"base-liquidation-fee": "Base Liquidation Fee",
"perp-details": "{{market}} Stats",
"pnl-liquidation-fee": "Positive PnL Liquidation Fee",
"settle-pnl-factor": "Settle PnL Factor",
"tooltip-base-liquidation-fee": "The liqee pays this liquidation fee when a liquidator has to take over a perp base position.",
"tooltip-funding-limits": "The minimum and maximum funding rates (in percent per day).",
"tooltip-init-asset-liability-weight": "The contribution a perp position has to your initial account health. Asset weight is applied to long positions and liability weight is applied to shorts. Initial health controls your ability to withdraw and open new positions and is shown as an account's free collateral.",
"tooltip-maint-asset-liability-weight": "The contribution a perp position has to your maintenance account health. Asset weight is applied to long positions and liability weight is applied to shorts. Maintenance health is what's displayed on your account page. If this value reaches zero your account will be liquidated.",
"tooltip-pnl-liquidation-fee": "The liqee pays this liquidation fee when a liquidator has to take over positive unsettled perp pnl.",
"tooltip-settle-pnl-factor": "As an exploit mitigation, settlement of unrealized pnl is limited to this multiple of perp notional value in each time period."
}

View File

@ -1,3 +1,12 @@
{
"perp-details": "{{market}} Stats"
"base-liquidation-fee": "Base Liquidation Fee",
"perp-details": "{{market}} Stats",
"pnl-liquidation-fee": "Positive PnL Liquidation Fee",
"settle-pnl-factor": "Settle PnL Factor",
"tooltip-base-liquidation-fee": "The liqee pays this liquidation fee when a liquidator has to take over a perp base position.",
"tooltip-funding-limits": "The minimum and maximum funding rates (in percent per day).",
"tooltip-init-asset-liability-weight": "The contribution a perp position has to your initial account health. Asset weight is applied to long positions and liability weight is applied to shorts. Initial health controls your ability to withdraw and open new positions and is shown as an account's free collateral.",
"tooltip-maint-asset-liability-weight": "The contribution a perp position has to your maintenance account health. Asset weight is applied to long positions and liability weight is applied to shorts. Maintenance health is what's displayed on your account page. If this value reaches zero your account will be liquidated.",
"tooltip-pnl-liquidation-fee": "The liqee pays this liquidation fee when a liquidator has to take over positive unsettled perp pnl.",
"tooltip-settle-pnl-factor": "As an exploit mitigation, settlement of unrealized pnl is limited to this multiple of perp notional value in each time period."
}

View File

@ -1,3 +1,12 @@
{
"perp-details": "{{market}} Stats"
"base-liquidation-fee": "Base Liquidation Fee",
"perp-details": "{{market}} Stats",
"pnl-liquidation-fee": "Positive PnL Liquidation Fee",
"settle-pnl-factor": "Settle PnL Factor",
"tooltip-base-liquidation-fee": "The liqee pays this liquidation fee when a liquidator has to take over a perp base position.",
"tooltip-funding-limits": "The minimum and maximum funding rates (in percent per day).",
"tooltip-init-asset-liability-weight": "The contribution a perp position has to your initial account health. Asset weight is applied to long positions and liability weight is applied to shorts. Initial health controls your ability to withdraw and open new positions and is shown as an account's free collateral.",
"tooltip-maint-asset-liability-weight": "The contribution a perp position has to your maintenance account health. Asset weight is applied to long positions and liability weight is applied to shorts. Maintenance health is what's displayed on your account page. If this value reaches zero your account will be liquidated.",
"tooltip-pnl-liquidation-fee": "The liqee pays this liquidation fee when a liquidator has to take over positive unsettled perp pnl.",
"tooltip-settle-pnl-factor": "As an exploit mitigation, settlement of unrealized pnl is limited to this multiple of perp notional value in each time period."
}